.invoice-sample-report-date{margin:0 0 .75rem;font-size:1rem;font-weight:600;color:#0f172a;text-align:center}.invoice-report-header{display:block;border-bottom:3px solid #0f172a;padding-bottom:8px;margin-bottom:10px}.invoice-report-header-center{text-align:center;color:#111827}.invoice-report-header-center .company-name{font-size:1rem;font-weight:700;line-height:1.2}.invoice-report-header-center .report-title{font-size:1.25rem;font-weight:800;line-height:1.1;letter-spacing:.02em}.invoice-report-header-center .report-date{margin-top:2px;font-size:1rem;font-weight:700;line-height:1.1}.invoice-sample-toolbar{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem;align-items:center}.invoice-sample-toolbar button{min-width:120px;height:40px;padding:0 1rem;border-radius:8px;font-weight:600;cursor:pointer;font-size:.875rem}.invoice-sample-toolbar .btn-secondary{border:1px solid #93c5fd;background:#eff6ff;color:#1e3a8a}.invoice-sample-toolbar .btn-secondary:hover{background:#dbeafe}.invoice-sample-combined-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.invoice-excel-group-continuation td{background:#f1f5f9a6}.invoice-excel-select-cell{white-space:nowrap;vertical-align:middle;text-align:center}.invoice-excel-line-index-empty{background:transparent}.invoice-excel-po-ordinal-cell{font-weight:700;font-variant-numeric:tabular-nums;color:#0f172a;white-space:nowrap}.invoice-sample-combined-table{width:100%;min-width:920px;table-layout:fixed;border-collapse:collapse;font-size:.8125rem}.invoice-sample-combined-table thead th{white-space:nowrap;vertical-align:bottom;text-align:left;padding:.6rem .5rem;border-bottom:2px solid #e2e8f0;background:#f8fafc;font-weight:600;color:#0f172a}.invoice-sample-combined-table tbody td{vertical-align:top;padding:.5rem;border-bottom:1px solid #f1f5f9;word-wrap:break-word;overflow-wrap:break-word}.invoice-sample-combined-table .col-num{width:5%;text-align:center;white-space:nowrap}.invoice-sample-combined-table .col-num-field{width:7%}.invoice-sample-combined-table .col-po{width:10%}.invoice-sample-combined-table .col-qty{width:5%;text-align:right;white-space:nowrap}.invoice-sample-combined-table .col-item{width:26%}.invoice-sample-combined-table .col-serial{width:22%}.invoice-sample-combined-table .col-other{width:17%}@media print{.dashboard-heading,.no-print{display:none!important}.invoice-sample-print-root{max-width:none!important;margin:0!important;padding:0!important}.invoice-sample-combined-wrap{overflow:visible!important}.invoice-sample-combined-table{min-width:0!important;font-size:9pt}.invoice-sample-combined-table thead th{background:#f1f5f9!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.invoice-sample-combined-table tbody tr{break-inside:avoid}.invoice-report-header{margin-bottom:12px;padding-bottom:6px}.invoice-report-header-center .company-name{font-size:10pt}.invoice-report-header-center .report-title{font-size:12pt}.invoice-report-header-center .report-date{font-size:10pt}}@page{size:landscape;margin:12mm}:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#0f172a}*{box-sizing:border-box}html{max-width:100%}body{margin:0;max-width:100%;overflow-x:clip}#root{max-width:100%;min-height:100vh}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px;background:linear-gradient(135deg,#eff6ff,#fff,#eef2ff)}.auth-card{width:100%;max-width:420px;background:#ffffffe6;border:1px solid #e5e7eb;border-radius:16px;padding:24px;box-shadow:0 12px 32px #0f172a1f}.auth-card-wide{max-width:620px}.auth-card h1{margin:0 0 8px;font-size:28px}.auth-card p{margin:0 0 16px;color:#475569}.auth-form{display:flex;flex-direction:column;gap:10px}.auth-form label{font-weight:600;font-size:14px}.auth-form input{padding:11px 12px;border:1px solid #d1d5db;border-radius:10px;outline:none;font-size:14px}.auth-form input:focus{border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e526}.auth-form button{margin-top:8px;padding:12px;border:none;border-radius:10px;color:#fff;background:linear-gradient(90deg,#4f46e5,#6366f1);font-weight:600;cursor:pointer}.auth-form button:disabled{opacity:.7;cursor:not-allowed}.auth-error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:8px;padding:8px 10px;font-size:14px}.auth-links{display:flex;justify-content:space-between;margin-top:14px}.auth-links a{font-size:14px;color:#4f46e5;text-decoration:none}.auth-links a:hover{text-decoration:underline}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media (max-width: 700px){.grid-2{grid-template-columns:1fr}}.portal-page{min-height:100vh;padding:28px 36px;background:#eee}.portal-header-row{display:flex;align-items:flex-start;gap:36px;margin-bottom:24px}.portal-title-block{font-size:20px;line-height:1.05;white-space:pre-line}.portal-role-label{font-size:20px;margin-top:4px}.logout-btn{margin-left:auto;border:1px solid #6fa8c3;background:transparent;padding:8px 12px;cursor:pointer}.portal-box{border:1px solid #6fa8c3;padding:30px;min-height:420px;background:transparent}.portal-box h2{margin:0 0 40px;font-size:38px;font-weight:500}.admin-menu-panel{border:1px solid #6fa8c3;padding:28px 36px;min-height:360px;margin-bottom:18px}.sidebar-layout-panel{display:grid;grid-template-columns:250px 1fr;gap:24px}.admin-menu-panel h2{margin:0 0 72px;font-size:36px;font-weight:500}.admin-sidebar{border-right:1px solid #cbd5e1;padding-right:18px}.admin-sidebar-title{font-weight:700;font-size:14px;margin-bottom:12px;color:#0f172a}.admin-sidebar-list{margin:0;padding:0;list-style:none;display:grid;gap:8px}.admin-sidebar-link{width:100%;text-align:left;border:1px solid #6fa8c3;background:transparent;color:#1e293b;padding:8px 10px;font-size:13px;cursor:pointer}.admin-sidebar-link.active{background:#e8f4f8;font-weight:700}.admin-main-content{min-width:0}.admin-workspace-box{min-height:unset}.user-dashboard-welcome{margin:0 0 16px;color:#334155;font-size:15px}.user-dashboard-cta{color:#2563eb;font-weight:600;text-decoration:none}.user-dashboard-cta:hover{text-decoration:underline}.profile-section{margin-bottom:28px;padding-bottom:24px;border-bottom:1px solid #e5e7eb}.profile-section:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.profile-section-title{margin:0 0 14px;font-size:17px;color:#0f172a}.profile-subheading{margin:20px 0 10px;font-size:14px;font-weight:600;color:#334155}.profile-edit-form{display:flex;flex-direction:column;gap:6px;max-width:420px}.profile-label{font-size:13px;font-weight:600;color:#374151;margin-top:8px}.profile-label:first-of-type{margin-top:0}.profile-input{border:1px solid #cbd5e1;border-radius:6px;padding:9px 11px;font-size:14px;width:100%;max-width:420px;box-sizing:border-box}.profile-readonly-row{display:flex;flex-direction:column;gap:4px;margin-top:8px}.profile-role-value{font-size:14px;color:#64748b}.profile-save-btn{margin-top:16px;align-self:flex-start;border:none;background:#2563eb;color:#fff;padding:10px 20px;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer}.profile-save-btn:disabled{opacity:.65;cursor:not-allowed}.profile-success{color:#15803d;font-size:14px;margin-top:8px}.profile-track-hint{margin-top:0;margin-bottom:12px}.po-track-form{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px;max-width:720px}.po-track-input{flex:1 1 220px;min-width:200px;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;padding:11px 14px;font-size:15px}.track-order-btn{flex:0 0 auto;background:#012269;color:#fff;border:none;border-radius:8px;padding:11px 24px;font-size:15px;font-weight:600;cursor:pointer;white-space:nowrap;min-height:44px}.track-order-btn:hover:not(:disabled){background:#011a52}.track-order-btn:disabled{opacity:.65;cursor:not-allowed}.profile-toast{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-radius:8px;background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;font-size:14px;margin-bottom:16px}.profile-toast-dismiss{border:none;background:transparent;color:#047857;font-size:13px;font-weight:600;cursor:pointer;text-decoration:underline}.profile-vaa-header{display:flex;flex-direction:column;gap:20px;margin-bottom:24px}@media (min-width: 900px){.profile-vaa-header{flex-direction:row;align-items:flex-start;justify-content:space-between}}.profile-vaa-main{display:flex;flex-direction:column;gap:16px}@media (min-width: 640px){.profile-vaa-main{flex-direction:row;align-items:flex-start}}.profile-vaa-avatar{width:96px;height:96px;min-width:96px;border-radius:24px;background:linear-gradient(145deg,#c4b5fd,#8b5cf6);color:#fff;display:flex;align-items:center;justify-content:center;font-size:2.25rem;font-weight:300}.profile-vaa-info{flex:1;min-width:0}.profile-vaa-name-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.profile-vaa-name{margin:0;font-size:1.25rem;font-weight:600;color:#0f172a}.profile-vaa-role-pill{background:#01226912;color:#012269;border-radius:999px;padding:4px 12px;font-size:12px;font-weight:500}.profile-vaa-contacts{display:flex;flex-wrap:wrap;gap:10px 16px;margin-top:10px}.profile-contact-chip{display:flex;align-items:center;gap:8px}.profile-contact-icon{width:28px;height:28px;border-radius:999px;background:#0000000d;display:flex;align-items:center;justify-content:center;font-size:14px}.profile-contact-text{font-size:13px;color:#000c}.profile-vaa-bio{margin:10px 0 0;font-size:14px;color:#475569;line-height:1.5}.profile-vaa-actions{display:flex;flex-direction:column;gap:10px;min-width:160px}.profile-action-btn{border-radius:6px;padding:10px 16px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}.profile-action-outline{border:2px solid #012269;background:transparent;color:#012269}.profile-action-outline:hover{background:#0122690f}.profile-action-solid{border:none;background:#012269;color:#fff}.profile-action-solid:hover{background:#011a52}.profile-vaa-grid{display:grid;grid-template-columns:1fr;gap:20px;margin-bottom:28px}@media (min-width: 960px){.profile-vaa-grid{grid-template-columns:1fr 1fr;align-items:start}}.profile-company-card{border:1px solid #d1d5db;padding:20px;background:#fff}.profile-company-title{margin:0 0 16px;text-align:center;font-size:1.125rem;font-weight:700;color:#012269}.profile-company-inner{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}.profile-company-logo{width:100px;height:100px;border-radius:36px;background:#c0ebd6;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:300;color:#0f172a}.profile-company-name{margin:8px 0 0;font-weight:600;font-size:15px}.profile-company-desc{margin:0;max-width:280px}.profile-company-points{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;width:100%;max-width:400px;margin-top:12px;text-align:center}.profile-points-label{display:block;font-size:11px;color:#64748b}.profile-points-value{display:block;font-size:13px;font-weight:500;margin-top:4px}.profile-stats-grid{display:grid;grid-template-columns:1fr;gap:12px}@media (min-width: 560px){.profile-stats-grid{grid-template-columns:1fr 1fr}}.profile-stat-card{border:1px solid #e5e7eb;background:#fff;padding:16px;border-radius:4px}.profile-stat-number{margin:0;font-size:1.75rem;font-weight:700;color:#0f172a}.profile-stat-desc{margin:6px 0 8px;font-size:13px;color:#475569;line-height:1.35}.profile-stat-badge{display:inline-block;font-size:11px;color:#15803d;font-weight:600}.profile-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.profile-modal{background:#fff;border-radius:12px;max-width:480px;width:100%;max-height:90vh;overflow-y:auto;padding:22px 24px;box-shadow:0 20px 40px #00000026}.profile-modal-wide{max-width:640px}.profile-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.profile-modal-header h2{margin:0;font-size:1.25rem;color:#0f172a}.profile-modal-close{border:none;background:transparent;font-size:1.5rem;line-height:1;color:#64748b;cursor:pointer;padding:0 4px}.profile-modal-close:hover{color:#0f172a}.profile-modal-desc{margin:8px 0 16px;font-size:13px;color:#64748b}.profile-modal-form label{display:block;font-size:12px;font-weight:600;color:#001858;margin-bottom:6px;margin-top:12px}.profile-modal-form label:first-of-type{margin-top:0}.profile-modal-form input,.profile-modal-form textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:6px;padding:9px 11px;font-size:14px}.profile-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}.profile-modal-span-2{grid-column:1 / -1}@media (max-width: 560px){.profile-modal-grid{grid-template-columns:1fr}.profile-modal-span-2{grid-column:1}}.profile-modal-error{margin-top:12px}.profile-modal-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin-top:20px}.profile-btn-outline{border:2px solid #001858;background:#fff;color:#001858;font-weight:600;padding:9px 20px;border-radius:6px;cursor:pointer;font-size:14px}.profile-btn-primary{border:none;background:#001858;color:#fff;font-weight:600;padding:9px 20px;border-radius:6px;cursor:pointer;font-size:14px}.profile-btn-primary:disabled,.profile-btn-outline:disabled{opacity:.6;cursor:not-allowed}.admin-placeholder-card{border:1px dashed #6fa8c3;background:#f8fafc;padding:18px;min-height:130px}.admin-placeholder-card h3{margin:0 0 8px}.admin-placeholder-card p{margin:0;color:#334155;overflow-wrap:anywhere}.po-form{max-width:900px}.po-form input,.po-form button,.admin-menu-row button{border:1px solid #6fa8c3;background:transparent;color:#222}.po-form input{width:300px;padding:8px 10px;margin-bottom:26px;font-size:14px}.po-form button{width:100%;padding:10px;font-size:36px}.admin-menu-row{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px;max-width:1000px;margin-bottom:20px}.admin-menu-row-mock{max-width:760px;margin-left:auto;margin-right:auto}.admin-menu-row button{padding:7px 8px;font-size:14px;letter-spacing:.2px}.admin-actions button{border:1px solid #6fa8c3;background:transparent;padding:8px 14px;cursor:pointer;margin-bottom:14px}.dashboard-error{color:#b91c1c;margin-bottom:12px}.portal-success-toast{background:#ecfdf5;border:1px solid #86efac;color:#166534;border-radius:8px;padding:10px 12px;margin-bottom:12px;font-size:14px}.invoice-results{margin-top:14px;display:grid;gap:10px}.invoice-card{border:1px solid #6fa8c3;padding:10px;background:#f8f8f8}.po-order-line-items{margin-top:12px}.po-order-line-items .invoice-line-items-table{font-size:11px;line-height:1.35}.po-order-line-items .invoice-line-items-table th,.po-order-line-items .invoice-line-items-table td{padding:6px 8px;font-size:11px}.po-order-line-items .invoice-line-items-table th{font-size:10px}.po-order-line-items .invoice-line-items-table .invoice-line-items-serial-cell{font-size:11px}.po-order-line-items-table-wrap{max-width:100%;-webkit-overflow-scrolling:touch}.po-order-line-items .po-order-line-items-table{table-layout:fixed;width:100%}.po-order-line-items .po-order-line-items-table th,.po-order-line-items .po-order-line-items-table td{overflow-wrap:anywhere;word-break:break-word}.po-order-line-items .po-order-line-items-table th{white-space:normal}.po-order-line-items .po-order-line-items-table th:nth-child(1),.po-order-line-items .po-order-line-items-table td:nth-child(1){width:36%}.po-order-line-items .po-order-line-items-table th:nth-child(2),.po-order-line-items .po-order-line-items-table td:nth-child(2){width:auto}.po-order-line-items .po-order-line-items-table th:nth-child(3),.po-order-line-items .po-order-line-items-table td:nth-child(3){width:4.5rem;min-width:4.5rem;max-width:4.5rem;text-align:center;vertical-align:top}.po-order-line-items .po-order-line-items-table td:first-child{width:36%;color:inherit;font-variant-numeric:inherit}.po-order-line-items .po-order-line-items-table .invoice-line-items-serial-cell{min-width:0}.admin-table-wrap{overflow-x:auto;border:1px solid #e5e7eb;border-radius:10px;background:#fff}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{text-align:left;border-bottom:1px solid #eef2f7;padding:11px 12px;font-size:13px}.admin-table th{background:#f8fafc;color:#334155;font-weight:700}.admin-table tbody tr:hover{background:#f8fbff}.admin-users-section-title{font-size:16px;font-weight:700;color:#1e293b;margin:0 0 12px}.admin-users-add-card{border:1px solid #e5e7eb;border-radius:10px;padding:16px 18px;background:#fff;max-width:520px}.admin-users-form{display:grid;gap:12px}.admin-users-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media (max-width: 480px){.admin-users-form-row{grid-template-columns:1fr}}.admin-users-form-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px;margin-top:8px}.admin-users-form-actions .admin-users-submit{justify-self:unset;margin-top:0}.admin-users-form-actions .admin-users-btn.secondary,.admin-users-form-actions .admin-users-submit{box-sizing:border-box;min-width:168px;width:168px;min-height:42px;height:42px;padding:0 12px;font-size:14px;display:inline-flex;align-items:center;justify-content:center;line-height:1.2}.admin-users-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#475569}.admin-users-form input,.admin-users-form select,.admin-users-form textarea{border:1px solid #6fa8c3;padding:8px 10px;font-size:14px}.admin-users-submit{border:1px solid #6fa8c3;background:#e8f4f8;padding:10px 16px;font-size:14px;cursor:pointer;justify-self:start;margin-top:4px}.admin-users-submit:disabled{opacity:.6;cursor:not-allowed}.admin-users-actions{display:flex;flex-wrap:wrap;gap:8px}.admin-users-btn{border:1px solid #6fa8c3;background:#e8f4f8;padding:6px 10px;font-size:12px;cursor:pointer}.admin-users-btn.secondary{background:#fff}.admin-users-btn.danger{border-color:#fca5a5;background:#fef2f2;color:#991b1b}.admin-users-btn:disabled{opacity:.45;cursor:not-allowed}.admin-users-empty{padding:14px 12px;margin:0}.users-table-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.users-table-head .admin-users-section-title{margin:0}.admin-user-modal{width:min(560px,100%)}.admin-agent-modal{width:min(980px,100%)}.admin-agent-modal-footer{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #e5e7eb}.admin-agent-modal-cancel{border:1px solid #d1d5db;background:#fff;color:#374151;padding:10px 18px;font-size:14px;font-weight:600;border-radius:8px;cursor:pointer}.admin-agent-modal-cancel:hover:not(:disabled){background:#f9fafb;border-color:#9ca3af}.admin-agent-modal-cancel:disabled{opacity:.6;cursor:not-allowed}.admin-agent-modal-footer .admin-agent-modal-submit{margin-top:0;justify-self:unset;border-radius:8px;font-weight:600;padding:10px 20px}.admin-agent-form{gap:14px}.admin-agent-grid{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}@media (max-width: 900px){.admin-agent-grid{grid-template-columns:1fr}}.admin-agent-grid--two{grid-template-columns:repeat(2,minmax(0,1fr))}@media (max-width: 900px){.admin-agent-grid--two{grid-template-columns:1fr}}.admin-knowledge-block{margin-top:8px;padding-top:12px;border-top:1px solid #e5e7eb}.admin-knowledge-hint{font-size:12px;line-height:1.45;margin:0 0 10px}.admin-knowledge-link{color:#6d28d9;font-weight:600;text-decoration:underline}.admin-knowledge-code{font-size:11px;background:#f3f4f6;padding:1px 5px;border-radius:4px}.admin-knowledge-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:28px 16px;border:2px dashed #a78bfa;border-radius:10px;background:#f5f3ff73;cursor:pointer;transition:background .15s}.admin-knowledge-dropzone:hover{background:#ede9fed9}.admin-knowledge-dropzone-icon{font-size:1.5rem;line-height:1;color:#2563eb}.admin-knowledge-dropzone-title{font-size:14px;font-weight:600;color:#5b21b6}.admin-knowledge-dropzone-sub{font-size:12px;color:#6b7280}.admin-knowledge-input-hidden{position:absolute;width:0;height:0;opacity:0;pointer-events:none}.admin-knowledge-or{display:flex;align-items:center;gap:12px;font-size:12px;color:#9ca3af;margin:10px 0}.admin-knowledge-or:before,.admin-knowledge-or:after{content:"";flex:1;height:1px;background:#e5e7eb}.admin-knowledge-uploaded-wrap{border:1px solid #e5e7eb;border-radius:8px;padding:10px 12px;background:#f9fafb}.admin-knowledge-uploaded-label{font-size:12px;font-weight:600;color:#4b5563;margin:0 0 8px}.admin-knowledge-file-list{list-style:none;margin:0;padding:0;max-height:160px;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.admin-knowledge-file-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;background:#fff;border:1px solid #e5e7eb;border-radius:6px;font-size:13px}.admin-knowledge-file-row--pending{background:#fffbeb;border-color:#fcd34d}.admin-knowledge-file-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-knowledge-pending-tag{color:#b45309;font-weight:500}.admin-knowledge-remove,.admin-knowledge-remove-pending{flex-shrink:0;background:none;border:none;cursor:pointer;font-size:13px;padding:4px 8px}.admin-knowledge-remove{color:#dc2626}.admin-knowledge-remove:disabled{opacity:.6;cursor:not-allowed}.admin-knowledge-remove-pending{color:#4b5563}.admin-knowledge-limit{font-size:12px;color:#b45309;margin:8px 0 0}.admin-ai-toggle-stack{display:flex;flex-direction:column;gap:10px;margin-top:4px}.admin-setting-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #e5e7eb;border-radius:10px;background:#fff}.admin-setting-card-text{min-width:0;flex:1}.admin-setting-card-title{display:block;font-weight:700;font-size:14px;color:#111827;line-height:1.3;margin-bottom:4px}.admin-setting-card-desc{display:block;font-size:12px;line-height:1.45;color:#6b7280}.admin-switch{position:relative;display:inline-flex;flex-shrink:0;width:44px;height:26px;cursor:pointer}.admin-switch-input{position:absolute;opacity:0;width:44px;height:26px;margin:0;cursor:pointer;z-index:1}.admin-switch-track{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:999px;background:#e5e7eb;transition:background .2s ease}.admin-switch-track:after{content:"";position:absolute;width:22px;height:22px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0000001f;transition:transform .2s ease}.admin-switch-input:checked+.admin-switch-track{background:#1e3a5f}.admin-switch-input:checked+.admin-switch-track:after{transform:translate(18px)}.admin-switch-input:focus-visible+.admin-switch-track{outline:2px solid #3b82f6;outline-offset:2px}.admin-switch-input:disabled+.admin-switch-track{opacity:.5;cursor:not-allowed}.admin-keyword-field{display:flex;flex-direction:column;gap:6px;margin:0}.admin-keyword-field-label{font-size:13px;font-weight:600;color:#374151}.admin-keyword-field-input{width:100%;border:1px solid #6fa8c3;border-radius:8px;padding:10px 12px;font-size:14px;box-sizing:border-box}.agent-type-block{border:1px solid #e5e7eb;border-radius:10px;padding:12px;background:#fafafa}.agent-type-title{font-weight:700;font-size:13px;color:#1f2937}.agent-type-options{display:flex;gap:16px;margin:10px 0 8px}.agent-type-option{display:inline-flex!important;align-items:center;gap:6px;font-size:14px!important;font-weight:600!important;margin:0!important}.admin-bp-avatar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;max-height:280px;overflow-y:auto;padding:10px;border:1px solid #e5e7eb;border-radius:10px;background:#f9fafb}.admin-bp-avatar-card{border:2px solid transparent;border-radius:10px;padding:8px;background:#fff;cursor:pointer;text-align:left;transition:border-color .15s,box-shadow .15s}.admin-bp-avatar-card:hover{border-color:#d4a853;box-shadow:0 2px 8px #0000000f}.admin-bp-avatar-card.selected{border-color:#9c7728;box-shadow:0 0 0 2px #9c772840}.admin-bp-avatar-thumb{aspect-ratio:1;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#eef2f7,#e2e8f0);margin-bottom:6px}.admin-bp-avatar-thumb img{width:100%;height:100%;object-fit:cover;display:block}.admin-bp-avatar-name{font-size:11px;font-weight:600;color:#374151;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.admin-bp-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}.admin-ai-subheading{font-size:13px;font-weight:700;color:#374151;margin:12px 0 6px}.live-track-row{margin-top:12px;display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}.courier-label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600}.courier-input{border:1px solid #6fa8c3;padding:6px 8px;font-size:14px;min-width:140px}.live-track-btn{border:1px solid #6fa8c3;background:#e8f4f8;padding:8px 12px;font-size:13px;cursor:pointer}.live-track-btn:disabled{opacity:.6;cursor:not-allowed}.tm-live-panel{margin-top:14px;border-radius:10px;border:1px solid #c5dce8;background:linear-gradient(165deg,#fff,#f5fafc);box-shadow:0 1px 2px #0f172a0f;overflow:hidden}.tm-live-panel-inner{padding:14px 16px 16px}.tm-live-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px}.tm-status-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.02em;border:1px solid transparent}.tm-status-delivered{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.tm-status-transit{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.tm-status-exception{background:#fef2f2;color:#b91c1c;border-color:#fecaca}.tm-status-pending{background:#fffbeb;color:#b45309;border-color:#fde68a}.tm-status-default{background:#f1f5f9;color:#334155;border-color:#e2e8f0}.tm-courier-chip{font-size:11px;font-weight:700;letter-spacing:.06em;color:#64748b;padding:3px 8px;border-radius:6px;background:#f8fafc;border:1px solid #e2e8f0}.tm-live-dl{margin:0;display:grid;gap:10px}.tm-live-dl>div{display:grid;gap:2px}.tm-live-dl dt{margin:0;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#64748b}.tm-live-dl dd{margin:0;font-size:14px;line-height:1.45;color:#0f172a}.tm-timeline-title{margin:16px 0 10px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#475569}.tm-timeline{list-style:none;margin:0;padding:0;position:relative}.tm-timeline:before{content:"";position:absolute;left:5px;top:6px;bottom:6px;width:2px;background:linear-gradient(180deg,#94a3b8,#cbd5e1);border-radius:1px}.tm-timeline-item{position:relative;padding:0 0 14px 22px;margin:0}.tm-timeline-item:last-child{padding-bottom:0}.tm-timeline-dot{position:absolute;left:0;top:5px;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid #64748b;box-shadow:0 0 0 2px #f5fafc}.tm-timeline-item:first-child .tm-timeline-dot{border-color:#2563eb;background:#eff6ff}.tm-timeline-when{display:block;font-size:12px;font-weight:600;color:#64748b;margin-bottom:2px}.tm-timeline-detail{margin:0;font-size:14px;line-height:1.45;color:#0f172a}.tm-timeline-loc{color:#475569;font-weight:500}.invoice-editor{margin:14px 0 20px;border:1px solid #6fa8c3;padding:12px;background:#f5fbfd}.invoice-editor h3{margin:0 0 8px}.hint-line{margin:0 0 12px;font-size:12px;color:#334155}.invoice-mode-tabs{display:flex;gap:8px;margin-bottom:12px}.invoice-mode-tabs button{min-height:40px;padding:0 16px;border:1px solid #93c5fd;background:#fff;color:#1e3a8a;border-radius:8px;cursor:pointer;font-size:13px;font-weight:600}.invoice-mode-tabs button.active{border-color:#2563eb;background:#dbeafe;color:#1e3a8a;font-weight:700}.upload-row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-bottom:12px}.share-drive-like-file-input::file-selector-button{margin-right:12px;padding:6px 14px;border:1px solid #64748b;border-radius:6px;background:#e2e8f0;color:#1e293b;font-weight:600;font-size:.875rem;cursor:pointer}.share-drive-like-file-input:hover::file-selector-button{background:#cbd5e1}.share-drive-like-file-input::-webkit-file-upload-button{margin-right:12px;padding:6px 14px;border:1px solid #64748b;border-radius:6px;background:#e2e8f0;color:#1e293b;font-weight:600;font-size:.875rem;cursor:pointer}.invoice-form-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px}.invoice-form-grid input,.invoice-form-grid textarea{border:1px solid #2563eb;border-radius:8px;padding:8px 10px;font-size:13px;background:#fff;color:#0f172a;box-sizing:border-box}.invoice-form-grid input::placeholder,.invoice-form-grid textarea::placeholder{color:#64748b}.invoice-form-grid textarea{min-height:58px;resize:vertical}.editor-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:12px;align-items:center}.secondary-btn{border:1px solid #93c5fd!important;background:#eff6ff!important;color:#1e3a8a!important;min-height:40px;padding:0 16px!important;border-radius:8px!important;font-weight:600!important}.table-action-btn{border:1px solid #6fa8c3;background:#f1f5f9;padding:4px 8px;cursor:pointer}.table-action-btn.secondary{border-color:#94a3b8;background:#f8fafc}.table-action-btn.active{border-color:#2563eb;background:#dbeafe;color:#1e3a8a;font-weight:700}.table-action-btn.danger{border-color:#fecaca;background:#fee2e2;color:#991b1b}.table-action-btn:disabled{opacity:.6;cursor:not-allowed}.table-actions{display:flex;gap:6px;flex-wrap:wrap}.invoice-details-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}.invoice-details-modal{width:min(900px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:12px;border:1px solid #e5e7eb;padding:14px}.invoice-details-modal.invoice-details-modal--wide{width:min(1200px,calc(100vw - 32px));max-height:min(92vh,900px);padding:20px 22px}.invoice-details-modal--wide .invoice-detail-row{grid-template-columns:minmax(160px,220px) 1fr}.invoice-items-modal-body{margin-top:4px;padding-top:4px;border-top:1px dashed #e5e7eb}.invoice-view-sheet{max-height:min(75vh,720px);overflow:auto}.invoice-view-modal .invoice-view-loading{margin:20px 0;font-size:15px;color:#475569}.invoice-view-hero{display:flex;flex-wrap:wrap;gap:20px 32px;padding:12px 14px;margin-bottom:14px;background:linear-gradient(180deg,#f1f5f9,#f8fafc);border:1px solid #e2e8f0;border-radius:10px}.invoice-view-hero-block{display:flex;flex-direction:column;gap:4px;min-width:140px}.invoice-view-hero-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#64748b}.invoice-view-hero-value{font-size:1.25rem;font-weight:700;color:#0f172a}.invoice-view-address-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}@media (max-width: 720px){.invoice-view-address-row{grid-template-columns:1fr}}.invoice-view-address-card{border:1px solid #e5e7eb;border-radius:10px;padding:12px 14px;background:#fff;min-height:4.5rem}.invoice-view-address-title{margin:0 0 8px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#64748b}.invoice-view-address-name{font-weight:600;font-size:15px;color:#0f172a;margin-bottom:6px}.invoice-view-address-body{font-size:14px;line-height:1.45;color:#334155;white-space:pre-wrap;word-break:break-word}.invoice-view-meta-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px 16px;padding:12px 0 4px;border-top:1px solid #e5e7eb}.invoice-view-meta-cell{display:flex;flex-direction:column;gap:2px;padding-bottom:8px;border-bottom:1px dashed #e5e7eb}.invoice-view-meta-key{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:#64748b}.invoice-view-meta-value{font-size:14px;color:#0f172a;word-break:break-word}.invoice-view-line-items-wrap{border-top:none;padding-top:0}.invoice-view-line-items-empty{margin:0;font-size:14px;color:#64748b;line-height:1.5}.invoice-view-line-items-heading{margin:14px 0 8px;font-size:1rem;font-weight:700;color:#0f172a}.live-tracking-modal .tm-live-panel{margin-top:0}.live-tracking-meta{margin:6px 0 0;font-size:13px;color:#64748b;line-height:1.4;word-break:break-word}.live-tracking-loading{margin:12px 0 0;font-size:14px;color:#475569}.live-tracking-modal-body{margin-top:4px}.invoice-details-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.invoice-details-head h3{margin:0}.invoice-details-close{border:1px solid #d1d5db;background:#fff;border-radius:6px;width:28px;height:28px;cursor:pointer}.invoice-details-grid{display:grid;gap:8px}.invoice-detail-row{display:grid;grid-template-columns:180px 1fr;gap:10px;border-bottom:1px dashed #e5e7eb;padding-bottom:6px}.invoice-detail-key{font-weight:700;color:#334155;word-break:break-word}.invoice-detail-value{color:#0f172a;word-break:break-word}.invoice-line-items-table-wrap{overflow-x:auto;margin:0;border:1px solid #e5e7eb;border-radius:8px;background:#fff}.invoice-line-items-table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.45}.invoice-line-items-table th,.invoice-line-items-table td{padding:10px 12px;text-align:left;border-bottom:1px solid #e5e7eb;vertical-align:top}.invoice-line-items-table th{background:#f8fafc;font-weight:700;color:#334155;font-size:11px;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}.invoice-line-items-table tbody tr:last-child td{border-bottom:none}.invoice-line-items-table td:first-child{width:2.75rem;color:#64748b;font-variant-numeric:tabular-nums}.invoice-line-items-table .invoice-line-items-serial-cell{word-break:break-word;min-width:140px;font-size:13px;color:#0f172a}.invoice-line-items-table .invoice-line-item-empty{color:#94a3b8;font-style:italic}.invoice-line-item-empty{opacity:.7;font-style:italic}@media (max-width: 900px){.invoice-form-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}.sidebar-layout-panel{grid-template-columns:1fr}.admin-sidebar{border-right:none;border-bottom:1px solid #cbd5e1;padding-right:0;padding-bottom:12px}}.portal-app-shell{min-height:100vh;background:#f5f6f9;width:100%;max-width:100%;min-width:0;overflow-x:clip}.portal-top-header{height:52px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:16px 24px;padding:0 16px;width:100%;max-width:100%;min-width:0;box-sizing:border-box}.portal-logo{border:none;background:transparent;color:#0f3d76;font-weight:700;font-size:20px;cursor:pointer;flex:0 0 auto;padding:0;text-align:left}.portal-top-nav{display:flex;flex-wrap:wrap;gap:18px;row-gap:8px;align-items:center;flex:1 1 auto;min-width:0}.portal-top-link{color:#374151;text-decoration:none;font-size:14px}.portal-top-link span.active{color:#111827;font-weight:700}.portal-top-right{display:flex;align-items:center;gap:14px;flex:0 0 auto;margin-left:auto}.portal-guest-auth{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.portal-guest-link{font-size:13px;font-weight:600;letter-spacing:.04em;text-decoration:none;color:#0f3d76;padding:8px 12px;border-radius:8px;border:1px solid #6fa8c3;background:#e8f4f8}.portal-guest-link-secondary{background:#fff;font-weight:600}.portal-guest-link:hover{opacity:.92}.portal-nav-toggle{display:none;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid #e5e7eb;border-radius:8px;background:#fff;cursor:pointer;flex-shrink:0;-webkit-tap-highlight-color:transparent}.portal-nav-toggle:focus-visible{outline:2px solid #0f3d76;outline-offset:2px}.portal-nav-toggle-bars{display:flex;flex-direction:column;gap:5px;width:18px}.portal-nav-toggle-bars span{display:block;height:2px;width:100%;background:#0f172a;border-radius:1px;transition:transform .2s ease,opacity .2s ease}.portal-nav-toggle.is-open .portal-nav-toggle-bars span:nth-child(1){transform:translateY(7px) rotate(45deg)}.portal-nav-toggle.is-open .portal-nav-toggle-bars span:nth-child(2){opacity:0}.portal-nav-toggle.is-open .portal-nav-toggle-bars span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}.portal-profile-wrap{position:relative}.portal-bell{font-size:17px}.portal-avatar{width:28px;height:28px;border-radius:50%;border:none;background:#0f3d76;color:#fff;cursor:pointer;font-size:12px;font-weight:700}.portal-profile-dropdown{position:absolute;right:0;top:36px;width:150px;background:#fff;border:1px solid #e5e7eb;border-radius:6px;box-shadow:0 10px 28px #0f172a1f;z-index:20}.portal-profile-dropdown button{width:100%;border:none;background:transparent;text-align:left;padding:10px 12px;cursor:pointer;font-size:14px}.portal-profile-dropdown button:hover{background:#f8fafc}.portal-content{padding:18px 20px 24px;width:100%;max-width:100%;min-width:0;box-sizing:border-box}.dashboard-wrap{display:grid;gap:14px;min-width:0;max-width:100%}.dashboard-heading h1{margin:0;font-size:28px;overflow-wrap:anywhere;word-break:break-word}.dashboard-heading p{margin:4px 0 0;color:#6b7280;overflow-wrap:anywhere;word-break:break-word}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;min-width:0}.stat-card{background:#fff;border:1px solid #e5e7eb;padding:14px}.stat-value{font-size:33px;font-weight:700;color:#1f3f77}.stat-title{margin-top:4px;font-weight:600}.stat-note{margin-top:2px;color:#6b7280;font-size:12px}.panel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}.panel-box{background:#fff;border:1px solid #e5e7eb;padding:14px;min-width:0;max-width:100%;overflow-wrap:anywhere}.panel-box h3{margin:0 0 10px}.panel-big{margin:0;font-size:34px;font-weight:700}.panel-muted{margin:0;color:#6b7280}@media (max-width: 980px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-grid{grid-template-columns:1fr}.portal-top-header{flex-wrap:wrap;height:auto;min-height:52px;padding:8px 10px;align-items:center;position:relative;z-index:100;row-gap:0;column-gap:10px}.portal-logo{order:1;flex:1 1 auto;min-width:0;max-width:calc(100% - 132px);font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-top-right{order:2;margin-left:0;gap:8px;flex-shrink:0}.portal-nav-toggle{display:inline-flex;order:-1}.portal-top-nav{order:3;flex:1 1 100%;width:100%;max-width:100%;min-width:0;display:none;flex-direction:column;flex-wrap:nowrap;gap:0;max-height:min(70vh,520px);overflow-y:auto;overflow-x:hidden;margin:10px 0 0;padding:4px 0 10px;border-top:1px solid #e5e7eb;-webkit-overflow-scrolling:touch}.portal-top-header.portal-mobile-nav-open .portal-top-nav{display:flex}.portal-top-link{padding:12px 4px;border-bottom:1px solid #f1f5f9;flex-shrink:0}.portal-top-link:last-of-type{border-bottom:none}.portal-content{padding:12px 12px 20px}.dashboard-heading h1{font-size:22px;line-height:1.25}.dashboard-heading p{font-size:14px}.admin-table th,.admin-table td{padding:9px 8px;font-size:12px}.invoice-detail-row{grid-template-columns:1fr;gap:4px}.po-track-form{flex-direction:column;align-items:stretch}.po-track-input{width:100%;min-width:0;box-sizing:border-box}.track-order-btn{width:100%}}@media print{.portal-bell,.portal-profile-wrap,.portal-nav-toggle{display:none!important}}
