@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

*{
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: rgb(255, 255, 255);
}
/* main-content */
/* .main-content{
    /* padding: 20px; */
  /*  border:2px solid red;
} */
 .contentofpage{
    padding: 20px;
 }
.inheading{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}
.invoicehead{
    font-size: 18px;
    color: #10578b;
    font-weight: bold;
}
.recent{
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    background-color: #10578b;
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
}


/* deatils */
.fetching{
    border-radius: 10px;
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.contentofpage .all-details-head{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left:10px ;
}
.contentofpage .all-details-head .org-details{
    display: flex;
    align-items: center;
    gap: 30px;
}
.contentofpage .all-details-head .org-details figure{
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #bdbdbd;
}
.all-details-head .org-details figure img{
    background-color: white;
    border-radius: 50%;
    height: 65px;
    width: 65px;
    object-fit: contain;
}
.all-details-head .org-details span{
    font-family: "Saira", sans-serif;
    font-size: 19px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    i{
        font-size: 16px;
    }
}
.contentofpage .all-details-head .this-heading{
    display: flex;
    align-items: center;
    padding:30px 40px;
    border-radius: 40px 0px 0px 40px;
    background-color: #10578B;
    height: 100%;
}
.contentofpage .all-details-head .this-heading div{
    font-size: 18px;
    font-weight: 500;
    color: white;
}
.contentofpage .all-details{
    border-top: 1px solid rgba(27, 31, 35, 0.264);
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    justify-content: space-between;
    font-size: 14px;
    gap: 10px;
}
.contentofpage .organisation-det{
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: rgb(113, 113, 113);
    max-width: 400px;
    width: 100%;
}
.contentofpage .all-details .details{
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    justify-content: flex-start;
    gap: 5px;
    .material-symbols-outlined{
        font-size: 20px;
    }
}

.contentofpage .all-details .enter-det{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    justify-content: space-evenly;
    font-size: 14px;
    color: rgb(113, 113, 113);
}
.all-details .enter-det .client input{
    width: 120px;
    padding: 5px;
    text-align: left;
    border: 1px solid rgb(207, 207, 207);
    border-radius: 3px;
    outline: none;
    color: rgb(113, 113, 113);
}
.enter-det .client span:last-child{
    padding: 0px 7px;
}
.all-details .enter-det .client #fetch-details{
    background-color: #009944;
    color: white;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
}
.all-details .main-client-det{
    display: none;
}
.all-details .cient-det{
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: rgb(113, 113, 113);
}
@media (max-width:768px) {
    .all-details-head{
        flex-direction: column-reverse;
        align-items: center;
        justify-content: right;
        gap: 20px;
    }
    .contentofpage .all-details-head .this-heading{
        padding:10px 20px;
        border-radius: 30px;
    }
    .contentofpage .all-details{
        justify-content: center;
        gap: 25px;
      }
}
/* container */
.container{
    /*border:2px solid orangered;*/
    width:100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 30px;
}
.containers{
    width:100%;
}

.table i{
    margin-right: 4px;
}
.building{
    color:rgb(85, 154, 234);
}
.bag{
    color:rgb(249, 91, 201);
}
.price{
    color:rgb(196, 170, 86);
}
.quotations{
    color:rgb(77, 169, 182);
    font-weight: 500;
}
.boxes{
    height:300px;
    display: flex;
    justify-content: end;
    align-items: center;
    height:180px;
    margin-top: 30px;
}

.tableheading{
    width: 100%;
    margin: 20px 15px;
    font-weight: bold;
}

/* description table  */
tbody input{
    border: none;
    outline: none;
    max-width: max-content;
    width: 100%;
}
.description{
    margin-top: 20px;
}
.table-container {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    background-color: transparent;
    border-radius: 8px;    
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0px 15px;
}
table i{
    margin-right: 4px;
}
.building{
    color:rgb(85, 154, 234);
}
.bag{
    color:rgb(249, 91, 201);
}
.price{
    color:rgb(196, 170, 86);
}
th, td {
    padding: 10px;
    font-size: 14px;
    box-sizing: border-box;
    padding: 10px 2px;
    border-bottom: 1px solid #828282;
    text-align: center;
    background-color: transparent;
}
td input{
    background-color: transparent;
    text-align: center;
    width: 150px;
}
th{
    white-space: nowrap;
    
}
thead {
    background-color: transparent;
    /* text-align: left; */
    
    box-sizing: border-box;
}

.addbtn {
    margin-top: 20px;
    padding: 5px 10px;
    background-color: #10578b;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.addbtn:hover {
    background-color: #043a61;
}
.delete-row{
    background-color: transparent;
    padding: 0px;
    width: 0px;
    margin: 0px;
    width: max-content;
    border: none;
    cursor: pointer;
}
.delete-row i {
    font-size: 16px;
    color: #f44336;
}
.total-container{
    display: flex;
    justify-content: flex-end;
    padding-right: 5%;
}
.totals {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    width: 100%;
    padding: 20px 50px;
    background-color: #10578b;
    color: white;
    border-radius: 8px;
    width: max-content;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
    max-width: 250px;
    border-bottom: 1px solid white;
    padding-bottom: 5px;
}

.label {
    text-align: right;
    margin-right: 10px;
    font-size: 14px;
}

.value {
    font-weight: bold;
    font-size: 14px;
}

.totals-row input {
    text-decoration: underline;
    border: none;
    outline: none;
    text-align: left;
    padding: 2px 5px ;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width:768px) {
    .form .form-group{
        width: 100%;
    }
    .form-group input{
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    
     .both{
        flex-wrap: wrap;

     }
     .total-container{
        display: flex;
        justify-content: center;
        padding-right: 0%;
    }
}



/* signature */ 
.Signature{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 50px;
}
.subsign{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}
.subsign label{
    border-bottom: 1px solid black;
    font-size: 14px;
}
.form1, .form2{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.form1 input, .form2 input{
    border: none;
    outline: none;
    margin: 5px 0px;
    background-color: transparent;
    border-bottom: 1px solid rgb(237, 237, 237);
    font-size: 14px;
}






.inputs{
    text-align: center;
    border-bottom: #e9e9e9;
}
/* btn */
.savebtn{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}
.btnbox{
    width: 80%;
    display: flex;
    justify-content: space-evenly;
}
.save{
    font-size: 14px;
    cursor: pointer;
    color: white;
    background-color: #10578b;
    border-radius: 4px;
    padding: 4px 8px;
}
.save:hover{
    background-color:#043a61;

}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
.required {
    color: red;
}
.error-border {
    border: 1px solid red;
    border-color: red;
}

/* Popup overlay */
.popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* Smooth opacity transition */
  }
  
  /* Show the overlay */
  .popup-overlay.show {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease-in-out forwards;
  }
  
  .popup-overlay.hide {
    animation: fadeOut 0.3s ease-in-out forwards;
  }
  
  /* Popup content */
  .popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9); /* Start small */
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%;
    max-width: 400px;
    opacity: 0;
    transition: all 0.3s ease-in-out; /* Smooth transform/opacity */
  }
  
  /* Entry animation for content */
  .popup-overlay.show .popup-content {
    transform: translate(-50%, -50%) scale(1); /* Full size */
    opacity: 1;
    animation: scaleIn 0.3s ease-in-out forwards;
  }
  
  /* Exit animation for content */
  .popup-overlay.hide .popup-content {
    transform: translate(-50%, -50%) scale(0.9); /* Shrink */
    opacity: 0;
    animation: scaleOut 0.3s ease-in-out forwards;
  }
  
  /* Title and message */
  .popup-content h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .popup-content p {
    margin: 0 0 20px;
    color: #666;
    font-size: 1rem;
  }
  
  /* Popup actions */
  .popup-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  
  .popup-actions .btn {
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s;
  }
  
  .btn-secondary {
    background-color: #6c757d;
    color: #fff;
  }
  
  .btn-danger {
    background-color: #dc3545;
    color: #fff;
  }
  
  .btn:hover {
    transform: translateY(-2px); /* Subtle hover animation */
    background-color: #444;
  }
  
  /* Keyframes for overlay fade */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  
  /* Keyframes for content scaling */
  @keyframes scaleIn {
    from {
      transform: translate(-50%, -50%) scale(0.9);
      opacity: 0;
    }
    to {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
  }
  
  @keyframes scaleOut {
    from {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
    to {
      transform: translate(-50%, -50%) scale(0.9);
      opacity: 0;
    }
  }
  