/* ==============================
   RESET
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #f8f9fa;
}
 :root{
      --primary:#25671E;
      --secondary:#48A111;
      --gold:#FFCC00;
      /* --dark:#1f2937; */
      --light:#eeffe3;
    }
.nav-btn{
      background:white;
      color:var(--primary);
      border-radius:30px;
      padding:8px 18px;
      font-weight:600;
      text-decoration:none;
      margin-left:8px;
    }

    .form-wrapper{
      max-width:1050px;
      margin:35px auto;
      background:white;
      border-radius:22px;
      overflow:hidden;
      box-shadow:0 15px 45px rgba(0,0,0,.12);
    }

    .form-header{
      /* background:linear-gradient(135deg,#9ccc88,#73b65f); */
      background-color: #f6fff1;
      padding:22px;
      text-align:center;
      border-bottom:4px solid var(--primary);
    }

    .form-header h2{
      margin:0;
      font-weight:600;
      color:#111;
    }

    .form-section{
      padding:28px;
    }

    .form-label{
      font-weight:700;
      color:#1f2937;
      font-size:14px;
    }

    .form-control,
    .form-select{
      border-radius:12px;
      padding:11px 14px;
      border:1px solid #d7e8cf;
    }

    .form-control:focus,
    .form-select:focus{
      border-color:var(--primary);
      box-shadow:0 0 0 .18rem rgba(11,61,145,.15);
    }

    .section-title{
      font-size:18px;
      font-weight:800;
      color:var(--primary);
      margin-bottom:18px;
      border-left:5px solid var(--gold);
      padding-left:12px;
    }

    .action-bar{
      background:#f0f8ec;
      padding:20px;
      display:flex;
      gap:14px;
      flex-wrap:wrap;
      justify-content:center;
      border-top:1px solid #d7e8cf;
    }

    .btn-custom{
      border:none;
      border-radius:14px;
      padding:12px 28px;
      font-weight:800;
      min-width:145px;
    }

    .btn-save{
      background:linear-gradient(135deg,#25671E,#48A111);
      color:white;
    }

    .btn-edit{
      background:linear-gradient(135deg,#0B3D91,#145cd6);
      color:white;
    }

    .btn-share{
      background:linear-gradient(135deg,#25D366,#128C7E);
      color:white;
    }

    .btn-download{
      background:linear-gradient(135deg,#FFCC00,#f59e0b);
      color:#111;
    }

    .btn-new{
      background:linear-gradient(135deg,#111827,#374151);
      color:white;
    }

    @media(max-width:768px){
      .brand-title{
        font-size:22px;
      }

      .nav-btn{
        display:inline-block;
        margin-top:10px;
      }

      .form-section{
        padding:20px;
      }

      .btn-custom{
        width:100%;
      }
    }

/* ==============================
Login
=================================== */

.crm-navbar {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 20;
      width: 100%;
      padding: 18px 7%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(255, 255, 255, 0.78);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--border);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: var(--dark);
      font-weight: 800;
      letter-spacing: -0.03em;
    }

    .brand-icon {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      color: #fff;
      border-radius: 14px;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      box-shadow: 0 12px 30px #f7fef63a;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .nav-actions a {
      color: var(--muted);
      text-decoration: none;
      font-weight: 700;
      font-size: 14px;
    }

    .profile {
      position: relative;
      cursor: pointer;
    }

    .avatar {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #fff;
      box-shadow: 0 12px 30px #f7fef63a;
    }

    .status-dot {
      position: absolute;
      right: 2px;
      bottom: 3px;
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: #22c55e;
      border: 2px solid #fff;
    }
    .profile-dropdown a,
    .profile-dropdown p {
      display: block;
      margin: 0;
      /* padding: 10px 12px; */
      /* color: var(--dark); */
      text-decoration: none;
      border-radius: 12px;
      font-size: 14px;
      /* font-weight: 500; */
    } 

    .login-page {
      min-height: 100vh;
      padding: 110px 7% 56px;
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(360px, 460px);
      gap: 48px;
      align-items: center;
    }

    .hero-panel {
      max-width: 700px;
    }

    .eyebrow {
      width: fit-content;
      margin-bottom: 18px;
      padding: 8px 14px;
      color: white;
      background: #48A111;
      border: 1px solid rgba(37, 235, 37, 0.16);
      border-radius: 999px;
      font-weight: 800;
      font-size: 13px;
    }

    .hero-panel h1 {
      margin: 0 0 18px;
      font-size: clamp(30px, 3vw, 35px);
      line-height: 1;
      font-weight: 700;
      letter-spacing: -0.06em;
    }
    .hero-panel p {
      max-width: 560px;
      margin: 0 0 28px;
      color: var(--muted);
      font-size: 18px;
      line-height: 1.8;
    }

    .feature-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      max-width: 620px;
    }

    .feature-card {
      padding: 18px;
      background: rgba(255, 255, 255, 0.74);
      border: 1px solid var(--border);
      border-radius: 22px;
      box-shadow: 0 14px 40px rgba(37, 235, 37, 0.16);
    }

    .feature-card i {
      margin-bottom: 12px;
      color: var(--primary);
      font-size: 24px;
    }

    .feature-card strong {
      display: block;
      margin-bottom: 4px;
      font-size: 15px;
    }

    .feature-card span {
      color: var(--muted);
      font-size: 13px;
    }

    .login-container {
      width: 100%;
      padding: 34px;
      background: var(--card);
      backdrop-filter: blur(20px);
      border: 1px solid var(--border);
      border-radius: 30px;
      box-shadow: var(--shadow);
    }

    .login-header {
      margin-bottom: 26px;
    }

    .login-header h2 {
      margin: 0 0 8px;
      font-size: 30px;
      font-weight: 900;
      letter-spacing: -0.04em;
    }

    .login-header p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .form-label {
      margin-bottom: 8px;
      color: #334155;
      font-weight: 800;
      font-size: 13px;
    }

    .form-control,
    .captcha-input {
      min-height: 52px;
      width: 100%;
      padding: 12px 15px;
      border: 1px solid rgba(0, 128, 0, 0.325);
      border-radius: 16px;
      background: #fff;
      color: var(--dark);
      font-size: 15px;
      outline: none;
      transition: 0.25s ease;
    }

    .form-control:focus,
    .captcha-input:focus {
      border-color: rgba(37, 235, 37, 0.16);
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    }

    .password-box {
      position: relative;
    }

    .password-box .form-control {
      padding-right: 48px;
    }

    .toggle-password {
      position: absolute;
      top: 50%;
      right: 16px;
      transform: translateY(-50%);
      color: var(--muted);
      cursor: pointer;
    }

    .helper-link {
      color: var(--primary);
      text-decoration: none;
      font-size: 12px;
      font-weight: 800;
    }

    .captcha-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px;
      background: #f8fafc;
      border: 1px dashed rgba(37, 235, 37, 0.16);
      border-radius: 18px;
    }

    .captcha-box img {
      max-height: 54px;
      border-radius: 12px;
    }

    .captcha-refresh {
      width: 44px;
      height: 44px;
      flex: 0 0 44px;
      border: none;
      border-radius: 14px;
      color: var(--primary);
      background:rgba(37, 235, 37, 0.16);
      font-size: 18px;
      transition: 0.25s ease;
    }

    .captcha-refresh:hover {
      background: rgba(37, 235, 37, 0.16);
      transform: rotate(18deg);
    }

    .login-container .submit-btn {
      width: 100%;
      min-height: 54px;
      margin-top: 8px;
      border: none;
      border-radius: 17px;
      color: #fff;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      box-shadow: 0 16px 34px rgba(37, 235, 37, 0.16);
      font-size: 16px;
      font-weight: 900;
      transition: 0.25s ease;
    }

    .login-container .submit-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 20px 42px rgba(37, 235, 37, 0.16);
    }

    .security-note {
      display: flex;
      gap: 10px;
      margin-top: 18px;
      padding: 13px;
      color: #475569;
      background: rgba(15, 23, 42, 0.04);
      border-radius: 16px;
      font-size: 12px;
      line-height: 1.6;
    }

    .security-note i {
      margin-top: 2px;
      color: #22c55e;
    }

    @media (max-width: 992px) {
      .login-page {
        grid-template-columns: 1fr;
      }

      .hero-panel {
        text-align: center;
        margin: 0 auto;
      }

      .eyebrow {
        margin-left: auto;
        margin-right: auto;
      }

      .hero-panel p,
      .feature-grid {
        margin-left: auto;
        margin-right: auto;
      }
    }

    @media (max-width: 640px) {
      .crm-navbar {
        padding: 14px 18px;
      }

      .nav-actions a {
        display: none;
      }

      .login-page {
        padding: 92px 18px 32px;
      }

      .feature-grid {
        grid-template-columns: 1fr;
      }

      .login-container {
        padding: 24px;
        border-radius: 24px;
      }
    }


/* ==============================
   NAVBAR
============================== */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 6px 40px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar.shrink {
    padding: 12px 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
}
.last-icon {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ==============================
   LOGO
============================== */
.logo img {
    height: 65px;
    transition: 0.3s ease;
}

.navbar.shrink .logo img {
    height: 35px;
}

/* ==============================
   NAV LINKS
============================== */
.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #333;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 3px;
    background: #2ecc71;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #2ecc71;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==============================
   PROFILE
============================== */
.profile {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2ecc71;
    transition: 0.3s;
}

.avatar:hover {
    transform: scale(1.05);
}

.status-dot {
    position: absolute;
    bottom: 6px;
    right: 4px;
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    border: 2px solid white;
}

/* DROPDOWN */
.profile-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 230px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown .welcome {
    font-size: 14px;
    margin-bottom: 12px;
    color: #3a3a3a;
}
.profile-dropdown {
    display: none;
}

.profile-dropdown.active {
    display: block !important;
}
.profile-dropdown a {
    display: block;
    padding: 8px !important;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}
.profile-dropdown a:hover {
    background-color: #edffef;
}

.profile-dropdown hr {
    border: none;
    border-top: 1px solid #858585;
    margin: 10px 0;
}

.logout {
    color: #e74c3c !important;
}

/* ==============================
   HAMBURGER
============================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px,5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px,-6px);
}

/* ==============================
   HERO SECTION
============================== */
.hero {
    height: 70vh;
    background: url('../img/home-img.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 100px;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    /* background: rgba(0,0,0,0.55); */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1px;
}.home-img img {
  width: 120px;
  background-color: #f8f8f8;
  border-radius: 50%;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.6);
  margin-bottom: 20px;
}

/* ==============================
   MOBILE RESPONSIVE
============================== */
@media(max-width: 768px) {

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        flex-direction: column;
        width: 220px;
        padding: 20px;
        transform: translateY(-200%);
        transition: 0.3s;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        border-radius: 0 0 10px 10px;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 28px;
    }

}/* ==============================
   SEARCH BAR
============================== */
.search-box{
    width:600px;          /* Change width if needed */
    max-width:100%;
    display:flex;
    background:#fff;
    border-radius:50px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,0.2);
}

.search-box input{
    flex:1;
    padding:14px 16px;
    border:none;
    outline:none;
    font-size:16px;
    border-radius:50px 0 0 50px;
}

.search-box button{
    padding:0 35px;
    border:none;
    background:#48A111;
    color:#fff;
    font-size:16px;
    cursor:pointer;
    border-radius:0 50px 50px 0;
    transition:0.3s;
}

.search-box button:hover{
    background:#25671E;
}.add-property h2{
margin-top: 30px;

text-align: center;
}
/* Clients */
/* 
.property-tile-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  
    gap: 22px;
    max-width: 1300px;
    margin: 50px auto;
    padding: 10px;
} */

.property-tile {
    position: relative;
    height: 160px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.35s ease;
}

/* Dark overlay */
.property-tile::before {
    content: "";
    position: absolute;
    inset: 0;

    transition: all 0.3s ease;
}

/* Text */
.property-tile span {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    z-index: 2;
}

/* Hover effect */
.property-tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

/* .property-tile:hover::before {
    background: linear-gradient(
        rgba(255, 255, 255, 0.25),
        rgba(0, 90, 146, 0.535)
    );
} */

/* Active */
/* .property-tile.active::before {
    background: linear-gradient(
        rgba(255,107,53,0.4),
        rgba(255,107,53,0.85)
    );
} */

/* Mobile */
@media (max-width: 600px) {
    .property-tile {
        height: 120px;
    }

    .property-tile span {
        font-size: 14px;
    }
}

/* Properties */
.property-horizontal{
  display:flex;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  margin-bottom:22px;
  box-shadow:0 8px 20px rgba(0,0,0,.12);
}

.property-image{
  width:40%;
  position:relative;
}

.property-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.price{
  position:absolute;
  bottom:15px;
  left:15px;
  background:#f90000ff;
  color:#fff;
  padding:6px 14px;
  border-radius:20px;
}

.property-info{
  width:60%;
  padding:18px;
}
/* Footer */
.property-hub-footer{
  background:linear-gradient(135deg,#d7e8cf,#f1ffe8fb);
  padding:70px 40px 35px;
  text-align:center;
  border-top:1px solid rgba(0,0,0,.05);
}

.hub-title{
  display:inline-block;
 background:linear-gradient(135deg,var(--primary),#48A111);
  color:#fff;
  font-size:27px;
  font-weight:800;
  padding:14px 46px;
  border-radius:35px;
  margin-bottom:48px;
  letter-spacing:.5px;
  box-shadow:0 10px 25px #f1ffe8fb;
}

.hub-grid{
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  gap:36px 64px;
  max-width:1650px;
  margin:0 auto 46px;
  align-items:center;
}

.hub-card{
  background:#fff;
  height:72px;
  border-radius:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 14px 35px rgba(0,0,0,.08);
  text-decoration:none;
  transition:.25s ease;
}

.hub-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 45px rgba(0,0,0,.14);
}

.hub-card img{
  max-width:82%;
  max-height:58px;
  object-fit:contain;
}

.hub-card.small-center{
  grid-column:auto;
}

.footer-copy{
  font-size:16px;
  color:#333;
  margin-top:15px;
}

.footer-copy strong{
  color:#25671E;
}

/* Tablet */
@media(max-width:1200px){
  .hub-grid{
    grid-template-columns:repeat(4, 1fr);
    gap:28px;
  }
}

/* Mobile */
@media(max-width:768px){
  .property-hub-footer{
    padding:45px 18px 25px;
  }

  .hub-title{
    font-size:26px;
    padding:12px 34px;
    margin-bottom:35px;
  }

  .hub-grid{
    grid-template-columns:repeat(2, 1fr);
    gap:18px;
  }

  .hub-card{
    height:78px;
    border-radius:18px;
  }

  .hub-card img{
    max-height:46px;
  }
}

/* Small Mobile */
@media(max-width:420px){
  .hub-grid{
    grid-template-columns:1fr;
  }
}


/* ========================== 
Buyer List table 
==============================
*/

.client-view-wrapper {
    padding: 35px;
    background: linear-gradient(135deg, #f7fff2, #eef8ff);
    min-height: 100vh;
}

.client-view-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 22px;
}

.client-view-header h2 {
    color: var(--primary);
    font-size: 30px;
    font-weight: 700;
    margin: 0;
}

.client-view-header p {
    margin: 5px 0 0;
    color: #64748b;
}

.client-tools {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.client-search,
.client-filter {
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 14px;
    outline: none;
}

.client-search:focus,
.client-filter:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(72, 161, 17, .12);
}
a{
    text-decoration:none !important;
    
}
.add-client-btn,
        .download-excel-btn,
        .bulk-delete-btn {
            height: 44px;
            border: none;
            border-radius: 12px;
            padding: 0 18px;
            color: white;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .add-client-btn {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
        }

.client-table-card {
    background: white;
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(37, 103, 30, .12);
    overflow: hidden;
    border: 1px solid rgba(72, 161, 17, .18);
    padding:15px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.client-table {
    width: 100%;
    min-width: 1300px;
    border-collapse: separate;
    border-spacing: 0;
}

.client-table thead th {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--gold), #ffe66d);
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    padding: 13px 10px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 3px solid var(--primary);
    z-index: 2;
}

.client-table tbody td {
    padding: 13px 10px;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 14px;
    vertical-align: middle;
    white-space: nowrap;
}

.client-table tbody tr {
    transition: .2s ease;
}

.client-table tbody tr:nth-child(even) {
    background: #fbfff8;
}

.client-table tbody tr:hover {
    background: var(--light);
    transform: scale(1.002);
}

.serial-badge {
    background: var(--primary);
    color: white;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.source-pill,
.category-pill,
.visit-yes {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.source-pill {
    background: #fff7cc;
    color: #7a5a00;
}

.category-pill {
    background: var(--light);
    color: var(--primary);
}

.visit-yes {
    background: #dcfce7;
    color: #166534;
}

.client-name {
    font-weight: 800;
    color: var(--primary);
}

.text-limit {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.table-actions a {
            width: 26px;
            height: 26px;
            border: none;
            border-radius: 10px;
            color: white;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }

.view-btn {
    background: var(--secondary);
    color: #ffffff !important;
    padding: 8px;font-size: 11px;
    border-radius: 5px;
}

.edit-btn {
    background: var(--gold);
    color: #ffffff !important;
     padding: 8px;font-size: 11px;
    border-radius: 8px;
}

.delete-btn {
    background: #dc2626;
    color: #ffffff !important;
     padding: 8px;font-size: 11px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .client-view-wrapper {
        padding: 18px;
    }

    .client-view-header {
        align-items: stretch;
        flex-direction: column;
    }

    .client-tools {
        flex-direction: column;
    }

    .client-search,
    .client-filter,
    .add-client-btn {
        width: 100%;
    }
}.doc-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 800;
} .serial-badge,
        .source-pill,
        .category-pill,
        .visit-yes,
        .visit-no,
        .doc-pill,
        .status-pill {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 800;
        } .status-pill {
            background: #dcfce7;
            color: #166534;
        }

        .visit-no {
            background: #fee2e2;
            color: #991b1b;
        }

        .doc-pill {
            background: #e0f2fe;
            color: #075985;
        }

/* =======================
Client Veiw table 
======================= */

.detail-page {
    padding: 120px 35px 50px;
    background: linear-gradient(135deg, #f7fff2, #eef8ff);
    min-height: 100vh;
}

.detail-header,
.profile-card,
.detail-card,
.document-section {
    /* padding: 10px; */
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(37, 103, 30, .12);
    border: 1px solid rgba(72, 161, 17, .18);
}
.detail-card h4 {
    padding: 20px;
}
.detail-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.detail-header h2 {
    color: var(--primary);
    font-weight: 700;
    margin: 0;
}

.detail-header p {
    color: #64748b;
    margin: 6px 0 0;
}

.detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-back,
.btn-edit-view,
.btn-print,
.doc-open-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 600;
    color: #fff !important;
}

.btn-back {
    background: #111827;
}

.btn-edit-view {
    background: var(--secondary);
}

.btn-print {
    background: var(--gold);
    color: #111;
}

.profile-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.profile-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 30px;
}

.profile-card h3 {
    margin: 0;
    color: var(--primary);
    font-weight: 900;
}

.profile-card p {
    margin: 6px 0 0;
    color: #64748b;
}

.status-pill {
    margin-left: auto;
    background: var(--light);
    color: var(--primary);
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 900;
}



.info-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-row span {
    color: #64748b;
    font-weight: 700;
}

.info-row strong {
    color: #111827;
    text-align: right;
}

.text-box {
    /* background: #f8fff4;
    border: 1px solid #d7e8cf; */
    border-radius: 16px;
    padding: 16px;
    color: #1f2937;
    line-height: 1.7;
}

.document-section {
    margin-top: 24px;
    padding: 24px;
}

.document-grid {
    display: grid;
    padding: 30px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 2fr));
    gap: 18px;
}

.document-card {
    border: 1px solid #d7e8cf;
    border-radius: 18px;
    padding: 10px;
    background: #fbfff8;
}

.document-title {
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 12px;
}

.doc-preview,
.pdf-preview {
    width: 100%;
    height: 320px;
    border-radius: 14px;
    border: 1px solid #d7e8cf;
    object-fit: cover;
    background: #fff;
}

.doc-open-btn {
    display: inline-block;
    margin-top: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

@media (max-width: 768px) {
    .detail-page {
        padding: 100px 16px 35px;
    }

    .detail-header,
    .profile-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-pill {
        margin-left: 0;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-column: span 1;
    }

    .info-row {
        flex-direction: column;
        gap: 4px;
    }

    .info-row strong {
        text-align: left;
    }
}.btn-download-detail{
    background:linear-gradient(
        135deg,
        var(--gold),
        #f59e0b
    );
    color:#111;
    text-decoration:none;
    border-radius:12px;
    padding:11px 18px;
    font-weight:800;
}

.btn-download-detail:hover{
    color:#111;
}.bulk-action-bar {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }

.bulk-delete-btn {
    border: none;
    border-radius: 12px;
    padding: 9px 15px;
    background: #dc2626;
    color: #fff;
    font-weight: 600;
}

.client-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
  @media (max-width: 768px) {
            .client-view-wrapper {
                padding: 18px;
            }

            .client-view-header {
                align-items: stretch;
                flex-direction: column;
            }

            .client-tools,
            .bulk-action-bar {
                flex-direction: column;
                align-items: stretch;
            }

            .client-search,
            .client-filter,
            .add-client-btn,
            .download-excel-btn,
            .bulk-delete-btn {
                width: 100%;
                justify-content: center;
            }
        }

/* =================================================================================================
==================================================================================================== */



:root {
    --primary:#25671E;
    --secondary:#48A111;
    --gold:#FFCC00;
    --light:#eeffe3;
}

.crm-table-form {
    max-width: 1120px;
    margin: 45px auto;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(37, 103, 30, .16);
    border: 1px solid rgba(72, 161, 17, .22);
}

.crm-form-title {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    padding: 18px;
    letter-spacing: .3px;
}

.crm-form-row {
    display: grid;
    grid-template-columns: 34% 66%;
    border-bottom: 1px solid #d7e8cf;
    background: #fff;
}

.crm-form-row:nth-child(even) {
    background: #fbfff8;
}

.crm-form-row input,
.crm-form-row select,
.crm-form-row textarea {
    width: 100%;
    border: none;
    outline: none;
    padding: 16px 18px;
    font-size: 15px;
    color: #111827;
    background: transparent;
}

.crm-form-row textarea {
    resize: vertical;
    min-height: 95px;
}

.crm-form-row input:focus,
.crm-form-row select:focus,
.crm-form-row textarea:focus {
    background: #f8fff4;
    box-shadow: inset 4px 0 0 var(--secondary);
}

.split-field {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.split-field select {
    border-right: 1px solid #d7e8cf;
}

.crm-form-actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #f0f8ec;
    padding: 14px;
    gap: 12px;
}

.crm-form-actions button {
    border: none;
    border-radius: 14px;
    padding: 15px 10px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: .25s ease;
}

.crm-form-actions button:hover {
    transform: translateY(-2px);
}

.save-btn {
    background: linear-gradient(135deg, #25671E, #48A111);
    color: #fff;
}

.edit-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.share-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
}

.download-btn {
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    color: #111;
}

.new-btn {
    background: linear-gradient(135deg, #111827, #374151);
    color: #fff;
    padding:18px 20px;
    border-radius: 8px;
    font-weight: 600;

}

@media (max-width: 768px) {
    .crm-table-form {
        margin: 20px 12px;
    }

    .crm-form-row {
        grid-template-columns: 1fr;
    }

    .crm-form-row label {
        border-right: none;
        border-bottom: 1px solid #d7e8cf;
    }

    .split-field,
    .crm-form-actions {
        grid-template-columns: 1fr;
    }
}
.crm-form-row {
    display: grid;
    grid-template-columns: 34% 66%;
    border-bottom: 1px solid #d7e8cf;
    background: #fff;
}

.crm-form-row:nth-child(even) {
    background: #fbfff8;
}


.crm-form-row textarea {
    resize: vertical;
    min-height: 95px;
}

.crm-form-row input:focus,
.crm-form-row select:focus,
.crm-form-row textarea:focus {
    background: #f8fff4;
    box-shadow: inset 4px 0 0 var(--secondary);
}

.split-field {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.split-field select {
    border-right: 1px solid #d7e8cf;
}

.crm-form-actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #f0f8ec;
    padding: 14px;
    gap: 12px;
}

.crm-form-actions button {
    border: none;
    border-radius: 14px;
    padding: 15px 10px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: .25s ease;
}

.crm-form-actions button:hover {
    transform: translateY(-2px);
}

.save-btn {
    background: linear-gradient(135deg, #25671E, #48A111);
    color: #fff;
}

.edit-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.share-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
}

.download-btn {
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    color: #111;
}

.new-btn {
    background: linear-gradient(135deg, #111827, #374151);
    color: #fff;
}

@media (max-width: 768px) {
    .crm-table-form {
        margin: 20px 12px;
    }

    .crm-form-row {
        grid-template-columns: 1fr;
    }

    .crm-form-row label {
        border-right: none;
        border-bottom: 1px solid #d7e8cf;
    }

    .split-field,
    .crm-form-actions {
        grid-template-columns: 1fr;
    }
}

.crm-form-row {
    display: grid;
    grid-template-columns: 34% 66%;
    border-bottom: 1px solid #d7e8cf;
}

.crm-form-row:nth-child(even) {
    background: #fbfff8;
}

.crm-form-row label {
    padding: 18px 20px;
    font-weight: 600;
    color: var(--primary);
    background: linear-gradient(135deg, #f1ffe8, #ffffff);
    border-right: 1px solid #d7e8cf;
    display: flex;
    align-items: center;
}

.crm-form-row input,
.crm-form-row select,
.crm-form-row textarea {
    width: 100%;
    border: none;
    outline: none;
    padding: 16px 18px;
    font-size: 15px;
    color: #111827;
    background: transparent;
}

.crm-form-row textarea {
    resize: vertical;
    min-height: 95px;
}

.crm-form-row input:focus,
.crm-form-row select:focus,
.crm-form-row textarea:focus {
    background: #f8fff4;
    box-shadow: inset 4px 0 0 var(--secondary);
}

.split-field {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.split-field select {
    border-right: 1px solid #d7e8cf;
}

.crm-form-actions {
    background: #f0f8ec;
    padding: 16px;
    display: flex;
    justify-content: center;
}

.crm-form-actions button {
    border: none;
    border-radius: 14px;
    padding: 15px 45px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.save-btn {
    background: linear-gradient(135deg, #25671E, #48A111);
    color: #fff;
}

@media (max-width: 768px) {
    .crm-table-form {
        margin: 20px 12px;
    }

    .crm-form-row {
        grid-template-columns: 1fr;
    }

    .crm-form-row label {
        border-right: none;
        border-bottom: 1px solid #d7e8cf;
    }

    .split-field {
        grid-template-columns: 1fr;
    }
}


/* splet 4 */

.split-field-4{
    display:grid;
    grid-template-columns:repeat(4,1fr);
}

.split-field-4 input,
.split-field-4 select{
    border:none;
    border-right:1px solid #d7e8cf;
    min-height:70px;
}

.split-field-4 input:last-child,
.split-field-4 select:last-child{
    border-right:none;
}

@media(max-width:992px){
    .split-field-4{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:576px){
    .split-field-4{
        grid-template-columns:1fr;
    }
}.table-count-box {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--light);
    color: var(--primary);
    border-radius: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.table-count-box strong {
    margin: 0 4px;
    color: #111;
}.download-excel-btn {
    border: none;
    border-radius: 12px;
    padding: 11px 18px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-weight: 600;
    margin-right: 8px;
}

/* view -completed-project page css */
        .preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 280px));
    gap: 20px;
    align-items: start;
}

.preview-card {
    position: relative;
    width: 250px;
    background: #fff;
    border: 1px solid #d7e8cf;
    border-radius: 18px;
    padding: 14px;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
}

.preview-card img,
.preview-card iframe {
    width: 100%;
    height: 220px;
    display: block;
    border: none;
    border-radius: 14px;
    background: #fff;
}

.preview-card img {
    object-fit: cover;
}

.preview-name {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    word-break: break-word;
}
.pdf-box{
    width:100%;
    height:220px;
    border-radius:14px;
    overflow:hidden;
    background:#fff;
    pointer-events:none; /* important */
}

.pdf-box iframe{
    width:100%;
    height:100%;
    border:none;
    pointer-events:none; /* important */
}

/* image pdf preview */

.file-upload-box {
    padding: 16px 18px;
}

.upload-btn {
    border: 2px dashed #d7e8cf;
    background: #f8fff4;
    color: var(--primary);
    border-radius: 16px;
    padding: 16px 22px;
    font-weight: 900;
    width: 100%;
    cursor: pointer;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

/* .preview-card {
    border: 1px solid #d7e8cf;
    border-radius: 16px;
    padding: 12px;
    background: #fff;
} */

.preview-card img,
.preview-card iframe {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    border: 1px solid #d7e8cf;
    object-fit: cover;
}

.preview-name {
    font-size: 13px;
    font-weight: 800;
    margin: 8px 0;
    color: #1f2937;
    word-break: break-all;
}

.preview-actions {
    display: flex;
    gap: 8px;
}

.preview-actions button {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.replace-btn {
    background: var(--gold);
    color: #111;
}

.remove-btn {
    background: #dc2626;
    color: #fff;
}.drag-handle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    cursor: grab;
}

.preview-card.dragging {
    opacity: .45;
    border: 2px dashed var(--secondary);
}

.remove-file {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 28px;
    height: 28px;

    border-radius: 50%;
    background: #22c55e;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    cursor: pointer;

    transition: .25s ease;
    z-index: 10;
}

.remove-file i {
    font-size: 13px;
    transition: .25s ease;
}

.preview-card:hover .remove-file {
    background: #ef4444;
}

.preview-card:hover .remove-file i:before {
    content: "\f00d";
}.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 15px;
}

.doc-preview {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}

.remove-file {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #22c55e;
    color: #fff;
    width: 28px;
    height: 28px;
    border:none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 10;
}

.preview-card:hover .remove-file {
    background: #dc2626;
    transform: rotate(90deg);
}

.preview-card:hover .remove-file i::before {
    content: "\f00d";
}

.drag-handle {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    cursor: grab;
    margin-bottom: 8px;
}

.preview-card.dragging {
    opacity: .5;
}
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 260px));
    gap: 18px;
    margin-top: 20px;
}

/* .preview-card {
    position: relative;
    width: 260px;
    min-height: 360px;
    background: #fff;
    border: 1px solid #d7e8cf;
    border-radius: 18px;
    padding: 14px;
    overflow: hidden;
} */

.preview-card img,
.preview-card iframe {
    width: 100%;
    height: 190px;
    border-radius: 14px;
    border: none;
    object-fit: cover;
    display: block;
    background: #fff;
}

.pdf-box {
    width: 100%;
    height: 190px;
    border-radius: 14px;
    background: #fff5f5;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.pdf-box i {
    font-size: 48px;
    margin-bottom: 10px;
}

.preview-name {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    word-break: break-word;
    line-height: 1.5;
}

.remove-file {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: grid;
    place-items: center;
    z-index: 50;
    cursor: pointer;
}

.preview-card:hover .remove-file {
    background: #dc2626;
}

.preview-card:hover .remove-file i::before {
    content: "\f00d";
}  
.table-wrapper {
    max-height: 80vh;
    overflow: auto;
    position: relative;
}

.table-wrapper table {
    border-collapse: separate;
    border-spacing: 0;
}

.table-wrapper thead th {
    position: sticky;
    top: 0;
    z-index: 50;
  
}.preview-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    cursor: pointer;
    transition: all .2s ease;
}

.preview-remove i.fa-xmark {
    display: none;
}

.preview-card:hover .preview-remove {
    background: #ef4444;
}

.preview-card:hover .preview-remove i.fa-check {
    display: none;
}

.preview-card:hover .preview-remove i.fa-xmark {
    display: inline-block;
}.trash-filter-bar {
    display: flex;
    gap: 12px;
    margin: 15px 0;
}

.trash-filter-bar input,
.trash-filter-bar select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.bulk-action-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
/* Profile */
/* Portal Filters */
.portal-filter-section {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px;
    margin: 20px 0;
    box-shadow: 0 18px 40px rgba(37, 103, 30, .12);
    border: 1px solid #d7e8cf;
}

.portal-filter-section h3 {
    text-align: center;
    background: linear-gradient(135deg, #25671E, #48A111);
    color: #fff;
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 18px;
    font-weight: 700;
}

.portal-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.portal-filter-btn {
    border: 1px solid #d7e8cf;
    background: #f8fff4;
    color: #25671E;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
}
.all-clients-btn{
    border: 1px solid #d7e8cf;
    background: #f8fff4;
    color: #25671E;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}
.portal-filter-btn:hover,
.portal-filter-btn.active {
    background: linear-gradient(135deg, #25671E, #48A111);
    color: #fff;
    transform: translateY(-2px);
}
/* ==============================
Nav search bar 
==================================*/
/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

    .nav-container{
        padding: 10px 15px;
        flex-wrap: wrap;
    }

    .logo img,
    .logo{
        max-width: 60px;
        height: auto;
    }

    .hamburger{
        display:flex;
        flex-direction:column;
        gap:4px;
        cursor:pointer;
    }

    .hamburger span{
        width:24px;
        height:3px;
        background:#fff;
        border-radius:5px;
    }

    .nav-links{
        width:100%;
        display:none;
        flex-direction:column;
        background:#fff;
        margin-top:10px;
        border-radius:10px;
        overflow:hidden;
        box-shadow:0 5px 15px rgba(0,0,0,.15);
    }

    .nav-links.active{
        display:flex;
    }

    .nav-links a{
        padding:12px 15px;
        color:#333;
        border-bottom:1px solid #eee;
        text-align:left;
    }

    /* Hero */

    .hero-content{
        width:95%;
        padding:20px;
    }

    .hero-content h1{
        font-size:28px;
    }

    /* Search Box */

    /* .search-box{
        width:100%;
        max-width:100%;
        display:flex;
        flex-direction:column;
        gap:10px;
    }

    .search-box input{
        width:100%;
        height:48px;
        font-size:15px;
        box-sizing:border-box;
    }

    .search-box button{
        width:100%;
        height:48px;
        font-size:15px;
    }

    .all-clients-btn{
        width:100%;
        display:block;
        text-align:center;
    } */

    /* Profile */

    .profile{
        margin-left:auto;
    }
}

/* Tablet */

/* @media (min-width:769px) and (max-width:1024px){

    .search-box{
        width:90%;
        margin:auto;
    }

    .search-box input{
        width:70%;
    }

    .search-box button{
        width:28%;
    }
}    */
 .custom-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 9999;
}

.custom-navbar .nav-container {
    width: 100%;
    display: flex;
    align-items: center;
}

.custom-navbar .nav-links {
    display: flex;
    gap: 35px;
    margin-left: 35px;
}
/* ====================== */

.custom-navbar,
.nav-container,
.nav-links {
    overflow: visible !important;
}

.custom-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 99999;
}

.nav-container {
    width: 100%;
    min-height: 75px;
    display: flex;
    align-items: center;
    padding: 0 25px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-left: 35px;
}

.nav-links a,
.nav-drop-link {
    color: #222;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-box {
    display: none;
    position: absolute;
    top: 38px;
    left: 0;
    width: 230px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
    padding: 8px 0;
    z-index: 999999;
}

.nav-dropdown-box a {
    display: block;
    padding: 12px 18px;
    font-size: 15px;
    white-space: nowrap;
}

.nav-dropdown:hover .nav-dropdown-box {
    display: block;
}

.hamburger {
    display: none;
    margin-left: auto;
    cursor: pointer;
    z-index: 100000;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #222;
    margin: 5px 0;
    border-radius: 5px;
}

/* MOBILE */
@media (max-width: 768px) {

    .nav-container {
        padding: 0 18px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-left: 0;
        padding: 15px 25px;
        box-shadow: 0 15px 35px rgba(0,0,0,.12);
        z-index: 99998;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a,
    .nav-drop-link {
        width: 100%;
        padding: 14px 0;
        font-size: 16px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-box {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border-radius: 8px;
        background: #f5fff1;
        margin-top: 5px;
        padding: 5px 0;
    }

    .nav-dropdown.open .nav-dropdown-box {
        display: block;
    }

    .nav-dropdown:hover .nav-dropdown-box {
        display: none;
    }

    .nav-dropdown.open:hover .nav-dropdown-box {
        display: block;
    }

    .nav-dropdown-box a {
        padding: 12px 18px;
        font-size: 15px;
    }
}

/* Duplicate checker */
.field-wrapper{
    display:flex;
    flex-direction:column;
    width:100%;
}

.duplicate-msg{
    display:block;
    margin-top:6px;
    font-size:13px;
    font-weight:700;
    min-height:18px;
}

.duplicate-error{
    color:#dc3545 !important;
}

.duplicate-success{
    color:#198754 !important;
}#bulk-import{
    background-color:#f59e0b;
    border-radius: 10px;
    padding:15px; color: rgb(0, 0, 0);
}
/* Client Dropdoen css */

@media (max-width:768px){

    .nav-dropdown-box{
        display:none;
        position:static !important;
        width:100%;
        box-shadow:none;
        background:#fff;
        padding:0;
        margin-top:8px;
    }

    .nav-dropdown-box.show{
        display:block !important;
    }

    .nav-dropdown-box a{
        display:block;
        padding:12px 18px;
        border-top:1px solid #eee;
        color:#111;
    }
}
/* Birth day remander */
.birthday-modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.55);
    z-index:999999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:16px;
}

.birthday-modal{
    width:100%;
    max-width:1050px;
    background:#fff;
    border-radius:18px;
    padding:18px;
    box-shadow:0 20px 50px rgba(0,0,0,.25);
}

.birthday-modal h3{
    margin:0 0 14px;
    font-size:20px;
    font-weight:700;
}

.birthday-table-wrap{
    max-height:360px;
    overflow:auto;
    border-radius:12px;
    border:1px solid #e5e7eb;
}

.birthday-mini-table{
    width:100%;
    min-width:760px;
    border-collapse:collapse;
    font-size:14px;
}

.birthday-mini-table th{
    background:#111827;
    color:#fff;
    padding:10px;
    text-align:left;
    position:sticky;
    top:0;
}

.birthday-mini-table td{
    padding:10px;
    border-bottom:1px solid #e5e7eb;
}

.today-badge{
    background:#dcfce7;
    color:#166534;
    padding:4px 8px;
    border-radius:20px;
    font-weight:700;
}

.no-phone{
    color:#ef4444;
    font-size:13px;
}

.dont-remind-btn{
    margin-top:14px;
    width:100%;
    border:none;
    background:linear-gradient(135deg,#ef4444,#b91c1c);
    color:#fff;
    padding:11px;
    border-radius:12px;
    font-weight:700;
    cursor:pointer;
}

.birthday-bell{
    position:relative;
    font-size:14px;
    text-decoration:none;
    margin-left:10px;color:rgb(0, 0, 0);
}

.birthday-bell span{
    position:absolute;
    top:-9px;
    right:-12px;
    background:#ef4444;
    color:#fff;
    font-size:11px;
    min-width:18px;
    height:18px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
}.birthday-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}


.birthday-header-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.birthday-close{
    width:34px;
    height:34px;
    border:0;
    border-radius:50%;
    background:#ef4444;
    color:#fff;
    font-size:22px;
    cursor:pointer;
}

.birthday-table-wrap{
    max-height:360px;
    overflow:auto;
    border:1px solid #e5e7eb;
    border-radius:12px;
}

.birthday-mini-table{
    width:100%;
    min-width:760px;
    border-collapse:collapse;
    font-size:14px;
}

.birthday-mini-table th{
    background:#111827;
    color:#fff;
    padding:10px;
    text-align:left;
}

.birthday-mini-table td{
    padding:10px;
    border-bottom:1px solid #e5e7eb;
}

.today-badge{
    background:#dcfce7;
    color:#166534;
    padding:4px 8px;
    border-radius:20px;
    font-weight:700;
}

.wa-btn{
   border: #005500;
    color:#fff;
    padding:6px 10px;
    border-radius:8px;
    text-decoration:none;
    font-size:13px;
}
/* Veiw Form Code */
    .aks-view-section{
    max-width:1050px;
    margin:80px auto 40px;
    /* padding:0 5px; */
}

.aks-client-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    background:linear-gradient(135deg,#25671E,#48A111);
    color:#fff;
    padding:20px;
    border-radius:18px 18px 0 0;
}

.aks-client-left{
    display:flex;
    align-items:center;
    gap:15px;
}

.aks-avatar{
    width:60px;
    height:60px;
    border-radius:50%;
    background:#FFCC00;
    color:#25671E;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    font-weight:900;
}

.aks-client-header h3{
    margin:0;
    font-size:24px;
    font-weight:600;
}

.aks-client-header p{
    margin:6px 0 0;
    opacity:.95;
}

.aks-client-header p span{
    margin:0 8px;
}

.aks-status-pill{
    background:#FFCC00;
    color:#25671E;
    padding:8px 16px;
    border-radius:50px;
    font-weight:800;
    white-space:nowrap;
}

.aks-detail-table{
    background:#fff;
    border:1px solid #d9ead3;
    border-top:0;
    border-radius:0 0 18px 18px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.1);
}

.aks-section-title{
    background:#eeffe3;
    color:#25671E;
    padding:14px 18px;
    font-weight:700;
    font-size:17px;
    border-top:1px solid #d9ead3;
}

.aks-row{
    display:grid;
    grid-template-columns:260px 1fr;
    border-top:1px solid #edf2ea;
}

.aks-row label{
    margin:0;
    padding:14px 18px;
    background:#f7fff2;
    color:#25671E;
    font-weight:700;
    border-right:1px solid #edf2ea;
}

.aks-row div{
    padding:14px 18px;
    color:#1f2937;
    font-weight:600;
    word-break:break-word;
}

.aks-text-row div{
    min-height:80px;
    line-height:1.7;
}

@media(max-width:768px){
    .aks-view-section{
        margin-top:100px;
    }

    .aks-client-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .aks-row{
        grid-template-columns:1fr;
    }

    .aks-row label{
        border-right:0;
        padding-bottom:6px;
    }

    .aks-row div{
        padding-top:8px;
    }
}

.aks-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:18px;
}

.aks-edit-btn,
.aks-pdf-btn,
.aks-back-btn{
    padding:11px 18px;
    border-radius:10px;
    text-decoration:none;
    font-weight:800;
    color:#fff;
}

.aks-edit-btn{
    background:#25671E;
}

.aks-pdf-btn{
    background:#dc2626;
}

.aks-back-btn{
    background:#111827;
}
.party-container {
    width: 100%;
}

.party-container select,
.party-container input {
    width: 100%;
    min-height: 58px;
    border: 0;
    outline: none;
    padding: 0 12px;
    font-size: 14px;
    background: #fff;
}

.party-fields {
    margin-top: 12px;
    margin-bottom: 12px;
}
.party-name-row{
   margin-bottom: 12px;
}
.party-name-row,
.party-phone-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    /* margin-bottom: 2px; */
}

.party-name-row:not(.double) {
    grid-template-columns: 1fr;
}

.date-field-wrapper {
    background: #f5fff0;
}

.date-field-label {
    display: block;
    padding: 14px 20px;
    color: #005500;
    
}

.local-nri-box {
    width: 100%;
}