/* Apply Poppins font globally */
body, html {
    font-family: 'Poppins', sans-serif !important;
}
.exportExcel{
background: green;
color: #fff;
border-radius: 15px;
line-height: 15px;
font-size: 13px;
position: absolute;
right: 14px;
top: 7px;
}
.exportExcel:hover{
    background: green;
    color: #fff;
    border-radius: 15px;
    line-height: 15px;
    font-size: 13px;
    }

.back{
background:red;
color: #fff;
border-radius: 15px;
line-height: 15px;
font-size: 13px;
position: relative;
    top: -10px;
}
.countDiv{
    position: relative;
}
.count{
    background: #ffc107;
    width: 55px;
    height: 35px;
    border-radius: 25px;
    text-align: center; 
    /* font-size: 15px; */
    position: absolute;
    top: -30px;
    right: 0px;
    color: #000;
    font-weight: bold;
}
.Cheading {
    font-weight: bold;
    color: #ea0029;
    margin-bottom: 15px;
    margin-top:15px;
}
.box{
    color: #fff;
    padding: 20px;
    display: none;
    margin-top: 20px;
}

.hidden_div{
    display: none;
}
.hidden_div1{
    display: none;
}
/* .selectt {
    display: none;
} */

.ipadT{
    background: #ea0029 !important;
    padding: 5px 40px;
    font-size: 20px;
    margin: 10px 0px;
    width: 100%;
    color: #fff;
}
label {
    font-weight: bold;
    font-size: 14px;
}
.row{
    margin-bottom: 15px;
}
.removeDiv{
    display: none;
}


.hide{
    display: none;
}
.display{
    display: block;
}
.was-validated .form-control:invalid, .was-validated .dataTable-input:invalid, .form-control.is-invalid, .is-invalid.dataTable-input {
    border-color: #f9d8db !important;}
.was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.is-invalid ~ .form-check-label {
        color: #dc3545;
        font-weight: 500 !important;
    }
.was-validated .form-check-input:valid ~ .form-check-label, .form-check-input.is-valid ~ .form-check-label {
        /*color: #198754;*/
        color: #000;
        font-weight: 500 !important;
    }
.was-validated .form-select:invalid, .was-validated .dataTable-selector:invalid, .form-select.is-invalid, .is-invalid.dataTable-selector {
        border-color: #f9d8db !important;
    }
    
    
    /* CMR styels  */

.CheadingCaps {
    font-weight: bold;
    color: #ea0029;
    margin-bottom: 15px;
    margin-top:15px;
    text-transform:uppercase;
}
    .tFuture{
        width: 25%;
    }

 @media only screen and (max-width: 600px) {
    .tFuture{
        width: 100%;
    }
    .form-check-inline {
        display: inline-block;
        margin-right: 1rem;
        width: 100%;
        margin-bottom:10px;
    }
}



.removeBtn{ background: #cc0000; color:#fff; border-radius: 10px;}
.custom-datepicker-icon {
    font-size: 16px;
    color: #8c8c8c;
    cursor: pointer;
    position: relative;
    left: 0px;
    top: 8px;
    z-index: 4;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-bottom-right-radius:3px;
    border-top-right-radius:3px;
  }
  .input-group-text {
    background-color: #f8f9fa;
}
.input-group input {
  border-top-right-radius: 10px;
  border-bottom-right-radius:10px;
}

.dependentForm{
    margin-bottom: -10px;
}
.table-hover tbody tr:hover {
    background-color: #f5f8ff !important;
}

.table th {
    font-weight: 600;
    color: #000;
    font-size: 13px;
}

.card-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.location-card {
    transition: transform .15s ease, box-shadow .15s ease;
    cursor: pointer;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}
.width-150{
    width: 150px !important;
}
/* Hide Do it by default */
/* .action-cell .do-it-btn {
    display: none;
} */

/* Show Do it ONLY if Generate Invoice exists */
/* .action-cell .generate-invoice + .do-it-btn {
    display: inline-block;
    margin-left: 6px;
} */

/* Default state */
.action-cell .do-it-btn {
    display: none;
}

.action-cell .do-it-text {
    display: inline-block;
    font-size: 13px;
    margin-left: 6px;
}

/* If Generate Invoice exists → show Do it, hide text */
.action-cell .generate-invoice + .do-it-btn {
    display: inline-block;
    margin-left: 6px;
}

.action-cell .generate-invoice + .do-it-btn + .do-it-text {
    display: none;
}
.customBadge{
    position: relative;
    top: -10px !important;
    right: 3px !important;
}


/* ==============================
   iPad / Tablet UI Refinements
   ============================== */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Overall container */
  .container {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }

  /* Section headings */
  .Cheading {
    font-size: 18px;
    margin: 28px 0 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid #cc0000;
  }

  /* Rows spacing */
  .row {
    margin-bottom: 14px;
  }

  /* Labels */
  label {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
  }

  /* Inputs & selects */
  .form-control,
  .form-select {
    padding: 6px 14px;
    font-size: 16px;
    border-radius: 6px;
  }

  /* Radios & checkboxes (tap friendly) */
  .form-check {
    margin-bottom: 10px;        margin-right: 6px;
  }

  .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
  }

  .form-check-label {
    font-size: 15px;
    padding-left: 6px;
  }

  /* Grouped question spacing */
  .eClient,
  .dependencyDiv,
  .spouseDiv,
  .Bnumber,
  .dBusiness,
  .immigration,
  .prison {
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
    margin-top: 12px;
  }

  /* Extra insurance block */
  #extraQuestion {
    padding: 20px;
    border-radius: 10px;
  }

  /* Submit button */
  .submit-outer {
    margin-top: 30px;
    padding-bottom: 40px;
    text-align: center;
  }

  .submit-outer .btn {
    padding: 14px 40px;
    font-size: 18px;
    border-radius: 30px;
  }
}

.text-limit-200 {
  max-width: 200px;
  white-space: nowrap;        /* Prevent text wrapping */
  overflow: hidden;           /* Hide extra text */
  text-overflow: ellipsis;    /* Show "..." */
  width: 200px;               /* Limit approximately 150 characters */
}
.text-limit-150 {
  max-width: 150px;
  white-space: nowrap;        /* Prevent text wrapping */
  overflow: hidden;           /* Hide extra text */
  text-overflow: ellipsis;    /* Show "..." */
  width: 150px;               /* Limit approximately 150 characters */
}
.datatable-bottom {
    margin-top: 45px;
    position: relative;
    bottom: 0px;
}
/* Restore Bootstrap select arrow */
/* .form-select {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    background-image: var(--bs-form-select-bg-img) !important;
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
} */

#sinMsg{
    font-size: 0.7rem;
    color:red;
}
.text-warning {
    color: #856404 !important;
}
.text-warning1 {
    color: #fabf11 !important;
}


.note-item {
    border-left: 3px solid #0d6efd;
    padding-left: 10px;
}

/* .note-avatar {
    width: 36px;
    height: 36px;
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
} */
.note-avatar{
    width:36px;
    height:36px;
    border-radius:50%;
    background: linear-gradient(135deg,#7a0608,#e50c34);
    color:white;
    font-weight:600;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
}

.note-content {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 8px 12px;
}

.note-header {
    font-size: 13px;
    margin-bottom: 3px;
}

.note-time {
    font-size: 11px;
    color: #6c757d;
    margin-left: 8px;
}

.note-text {
    font-size: 14px;
}
.model-header{
    background-color: #b80c0c;
}
.add-note-button{
     background: linear-gradient(135deg,#a22123,#e50c34);
     color: #fff;
}
.add-note-button:hover{
     background: linear-gradient(135deg,#e50c34,#a22123);
     color: #fff;
}
#notesModalBody {
    max-height: 420px;
    overflow-y: auto;
}
.note-item:first-child {
    border-left: 4px solid #198754;
    background: #f0fff5;
}




.premium-card {
    border-radius: 16px;
    padding: 5px;
    border: 1px solid #c2cfff;
    border-color: #c2cfff;
    background-color: #e4eaff;
    /* background: linear-gradient(135deg, #ffffff, #f8fbff); */
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(0,123,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 1.3rem;
}

.status-pill {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.bg-success { background: #28a745 !important; }
.bg-warning { background: #ffc107 !important; color:#000 !important; }
.bg-danger  { background: #dc3545 !important; }

.progress {
    border-radius: 10px;
    background: #fff;
}



.dashboard-card {
    border-radius: 16px;
    border-left:4px solid #000;
    /* background: linear-gradient(135deg, #d7def9, #e6ebf3); */
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.25s ease;

    border-color: #c2cfff;
    background-color: #e4eaff;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.card-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #000;
}

.bg-blue    { background:#007bff; }
.bg-green   { background:#28a745; }
.bg-yellow  { background:#ffc107; color:#000; }
.bg-red     { background:#dc3545; }
.bg-pink    { background:#e83e8c; }
.bg-cyan    { background:#17a2b8; }

.card-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-value {
    font-size: 1.8rem;
    font-weight: 700;
}


.pagination-sm .page-link {
    padding: 4px 8px;
    font-size: 0.8rem;
}
ul.custommTab li.nav-item a{
    color: #000;
    font-weight: 600;
    font-size: 14PX;
}
.view-notes{
    position: relative;
}
.view-notes .badge{
    position:absolute;
    top: -13px;
}

.pulse-badge {
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 20px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}