
    :root {
      --blue: #0057b8;
      --blue-dark: #003b7a;
      --blue-light: #eaf4ff;

      --orange: #ff7a00;
      --orange-dark: #df6500;
      --orange-light: #fff1e3;

      --white: #ffffff;
      --black: #0b1728;
      --text: #26364a;
      --muted: #718096;

      --border: #e6ebf2;
      --light: #f7f9fc;

      --success: #138a52;
      --success-light: #eaf8f1;

      --warning: #b77900;
      --warning-light: #fff7df;

      --danger: #c93636;
      --danger-light: #fff0f0;

      --purple: #6b46c1;
      --purple-light: #f3edff;

      --radius-sm: 10px;
      --radius-md: 16px;
      --radius-lg: 24px;

      --shadow-sm: 0 8px 25px rgba(11, 23, 40, 0.06);
      --shadow-md: 0 18px 45px rgba(11, 23, 40, 0.10);

      --sidebar-width: 260px;

      --font-body: "DM Sans", sans-serif;
      --font-heading: "Plus Jakarta Sans", sans-serif;

      --transition-fast: 0.2s ease;
      --transition-normal: 0.3s ease;
    }


    /* =========================================
       RESET
    ========================================= */

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      min-height: 100vh;
      background: var(--light);
      color: var(--text);
      font-family: var(--font-body);
      font-size: 14px;
      line-height: 1.6;
    }

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    a {
      color: inherit;
      text-decoration: none;
    }


    /* =========================================
       APP LAYOUT
    ========================================= */

    .app {
      min-height: 100vh;
    }

    .main {
      min-height: 100vh;
      margin-left: var(--sidebar-width);
    }

    .content {
      width: min(
        calc(100% - 64px),
        1380px
      );

      margin: 0 auto;
      padding: 32px 0 60px;
    }


    /* =========================================
       SIDEBAR
    ========================================= */

    .sidebar {
      position: fixed;
      z-index: 100;
      inset: 0 auto 0 0;

      width: var(--sidebar-width);

      display: flex;
      flex-direction: column;

      background: var(--white);
      border-right: 1px solid var(--border);
    }

    .brand {
      min-height: 82px;

      display: flex;
      align-items: center;

      padding: 20px 24px;

      border-bottom: 1px solid var(--border);
    }

    .brand img {
      width: auto;
      max-width: 155px;
      height: 44px;

      object-fit: contain;
    }

    .brand-fallback {
      display: none;

      color: var(--blue);
      font-family: var(--font-heading);
      font-size: 21px;
      font-weight: 800;
    }

    .sidebar-label {
      padding: 24px 24px 10px;

      color: var(--muted);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .sidebar-nav {
      padding: 0 12px;
      overflow-y: auto;
    }

    .nav-link {
      min-height: 46px;

      display: flex;
      align-items: center;
      gap: 12px;

      margin-bottom: 4px;
      padding: 0 13px;

      border-radius: 11px;

      color: var(--text);

      font-size: 13px;
      font-weight: 600;

      transition:
        background var(--transition-fast),
        color var(--transition-fast);
    }

    .nav-link:hover {
      background: var(--blue-light);
      color: var(--blue);
    }

    .nav-link.active {
      background: var(--blue);
      color: var(--white);
    }

    .nav-icon {
      width: 20px;
      flex: 0 0 20px;

      display: inline-flex;
      justify-content: center;

      font-size: 16px;
    }

    .sidebar-bottom {
      margin-top: auto;
      padding: 16px 12px;

      border-top: 1px solid var(--border);
    }

    .website-link {
      color: var(--muted);
    }

    .website-link:hover {
      color: var(--blue);
    }


    /* =========================================
       MOBILE MENU
    ========================================= */

    .mobile-menu-toggle {
      width: 42px;
      height: 42px;

      display: none;
      align-items: center;
      justify-content: center;

      border: 1px solid var(--border);
      border-radius: 10px;

      background: var(--white);
      color: var(--text);

      font-size: 19px;
    }

    .sidebar-overlay {
      position: fixed;
      z-index: 90;
      inset: 0;

      background: rgba(11, 23, 40, 0.45);

      opacity: 0;
      visibility: hidden;

      transition:
        opacity var(--transition-normal),
        visibility var(--transition-normal);
    }

    .sidebar-overlay.open {
      opacity: 1;
      visibility: visible;
    }


    /* =========================================
       TOPBAR
    ========================================= */

    .topbar {
      position: sticky;
      z-index: 50;
      top: 0;

      min-height: 82px;

      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;

      padding: 16px 32px;

      background: rgba(255, 255, 255, 0.96);
      border-bottom: 1px solid var(--border);

      backdrop-filter: blur(12px);
    }

    .topbar-left {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .page-title {
      color: var(--black);
      font-family: var(--font-heading);
      font-size: 19px;
      font-weight: 800;
    }

    .page-subtitle {
      margin-top: 2px;

      color: var(--muted);
      font-size: 12px;
    }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .notification-btn {
      position: relative;

      width: 42px;
      height: 42px;

      display: inline-flex;
      align-items: center;
      justify-content: center;

      border: 1px solid var(--border);
      border-radius: 11px;

      background: var(--white);
      color: var(--text);

      font-size: 17px;
    }

    .notification-dot {
      position: absolute;
      top: 8px;
      right: 8px;

      width: 7px;
      height: 7px;

      border: 2px solid var(--white);
      border-radius: 50%;

      background: var(--orange);
    }

    .employee {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .employee-avatar {
      width: 38px;
      height: 38px;

      display: flex;
      align-items: center;
      justify-content: center;

      border-radius: 50%;

      background: var(--blue-light);
      color: var(--blue);

      font-size: 12px;
      font-weight: 800;
    }

    .employee-info {
      line-height: 1.25;
    }

    .employee-name {
      color: var(--black);
      font-size: 12px;
      font-weight: 700;
    }

    .employee-role {
      margin-top: 2px;

      color: var(--muted);
      font-size: 10px;
      text-transform: capitalize;
    }


    /* =========================================
       PAGE HEADER
    ========================================= */

    .page-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;

      margin-bottom: 28px;
    }

    .eyebrow {
      margin-bottom: 8px;

      color: var(--blue);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .page-heading {
      color: var(--black);
      font-family: var(--font-heading);
      font-size: clamp(27px, 3vw, 38px);
      font-weight: 800;
      letter-spacing: -0.04em;
      line-height: 1.1;
    }

    .page-description {
      max-width: 620px;
      margin-top: 8px;

      color: var(--muted);
      font-size: 14px;
    }

    .header-actions {
      display: flex;
      gap: 10px;
      flex-shrink: 0;
    }


    /* =========================================
       BUTTONS
    ========================================= */

    .btn {
      min-height: 42px;

      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;

      padding: 0 16px;

      border: 1px solid transparent;
      border-radius: 10px;

      font-size: 12px;
      font-weight: 700;

      transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
    }

    .btn:hover {
      transform: translateY(-1px);
    }

    .btn-primary {
      background: var(--blue);
      color: var(--white);
    }

    .btn-primary:hover {
      background: var(--blue-dark);
    }

    .btn-secondary {
      background: var(--white);
      border-color: var(--border);
      color: var(--text);
    }

    .btn-secondary:hover {
      border-color: #cdd6e2;
      background: var(--light);
    }

    .btn-danger {
      background: var(--danger-light);
      color: var(--danger);
    }

    .btn-success {
      background: var(--success-light);
      color: var(--success);
    }

    .btn-small {
      min-height: 34px;
      padding: 0 11px;
      font-size: 11px;
    }


    /* =========================================
       STAT CARDS
    ========================================= */

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;

      margin-bottom: 22px;
    }

    .stat-card {
      min-height: 132px;

      padding: 20px;

      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);

      box-shadow: var(--shadow-sm);
    }

    .stat-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .stat-label {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .stat-icon {
      width: 35px;
      height: 35px;

      display: flex;
      align-items: center;
      justify-content: center;

      border-radius: 9px;

      background: var(--blue-light);
      color: var(--blue);

      font-size: 15px;
    }

    .stat-card:nth-child(2) .stat-icon {
      background: var(--orange-light);
      color: var(--orange);
    }

    .stat-card:nth-child(3) .stat-icon {
      background: var(--success-light);
      color: var(--success);
    }

    .stat-card:nth-child(4) .stat-icon {
      background: var(--purple-light);
      color: var(--purple);
    }

    .stat-value {
      margin-top: 14px;

      color: var(--black);
      font-family: var(--font-heading);
      font-size: 28px;
      font-weight: 800;
      line-height: 1;
    }

    .stat-meta {
      margin-top: 8px;

      color: var(--muted);
      font-size: 11px;
    }


    /* =========================================
       FILTER TOOLBAR
    ========================================= */

    .panel {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-sm);
    }

    .toolbar {
      display: flex;
      align-items: center;
      gap: 12px;

      padding: 16px;

      border-bottom: 1px solid var(--border);
    }

    .search-wrap {
      position: relative;
      flex: 1;
      min-width: 220px;
    }

    .search-icon {
      position: absolute;
      top: 50%;
      left: 13px;

      transform: translateY(-50%);

      color: var(--muted);
      font-size: 14px;
      pointer-events: none;
    }

    .search-input {
      width: 100%;
      height: 42px;

      padding: 0 13px 0 37px;

      border: 1px solid var(--border);
      border-radius: 10px;

      outline: none;

      background: var(--light);
      color: var(--text);

      font-size: 12px;

      transition:
        border-color var(--transition-fast),
        background var(--transition-fast);
    }

    .search-input:focus {
      background: var(--white);
      border-color: var(--blue);
    }

    .filter-select {
      min-width: 145px;
      height: 42px;

      padding: 0 12px;

      border: 1px solid var(--border);
      border-radius: 10px;

      outline: none;

      background: var(--white);
      color: var(--text);

      font-size: 12px;
      font-weight: 600;
    }

    .filter-select:focus {
      border-color: var(--blue);
    }


    /* =========================================
       CUSTOMER TABLE
    ========================================= */

    .table-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px;

      padding: 18px 20px;
    }

    .panel-title {
      color: var(--black);
      font-family: var(--font-heading);
      font-size: 14px;
      font-weight: 800;
    }

    .panel-count {
      color: var(--muted);
      font-size: 11px;
    }

    .table-wrap {
      width: 100%;
      overflow-x: auto;
    }

    table {
      width: 100%;
      min-width: 880px;

      border-collapse: collapse;
    }

    th {
      padding: 12px 20px;

      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);

      background: #fbfcfe;

      color: var(--muted);

      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-align: left;
      text-transform: uppercase;
      white-space: nowrap;
    }

    td {
      padding: 15px 20px;

      border-bottom: 1px solid var(--border);

      color: var(--text);

      font-size: 12px;
      vertical-align: middle;
    }

    tbody tr:last-child td {
      border-bottom: 0;
    }

    tbody tr {
      transition: background var(--transition-fast);
    }

    tbody tr:hover {
      background: #fbfdff;
    }

    .customer-cell {
      display: flex;
      align-items: center;
      gap: 11px;

      min-width: 210px;
    }

    .customer-avatar {
      width: 38px;
      height: 38px;
      flex: 0 0 38px;

      display: flex;
      align-items: center;
      justify-content: center;

      border-radius: 50%;

      background: var(--blue-light);
      color: var(--blue);

      font-size: 11px;
      font-weight: 800;
    }

    .customer-name {
      color: var(--black);
      font-size: 12px;
      font-weight: 800;
    }

    .customer-contact {
      margin-top: 2px;

      color: var(--muted);
      font-size: 10px;
    }

    .customer-number {
      color: var(--text);
      font-weight: 600;
    }

    .muted-cell {
      color: var(--muted);
    }

    .value-cell {
      color: var(--black);
      font-weight: 800;
    }

    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;

      padding: 5px 9px;

      border-radius: 999px;

      font-size: 10px;
      font-weight: 800;
      text-transform: capitalize;
    }

    .status-badge::before {
      content: "";

      width: 6px;
      height: 6px;

      border-radius: 50%;

      background: currentColor;
    }

    .status-active {
      background: var(--success-light);
      color: var(--success);
    }

    .status-inactive {
      background: var(--light);
      color: var(--muted);
    }

    .status-blocked {
      background: var(--danger-light);
      color: var(--danger);
    }

    .row-actions {
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .icon-btn {
      width: 34px;
      height: 34px;

      display: inline-flex;
      align-items: center;
      justify-content: center;

      border: 1px solid var(--border);
      border-radius: 9px;

      background: var(--white);
      color: var(--text);

      font-size: 13px;

      transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast);
    }

    .icon-btn:hover {
      border-color: var(--blue);
      background: var(--blue-light);
      color: var(--blue);
    }


    /* =========================================
       EMPTY STATE
    ========================================= */

    .empty-state {
      padding: 70px 24px;

      text-align: center;
    }

    .empty-icon {
      width: 54px;
      height: 54px;

      display: flex;
      align-items: center;
      justify-content: center;

      margin: 0 auto 15px;

      border-radius: 15px;

      background: var(--blue-light);
      color: var(--blue);

      font-size: 22px;
    }

    .empty-title {
      color: var(--black);
      font-family: var(--font-heading);
      font-size: 16px;
      font-weight: 800;
    }

    .empty-text {
      max-width: 430px;
      margin: 7px auto 0;

      color: var(--muted);
      font-size: 12px;
    }


    /* =========================================
       CUSTOMER MODAL
    ========================================= */

    .modal-backdrop {
      position: fixed;
      z-index: 300;
      inset: 0;

      display: flex;
      align-items: center;
      justify-content: center;

      padding: 24px;

      background: rgba(11, 23, 40, 0.55);

      opacity: 0;
      visibility: hidden;

      transition:
        opacity var(--transition-normal),
        visibility var(--transition-normal);
    }

    .modal-backdrop.open {
      opacity: 1;
      visibility: visible;
    }

    .modal {
      width: min(760px, 100%);
      max-height: calc(100vh - 48px);

      overflow-y: auto;

      background: var(--white);
      border-radius: var(--radius-lg);

      box-shadow: var(--shadow-md);

      transform: translateY(12px) scale(0.98);

      transition: transform var(--transition-normal);
    }

    .modal-backdrop.open .modal {
      transform: translateY(0) scale(1);
    }

    .modal-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;

      padding: 22px 24px;

      border-bottom: 1px solid var(--border);
    }

    .modal-heading {
      color: var(--black);
      font-family: var(--font-heading);
      font-size: 19px;
      font-weight: 800;
    }

    .modal-subheading {
      margin-top: 4px;

      color: var(--muted);
      font-size: 11px;
    }

    .close-modal {
      width: 36px;
      height: 36px;

      display: flex;
      align-items: center;
      justify-content: center;

      border: 1px solid var(--border);
      border-radius: 9px;

      background: var(--white);
      color: var(--text);

      font-size: 18px;
    }

    .close-modal:hover {
      background: var(--light);
    }

    .modal-body {
      padding: 24px;
    }

    .profile-summary {
      display: flex;
      align-items: center;
      gap: 15px;

      margin-bottom: 24px;
      padding: 18px;

      border: 1px solid var(--border);
      border-radius: 14px;

      background: var(--light);
    }

    .profile-avatar {
      width: 58px;
      height: 58px;
      flex: 0 0 58px;

      display: flex;
      align-items: center;
      justify-content: center;

      border-radius: 50%;

      background: var(--blue);
      color: var(--white);

      font-family: var(--font-heading);
      font-size: 16px;
      font-weight: 800;
    }

    .profile-name {
      color: var(--black);
      font-family: var(--font-heading);
      font-size: 18px;
      font-weight: 800;
    }

    .profile-contact {
      margin-top: 3px;

      color: var(--muted);
      font-size: 11px;
    }

    .detail-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 15px;

      margin-bottom: 24px;
    }

    .detail-card {
      padding: 15px;

      border: 1px solid var(--border);
      border-radius: 12px;

      background: var(--white);
    }

    .detail-label {
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .detail-value {
      margin-top: 5px;

      color: var(--black);
      font-size: 13px;
      font-weight: 700;
      word-break: break-word;
    }

    .detail-value.large {
      font-family: var(--font-heading);
      font-size: 17px;
      font-weight: 800;
    }

    .section-divider {
      height: 1px;
      margin: 22px 0;

      background: var(--border);
    }

    .modal-section-title {
      margin-bottom: 12px;

      color: var(--black);
      font-family: var(--font-heading);
      font-size: 13px;
      font-weight: 800;
    }

    .notes-box {
      min-height: 90px;

      padding: 14px;

      border: 1px solid var(--border);
      border-radius: 11px;

      background: var(--light);

      color: var(--text);
      font-size: 12px;
      white-space: pre-wrap;
    }

    .modal-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;

      padding-top: 20px;

      border-top: 1px solid var(--border);
    }


    /* =========================================
       LOADING
    ========================================= */

    .loading-row {
      padding: 28px 20px;

      color: var(--muted);

      text-align: center;
      font-size: 12px;
    }

    .spinner {
      width: 17px;
      height: 17px;

      margin: 0 auto 9px;

      border: 2px solid var(--border);
      border-top-color: var(--blue);
      border-radius: 50%;

      animation: spin 0.7s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }


    /* =========================================
       PAGINATION
    ========================================= */

    .table-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px;

      padding: 15px 20px;

      border-top: 1px solid var(--border);
    }

    .pagination-info {
      color: var(--muted);
      font-size: 11px;
    }

    .pagination {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .page-btn {
      min-width: 34px;
      height: 34px;

      display: inline-flex;
      align-items: center;
      justify-content: center;

      padding: 0 9px;

      border: 1px solid var(--border);
      border-radius: 8px;

      background: var(--white);
      color: var(--text);

      font-size: 11px;
      font-weight: 700;
    }

    .page-btn.active {
      background: var(--blue);
      border-color: var(--blue);
      color: var(--white);
    }

    .page-btn:disabled {
      cursor: not-allowed;
      opacity: 0.45;
    }


    /* =========================================
       RESPONSIVE
    ========================================= */

    @media (max-width: 1200px) {
      .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .content {
        width: min(
          calc(100% - 48px),
          1380px
        );
      }
    }

    @media (max-width: 900px) {
      :root {
        --sidebar-width: 260px;
      }

      .main {
        margin-left: 0;
      }

      .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        box-shadow: var(--shadow-md);
      }

      .sidebar.open {
        transform: translateX(0);
      }

      .mobile-menu-toggle {
        display: inline-flex;
      }

      .topbar {
        padding: 14px 20px;
      }

      .content {
        width: calc(100% - 40px);
        padding-top: 25px;
      }
    }

    @media (max-width: 700px) {
      .page-header {
        align-items: flex-start;
        flex-direction: column;
      }

      .header-actions {
        width: 100%;
      }

      .header-actions .btn {
        flex: 1;
      }

      .toolbar {
        flex-wrap: wrap;
      }

      .search-wrap {
        flex: 1 1 100%;
      }

      .filter-select {
        flex: 1;
      }

      .topbar-right {
        gap: 8px;
      }

      .employee-info {
        display: none;
      }

      .notification-btn {
        display: none;
      }

      .detail-grid {
        grid-template-columns: 1fr;
      }

      .modal-backdrop {
        padding: 12px;
      }

      .modal-body {
        padding: 18px;
      }
    }

    @media (max-width: 560px) {
      .stats-grid {
        grid-template-columns: 1fr;
      }

      .content {
        width: calc(100% - 28px);
        padding-bottom: 35px;
      }

      .topbar {
        padding-inline: 14px;
      }

      .page-heading {
        font-size: 28px;
      }

      .table-header {
        align-items: flex-start;
        flex-direction: column;
      }

      .table-footer {
        align-items: flex-start;
        flex-direction: column;
      }

      .profile-summary {
        align-items: flex-start;
      }

      .modal-actions .btn {
        flex: 1 1 100%;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
    }