
    :root{
      --wb-bg:#f3f7fc;
      --wb-surface:#ffffff;
      --wb-surface-soft:#f8fbff;
      --wb-border:#dce6f2;
      --wb-border-strong:#c8d7e8;
      --wb-text:#0f172a;
      --wb-muted:#64748b;
      --wb-primary:#1d4ed8;
      --wb-primary-deep:#0f172a;
      --wb-primary-soft:#eef4ff;
      --wb-accent:#22c55e;
      --wb-accent-2:#14b8a6;
      --wb-danger:#d13b3b;
      --wb-shadow:0 14px 34px rgba(15,23,42,.06);
    }
    *{box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;}
    body{margin:0;background:linear-gradient(180deg,#f7faff 0%,var(--wb-bg) 100%);color:var(--wb-text);}
    a{color:inherit}

    /* LOGIN */
    .login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at top,#eef4ff 0%,#f7f9fc 48%,#eef3f9 100%);padding:20px;}
    .login-card{background:rgba(255,255,255,.96);border:1px solid var(--wb-border);border-radius:20px;padding:24px;width:360px;box-shadow:0 20px 44px rgba(15,23,42,.10);}
.login-brand{display:flex;align-items:center;gap:14px;margin-bottom:6px;}
.login-brand-mark{width:54px;height:54px;display:block;flex:0 0 54px;}
.login-title-wrap{display:flex;flex-direction:column;gap:2px;min-width:0;}
.login-kicker{display:none;}
.login-title{font-size:23px;font-weight:900;margin-bottom:0;line-height:1.05;letter-spacing:.08em;color:var(--wb-primary-deep);}
.login-subtitle{font-size:13px;color:var(--wb-muted);margin-bottom:14px;}
.login-error{display:none;background:#ffebee;color:#d32f2f;border:1px solid #ffcdd2;border-radius:10px;padding:10px 12px;margin-bottom:12px;font-size:13px;}
.login-info{display:none;background:#edf7ff;color:#1565c0;border:1px solid #bbdefb;border-radius:10px;padding:10px 12px;margin-bottom:12px;font-size:13px;}
.password-field-wrap{position:relative;display:flex;align-items:center;}
.password-field-wrap .form-input{padding-right:68px;}
.password-toggle-btn{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:1px solid #dbe4f0;background:#f8fafc;color:#334155;border-radius:8px;padding:6px 10px;font-size:12px;font-weight:800;cursor:pointer;}
.password-toggle-btn:hover{background:#eef4fb;}
.form-input{width:100%;padding:10px 12px;border:1px solid #e0e0e0;border-radius:10px;font-size:14px;outline:none;}
.form-input:focus{border-color:var(--wb-primary);box-shadow:0 0 0 3px rgba(29,78,216,.14);}
.btn{border:none;border-radius:10px;padding:10px 12px;font-weight:900;cursor:pointer;}
.btn-login{background:#2196f3;color:#fff;}
.btn-login-link{background:transparent;color:#1565c0;border:1px solid #d7e5f6;font-weight:800;}
    .btn-login:hover{filter:brightness(.95);}

    /* APP LAYOUT */
    #appPage{display:none;}
    .logged-in-user{display:none;}
    .app-container{display:flex;min-height:100vh;}

    /* SIDEBAR */
    .sidebar{width:250px;background:linear-gradient(180deg,#ffffff 0%,#f6fbff 100%);border-right:1px solid var(--wb-border);display:flex;flex-direction:column;box-shadow:8px 0 28px rgba(15,23,42,.04);position:sticky;top:0;height:100vh;flex:0 0 250px;}
    .sidebar-header{padding:22px 18px;font-size:18px;font-weight:900;border-bottom:1px solid #edf2f7;display:flex;align-items:center;gap:12px;color:var(--wb-text);}
    .sidebar-brand-mark{width:38px;height:38px;display:block;flex:0 0 38px;}
    .sidebar-brand-copy{display:flex;flex-direction:column;gap:1px;min-width:0;}
    .sidebar-brand-kicker{display:none;}
    .sidebar-brand-title{font-size:18px;font-weight:900;line-height:1.1;color:var(--wb-primary-deep);letter-spacing:.08em;}
    .sidebar-menu{display:flex;flex-direction:column;gap:10px;padding:14px;}
    .menu-btn{border:none;border-radius:14px;padding:13px 14px;font-weight:800;text-align:left;background:#f5f8fc;cursor:pointer;color:#415166;transition:.18s;}
    .menu-btn:hover{filter:brightness(.98);}
    .menu-btn.active{background:linear-gradient(135deg,var(--wb-primary-deep),var(--wb-primary));color:#fff;box-shadow:0 12px 24px rgba(29,78,216,.20);}
    .menu-btn.restricted{background:#ffebee;color:#d32f2f;opacity:.6;cursor:not-allowed;}
    .sidebar-footer{margin-top:auto;padding:14px;border-top:1px solid #edf2f7;background:linear-gradient(180deg,rgba(248,251,255,0) 0%,rgba(248,251,255,.94) 30%,rgba(248,251,255,1) 100%);}
    .sidebar-user-card{border:1px solid #e3eaf3;border-radius:16px;padding:12px 13px;background:#fff;box-shadow:0 10px 22px rgba(15,23,42,.05);margin-bottom:12px;}
    .sidebar-user-label{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#8a94a6;font-weight:800;margin-bottom:4px;}
    .sidebar-user-name{font-size:15px;font-weight:800;color:#0f1728;line-height:1.25;overflow-wrap:anywhere;}
    .sidebar-footer .sidebar-menu{padding:0 0 12px 0;}

    /* MAIN */
    .main-content{flex:1;display:flex;flex-direction:column;min-width:0;}
    .top-bar{background:rgba(255,255,255,.95);backdrop-filter:blur(12px);border-bottom:1px solid #e7edf5;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 10px 28px rgba(15,23,42,.04);}
    .business-selector{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
    .business-name{font-size:18px;font-weight:800;letter-spacing:-.02em;color:var(--wb-primary-deep);}
    .business-dropdown{padding:9px 14px;border:1px solid #dbe4f0;border-radius:12px;background:#fff;cursor:pointer;box-shadow:0 4px 14px rgba(15,23,42,.04);}
    .content-area{flex:1;padding:24px;overflow:auto;}
    .mobile-section-bar{display:none !important;}
    .mobile-section-switcher{display:none !important;}
    #mobileBottomNav,
    #mobileDetailActions{display:none !important;}
    .hidden{display:none !important;}
    .section-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;}
    .section-title{margin:0;font-size:20px;font-weight:800;letter-spacing:-.02em;color:#0f1728;}
    .section-subtitle{margin:6px 0 0;color:#667085;font-size:14px;line-height:1.5;font-weight:600;}

    /* SECTIONS */
    .content-section{display:none;}
    .content-section.active{display:block;}

    /* CUSTOMERS LIST */
    .customers-header{display:flex;justify-content:space-between;gap:14px;margin-bottom:18px;align-items:center;padding:12px;border:1px solid var(--wb-border);border-radius:16px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.04);}
    .search-sort-group{display:flex;gap:12px;flex:1;align-items:center;}
    .search-box{flex:1;padding:11px 14px;border:1px solid #dbe4f0;border-radius:12px;font-size:13px;background:#fff;box-shadow:none;}
    .sort-dropdown{padding:11px 14px;border:1px solid #dbe4f0;border-radius:12px;background:#fff;cursor:pointer;font-size:13px;box-shadow:none;min-width:180px;}
    .btn-add{background:linear-gradient(135deg,var(--wb-primary-deep),var(--wb-primary));color:#fff;border:none;border-radius:12px;padding:11px 15px;font-weight:800;cursor:pointer;box-shadow:0 10px 22px rgba(29,78,216,.18);}
    .btn-add:hover{filter:brightness(.95);}

    .customers-list{display:flex;flex-direction:column;gap:12px;}
    .mobile-account-search-results{display:none;}
    .customer-row{background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);border:1px solid var(--wb-border);border-radius:20px;padding:16px 18px;cursor:pointer;transition:.18s;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 12px 28px rgba(15,23,42,.05);}
    .customer-row:hover{border-color:var(--wb-border-strong);box-shadow:0 16px 32px rgba(29,78,216,.10);transform:translateY(-2px);}
    .customer-row.selected{background:linear-gradient(180deg,#f5f9ff 0%,#fbfdff 100%);border-color:#b8cae7;box-shadow:0 18px 34px rgba(29,78,216,.10);}

    .customer-info{display:grid;grid-template-columns:minmax(260px,1.7fr) minmax(120px,.8fr) minmax(200px,1fr) minmax(150px,.8fr);gap:14px;flex:1;align-items:center;}
    .customer-field-label{font-size:10px;color:#94a3b8;text-transform:uppercase;letter-spacing:.08em;}
    .customer-field-value{font-weight:700;font-size:14px;color:#0f1728;line-height:1.3;}
    .customer-info > div:first-child .customer-field-value{font-size:18px;letter-spacing:-.02em;}
    .customer-info > div:nth-child(2) .customer-field-value,
    .customer-info > div:nth-child(3) .customer-field-value{font-size:13px;color:#64748b;font-weight:600;}
    .customer-info > div:last-child{justify-self:end;text-align:right;min-width:140px;}
    .customer-info > div:last-child .customer-field-label{font-size:10px;}
    .customer-info > div:last-child .customer-field-value{font-size:22px;letter-spacing:-.03em;}

.balance-positive{color:#22834d;font-weight:900;}
    .balance-negative{color:#d32f2f;font-weight:900;}
    .balance-zero{color:#666;font-weight:900;}

.customer-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;padding:6px 8px;border:1px solid #e7edf5;border-radius:16px;background:#f9fbfd;}
.customer-desktop-summary{display:none;}
.customer-mobile-summary,
.customer-mobile-menu{display:none;}
#customersList > .customer-row > .action-btn,
#customersList > .customer-row > button{display:none;}
.action-btn{border:1px solid #dbe4f0;background:#fff;border-radius:12px;padding:8px 11px;font-weight:800;cursor:pointer;font-size:12px;box-shadow:0 6px 16px rgba(15,23,42,.04);}
.action-btn:hover{filter:brightness(.98);}
.btn-ico{display:none !important;}
.action-edit,
.action-rename,
.action-delete{border-color:transparent;color:#475467;background:transparent;box-shadow:none;}
.customer-actions .action-btn:hover{background:#eef3f8;color:#111827;}

    /* CUSTOMER DETAIL */
    .detail-header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:18px;padding:26px 28px;background:linear-gradient(180deg,#ffffff 0%,#f7faff 100%);border:1px solid #e3eaf3;border-radius:24px;box-shadow:0 18px 38px rgba(15,23,42,.06);}
    .detail-title{font-size:34px;font-weight:900;letter-spacing:-.045em;color:var(--wb-primary-deep);line-height:1.02;margin-bottom:2px;}
    .detail-sub{color:#667085;font-size:13px;margin-top:7px;line-height:1.6;font-weight:600;max-width:880px;}
    .detail-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;align-items:center;padding:10px;border:1px solid #e7edf5;border-radius:18px;background:rgba(247,250,253,.92);box-shadow:inset 0 1px 0 rgba(255,255,255,.75);}
    .btn-back{background:#5f6b7a;color:#fff;border:none;border-radius:12px;padding:11px 15px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(95,107,122,.18);}
    .btn-back:hover{filter:brightness(.95);}
    .btn-charge{background:linear-gradient(135deg,var(--wb-accent),var(--wb-accent-2));color:#fff;border:none;border-radius:12px;padding:11px 15px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(20,184,166,.18);}
    .btn-charge:hover{filter:brightness(.95);}
    .btn-payment{background:linear-gradient(135deg,#d13b3b,#e45a5a);color:#fff;border:none;border-radius:12px;padding:11px 15px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(209,59,59,.16);}
    .btn-payment:hover{filter:brightness(.95);}
    .btn-export{background:linear-gradient(135deg,var(--wb-primary-deep),var(--wb-primary));color:#fff;border:none;border-radius:12px;padding:11px 15px;font-weight:900;cursor:pointer;box-shadow:0 10px 24px rgba(29,78,216,.18);}
    .btn-export:hover{filter:brightness(.95);}

    .stats-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin-bottom:20px;}
    .stat-card{background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);border:1px solid #e3eaf3;border-radius:20px;padding:20px 22px;text-align:left;box-shadow:0 14px 30px rgba(15,23,42,.05);position:relative;overflow:hidden;}
    .stat-card::after{content:"";position:absolute;inset:auto 0 0 0;height:4px;background:linear-gradient(90deg,rgba(29,78,216,.16),rgba(20,184,166,0));}
    .stat-label{font-size:11px;color:#94a3b8;text-transform:uppercase;letter-spacing:.08em;margin-bottom:10px;}
    .stat-value{font-size:30px;font-weight:900;letter-spacing:-.04em;line-height:1.05;}
    .stat-charges{color:#2e7d32;font-weight:800 !important;}
    .stat-payments{color:#d32f2f;font-weight:800 !important;}

    .transactions-section{background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);border:1px solid #e3eaf3;border-radius:24px;padding:20px 22px 10px;box-shadow:0 16px 32px rgba(15,23,42,.05);}
    .transactions-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px;padding:2px 2px 14px;border-bottom:1px solid #eef2f7;}
    .transactions-heading{display:flex;flex-direction:column;gap:6px;min-width:0;}
    .transactions-header h3{margin:0;font-size:20px;letter-spacing:-.02em;color:#0f1728;}
    .transactions-subtitle{margin:0;color:#667085;font-size:13px;line-height:1.5;font-weight:600;}
    .transactions-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;}
    .transactions-count{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#f7fafc;border:1px solid #dbe4f0;color:#334155;font-size:12px;font-weight:800;letter-spacing:.02em;white-space:nowrap;}
    .transactions-table{width:100%;border-collapse:collapse;}
    .transactions-table th{font-size:11px;text-transform:uppercase;color:#94a3b8;letter-spacing:.08em;text-align:left;border-bottom:1px solid #eef2f7;padding:13px 10px;background:linear-gradient(180deg,#fbfdff 0%,#f7fafc 100%);}
    .transactions-table td{border-bottom:1px solid #f0f4f8;padding:16px 10px;font-size:13px;vertical-align:middle;color:#475467;font-weight:400;}
    .transactions-table tbody tr{transition:background .16s ease;}
    .transactions-table tbody tr:hover{background:#f8fbff;}
    .transactions-table td:nth-child(1){font-weight:500;color:#64748b;white-space:nowrap;}
    .transactions-table td:nth-child(2){font-weight:400;color:#667085;}
    .transactions-table td:nth-child(3){color:#1f2937;line-height:1.5;font-weight:400;}
    .transactions-table td:last-child{white-space:nowrap;}
    .amount-positive{color:#2f7d4c !important;}
    .amount-negative{color:#c24141 !important;}
    .amount-cell{font-weight:600 !important;font-size:14px;white-space:nowrap;letter-spacing:0;}
    .tx-balance-cell{font-size:14px;white-space:nowrap;text-align:right;font-weight:500 !important;}
    .tx-invoice-cell{font-size:13px;color:#475467;white-space:nowrap;font-weight:500 !important;}
    .receipt-pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;background:#f3f4f6;border:1px solid #e0e0e0;border-radius:999px;padding:4px 10px;}
    .receipt-thumb{width:34px;height:34px;border-radius:8px;object-fit:cover;border:1px solid #e0e0e0;display:none;}
    .receipt-action-btn{border:1px solid #dbe4f0;background:#fff;border-radius:12px;padding:9px 12px;font-weight:700;cursor:pointer;font-size:12px;box-shadow:0 6px 16px rgba(15,23,42,.04);color:#475467;}
    .receipt-action-btn:hover{filter:brightness(.98);}
    .transactions-table .action-btn,
    .transactions-table .receipt-action-btn{
      box-shadow:none;
      background:transparent;
      border-color:transparent;
      color:#475467;
      padding:6px 4px;
      border-radius:8px;
      font-weight:700;
    }
    .transactions-table .action-btn:hover,
    .transactions-table .receipt-action-btn:hover{
      background:#f6f8fb;
      color:#111827;
    }
    .receipt-inline-box{border:1px dashed #d0d7de;border-radius:12px;padding:12px;background:#fafafa;}
    .receipt-inline-preview{display:none;margin-top:10px;max-width:180px;max-height:180px;object-fit:contain;border:1px solid #e0e0e0;border-radius:12px;background:#fff;}
    .receipt-inline-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
    .receipt-helper-text{font-size:12px;color:#666;margin-top:8px;}

    /* MODALS */
    .modal-overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,.5);backdrop-filter:blur(8px);z-index:1000;align-items:center;justify-content:center;padding:28px;}
    .modal-overlay.active{display:flex;}
    .modal{background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);border:1px solid #e3eaf3;border-radius:24px;width:min(94vw,780px);max-height:min(90vh,980px);overflow:auto;box-shadow:0 28px 80px rgba(15,23,42,.2);}
    .modal-header{padding:22px 24px 18px;border-bottom:1px solid #e7edf5;display:flex;justify-content:space-between;align-items:center;gap:14px;background:linear-gradient(180deg,rgba(247,250,253,.92) 0%,rgba(255,255,255,.88) 100%);}
    .modal-title{font-weight:900;font-size:24px;letter-spacing:-.02em;color:#0f1728;}
    .modal-close{background:#f5f8fc;border:1px solid #dbe4f0;border-radius:12px;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;font-size:22px;cursor:pointer;color:#667085;transition:.18s ease;}
    .modal-close:hover{background:#edf3fa;color:#0f1728;}
    .modal-content{padding:24px;}
    .modal-footer{padding:18px 24px 22px;border-top:1px solid #e7edf5;display:flex;justify-content:flex-end;gap:10px;background:linear-gradient(180deg,rgba(255,255,255,.88) 0%,rgba(247,250,253,.92) 100%);}
    .btn-primary{background:linear-gradient(135deg,#1f7ae0,#39a0ff);color:#fff;box-shadow:0 12px 28px rgba(33,122,224,.18);}
    .btn-danger{background:#d32f2f;color:#fff;}

    .form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px;}
    .form-row.transaction-primary-row{grid-template-columns:minmax(140px,.9fr) minmax(130px,.8fr) minmax(180px,1.4fr);}
    .form-row:last-child{margin-bottom:0;}
    .form-group{display:flex;flex-direction:column;gap:8px;}
    .form-group label{font-size:11px;color:#667085;font-weight:800;letter-spacing:.08em;text-transform:uppercase;}
    .form-group .form-input,
    .form-group select.form-input,
    .form-group textarea.form-input{
      min-height:48px;
      border:1px solid #dbe4f0;
      border-radius:14px;
      background:#fff;
      box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
      font-size:15px;
      color:#0f1728;
      padding:12px 14px;
    }
    .form-group textarea.form-input{min-height:110px;padding-top:14px;}
    .form-group .form-input::placeholder{color:#98a2b3;}
    .form-group .form-input:disabled{background:#f8fafc;color:#667085;border-color:#e5e7eb;cursor:not-allowed;}
    .modal .btn{border-radius:14px;padding:11px 15px;border:1px solid transparent;transition:.18s ease;}
    .modal .btn:not(.btn-primary):not(.btn-danger){background:#f7fafc;border-color:#dbe4f0;color:#334155;}
    .modal .btn:not(.btn-primary):not(.btn-danger):hover{background:#eef4fb;}
    .modal .btn-primary:hover,.modal .btn-danger:hover{filter:brightness(.97);}
    .modal-content > .form-row:first-child,
    .modal-content > .receipt-inline-box:first-child{margin-top:0;}
    .modal .receipt-inline-box,
    .modal .vendor-payment-box,
    .modal .gas-plates-box{
      border:1px solid #e3eaf3;
      border-radius:18px;
      background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
      box-shadow:0 10px 26px rgba(15,23,42,.04);
    }
    .modal .receipt-helper-text{color:#667085;line-height:1.5;}
    .modal .vendor-payment-box h4,
    .modal .gas-plates-title{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#667085;font-weight:900;}
    .modal .vendor-payment-summary{padding-top:10px;border-top:1px solid #e7edf5;color:#334155;}
    .modal .vendor-payment-row{border-bottom:1px solid #e7edf5;}
    .modal .receipt-inline-preview{border-radius:16px;border-color:#dbe4f0;box-shadow:0 8px 24px rgba(15,23,42,.08);}
    .account-move-box{margin-top:18px;padding:18px;border:1px solid #f2d6ab;border-radius:18px;background:linear-gradient(180deg,#fffdf7 0%,#fff8ec 100%);box-shadow:0 10px 26px rgba(194,120,24,.08);}
    .account-move-title{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#9a5b00;font-weight:900;margin-bottom:8px;}
    .account-move-copy{font-size:14px;line-height:1.55;color:#6b7280;font-weight:600;margin-bottom:14px;max-width:760px;}
    .account-move-note{font-size:12px;line-height:1.5;color:#8b6b2e;font-weight:700;margin-top:6px;}
    .btn-move-account{background:#fff;border:1px solid #f2c987;color:#9a5b00;box-shadow:0 8px 18px rgba(194,120,24,.08);}
    .btn-move-account:hover{background:#fff7e8;}
    .account-field-layout-box{margin:4px 0 18px;padding:18px;border:1px solid #dbe7f5;border-radius:18px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);box-shadow:0 10px 26px rgba(15,23,42,.04);}
    .account-field-layout-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px;}
    .account-field-layout-title{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#334155;font-weight:900;margin-bottom:5px;}
    .account-field-layout-copy{font-size:13px;line-height:1.45;color:#667085;font-weight:600;}
    .account-field-layout-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
    .account-field-layout-actions .btn{min-height:34px;padding:8px 10px;font-size:12px;border-radius:11px;}
    .account-field-options{display:flex;flex-wrap:wrap;gap:8px;}
    .account-field-toggle{border:1px solid #d7e2ef;background:#fff;color:#334155;border-radius:999px;padding:8px 11px;font-size:12px;font-weight:800;display:inline-flex;align-items:center;gap:7px;cursor:pointer;transition:.16s ease;}
    .account-field-toggle::before{content:"OFF";font-size:9px;letter-spacing:.08em;color:#8a98ab;background:#eef3f9;border-radius:999px;padding:3px 6px;}
    .account-field-toggle.active{border-color:#1f7ae0;background:#eaf4ff;color:#0b4e91;}
    .account-field-toggle.active::before{content:attr(data-order);background:#1f7ae0;color:#fff;}
    .account-field-preview{margin-top:14px;padding-top:14px;border-top:1px solid #e7edf5;}
    .account-field-preview-label{display:block;margin-bottom:8px;font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#98a2b3;font-weight:900;}
    .account-field-preview-row{display:flex;gap:8px;flex-wrap:wrap;min-height:34px;align-items:center;}
    .account-field-preview-item{padding:7px 10px;border-radius:10px;background:#f1f5f9;color:#334155;font-size:12px;font-weight:800;}
    .account-field-preview-empty{font-size:13px;color:#98a2b3;font-weight:700;}
    #addCustomerModal .modal{max-width:940px;}
    #addChargeModal .modal,
    #addPaymentModal .modal{max-width:860px;}
    #addEmployeeModal .modal,
    #editEmployeeModal .modal,
    #editTransactionModal .modal{max-width:720px;}
    #receiptModal .modal{max-width:820px;}
    #exportModal .modal{max-width:620px;}

        .gas-plates-wrap{display:none;margin-top:4px;}
        .gas-plates-box{border:1px solid #e0e0e0;border-radius:12px;padding:12px;background:#fafafa;}
        .gas-plates-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;}
        .gas-plates-title{font-size:12px;color:#666;font-weight:700;}
        .gas-plate-row{display:grid;grid-template-columns:1.1fr 1fr 1fr auto;gap:10px;align-items:end;margin-bottom:10px;}
        .gas-plate-add-btn{min-width:42px;padding:10px 12px;font-size:20px;line-height:1;}
        .gas-plate-remove-btn{background:#ffebee;color:#c62828;min-width:42px;padding:10px 12px;}
        .field-hidden{display:none !important;}


    /* EMPLOYEES */
.employee-header{display:flex;justify-content:space-between;gap:14px;margin-bottom:18px;align-items:center;padding:12px;border:1px solid #e3eaf3;border-radius:16px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.04);}
.employee-header-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.employee-list{display:flex;flex-direction:column;gap:12px;}
.summary-header{display:flex;justify-content:space-between;gap:14px;margin-bottom:18px;align-items:center;padding:12px;border:1px solid #e3eaf3;border-radius:16px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.04);}
.summary-filter-group{display:flex;gap:12px;flex:1;align-items:center;flex-wrap:wrap;}
.summary-header-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.summary-period-card{margin-bottom:18px;padding:16px 18px;border:1px solid #e3eaf3;border-radius:16px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);box-shadow:0 8px 20px rgba(15,23,42,.04);}
.summary-period-label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#98a2b3;font-weight:800;margin-bottom:6px;}
.summary-period-range{font-size:20px;font-weight:800;color:#0f1728;letter-spacing:-.02em;}
.summary-period-copy{margin-top:6px;font-size:13px;color:#667085;font-weight:600;}
.summary-stats-row{grid-template-columns:repeat(4,1fr);}
.summary-breakdown-section{margin-bottom:18px;}
.summary-table-section .transactions-table td:nth-child(2),
.summary-table-section .transactions-table td:nth-child(6){color:#667085;font-weight:600;}
.summary-breakdown-section .transactions-table td:nth-child(1),
.summary-breakdown-section .transactions-table td:nth-child(3){color:#667085;font-weight:600;}
.summary-breakdown-section .transactions-table td:nth-child(4){color:#2f7d4c;font-weight:700;}
.summary-breakdown-section .transactions-table td:nth-child(5){color:#c24141;font-weight:700;}
.summary-breakdown-section .transactions-table td:nth-child(6){font-weight:700;}
.empty-state-card.compact{margin:16px 0;box-shadow:none;}

@media print{
  body *{
    visibility:hidden !important;
  }
  #summariesSection,
  #summariesSection *{
    visibility:visible !important;
  }
  #summariesSection{
    position:absolute;
    left:0;
    top:0;
    width:100%;
    padding:0;
    background:#fff;
  }
  .sidebar,
  .top-bar,
  .summary-header-actions,
  .mobile-section-bar{
    display:none !important;
  }
  .summary-header,
  .summary-period-card,
  .transactions-section,
  .stat-card{
    box-shadow:none !important;
  }
  .summary-breakdown-section{
    margin-top:14px;
  }
}
.btn-add-secondary{background:#eef4ff;color:#23426c;}
.btn-add:disabled,.btn-add-secondary:disabled{opacity:.55;cursor:not-allowed;}
.employee-select-toggle{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#667085;font-weight:700;margin-right:2px;padding-right:8px;border-right:1px solid #e7edf5;}
.employee-select-toggle input{width:16px;height:16px;}
 .employee-row{padding:16px 18px;}
.employee-row .customer-info{grid-template-columns:minmax(220px,1.35fr) minmax(260px,1.45fr) minmax(120px,.8fr) minmax(160px,.85fr) minmax(150px,.9fr);gap:14px;}
.employee-row .customer-info > div:first-child .customer-field-value{font-size:17px;}
.employee-row .customer-info > div:nth-child(2) .customer-field-value{font-size:13px;color:#64748b;font-weight:600;}
.employee-row .customer-info > div:nth-child(3) .customer-field-value,
.employee-row .customer-info > div:nth-child(4) .customer-field-value{font-size:13px;color:#334155;font-weight:600;}
.employee-row .customer-info > div:last-child{justify-self:start;text-align:left;min-width:auto;}
.employee-row .customer-field-value .pill{font-size:11px;}
.employee-row .customer-actions{padding:6px 8px;border:1px solid #e7edf5;border-radius:16px;background:#f9fbfd;}
.employee-row .customer-actions .action-btn{border-color:transparent;color:#475467;background:transparent;box-shadow:none;}
.employee-row .customer-actions .action-btn:hover{background:#eef3f8;color:#111827;}
.employee-row .customer-actions .action-delete{color:#9a3412;}
.employee-archive-toggle{font-size:13px;color:#475467;font-weight:700;display:inline-flex;align-items:center;gap:8px;padding:0 6px 0 2px;}
.employee-archive-toggle input{width:15px;height:15px;}

.settings-card{background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);border:1px solid #e3eaf3;border-radius:20px;padding:22px;box-shadow:0 14px 30px rgba(15,23,42,.05);}
.settings-card-spaced{margin-top:18px;}
.settings-card-title{margin:0 0 14px;font-size:20px;font-weight:900;letter-spacing:-.02em;color:#0f1728;}
.settings-card-copy{color:#667085;font-size:14px;line-height:1.55;margin-bottom:16px;font-weight:600;max-width:820px;}
.settings-card-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;}
.business-logo-settings-row{display:grid;grid-template-columns:minmax(170px,220px);gap:16px;margin-bottom:18px;}
.business-logo-drop-zone{width:170px;aspect-ratio:1;border:2px dashed #b8c6d8;border-radius:18px;background:#f4f8fd;color:#5f6f86;font:inherit;font-weight:900;line-height:1.25;display:grid;place-items:center;text-align:center;cursor:pointer;overflow:hidden;padding:14px;transition:border-color .15s ease,background .15s ease,transform .15s ease;}
.business-logo-drop-zone:hover,.business-logo-drop-zone.drag-over{border-color:#2b7de9;background:#eef6ff;transform:translateY(-1px);}
.business-logo-drop-zone img{display:none;width:100%;height:100%;object-fit:cover;border-radius:14px;}
.business-logo-drop-zone.has-logo{padding:8px;border-style:solid;background:#fff;}
.business-logo-drop-zone.has-logo img{display:block;}
.business-logo-drop-zone.has-logo span{display:none;}
.business-logo-help{margin:8px 0 0;max-width:260px;font-size:12px;}
.business-logo-crop-modal{width:min(94vw,520px);}
.logo-crop-frame{width:min(320px,72vw);aspect-ratio:1;margin:0 auto 18px;border:2px solid #1f7ae0;border-radius:16px;background:#f8fbff;overflow:hidden;display:flex;align-items:center;justify-content:center;}
.logo-crop-frame img{max-width:none;max-height:none;transform-origin:center center;user-select:none;pointer-events:none;}
.logo-crop-slider-group{max-width:360px;margin:0 auto;}
.logo-crop-slider{padding:0 !important;accent-color:#1f7ae0;}
.business-logo-crop-note{max-width:360px;margin:14px auto 0;text-align:center;font-size:12px;}
.settings-helper-row{display:flex;justify-content:flex-start;gap:10px;flex-wrap:wrap;margin:-4px 0 16px;}
.settings-download-link{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;border:1px solid #dbe4f0;background:#f8fbff;color:#1f5ea8;font-weight:800;text-decoration:none;box-shadow:0 8px 20px rgba(15,23,42,.04);}
.settings-download-link:hover{background:#eef5ff;color:#134a86;}
.settings-saved-note{display:none;margin-top:12px;color:#1f7a3d;font-weight:800;}
.settings-import-note{display:none;margin-top:12px;color:#1565c0;font-weight:700;}
.empty-state-card{padding:22px;border:1px dashed #d8e0eb;border-radius:18px;background:linear-gradient(180deg,#ffffff 0%,#f9fbfe 100%);box-shadow:0 10px 24px rgba(15,23,42,.04);}
.empty-state-title{font-size:16px;font-weight:800;color:#0f1728;margin-bottom:6px;}
.empty-state-copy{font-size:13px;line-height:1.5;color:#667085;font-weight:600;max-width:520px;}
    .pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;border-radius:999px;padding:4px 10px;border:1px solid #e0e0e0;background:#f3f4f6;}
    .pill.pending{border-color:#ffcc80;background:#fff3e0;color:#e65100;}
    .pill.accepted{border-color:#c8e6c9;background:#e8f5e9;color:#1b5e20;}
    .pill.none{border-color:#e0e0e0;background:#f5f5f5;color:#666;}

    /* RESPONSIVE */
    @media (max-width: 1024px){
      .content-area{padding:16px;}
      .section-intro{margin-bottom:14px;}
      .section-title{font-size:24px;}
      .customer-info{grid-template-columns:1.5fr 1fr;row-gap:10px;}
      .stats-row{grid-template-columns:1fr;}
      .detail-actions{justify-content:flex-start;}
      .transactions-header{flex-direction:column;align-items:flex-start;}
      .transactions-tools{justify-content:flex-start;}
      .transactions-section{padding:14px;}
      .transactions-table{display:block;overflow-x:auto;white-space:nowrap;}
    }
    @media (max-width: 720px){
      .app-container{flex-direction:column;}
      .sidebar{width:100%;border-right:none;border-bottom:1px solid #eee;}
      .top-bar{flex-wrap:wrap;}
      .customer-row{flex-direction:column;align-items:stretch;}
      .customer-actions{justify-content:flex-start;}
      .search-box{min-width:0;}
      .form-row,.form-row.transaction-primary-row{grid-template-columns:1fr;}
    }

    @media (min-width: 1025px){
      #mobileSidebarOverlay,
      .mobile-topbar-leading{display:none !important;}
    }

  
/* ===== Cleaner typography + action icons (desktop/tablet/mobile) ===== */
:root{
  --fw-title: 800;
  --fw-strong: 700;
  --fw-regular: 500;
}

body{font-weight:var(--fw-regular);}
.login-title,
.sidebar-header,
.business-name,
.detail-title{
  font-weight:var(--fw-title) !important;
}

.btn,
.btn-add,
.btn-back,
.btn-charge,
.btn-payment,
.btn-export,
.modal-title,
.customer-field-value,
.balance-positive,
.balance-negative,
.balance-zero,
.stat-value{
  font-weight:var(--fw-strong) !important;
}

/* Make the list feel less “shouty” */
.customer-field-label,
.emp-field-label{
  letter-spacing:.06em;
  font-weight:600 !important;
}

.action-btn{
  font-weight:var(--fw-strong) !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}

.action-btn .action-icon{display:none; font-size:16px; line-height:1;}
.action-btn .action-text{display:inline;}

@media (max-width: 720px){
  /* tighter + icon actions on small screens */
  .action-btn{padding:10px 10px; border-radius:14px; min-width:46px;}
  .action-btn .action-text{display:none;}
  .action-btn .action-icon{display:inline;}
  .customer-field-value{font-size:15px;}
}

/* Keep your bottom mobile nav visible; don’t hide content behind it */
@media (max-width: 720px){
  body{padding-bottom:78px;}
}


/* === Mobile/Tablet polish (closer to competitor) === */
.customer-field-label{ font-weight:600; letter-spacing:.08em; }
.customer-field-value{ font-weight:600; }
.customer-row .customer-field-value{ font-weight:600; }
.customer-row .customer-field-label{ color:#7a7a7a; }

.btn.small{ font-weight:700; }
.btn .btn-ico{ display:inline-flex; align-items:center; justify-content:center; }
.btn .btn-text{ display:inline; }

/* Make action buttons compact on smaller screens */
@media (max-width: 900px){
  .customer-list .customer-row{ padding:10px 10px; }
  .customer-info{ gap:10px; }
  .customer-field-label{ font-size:10px; }
  .customer-field-value{ font-size:16px; }
  .customer-actions .btn.small{ padding:8px 10px; min-width:44px; }
  .customer-actions .btn.small .btn-text{ display:none; }
  .customer-actions .btn.small .btn-ico{ font-size:18px; }
  .employee-actions .btn.small{ padding:8px 10px; min-width:44px; }
  .employee-actions .btn.small .btn-text{ display:none; }
  .employee-actions .btn.small .btn-ico{ font-size:18px; }
  /* Hide phone/email columns on smaller screens */
  .customer-field.customer-phone,
  .customer-field.customer-email{ display:none; }
}

/* iPhone small */
@media (max-width: 520px){
  .customer-field-value{ font-size:17px; }
  .customer-balance{ font-size:18px; }
}


    .invoice-status-badge{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:800;margin-top:8px;border:1px solid #e0e0e0;background:#f5f5f5;color:#555;}
    .invoice-status-badge.unpaid{background:#fff3e0;border-color:#ffcc80;color:#e65100;}
    .invoice-status-badge.partial{background:#fff8e1;border-color:#ffe082;color:#8d6e00;}
    .invoice-status-badge.paid{background:#e8f5e9;border-color:#c8e6c9;color:#1b5e20;}
    .invoice-subtext{font-size:12px;color:#667085;margin-top:5px;line-height:1.45;}
    .vendor-payment-box{margin-top:14px;padding:14px;border:1px solid #e0e0e0;border-radius:12px;background:#fafafa;}
    .vendor-payment-box h4{margin:0 0 10px 0;font-size:14px;}
    .vendor-payment-row{display:grid;grid-template-columns:24px 1.3fr 1fr 1fr;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #eee;}
    .vendor-payment-row:last-child{border-bottom:none;}
    .vendor-payment-summary{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px;font-size:13px;font-weight:700;}
    .action-delete-transaction{border-color:transparent;color:#475467;background:transparent;}
    @media (max-width: 720px){
      .vendor-payment-row{grid-template-columns:24px 1fr;gap:8px;}
    }


.status-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid transparent;}
.status-current{background:#e8f5e9;color:#1b5e20;border-color:#c8e6c9;}
.status-due{background:#fff3e0;color:#e65100;border-color:#ffcc80;}
.status-overdue{background:#ffebee;color:#c62828;border-color:#ffcdd2;}
.customer-secondary{font-size:12px;color:#666;margin-top:4px;}
.gas-plates-wrap{margin-top:14px;}
textarea.form-input{resize:vertical;min-height:86px;}

@media (min-width: 1025px){
  :root{
    --desktop-surface:#ffffff;
    --desktop-surface-soft:#f8fafc;
    --desktop-border:#e6ebf2;
    --desktop-border-strong:#d8e0eb;
    --desktop-text:#0f1728;
    --desktop-subtle:#667085;
    --desktop-shadow:0 16px 36px rgba(15,23,42,.05);
    --desktop-shadow-soft:0 8px 20px rgba(15,23,42,.04);
  }

  body{
    background:
      radial-gradient(circle at top left, rgba(31,122,224,.05), transparent 28%),
      linear-gradient(180deg,#f5f8fc 0%,#eef3f9 100%);
    color:var(--desktop-text);
  }

  .sidebar{
    width:264px;
    flex-basis:264px;
    background:linear-gradient(180deg,#fcfdff 0%,#f5f8fc 100%);
    border-right:1px solid var(--desktop-border);
    box-shadow:none;
  }

  .sidebar-header{
    padding:24px 20px 18px;
    font-size:19px;
    border-bottom:1px solid var(--desktop-border);
  }

  .sidebar-menu{
    gap:8px;
    padding:16px;
  }

  .menu-btn{
    border-radius:12px;
    padding:11px 13px;
    background:#f7f9fc;
    color:#3b4758;
    font-size:14px;
  }

  .menu-btn:hover{
    background:#eef4fb;
    filter:none;
  }

  .menu-btn.active{
    background:#e7f0fb;
    color:#1958a8;
    box-shadow:none;
  }

  .sidebar-footer{
    padding:16px;
    border-top:1px solid var(--desktop-border);
    background:linear-gradient(180deg,rgba(245,248,252,0) 0%,rgba(245,248,252,.96) 24%,rgba(245,248,252,1) 100%);
  }

  .sidebar-user-card{
    border-radius:14px;
    border-color:var(--desktop-border);
    box-shadow:none;
  }

  .top-bar{
    position:sticky;
    top:0;
    z-index:50;
    padding:22px 28px 18px;
    background:rgba(250,252,255,.92);
    border-bottom:1px solid var(--desktop-border);
    box-shadow:none;
  }

  .business-name{
    font-size:30px;
    letter-spacing:-.045em;
  }

  .content-area{
    padding:28px 28px 36px;
  }

  .content-area > .content-section.active,
  .content-area > .mobile-section-bar{
    width:min(1180px,100%);
    margin-inline:auto;
  }

  .content-section.active{
    animation: desktopSectionFade .18s ease;
  }

  @keyframes desktopSectionFade{
    from{opacity:.88; transform:translateY(4px);}
    to{opacity:1; transform:translateY(0);}
  }

  .section-intro{
    margin-bottom:18px;
  }

  .section-title{
    font-size:30px;
    letter-spacing:-.045em;
  }

  .section-subtitle{
    max-width:760px;
  }

  .customers-header,
  .employee-header{
    padding:10px;
    border-radius:16px;
    border:1px solid var(--desktop-border);
    background:rgba(255,255,255,.78);
    box-shadow:0 10px 24px rgba(15,23,42,.045);
    backdrop-filter:blur(12px);
  }

  .search-sort-group{
    gap:10px;
  }

  .search-box,
  .sort-dropdown{
    min-height:44px;
    border-radius:12px;
    border-color:var(--desktop-border);
    box-shadow:none;
    background:#fff;
  }

  .btn-add,
  .btn-add-secondary{
    min-height:44px;
    border-radius:12px;
    box-shadow:none;
    font-size:14px;
  }

  .btn-add{
    background:#287a3d;
  }

  .btn-add:hover{
    filter:none;
    background:#216a34;
  }

  .btn-add-secondary{
    background:#edf4fb;
    color:#21598b;
    border:1px solid var(--desktop-border);
  }

  .customers-list,
  .employee-list{
    gap:0;
    border:1px solid #e3eaf3;
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 26px rgba(15,23,42,.04);
    overflow:hidden;
  }

  .customer-row{
    padding:14px 18px;
    border:none;
    border-bottom:1px solid #edf2f7;
    border-radius:0;
    background:#fff;
    box-shadow:none;
  }

  .customers-list .customer-row:last-child,
  .employee-list .customer-row:last-child{
    border-bottom:none;
  }

  .customer-desktop-summary{
    display:grid;
    grid-template-columns:minmax(360px,1fr) minmax(120px,160px) auto;
    align-items:center;
    gap:16px;
    width:100%;
  }

  .customer-desktop-leading{
    display:flex;
    align-items:center;
    gap:0;
    min-width:0;
  }

  .customer-desktop-avatar{
    display:none;
  }

  .customer-desktop-main{
    min-width:0;
  }

  .customer-desktop-name{
    font-size:15px;
    line-height:1.25;
    font-weight:700;
    color:#17212f;
    letter-spacing:-.01em;
  }

  .customer-desktop-subtitle{
    margin-top:3px;
    font-size:12px;
    color:#8692a3;
    font-weight:500;
  }

  .customer-desktop-balance-wrap{
    text-align:right;
  }

  .customer-desktop-balance-label{
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#a1acba;
    margin-bottom:3px;
    font-weight:700;
  }

  .customer-desktop-balance{
    font-size:14px;
    line-height:1.1;
    font-weight:700;
    letter-spacing:0;
  }

  .customer-desktop-actions{
    display:flex;
    align-items:center;
    gap:14px;
    justify-content:flex-end;
    white-space:nowrap;
  }

  .customer-desktop-action{
    border:none;
    background:transparent;
    color:#64748b;
    font-size:12px;
    font-weight:600;
    padding:0;
    border-radius:0;
    cursor:pointer;
  }

  .customer-desktop-action:hover{
    background:transparent;
    color:#111827;
  }

  .customer-desktop-action.delete{
    color:#c24141;
  }

  .customer-desktop-action.delete:hover{
    background:transparent;
    color:#991b1b;
  }

  .customer-row:hover{
    transform:none;
    border-color:transparent;
    box-shadow:none;
    background:#f9fbfd;
  }

  .customer-row.selected{
    background:#f5f9fc;
    box-shadow:none;
  }

  .customer-info{
    grid-template-columns:minmax(300px,1.9fr) minmax(120px,.7fr) minmax(210px,.95fr) minmax(150px,.7fr);
    gap:14px;
  }

  .customer-row.has-desktop-redesign > .customer-info,
  .customer-row.has-desktop-redesign > .customer-actions{
    display:none !important;
  }

  .customer-row.has-desktop-redesign > .customer-desktop-summary{
    display:grid;
  }

  .employee-row{
    padding:14px 18px;
  }

  .employee-desktop-summary{
    display:grid;
    grid-template-columns:34px minmax(280px,1.35fr) minmax(170px,.62fr) minmax(112px,.38fr) minmax(270px,auto);
    align-items:center;
    gap:18px;
    width:100%;
  }

  .employee-row > .customer-info,
  .employee-row > .customer-actions{
    display:none !important;
  }

  .employee-desktop-select{
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .employee-desktop-select input{
    width:15px;
    height:15px;
  }

  .employee-desktop-main,
  .employee-desktop-meta{
    min-width:0;
  }

  .employee-desktop-name{
    font-size:14px;
    line-height:1.2;
    font-weight:700;
    color:#17212f;
  }

  .employee-desktop-subtitle,
  .employee-desktop-date{
    margin-top:3px;
    font-size:12px;
    color:#8692a3;
    font-weight:500;
  }

  .employee-desktop-role{
    font-size:13px;
    color:#344054;
    font-weight:600;
  }

  .employee-desktop-status{
    font-size:12px;
    font-weight:600;
    color:#98a2b3;
  }

  .employee-desktop-status.pending{
    color:#d97706;
  }

  .employee-desktop-status.accepted{
    color:#6b7280;
  }

  .employee-desktop-status.archived{
    color:#b91c1c;
  }

  .employee-desktop-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    min-width:270px;
    white-space:nowrap;
  }

  .customer-field-label{
    color:#98a2b3;
    font-size:10px;
  }

  .customer-field-value{
    font-size:13px;
  }

  .customer-info > div:first-child .customer-field-value{
    font-size:16px;
    font-weight:800 !important;
  }

  .customer-info > div:nth-child(2) .customer-field-value,
  .customer-info > div:nth-child(3) .customer-field-value{
    font-size:13px;
    color:#7a8696;
    font-weight:600 !important;
  }

  .customer-info > div:last-child .customer-field-value{
    font-size:18px;
    font-weight:800 !important;
  }

  .customer-actions{
    padding:0;
    border:none;
    background:transparent;
    gap:0;
    align-items:center;
  }

  .customer-actions .action-btn,
  .employee-row .customer-actions .action-btn{
    padding:7px 9px;
    border-radius:10px;
    color:#667085;
    font-weight:700 !important;
    font-size:12px;
  }

  .customer-actions .action-btn:hover,
  .employee-row .customer-actions .action-btn:hover{
    background:#f3f6fa;
    color:#0f1728;
  }

  .detail-header{
    padding:22px 24px;
    border-radius:20px;
    border-color:var(--desktop-border);
    background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);
    box-shadow:0 14px 30px rgba(15,23,42,.05);
  }

  .detail-title{
    font-size:34px;
  }

  .detail-sub{
    font-size:14px;
    color:#667085;
    max-width:840px;
  }

  .detail-actions{
    padding:8px;
    gap:8px;
    border-radius:14px;
    border:1px solid var(--desktop-border);
    background:#f8fafc;
    box-shadow:none;
  }

  .btn-back,
  .btn-charge,
  .btn-payment,
  .btn-export{
    border-radius:12px;
    box-shadow:none;
    min-height:44px;
  }

  .btn-back{background:#5f6b7a;}
  .btn-charge{background:#287a3d;}
  .btn-payment{background:#c94949;}
  .btn-export{background:#2f7ae0;}

  .stats-row{
    gap:10px;
  }

  .stat-card{
    padding:16px 18px;
    border-radius:16px;
    border-color:var(--desktop-border);
    box-shadow:0 8px 20px rgba(15,23,42,.04);
  }

  .stat-value{
    font-size:28px;
  }

  .transactions-section,
  .settings-card{
    border-radius:20px;
    border-color:var(--desktop-border);
    box-shadow:0 14px 30px rgba(15,23,42,.05);
  }

  .transactions-section{
    padding:18px 18px 8px;
  }

  .transactions-header{
    padding-bottom:12px;
    margin-bottom:12px;
  }

  .transactions-header h3{
    font-size:18px;
  }

  .transactions-table th{
    padding:12px 10px;
    background:#f8fafc;
  }

  .transactions-table td{
    padding:13px 10px;
    font-size:13px;
  }

  .transactions-table tbody tr:hover{
    background:#fbfcfe;
  }

  .transactions-table .action-btn,
  .transactions-table .receipt-action-btn{
    color:#667085;
  }

  .transactions-table .action-btn:hover,
  .transactions-table .receipt-action-btn:hover{
    background:#f3f6fa;
  }

  .employee-row{
    padding:13px 16px;
  }

  .employee-row .customer-info{
    grid-template-columns:minmax(220px,1.25fr) minmax(250px,1.45fr) minmax(120px,.8fr) minmax(150px,.8fr) minmax(150px,.8fr);
  }

  .employee-row .customer-info > div:first-child .customer-field-value{
    font-size:15px;
  }

  .employee-archive-toggle{
    padding:0 8px 0 4px;
    color:#667085;
  }

  .settings-card{
    padding:20px;
  }

  .settings-card-title{
    font-size:18px;
    margin-bottom:12px;
  }

  .settings-card-copy{
    font-size:13px;
    margin-bottom:14px;
  }

  .settings-download-link{
    padding:9px 12px;
    border-radius:12px;
    box-shadow:none;
  }

  .form-group .form-input,
  .form-group select.form-input,
  .form-group textarea.form-input{
    min-height:44px;
    border-radius:12px;
    font-size:14px;
  }

  .modal{
    border-radius:20px;
  }

  .modal-header,
  .modal-footer{
    padding-left:22px;
    padding-right:22px;
  }

  .modal-content{
    padding:22px;
  }
}

/* ===== Desktop polish pass: calmer, denser, more professional PC workspace ===== */
@media (min-width: 1025px){
  :root{
    --pc-navy:#111f45;
    --pc-blue:#2455d6;
    --pc-green:#16834a;
    --pc-red:#c24141;
    --pc-ink:#162033;
    --pc-muted:#6b778c;
    --pc-soft:#f5f8fc;
    --pc-line:#e2e9f2;
  }

  body{
    font-family:"Segoe UI", "Aptos", "Helvetica Neue", Arial, sans-serif;
    background:linear-gradient(180deg,#f7faff 0%,#eef4fa 100%);
  }

  .sidebar{
    width:252px;
    flex-basis:252px;
    background:#fbfdff;
  }

  .sidebar-header{
    min-height:92px;
    padding:22px 20px;
  }

  .sidebar-brand-mark{
    width:36px;
    height:36px;
  }

  .sidebar-brand-title{
    color:var(--pc-navy);
    font-size:17px;
    letter-spacing:.02em;
  }

  .menu-btn{
    min-height:42px;
    padding:10px 13px;
    border-radius:11px;
    font-size:13px;
    font-weight:720;
    color:#344256;
  }

  .menu-btn.active{
    color:#0f4f9f;
    background:#e8f2ff;
  }

  .sidebar-user-card{
    padding:12px;
    border-radius:12px;
  }

  .sidebar-user-name{
    font-size:14px;
    color:var(--pc-ink);
  }

  .top-bar{
    min-height:92px;
    padding:24px 30px 18px;
  }

  .business-name{
    font-size:29px;
    color:var(--pc-ink);
    letter-spacing:-.04em;
  }

  .content-area{
    padding:30px;
  }

  .content-area > .content-section.active,
  .content-area > .mobile-section-bar{
    width:min(1260px,100%);
  }

  .customers-header,
  .employee-header{
    padding:9px;
    border-radius:14px;
    background:#ffffff;
    border:1px solid var(--pc-line);
    box-shadow:0 12px 28px rgba(15,23,42,.045);
  }

  .search-box,
  .sort-dropdown{
    min-height:42px;
    border-radius:10px;
    color:#263348;
    font-weight:500;
  }

  .search-box::placeholder{
    color:#9aa6b6;
  }

  .btn-add,
  .btn-add-secondary{
    min-height:42px;
    border-radius:10px;
    padding-inline:16px;
    font-weight:760;
  }

  .btn-add{
    background:linear-gradient(135deg,#16773f 0%,#1d8f4b 100%);
  }

  .customers-list,
  .employee-list{
    margin-top:14px;
    border-radius:14px;
    border:1px solid var(--pc-line);
    background:#fff;
    box-shadow:0 14px 32px rgba(15,23,42,.045);
  }

  .customer-row,
  .employee-row{
    min-height:58px;
    padding:12px 16px;
    border-bottom:1px solid #edf2f7;
    transition:background .12s ease;
  }

  .customer-row:hover,
  .employee-row:hover{
    background:#f8fbff;
  }

  .customer-desktop-summary{
    grid-template-columns:minmax(360px,1fr) minmax(125px,150px) minmax(190px,auto);
    gap:18px;
  }

  .customer-desktop-name{
    font-size:14px;
    font-weight:720;
    color:#132033;
    letter-spacing:0;
  }

  .customer-desktop-subtitle{
    font-size:11.5px;
    color:#7d8a9c;
  }

  .customer-desktop-balance-label{
    font-size:9.5px;
    color:#a3afbf;
  }

  .customer-desktop-balance{
    font-size:14px;
    font-weight:760;
  }

  .customer-desktop-actions,
  .employee-desktop-actions{
    gap:12px;
  }

  .customer-desktop-action{
    color:#5b6678;
    font-size:11.5px;
    font-weight:650;
  }

  .customer-desktop-action:hover{
    color:var(--pc-blue);
    text-decoration:underline;
    text-underline-offset:3px;
  }

  .customer-desktop-action.delete:hover{
    color:var(--pc-red);
  }

  .section-title{
    font-size:28px;
  }

  .section-subtitle{
    color:var(--pc-muted);
    font-size:13px;
  }

  .employee-desktop-summary{
    grid-template-columns:34px minmax(300px,1.45fr) minmax(170px,.62fr) minmax(112px,.4fr) minmax(270px,auto);
  }

  .employee-desktop-name{
    font-size:14px;
    font-weight:720;
  }

  .employee-desktop-subtitle,
  .employee-desktop-date{
    font-size:11.5px;
  }

  .employee-desktop-role,
  .employee-desktop-status{
    font-size:12.5px;
  }

  .detail-header{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:20px;
    padding:20px 22px;
    border-radius:18px;
  }

  .detail-title{
    font-size:30px;
    line-height:1.08;
    letter-spacing:-.035em;
  }

  .detail-sub{
    margin-top:5px;
    font-size:12.5px;
    line-height:1.5;
    color:#6f7b8e;
  }

  .detail-actions{
    align-self:center;
    padding:6px;
    gap:6px;
    border-radius:13px;
    background:#f7f9fc;
  }

  .btn-back,
  .btn-charge,
  .btn-payment,
  .btn-export{
    min-height:38px;
    padding:9px 13px;
    border-radius:10px;
    font-size:12px;
    font-weight:760;
  }

  .btn-export{
    background:linear-gradient(135deg,var(--pc-navy),var(--pc-blue));
  }

  .stats-row{
    gap:10px;
    margin-bottom:16px;
  }

  .stat-card{
    min-height:82px;
    padding:14px 16px;
    border-radius:14px;
  }

  .stat-label{
    font-size:10px;
    letter-spacing:.08em;
  }

  .stat-value{
    margin-top:4px;
    font-size:24px;
    letter-spacing:-.025em;
  }

  .transactions-section{
    padding:16px 16px 6px;
    border-radius:18px;
  }

  .transactions-header{
    margin-bottom:8px;
    padding:0 2px 10px;
  }

  .transactions-header h3{
    font-size:18px;
  }

  .transactions-subtitle{
    font-size:12px;
    color:#7d8a9c;
  }

  .transactions-count{
    padding:6px 10px;
    font-size:11px;
    background:#fff;
  }

  .transactions-table{
    border-collapse:separate;
    border-spacing:0;
  }

  .transactions-table th{
    padding:10px 10px;
    font-size:10px;
    letter-spacing:.07em;
    color:#98a5b6;
    background:#f7f9fc;
  }

  .transactions-table td{
    padding:11px 10px;
    font-size:12.5px;
    color:#4d5b6e;
  }

  .transactions-table td:nth-child(1),
  .transactions-table td:nth-child(2){
    font-weight:520;
    color:#718096;
  }

  .transactions-table td:nth-child(3){
    color:#233044;
    font-weight:560;
  }

  .transactions-table .amount-cell{
    font-weight:760;
  }

  .transactions-table .action-btn,
  .transactions-table .receipt-action-btn{
    padding:0;
    min-height:0;
    border:0;
    background:transparent;
    box-shadow:none;
    color:#526071;
    font-size:11.5px;
    font-weight:650;
  }

  .transactions-table .action-btn:hover,
  .transactions-table .receipt-action-btn:hover{
    background:transparent;
    color:var(--pc-blue);
    text-decoration:underline;
    text-underline-offset:3px;
  }

  .transactions-table .action-delete-transaction:hover{
    color:var(--pc-red);
  }

  .modal{
    border-radius:18px;
  }

  .modal-title{
    font-size:22px;
    letter-spacing:-.025em;
  }
}
/* Schedule */
.schedule-intro {
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.schedule-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.schedule-week-picker {
    width: 160px;
    flex: 0 0 160px;
}

.schedule-nav-btn {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #dbe5f0;
}

.schedule-manager-note {
    max-width: 1180px;
    margin: -4px auto 12px auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.schedule-manager-note.hidden {
    display: none;
}

.my-schedule-card {
    max-width: 1180px;
    margin: 0 auto 12px auto;
    padding: 12px 14px;
    border: 1px solid #dbe5f0;
    border-radius: 14px;
    background: #fff;
}

.my-schedule-title {
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.my-schedule-list {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.my-schedule-row {
    min-width: 0;
    padding: 8px;
    border: 1px solid #e4ebf4;
    border-radius: 10px;
    background: #f8fbff;
}

.my-schedule-row.is-off {
    background: #f8fafc;
}

.my-schedule-day,
.my-schedule-date,
.my-schedule-assignment {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-schedule-day {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.my-schedule-date {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
}

.my-schedule-assignment {
    margin-top: 5px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.schedule-print-area {
    max-width: 1180px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e1e8f0;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    padding: 20px;
}

.schedule-print-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 14px;
}

.schedule-business {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
}

.schedule-week-title {
    color: #64748b;
    font-weight: 700;
    margin-top: 3px;
}

.schedule-week-number {
    min-width: 96px;
    text-align: center;
    color: #ef4444;
    font-size: 20px;
    font-weight: 900;
}

#schedulePrintArea .schedule-print-head {
    display: none;
}

.schedule-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-excel-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #06152a;
    font-family: "Aptos Narrow", "Arial Narrow", Arial, sans-serif;
    background: #fff;
    border: 0;
}

.schedule-excel-col-a {
    width: 17%;
}

.schedule-excel-day-col {
    width: 11.857%;
}

.schedule-excel-table th,
.schedule-excel-table td {
    border: 1px solid #111827;
    padding: 3px 4px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.08;
}

.schedule-excel-title-row th {
    height: 34px;
    border: 0;
    background: #fff;
}

.schedule-excel-period {
    color: #516078;
    font-size: 13px;
    font-weight: 700;
    text-align: left !important;
}

.schedule-excel-business {
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
    text-align: center !important;
}

.schedule-excel-week {
    color: #ef4444;
    font-size: 20px;
    font-weight: 900;
}

.schedule-excel-department {
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.03em;
    writing-mode: initial;
    transform: none;
    text-align: center !important;
}

.schedule-excel-date,
.schedule-excel-day {
    background: #e5e7eb;
    color: #0f172a;
}

.schedule-excel-date {
    height: 24px;
    font-size: 14px;
    font-weight: 900;
}

.schedule-excel-day {
    height: 24px;
    font-size: 12px;
    font-weight: 500;
}

.schedule-excel-time {
    height: 30px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 400;
}

.schedule-excel-time.editable {
    cursor: pointer;
}

.schedule-excel-time.editable:hover {
    background: #eff6ff;
}

.schedule-excel-shift-row .schedule-cell {
    height: 30px;
    min-height: 30px;
    font-size: 13px;
    font-weight: 400;
}

.schedule-excel-shift-row .schedule-cell-name {
    font-size: 13px;
    font-weight: 800;
}

.schedule-excel-spacer-row td {
    height: 16px;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    background: #fff;
}

.schedule-excel-dayoff-row th,
.schedule-excel-dayoff-row td {
    height: 30px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

@media screen and (min-width: 1025px) {
    #scheduleSection .section-intro,
    #scheduleManagerNote,
    #schedulePrintArea,
    #scheduleHoursCard {
        max-width: 980px;
        margin-left: auto;
        margin-right: auto;
    }

    #schedulePrintArea {
        padding: 12px 16px;
        border-radius: 16px;
    }

    #schedulePrintArea .schedule-grid {
        overflow-x: visible;
    }

    #schedulePrintArea .schedule-excel-table {
        min-width: 0;
        font-size: 11px;
    }

    #schedulePrintArea .schedule-excel-col-a {
        width: 16%;
    }

    #schedulePrintArea .schedule-excel-day-col {
        width: 12%;
    }

    #schedulePrintArea .schedule-excel-table th,
    #schedulePrintArea .schedule-excel-table td {
        padding: 2px 3px;
        line-height: 1.02;
    }

    #schedulePrintArea .schedule-excel-title-row th {
        height: 26px;
    }

    #schedulePrintArea .schedule-excel-period {
        font-size: 11px;
    }

    #schedulePrintArea .schedule-excel-business {
        font-size: 18px;
    }

    #schedulePrintArea .schedule-excel-week {
        font-size: 16px;
    }

    #schedulePrintArea .schedule-excel-department {
        font-size: 12px;
    }

    #schedulePrintArea .schedule-excel-date {
        height: 18px;
        font-size: 11px;
    }

    #schedulePrintArea .schedule-excel-day {
        height: 16px;
        font-size: 9px;
    }

    #schedulePrintArea .schedule-excel-time {
        height: 22px;
        font-size: 10px;
    }

    #schedulePrintArea .schedule-excel-shift-row .schedule-cell {
        height: 22px;
        min-height: 22px;
        font-size: 10px;
    }

    #schedulePrintArea .schedule-excel-shift-row .schedule-cell-name {
        font-size: 10px;
    }

    #schedulePrintArea .schedule-excel-spacer-row td {
        height: 8px;
    }

    #schedulePrintArea .schedule-excel-dayoff-row th,
    #schedulePrintArea .schedule-excel-dayoff-row td {
        height: 22px;
        font-size: 10px;
    }
}

.schedule-department {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 6px;
    margin-bottom: 22px;
    align-items: stretch;
}

.schedule-department-label {
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border: 0;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: #fff;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 2px solid #111827;
    background: #fff;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #111827;
    padding: 4px 5px;
    text-align: center;
    vertical-align: middle;
}

.schedule-table thead th {
    background: #e5e7eb;
    color: #111827;
    font-size: 13px;
    line-height: 1.15;
}

.schedule-table thead th span {
    display: block;
    margin-top: 3px;
    font-weight: 500;
}

.schedule-time-head,
.schedule-time-label {
    width: 154px;
}

.schedule-time-label {
    background: #fff;
    color: #111827;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.08;
}

.schedule-shift-time,
.schedule-shift-title,
.schedule-shift-note {
    display: block;
}

.schedule-shift-time {
    font-size: 11px;
    font-weight: 400;
}

.schedule-shift-title {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
}

.schedule-shift-note {
    margin-top: 2px;
    color: #64748b;
    font-size: 10px;
    font-weight: 400;
}

.schedule-pair-start th,
.schedule-pair-start td {
    border-top-width: 2px;
}

.schedule-pair-end th,
.schedule-pair-end td {
    border-bottom-width: 2px;
}

.schedule-pair-gap td {
    height: 10px;
    padding: 0;
    border: 0;
    background: transparent;
}

.schedule-cell {
    height: 31px;
    min-height: 31px;
    color: #111827;
    font-size: 13px;
    font-weight: 400;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.schedule-cell.editable {
    cursor: pointer;
}

.schedule-cell.editable:hover {
    position: relative;
    z-index: 2;
    transform: scale(1.015);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.schedule-cell-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800;
}

.schedule-cell-note {
    margin-top: 2px;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 400;
}

.schedule-modal .modal-subtitle {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.schedule-day-picker {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #dbe5f0;
    border-radius: 16px;
    background: #f8fafc;
}

.schedule-day-picker-title {
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.schedule-day-options {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.schedule-day-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    border: 1px solid #d5e0ee;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.schedule-day-option:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.schedule-day-option input {
    margin-bottom: 5px;
}

.schedule-day-option span {
    font-size: 13px;
    font-weight: 900;
}

.schedule-day-option small {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.schedule-day-option:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px #2563eb;
}

.schedule-day-picker-help {
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.schedule-all-day-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #dbe5f0;
    border-radius: 16px;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
}

.schedule-all-day-option input {
    margin-top: 3px;
}

.schedule-all-day-option span {
    display: grid;
    gap: 3px;
}

.schedule-all-day-option small {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.schedule-all-day-option.hidden {
    display: none;
}

.schedule-hours-card {
    max-width: 1180px;
    margin: 22px auto 0 auto;
    padding: 20px;
    border: 1px solid #e1e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.schedule-hours-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.schedule-hours-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 600;
}

.schedule-hours-head p {
    margin: 4px 0 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
}

.schedule-hours-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.schedule-hours-total {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 400;
}

.schedule-hours-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(280px, 0.65fr);
    gap: 16px;
}

.schedule-hours-table-wrap {
    overflow-x: auto;
    border: 1px solid #e1e8f0;
    border-radius: 16px;
}

.schedule-hours-grid .schedule-hours-table-wrap:last-child {
    grid-column: 1 / -1;
}

.schedule-hours-wrap-head,
.schedule-hours-table-wrap h4 {
    margin: 0;
    padding: 12px 14px;
    border-bottom: 1px solid #e1e8f0;
}

.schedule-hours-wrap-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.schedule-hours-wrap-head h4,
.schedule-hours-table-wrap h4 {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
}

.schedule-hours-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-hours-table th,
.schedule-hours-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    color: #334155;
    text-align: left;
    font-size: 13px;
    font-weight: 400;
}

.schedule-hours-table th {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.schedule-department-charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
}

.schedule-department-chart {
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-department-ring {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--dept-color) calc(var(--dept-percent) * 1%), #edf2f7 0);
    position: relative;
}

.schedule-department-ring::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: inherit;
    background: #fff;
}

.schedule-department-ring span {
    position: relative;
    z-index: 1;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
}

.schedule-department-chart-name {
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
}

.schedule-department-chart-hours,
.schedule-department-empty {
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
}

.employee-color-input {
    min-height: 44px;
    padding: 6px;
}

.employee-color-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    margin-right: 8px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    vertical-align: -1px;
}

.form-helper-text {
    min-height: 44px;
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 1024px) {
    #scheduleSection {
        padding-bottom: 44px;
    }

    .schedule-intro {
        display: block;
    }

    .schedule-toolbar {
        justify-content: stretch;
        margin-top: 14px;
    }

    .schedule-toolbar > * {
        flex: 1 1 46%;
    }

    .my-schedule-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .my-schedule-row {
        display: grid;
        grid-template-columns: 92px 64px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        padding: 7px 9px;
    }

    .my-schedule-date,
    .my-schedule-assignment {
        margin-top: 0;
    }

    .schedule-print-area {
        padding: 14px;
        border-radius: 22px;
    }

    .schedule-print-head {
        align-items: center;
    }

    .schedule-business {
        font-size: 20px;
    }

    .schedule-department {
        display: block;
        margin-bottom: 18px;
    }

    .schedule-department-label {
        writing-mode: initial;
        transform: none;
        justify-content: flex-start;
        padding: 10px 12px;
        margin-bottom: 8px;
        border-radius: 12px;
        border-width: 1px;
    }

    .schedule-table {
        min-width: 840px;
    }

    .schedule-department {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .schedule-day-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-hours-head {
        display: block;
    }

    .schedule-hours-actions {
        justify-content: stretch;
        margin-top: 14px;
    }

    .schedule-hours-actions > * {
        flex: 1 1 46%;
    }

    .schedule-hours-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        size: letter landscape;
        margin: 0.20in;
    }

    body {
        background: #fff !important;
    }

    body * {
        visibility: hidden !important;
    }

    body.print-schedule-only #schedulePrintArea,
    body.print-schedule-only #schedulePrintArea * {
        visibility: visible !important;
    }

    .sidebar,
    .top-bar,
    .mobile-section-bar,
    .schedule-intro,
    .schedule-toolbar,
    .schedule-manager-note,
    body.print-schedule-only #summariesSection,
    body.print-schedule-only #scheduleHoursCard {
        display: none !important;
    }

    body.print-schedule-hours #schedulePrintArea {
        display: none !important;
    }

    body.print-schedule-hours .schedule-intro,
    body.print-schedule-hours .schedule-toolbar,
    body.print-schedule-hours .schedule-manager-note {
        display: none !important;
    }

    body.print-schedule-hours #scheduleHoursCard {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        visibility: visible !important;
    }

    body.print-schedule-hours #scheduleHoursCard * {
        visibility: visible !important;
    }

    body.print-schedule-hours .schedule-hours-actions {
        display: none !important;
    }

    body.print-schedule-hours .schedule-hours-grid {
        grid-template-columns: 0.95fr 0.65fr !important;
        gap: 0.12in !important;
    }

    body.print-schedule-hours .schedule-hours-grid .schedule-hours-table-wrap:last-child {
        grid-column: 1 / -1 !important;
    }

    body.print-schedule-hours .schedule-hours-head h3,
    body.print-schedule-hours .schedule-hours-wrap-head h4,
    body.print-schedule-hours .schedule-hours-table-wrap h4,
    body.print-schedule-hours .schedule-hours-total,
    body.print-schedule-hours .schedule-hours-table th,
    body.print-schedule-hours .schedule-hours-table td {
        font-weight: 400 !important;
    }

    body.print-schedule-hours .schedule-hours-table th,
    body.print-schedule-hours .schedule-hours-table td {
        padding: 3px 5px !important;
        font-size: 8.5pt !important;
    }

    .main-content,
    .content-area,
    #scheduleSection {
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    #schedulePrintArea {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0.10in !important;
        min-height: 7in !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    #schedulePrintArea .schedule-print-head {
        display: none !important;
    }

    .schedule-grid {
        overflow: visible !important;
    }

    .schedule-excel-table {
        min-width: 0 !important;
        width: 100% !important;
        height: 7.55in !important;
        border: 0 !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
        font-family: "Aptos Narrow", "Arial Narrow", Arial, sans-serif !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .schedule-excel-table th,
    .schedule-excel-table td {
        border: 0.45px solid #111827 !important;
        padding: 1px 2px !important;
        line-height: 1 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .schedule-excel-title-row th {
        height: 0.24in !important;
        border: 0 !important;
        padding: 0 2px !important;
    }

    .schedule-excel-period {
        font-size: 8.2pt !important;
        font-weight: 700 !important;
        text-align: left !important;
    }

    .schedule-excel-business {
        font-size: 15pt !important;
        font-weight: 800 !important;
        text-align: center !important;
    }

    .schedule-excel-week {
        color: #ef4444 !important;
        font-size: 13pt !important;
        font-weight: 800 !important;
    }

    .schedule-excel-department {
        width: 0.35in !important;
        padding: 0 !important;
        font-size: 7.8pt !important;
        font-weight: 800 !important;
        letter-spacing: 0.02em !important;
        writing-mode: initial !important;
        transform: none !important;
        text-align: center !important;
        background: #fff !important;
    }

    .schedule-excel-date,
    .schedule-excel-day {
        background: #e5e7eb !important;
    }

    .schedule-excel-date {
        height: 0.19in !important;
        font-size: 8pt !important;
        font-weight: 800 !important;
    }

    .schedule-excel-day {
        height: 0.19in !important;
        font-size: 7.4pt !important;
        font-weight: 400 !important;
    }

    .schedule-excel-time,
    .schedule-excel-dayoff-row th,
    .schedule-excel-dayoff-row td {
        height: 0.19in !important;
        font-size: 7.4pt !important;
        font-weight: 400 !important;
        background: #fff !important;
    }

    .schedule-excel-shift-row .schedule-cell {
        height: 0.19in !important;
        min-height: 0.19in !important;
        font-size: 7.5pt !important;
        font-weight: 400 !important;
    }

    .schedule-excel-shift-row .schedule-cell-name {
        font-size: 7.7pt !important;
        font-weight: 800 !important;
    }

    .schedule-excel-shift-row .schedule-cell-note {
        display: none !important;
    }

    .schedule-excel-spacer-row td {
        height: 0.12in !important;
        border: 0 !important;
        outline: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .schedule-print-head {
        margin-bottom: 0.06in !important;
    }

    .schedule-business {
        font-size: 15pt !important;
        font-weight: 800 !important;
    }

    .schedule-week-title {
        font-size: 9pt !important;
        font-weight: 700 !important;
    }

    .schedule-week-number {
        font-size: 13pt !important;
        font-weight: 800 !important;
    }

    .schedule-department {
        display: grid !important;
        overflow: visible !important;
        grid-template-columns: 0.22in 1fr !important;
        gap: 0.03in !important;
        margin-bottom: 0.11in !important;
        break-inside: avoid !important;
    }

    .schedule-department-label {
        display: flex !important;
        writing-mode: vertical-rl !important;
        transform: rotate(180deg) !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        font-size: 7.3pt !important;
        font-weight: 800 !important;
        letter-spacing: 0.04em !important;
    }

    .schedule-table {
        min-width: 0 !important;
        width: 100% !important;
        border: 0.8px solid #111827 !important;
    }

    .schedule-table th,
    .schedule-table td {
        border-width: 0.35px !important;
        padding: 1px 2px !important;
        font-size: 7.2pt !important;
        height: 0.29in !important;
        line-height: 1.02 !important;
        font-weight: 400 !important;
    }

    .schedule-table thead th strong {
        font-weight: 800 !important;
    }

    .schedule-table thead th span {
        margin-top: 0 !important;
        font-size: 6.7pt !important;
        font-weight: 400 !important;
    }

    .schedule-cell {
        height: 0.29in !important;
        min-height: 0.29in !important;
        font-weight: 400 !important;
    }

    .schedule-cell-name {
        font-size: 7.3pt !important;
        font-weight: 800 !important;
    }

    .schedule-cell-note {
        margin-top: 0 !important;
        font-size: 6.4pt !important;
        font-weight: 400 !important;
    }

    .schedule-time-label {
        font-weight: 400 !important;
        height: 0.58in !important;
    }

    .schedule-shift-time,
    .schedule-shift-title,
    .schedule-shift-note {
        margin-top: 0 !important;
        font-weight: 400 !important;
    }

    .schedule-shift-time {
        font-size: 6.9pt !important;
    }

    .schedule-shift-title {
        font-size: 7.1pt !important;
    }

    .schedule-shift-note {
        font-size: 6.2pt !important;
    }

    .schedule-pair-gap td {
        height: 0.04in !important;
    }

    .schedule-time-head,
    .schedule-time-label {
        width: 1.18in !important;
    }
}
