@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";:root{--bg:#0f1117;--bg-card:#161822;--bg-input:#1e2030;--border:#2a2d3e;--text:#e2e8f0;--text-muted:#8892a6;--accent:#6366f1;--accent2:#818cf8;--cyan:#22d3ee;--green:#34d399;--amber:#fbbf24;--red:#f87171;--pink:#f472b6;--radius:12px;--sidebar-w:220px;--section-header:linear-gradient(135deg, #2d3148 0%, #3a3f5c 100%);--result-header:linear-gradient(135deg, #1a5276 0%, #2471a3 100%)}[data-theme=light]{--bg:#f8f9fa;--bg-card:#fff;--bg-input:#fff;--border:#e2e8f0;--text:#1e293b;--text-muted:#64748b;--accent:#4f46e5;--accent2:#6366f1;--cyan:#0891b2;--green:#059669;--amber:#d97706;--red:#dc2626;--pink:#db2777;--section-header:linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);--result-header:linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%)}[data-theme=light] .section-header{color:#334155;border-bottom:1px solid #cbd5e1}[data-theme=light] .section-header.result-header{color:#0369a1;border-bottom:1px solid #7dd3fc}[data-theme=light] .form-table input,[data-theme=light] .form-table select,[data-theme=light] .data-table input,[data-theme=light] .data-table select,[data-theme=light] .form-group input,[data-theme=light] .form-group select,[data-theme=light] .country-select-wrap input{background:#fff;border-color:#cbd5e1}[data-theme=light] .data-table th,[data-theme=light] th{color:#475569;background:#f1f5f9;border-bottom-color:#cbd5e1}[data-theme=light] .data-table td,[data-theme=light] td{border-bottom-color:#e2e8f0}[data-theme=light] tr:hover td{background:#f8fafc}[data-theme=light] .result-total-row td{background:#f0f9ff;border-bottom-color:#0ea5e9}[data-theme=light] .result-section-row td{background:#eef2ff;border-bottom-color:#6366f1}[data-theme=light] .result-item-total-row td{background:#fffbeb;border-bottom-color:#fcd34d}[data-theme=light] .sidebar-nav .nav-link:hover{color:#0f172a;background:#f1f5f9}[data-theme=light] .sidebar-nav .nav-link.active{color:#4f46e5;background:#eef2ff}[data-theme=light] .postal-dropdown,[data-theme=light] .country-dropdown{box-shadow:0 8px 24px #0000001a}[data-theme=light] .postal-option:hover,[data-theme=light] .country-option:hover{background:#f1f5f9}*{box-sizing:border-box;margin:0;padding:0}body{background:var(--bg);color:var(--text);font-family:Inter,sans-serif;line-height:1.6}.app-layout{min-height:100vh;display:flex}.sidebar{width:var(--sidebar-w);background:var(--bg-card);border-right:1px solid var(--border);z-index:10;flex-direction:column;height:100vh;display:flex;position:fixed}.sidebar-brand{color:var(--cyan);border-bottom:1px solid var(--border);align-items:center;gap:.75rem;padding:1.25rem 1rem;font-size:1.1rem;font-weight:700;display:flex}.sidebar-nav{flex-direction:column;flex:1;gap:4px;padding:.75rem .5rem;display:flex}.nav-link{color:var(--text-muted);border-radius:8px;align-items:center;gap:.6rem;padding:.6rem .75rem;font-size:.85rem;font-weight:500;text-decoration:none;transition:all .2s;display:flex}.nav-link:hover{background:var(--bg-input);color:var(--text)}.nav-link.active{color:var(--accent2);background:#6366f126}.sidebar-footer{color:var(--text-muted);border-top:1px solid var(--border);padding:.75rem 1rem;font-size:.7rem}.main-content{margin-left:var(--sidebar-w);flex:1;min-height:100vh;padding:1.5rem 2rem}.page-header{margin-bottom:1.5rem}.page-header h1{background:linear-gradient(135deg, var(--accent), var(--cyan));-webkit-text-fill-color:transparent;color:#0000;-webkit-background-clip:text;background-clip:text;font-size:1.5rem;font-weight:700}.page-header p{color:var(--text-muted);margin-top:.25rem;font-size:.85rem}.calc-section{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:.75rem}.form-grid-3{grid-template-columns:1fr 1fr 1fr;gap:.75rem;margin-bottom:0;display:grid}.form-grid-2{grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:0;display:grid}.form-grid-3 .calc-section,.form-grid-2 .calc-section{margin-bottom:.75rem}@media (width<=1200px){.form-grid-3{grid-template-columns:1fr 1fr}}@media (width<=800px){.form-grid-3,.form-grid-2{grid-template-columns:1fr}}.section-header{background:var(--section-header);color:var(--text);border-bottom:1px solid var(--border);text-transform:capitalize;letter-spacing:.3px;border-radius:calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;justify-content:space-between;align-items:center;padding:.5rem .85rem;font-size:.82rem;font-weight:600;display:flex}.section-header.result-header{background:var(--result-header);font-size:.88rem}.refresh-btn{color:var(--text);cursor:pointer;background:0 0;border:1px solid #fff3;border-radius:6px;align-items:center;padding:3px 6px;transition:all .2s;display:flex}.refresh-btn:hover{border-color:var(--cyan);color:var(--cyan)}.section-body{padding:.6rem .85rem}.country-note{color:var(--amber,#f59e0b);opacity:.85;padding:.3rem 0;font-size:.72rem}.postal-suggest-wrap{z-index:40;position:relative}.postal-dropdown{background:var(--bg-card);border:1px solid var(--border);z-index:90;border-radius:0 0 8px 8px;max-height:180px;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 8px 24px #0000004d}.postal-option{cursor:pointer;border-bottom:1px solid var(--border);align-items:center;gap:.5rem;padding:.45rem .7rem;font-size:.82rem;transition:background .15s;display:flex}.postal-option:last-child{border-bottom:none}.postal-option:hover{background:#6366f126}.postal-option strong{color:var(--cyan);min-width:60px}.postal-place{color:var(--text-muted);font-size:.75rem}.form-table{border-collapse:collapse;width:100%}.form-table td{vertical-align:middle;padding:.4rem .5rem}.form-table .form-label{width:130px;min-width:130px;color:var(--text-muted);white-space:nowrap;font-size:.82rem;font-weight:600}.form-table input,.form-table select{background:var(--bg-input);border:1px solid var(--border);width:100%;color:var(--text);border-radius:8px;outline:none;padding:.5rem .7rem;font-family:inherit;font-size:.85rem;transition:border-color .2s}.form-table input:focus,.form-table select:focus{border-color:var(--accent);box-shadow:0 0 0 2px #6366f126}.form-table input::placeholder{color:var(--text-muted);opacity:.5}.data-table{border-collapse:collapse;width:100%;font-size:.82rem}.data-table th{background:var(--bg-input);text-align:left;color:var(--text-muted);text-transform:capitalize;border-bottom:1px solid var(--border);padding:.5rem .6rem;font-size:.75rem;font-weight:600}.data-table td{border-bottom:1px solid #2a2d3e80;padding:.35rem .4rem}.data-table input,.data-table select{background:var(--bg-input);border:1px solid var(--border);width:100%;color:var(--text);border-radius:6px;outline:none;padding:.4rem .6rem;font-family:inherit;font-size:.82rem;transition:border-color .2s}.data-table input:focus,.data-table select:focus{border-color:var(--accent)}.remove-btn{color:var(--red);cursor:pointer;opacity:.6;background:0 0;border:none;padding:2px 6px;font-size:1.1rem;font-weight:700;transition:opacity .2s}.remove-btn:hover{opacity:1}.add-row-btn{border:1px dashed var(--border);color:var(--text-muted);cursor:pointer;background:0 0;border-radius:6px;margin-top:.5rem;padding:.3rem .8rem;font-family:inherit;font-size:.78rem;transition:all .2s;display:inline-block}.add-row-btn:hover{border-color:var(--accent);color:var(--accent2)}.calc-action{justify-content:center;margin:1.25rem 0;display:flex}.calc-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#1a5276,#2471a3);border:none;border-radius:8px;align-items:center;gap:.4rem;padding:.65rem 2.5rem;font-family:inherit;font-size:.92rem;font-weight:600;transition:all .2s;display:inline-flex}.calc-btn:hover{transform:translateY(-1px);box-shadow:0 4px 15px #2471a366}.calc-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.result-table{border-collapse:collapse;width:100%;font-size:.82rem}.result-table td{border-bottom:1px solid #2a2d3e80;padding:.45rem .6rem}.result-table .result-label{color:var(--text);white-space:nowrap;width:180px;font-weight:600}.result-table .result-type{color:var(--text-muted);font-size:.8rem}.result-table .result-value{text-align:right;white-space:nowrap;font-weight:500}.result-total-row td{border-bottom:2px solid var(--cyan);background:#22d3ee0f}.result-total-row .result-label{color:var(--cyan);font-size:.88rem}.result-total-row .result-value{color:var(--cyan);font-size:.92rem;font-weight:700}.result-section-row td{border-bottom:1px solid var(--accent);background:#6366f10f;padding-top:.6rem}.result-section-row .result-label{color:var(--accent2);font-size:.85rem;font-weight:700}.result-item-total-row td{background:#fbbf240a;border-bottom:1px solid #fbbf244d}.result-item-total-row .result-value{color:var(--amber);font-weight:700}.result-item-total-row .result-type{color:var(--amber);font-weight:600}.formula-type,.formula-value{opacity:.7;font-style:italic;color:var(--text-muted)!important;font-size:.72rem!important}.note-type,.note-value{color:var(--green)!important;font-size:.75rem!important}.error-type{color:var(--red)!important;font-weight:600!important}.error-value{max-width:400px;color:var(--red)!important;white-space:normal!important;font-size:.78rem!important}.error-box{border:1px solid var(--red);color:var(--red);background:#f8717114;border-radius:8px;padding:.75rem 1rem;font-size:.85rem}.session-info{color:var(--text-muted);text-align:right;margin-top:.75rem;font-size:.75rem}.card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:1rem;padding:1.25rem}.card-title{align-items:center;gap:.5rem;margin-bottom:1rem;font-size:.9rem;font-weight:600;display:flex}.form-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.75rem;display:grid}.form-group{flex-direction:column;gap:.3rem;display:flex}.form-group label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;font-size:.75rem;font-weight:600}.form-group input,.form-group select{background:var(--bg-input);border:1px solid var(--border);color:var(--text);border-radius:8px;outline:none;padding:.55rem .75rem;font-family:inherit;font-size:.85rem;transition:border-color .2s}.form-group input:focus,.form-group select:focus{border-color:var(--accent)}.form-group input::placeholder{color:var(--text-muted);opacity:.5}.btn{cursor:pointer;border:none;border-radius:8px;align-items:center;gap:.4rem;padding:.55rem 1.25rem;font-family:inherit;font-size:.85rem;font-weight:600;transition:all .2s;display:inline-flex}.btn-primary{background:linear-gradient(135deg, var(--accent), var(--accent2));color:#fff}.btn-primary:hover{opacity:.9;transform:translateY(-1px)}.btn-primary:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn-danger{color:var(--red);background:#f8717126}.btn-danger:hover{background:#f8717140}.btn-outline{border:1px solid var(--border);color:var(--text-muted);background:0 0}.btn-outline:hover{border-color:var(--accent);color:var(--accent2)}.btn-sm{padding:.35rem .75rem;font-size:.78rem}.btn-success{color:var(--green);background:#34d39926}.btn-success:hover{background:#34d39940}.table-wrap{border-radius:var(--radius);border:1px solid var(--border);overflow-x:auto}table:not(.form-table):not(.data-table):not(.result-table){border-collapse:collapse;width:100%;font-size:.8rem}th{background:var(--bg-input);text-align:left;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;white-space:nowrap;border-bottom:1px solid var(--border);padding:.6rem .75rem;font-size:.72rem;font-weight:600}td{border-bottom:1px solid var(--border);white-space:nowrap;padding:.55rem .75rem}tr:hover td{background:#6366f10a}.text-right{text-align:right}.text-center{text-align:center}.badge{border-radius:50px;padding:.15rem .5rem;font-size:.7rem;font-weight:600;display:inline-block}.badge-green{color:var(--green);background:#34d39926}.badge-red{color:var(--red);background:#f8717126}.badge-amber{color:var(--amber);background:#fbbf2426}.badge-cyan{color:var(--cyan);background:#22d3ee1f}.country-select-wrap{z-index:50;position:relative}.country-select-wrap input{background:var(--bg-input);border:1px solid var(--border);width:100%;color:var(--text);border-radius:8px;outline:none;padding:.5rem 2rem .5rem .7rem;font-family:inherit;font-size:.85rem}.country-select-wrap input:focus{border-color:var(--accent)}.country-chevron{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.country-dropdown{background:var(--bg-card);border:1px solid var(--border);z-index:999;border-radius:8px;max-height:200px;margin-top:4px;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 8px 24px #0006}.country-option{cursor:pointer;padding:.45rem .75rem;font-size:.82rem;transition:background .15s}.country-option:hover{background:var(--bg-input)}.loading-overlay{z-index:100;background:#0f1117d9;flex-direction:column;justify-content:center;align-items:center;gap:1rem;display:flex;position:fixed;inset:0}@keyframes spin{to{transform:rotate(360deg)}}.spin{animation:1s linear infinite spin}.result-section{animation:.3s fadeIn}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.result-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.75rem;margin-bottom:1rem;display:grid}.result-stat{background:var(--bg-input);border:1px solid var(--border);text-align:center;border-radius:10px;padding:.75rem}.result-stat .label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;font-size:.68rem}.result-stat .value{margin-top:.25rem;font-size:1.1rem;font-weight:700}.result-stat .formula{color:var(--text-muted);word-break:break-all;margin-top:.15rem;font-size:.65rem}.flex-between{justify-content:space-between;align-items:center;display:flex}.gap-sm{gap:.5rem}.gap-md{gap:.75rem}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mb-1{margin-bottom:.5rem}.action-row{flex-wrap:wrap;align-items:center;gap:.75rem;margin-top:1rem;display:flex}.item-card{background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:.75rem;padding:1rem;position:relative}.item-card-header{justify-content:space-between;align-items:center;margin-bottom:.75rem;display:flex}.item-number{color:var(--accent2);font-size:.8rem;font-weight:700}.btn-remove-item{color:var(--red);cursor:pointer;opacity:.6;background:0 0;border:none;font-size:.8rem;transition:opacity .2s}.btn-remove-item:hover{opacity:1}.summary-stats-row{flex-wrap:wrap;gap:.6rem;display:flex}.summary-stat-card{background:var(--bg-input);border:1px solid var(--border);text-align:center;border-radius:10px;min-width:130px;padding:.65rem 1rem;transition:transform .15s}.summary-stat-card:hover{transform:translateY(-2px)}.stat-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;white-space:nowrap;font-size:.68rem}.stat-value{color:var(--text);margin-top:.15rem;font-size:1.05rem;font-weight:700}.stat-currency{color:var(--text-muted);margin-top:.1rem;font-size:.65rem}.stat-desc{color:var(--text-muted);opacity:.6;margin-top:.25rem;font-size:.6rem;line-height:1.3}.stat-fx-note{color:var(--amber,#f59e0b);opacity:.85;border-top:1px dashed #fbbf244d;margin-top:.3rem;padding-top:.25rem;font-size:.6rem;line-height:1.3}.sheet-table-wrap{overflow-x:auto}.sheet-table{border-collapse:collapse;width:100%;font-size:.8rem}.sheet-th{background:var(--bg-input);text-align:left;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px;white-space:nowrap;border-bottom:2px solid var(--border);z-index:2;padding:.55rem .65rem;font-size:.72rem;font-weight:600;position:sticky;top:0}.sheet-td{white-space:nowrap;border-bottom:1px solid #2a2d3e99;padding:.5rem .65rem;font-size:.8rem}.sheet-table tbody tr:nth-child(2n) .sheet-td{background:#1e203080}.sheet-table tbody tr:hover .sheet-td{background:#6366f10f}.hs-code-cell{color:var(--accent2);background:#6366f114;border-radius:4px;padding:.1rem .4rem;font-size:.78rem}.formula-cell{opacity:.7;text-overflow:ellipsis;max-width:160px;overflow:hidden;color:var(--text-muted)!important;font-size:.7rem!important}.sheet-total-cell{color:var(--cyan)!important;font-size:.85rem!important;font-weight:700!important}.note-cell{max-width:200px;white-space:normal!important}.sheet-row-error .sheet-td{background:#f871710a!important}.sheet-grand-total .sheet-td{border-top:2px solid var(--cyan);border-bottom:none;padding-top:.7rem;padding-bottom:.7rem;background:#22d3ee0f!important}.sheet-grand-value{color:var(--cyan)!important;font-size:.95rem!important;font-weight:700!important}.swal2-popup{background:var(--bg-card)!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:var(--radius)!important}.swal2-title{color:var(--text)!important;font-size:1.2rem!important}.swal2-html-container{color:var(--text-muted)!important}.swal2-confirm{border-radius:8px!important}.items-card-list{flex-direction:column;gap:1rem;padding:1rem;display:flex}.item-calc-card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;transition:border-color .2s,transform .2s;overflow:hidden;box-shadow:0 4px 20px #00000026}.item-calc-card:hover{border-color:#6366f166;transform:translateY(-2px)}.item-calc-card.item-card-error{border-color:#ef444466}.item-calc-header{border-bottom:1px solid var(--border);background:#1e203099;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;padding:.75rem 1rem;display:flex}.item-badge-wrap{align-items:center;gap:.75rem;display:flex}.item-badge{color:var(--accent);background:#6366f11f;border:1px solid #6366f140;border-radius:6px;padding:.25rem .6rem;font-size:.8rem;font-weight:700}.item-hs{font-family:var(--font-mono,monospace);color:var(--accent2);font-size:.82rem}.item-total-duty{color:var(--cyan);background:#22d3ee14;border:1px solid #22d3ee4d;border-radius:8px;padding:.3rem .75rem;font-size:.88rem;font-weight:700}.item-calc-body{padding:.75rem 1rem}.item-details-table{border-collapse:collapse;width:100%;font-size:.82rem}.item-details-table th{text-align:left;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;border-bottom:1px solid var(--border);padding:.4rem .5rem;font-size:.7rem}.item-details-table td{border-bottom:1px dashed #ffffff0d;padding:.5rem}.item-details-table tr:last-child td{border-bottom:none}.item-details-label{font-weight:600}.item-details-value{text-align:right;font-weight:600}.item-details-formula{font-family:var(--font-mono,monospace);color:var(--text-muted);font-size:.76rem}.item-calc-footer{border-top:1px dashed var(--border);background:#00000014;flex-direction:column;gap:.4rem;padding:.6rem 1rem;display:flex}.item-notes-wrap{flex-wrap:wrap;gap:.5rem;display:flex}.grand-total-banner{background:#22d3ee0a;border:1px solid #22d3ee40;border-radius:12px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin:1rem;padding:1rem 1.25rem;display:flex}.grand-total-title{color:var(--text-muted);text-transform:uppercase;letter-spacing:1px;font-size:.8rem;font-weight:700}.grand-total-amount-box{align-items:baseline;gap:.4rem;display:flex}.grand-total-amount{color:var(--cyan);font-size:1.25rem;font-weight:800}.grand-total-currency{color:var(--text-muted);font-size:.8rem;font-weight:600}@media (width<=768px){.sidebar{display:none}.main-content{margin-left:0;padding:1rem}.form-grid{grid-template-columns:1fr 1fr}.form-table .form-label{width:80px}}.supp-modal-overlay{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:1000;background:#0f1117bf;justify-content:center;align-items:center;animation:.2s ease-out suppFadeIn;display:flex;position:fixed;inset:0}.supp-modal-content{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;width:95%;max-width:480px;animation:.25s cubic-bezier(.16,1,.3,1) suppSlideUp;display:flex;overflow:hidden;box-shadow:0 25px 50px -12px #00000080}.supp-modal-header{background:var(--section-header);color:var(--text);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:.85rem 1.25rem;font-size:.9rem;font-weight:600;display:flex}.supp-modal-close{color:var(--text-muted);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:2px;font-size:1.4rem;line-height:1;transition:color .2s;display:flex}.supp-modal-close:hover{color:var(--text)}.supp-modal-body{max-height:400px;padding:1.25rem;overflow-y:auto}.supp-modal-footer{border-top:1px solid var(--border);background:#0f111733;justify-content:flex-end;gap:.75rem;padding:.85rem 1.25rem;display:flex}.supp-table-container{border:1px solid var(--border);background:#0f111740;border-radius:8px;max-height:250px;margin-bottom:1rem;overflow-y:auto}.supp-modal-btn-add{color:var(--accent2);cursor:pointer;background:#6366f114;border:1px dashed #6366f14d;border-radius:8px;justify-content:center;align-items:center;gap:.5rem;width:100%;margin-bottom:.5rem;padding:.5rem 1rem;font-size:.82rem;font-weight:500;transition:all .2s;display:flex}.supp-modal-btn-add:hover{border-color:var(--accent);color:var(--text);background:#6366f126}.supp-modal-btn-save{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;padding:.5rem 1.25rem;font-size:.85rem;font-weight:600;transition:opacity .2s}.supp-modal-btn-save:hover{opacity:.95}.supp-modal-btn-cancel{background:var(--bg-input);color:var(--text-muted);border:1px solid var(--border);cursor:pointer;border-radius:8px;padding:.5rem 1.25rem;font-size:.85rem;font-weight:500;transition:all .2s}.supp-modal-btn-cancel:hover{background:var(--border);color:var(--text)}.supp-unit-badge{color:var(--accent2);background:#6366f11f;border:1px solid #6366f159;border-radius:4px;align-items:center;margin:1px;padding:2px 6px;font-size:.72rem;font-weight:600;display:inline-flex}.supp-unit-badge-default{color:var(--text-muted);background:#8892a614;border:1px solid #8892a633;border-radius:4px;align-items:center;padding:2px 6px;font-size:.72rem;font-weight:500;display:inline-flex}.btn-supp-configure{background:var(--bg-input);border:1px solid var(--border);color:var(--text);cursor:pointer;text-align:left;border-radius:6px;justify-content:center;align-items:center;gap:.4rem;width:100%;padding:.4rem .75rem;font-size:.78rem;font-weight:500;transition:all .2s;display:inline-flex}.btn-supp-configure:hover{border-color:var(--accent);background:#6366f10d}@keyframes suppFadeIn{0%{opacity:0}to{opacity:1}}@keyframes suppSlideUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.switch-container{align-items:center;gap:.6rem;margin-bottom:.75rem;display:flex}.switch-label{color:var(--text-muted);-webkit-user-select:none;user-select:none;font-size:.8rem;font-weight:600;transition:color .2s}.switch{width:38px;height:20px;display:inline-block;position:relative}.switch input{opacity:0;width:0;height:0}.slider{cursor:pointer;background-color:var(--border);border:1px solid #ffffff0d;border-radius:20px;transition:all .3s cubic-bezier(.4,0,.2,1);position:absolute;inset:0}.slider:before{content:"";background-color:var(--text);border-radius:50%;width:14px;height:14px;transition:all .3s cubic-bezier(.4,0,.2,1);position:absolute;bottom:2px;left:2px;box-shadow:0 2px 4px #0003}input:checked+.slider{background-color:var(--accent)}input:checked+.slider:before{transform:translate(18px)}.auto-charges-banner{transition:all .3s cubic-bezier(.4,0,.2,1)}.auto-charges-banner:hover{transform:translateY(-1px);border-color:var(--accent)!important;background:#6366f10d!important}.gts-modal-overlay{-webkit-backdrop-filter:blur(8px);z-index:1000;background:#0a0b0fd9;justify-content:center;align-items:center;animation:.3s cubic-bezier(.16,1,.3,1) gtsFadeIn;display:flex;position:fixed;inset:0}.gts-modal-content{border:1px solid var(--border);background:#161822f2;border-radius:16px;flex-direction:column;width:min(95vw,1150px);height:min(90vh,780px);animation:.35s cubic-bezier(.16,1,.3,1) gtsSlideUp;display:flex;overflow:hidden;box-shadow:0 24px 60px #0009,inset 0 1px 1px #ffffff0d}.gts-modal-header{border-bottom:1px solid var(--border);background:#161822fa;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;display:flex}.gts-modal-title-wrap{flex-direction:column;gap:2px;display:flex}.gts-modal-title{color:var(--cyan);align-items:center;gap:8px;font-size:1.15rem;font-weight:700;display:flex}.gts-modal-subtitle{color:var(--text-muted);font-size:.78rem}.gts-modal-close-btn{border:1px solid var(--border);color:var(--text-muted);cursor:pointer;background:#ffffff08;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:1.1rem;transition:all .2s;display:flex}.gts-modal-close-btn:hover{color:var(--red);background:#f871711f;border-color:#f871714d;transform:rotate(90deg)}.gts-layout{grid-template-columns:1fr;height:calc(100% - 70px);display:grid;overflow:hidden}@media (width<=992px){.gts-layout{grid-template-rows:1fr auto;grid-template-columns:1fr}.gts-sidebar{border-top:1px solid var(--border);max-height:250px;border-left:none!important}}.gts-main-content{flex-direction:column;padding:1.5rem;display:flex;overflow-y:auto}.gts-sidebar{border-left:1px solid var(--border);background:#1e203066;flex-direction:column;gap:1.25rem;padding:1.5rem;display:flex;overflow-y:auto}.gts-tabs-container{border-bottom:1px solid var(--border);gap:8px;margin-bottom:1.25rem;padding-bottom:1px;display:flex}.gts-tab-btn{color:var(--text-muted);cursor:pointer;background:0 0;border:none;padding:.75rem 1.25rem;font-size:.85rem;font-weight:600;transition:all .2s;position:relative}.gts-tab-btn:hover{color:var(--text)}.gts-tab-btn.active{color:var(--cyan)}.gts-tab-btn.active:after{content:"";background:var(--cyan);border-radius:2px;height:2px;position:absolute;bottom:-2px;left:0;right:0;box-shadow:0 0 10px #22d3ee66}.gts-requirement-card{border:1px solid var(--border);background:#1e203080;border-radius:10px;flex-direction:column;gap:8px;margin-bottom:1rem;padding:1.25rem;transition:transform .2s,border-color .2s;display:flex}.gts-requirement-card:hover{border-color:#22d3ee40;transform:translateY(-1px)}.gts-requirement-header{border-bottom:1px solid #2a2d3e80;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px;padding-bottom:8px;display:flex}.gts-requirement-name{color:var(--text);font-size:.95rem;font-weight:700}.gts-status-badge{text-transform:capitalize;border-radius:4px;padding:3px 8px;font-size:.72rem;font-weight:600}.gts-status-badge.required{color:var(--red);background:#f8717126;border:1px solid #f8717166}.gts-status-badge.might-be-required{color:var(--amber);background:#fbbf2426;border:1px solid #fbbf2466}.gts-status-badge.no-restrictions{color:var(--green);background:#34d39926;border:1px solid #34d39966}.gts-detail-row{grid-template-columns:140px 1fr;gap:8px;font-size:.8rem;line-height:1.5;display:grid}.gts-detail-label{color:var(--text-muted);font-weight:600}.gts-detail-value{color:var(--text)}.gts-sidebar-section{flex-direction:column;gap:8px;display:flex}.gts-sidebar-title{text-transform:uppercase;color:var(--text-muted);letter-spacing:.8px;border-bottom:1px solid var(--border);padding-bottom:6px;font-size:.72rem;font-weight:700}.gts-sidebar-item{flex-direction:column;gap:2px;padding:6px 0;display:flex}.gts-sidebar-item-label{color:var(--text-muted);text-transform:uppercase;font-size:.68rem}.gts-sidebar-item-value{color:var(--text);font-size:.82rem;font-weight:600}.gts-sidebar-item-desc{color:var(--text-muted);margin-top:2px;font-size:.75rem;line-height:1.4}.gts-alert-banner{color:var(--text);background:#fbbf2414;border:1px solid #fbbf2440;border-radius:8px;gap:8px;padding:10px 12px;font-size:.78rem;line-height:1.55;display:flex}.gts-alert-banner-danger{color:var(--text);background:#f8717114;border:1px solid #f8717140;border-radius:8px;gap:8px;padding:10px 12px;font-size:.78rem;line-height:1.55;display:flex}.gts-alert-icon{font-size:1.1rem;line-height:1;display:inline-block}.badge-gts-compliance{transition:all .2s cubic-bezier(.16,1,.3,1)}.badge-gts-compliance:hover{transform:translateY(-1px);border-color:var(--cyan)!important;background:#38bdf840!important}@keyframes gtsFadeIn{0%{opacity:0}to{opacity:1}}@keyframes gtsSlideUp{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.gts-loading-overlay{-webkit-backdrop-filter:blur(6px);z-index:10;background:#0d101bbf;border-bottom-right-radius:12px;border-bottom-left-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:1rem;animation:.2s ease-out gtsFadeIn;display:flex;position:absolute;inset:66px 0 0}.gts-loading-text{color:var(--cyan);letter-spacing:.5px;text-shadow:0 0 8px #22d3ee4d;font-size:.85rem;font-weight:500}.gts-fallback-badge{color:var(--amber);text-transform:uppercase;background:#f59e0b26;border:1px solid #f59e0b66;border-radius:4px;align-items:center;gap:4px;padding:2px 6px;font-size:.7rem;font-weight:600;display:inline-flex}.provider-overlay{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:200;background:#000000b3;justify-content:center;align-items:center;animation:.2s ease-out fadeIn;display:flex;position:fixed;inset:0}.provider-modal{background:#161822f2;border:1px solid #6366f14d;border-radius:20px;width:90%;max-width:600px;padding:2rem 2rem 1.5rem;animation:.3s ease-out modalSlideIn;box-shadow:0 20px 60px #00000080,0 0 40px #6366f11a}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(20px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}.provider-modal-title{text-align:center;background:linear-gradient(135deg, var(--accent2), var(--cyan));-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin-bottom:.35rem;font-size:1.15rem;font-weight:700}.provider-modal-subtitle{text-align:center;color:var(--text-muted);margin-bottom:1.5rem;font-size:.8rem}.provider-cards{grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.25rem;display:grid}.provider-card{background:var(--bg-input);border:2px solid var(--border);cursor:pointer;border-radius:14px;flex-direction:column;align-items:center;gap:.6rem;padding:1.25rem 1rem;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;position:relative;overflow:hidden}.provider-card:hover{transform:translateY(-3px);box-shadow:0 8px 25px #0000004d}.provider-card.provider-dhl:hover{border-color:#fbbf24;box-shadow:0 8px 25px #fbbf2426}.provider-card.provider-dhl:hover:before{opacity:1;background:linear-gradient(135deg,#fbbf240d,#0000)}.provider-card.provider-fedex:hover{border-color:#a78bfa;box-shadow:0 8px 25px #a78bfa26}.provider-card.provider-fedex:hover:before{opacity:1;background:linear-gradient(135deg,#a78bfa0d,#0000)}.provider-card.provider-selected.provider-dhl{background:#fbbf2414;border-color:#fbbf24}.provider-card.provider-selected.provider-fedex{background:#a78bfa14;border-color:#a78bfa}.provider-icon{letter-spacing:-.5px;z-index:1;border-radius:12px;justify-content:center;align-items:center;width:48px;height:48px;font-size:1.5rem;font-weight:800;display:flex;position:relative}.provider-dhl .provider-icon{color:#7c2d12;background:linear-gradient(135deg,#fbbf24,#f59e0b)}.provider-fedex .provider-icon{color:#fff;background:linear-gradient(135deg,#a78bfa,#7c3aed)}.provider-name{z-index:1;font-size:.95rem;font-weight:700;position:relative}.provider-dhl .provider-name{color:#fbbf24}.provider-fedex .provider-name{color:#a78bfa}.provider-desc{color:var(--text-muted);text-align:center;z-index:1;font-size:.72rem;line-height:1.45;position:relative}.provider-badge{text-transform:uppercase;letter-spacing:.5px;z-index:1;border-radius:50px;padding:2px 8px;font-size:.62rem;font-weight:600;position:relative}.provider-dhl .provider-badge{color:#fbbf24;background:#fbbf2426;border:1px solid #fbbf244d}.provider-fedex .provider-badge{color:#a78bfa;background:#a78bfa26;border:1px solid #a78bfa4d}.provider-cancel{text-align:center;border:1px solid var(--border);width:100%;color:var(--text-muted);cursor:pointer;background:0 0;border-radius:8px;padding:.5rem;font-family:inherit;font-size:.82rem;transition:all .2s;display:block}.provider-cancel:hover{border-color:var(--text-muted);color:var(--text)}.fedex-results{animation:.3s fadeIn}.fedex-result-header{background:linear-gradient(135deg,#4c1d95,#7c3aed)!important}.fedex-advisory-list{margin:0;padding:0;list-style:none}.fedex-advisory-item{border-bottom:1px solid var(--border);align-items:flex-start;gap:.6rem;padding:.65rem .85rem;font-size:.82rem;line-height:1.5;transition:background .15s;display:flex}.fedex-advisory-item:last-child{border-bottom:none}.fedex-advisory-item:hover{background:#a78bfa0a}.fedex-advisory-icon{border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;margin-top:1px;font-size:.75rem;display:flex}.fedex-advisory-icon.info{color:var(--accent2);background:#6366f126}.fedex-advisory-icon.warn{color:var(--amber);background:#fbbf2426}.fedex-advisory-icon.danger{color:var(--red);background:#f8717126}.fedex-advisory-icon.doc{color:var(--cyan);background:#22d3ee1f}.fedex-advisory-content{flex:1;min-width:0}.fedex-advisory-type{text-transform:uppercase;letter-spacing:.5px;margin-bottom:2px;font-size:.68rem;font-weight:600}.fedex-advisory-type.info{color:var(--accent2)}.fedex-advisory-type.warn{color:var(--amber)}.fedex-advisory-type.danger{color:var(--red)}.fedex-advisory-type.doc{color:var(--cyan)}.fedex-advisory-text{color:var(--text);word-break:break-word}.fedex-advisory-source{color:var(--text-muted);margin-top:3px;font-size:.7rem}.fedex-doc-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:.6rem;padding:.5rem 0;display:grid}.fedex-doc-card{background:var(--bg-input);border:1px solid var(--border);word-break:break-word;overflow-wrap:break-word;border-radius:10px;min-width:0;padding:.75rem .85rem;transition:all .2s;overflow:hidden}.fedex-doc-card:hover{border-color:#a78bfa66;transform:translateY(-1px)}.fedex-doc-name{color:var(--text);word-break:break-word;overflow-wrap:break-word;margin-bottom:4px;font-size:.82rem;font-weight:600}.fedex-doc-type{color:var(--text-muted);word-break:break-all;overflow-wrap:break-word;font-size:.7rem}.fedex-doc-link{color:var(--cyan);align-items:center;gap:4px;margin-top:4px;font-size:.72rem;text-decoration:none;display:inline-flex}.fedex-doc-link:hover{text-decoration:underline}.fedex-empty-state{text-align:center;color:var(--text-muted);padding:2rem 1rem;font-size:.85rem}.fedex-empty-icon{opacity:.5;margin-bottom:.5rem;font-size:2rem}.fedex-tabs{border-bottom:1px solid var(--border);margin-bottom:0;display:flex;overflow-x:auto}.fedex-tab{color:var(--text-muted);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-bottom:2px solid #0000;padding:.55rem 1rem;font-family:inherit;font-size:.78rem;font-weight:600;transition:all .2s}.fedex-tab:hover{color:var(--text)}.fedex-tab.active{color:#a78bfa;border-bottom-color:#a78bfa}.fedex-prohibit-card{background:#f871710f;border:1px solid #f8717133;border-radius:10px;margin-bottom:.5rem;padding:.75rem .85rem}@media (width<=600px){.provider-cards,.fedex-doc-grid{grid-template-columns:1fr}}.provider-picker-overlay{z-index:9999;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#000000a6;justify-content:center;align-items:center;animation:.2s ppFadeIn;display:flex;position:fixed;inset:0}@keyframes ppFadeIn{0%{opacity:0}to{opacity:1}}@keyframes ppSlideUp{0%{opacity:0;transform:translateY(24px)scale(.96)}to{opacity:1;transform:translateY(0)scale(1)}}.provider-picker-modal{background:linear-gradient(145deg,#1e2030f7,#141626fc);border:1px solid #6366f140;border-radius:20px;width:520px;max-width:92vw;padding:2.5rem 2.5rem 2rem;animation:.3s cubic-bezier(.22,1,.36,1) ppSlideUp;position:relative;box-shadow:0 24px 80px #00000080,0 0 60px #6366f114}.provider-picker-close{color:var(--text-muted);cursor:pointer;background:0 0;border:none;font-size:1.6rem;line-height:1;transition:color .15s,transform .15s;position:absolute;top:16px;right:18px}.provider-picker-close:hover{color:var(--text);transform:scale(1.15)}.provider-picker-header{text-align:center;margin-bottom:1.75rem}.provider-picker-header h2{color:var(--text);margin:0 0 .4rem;font-size:1.25rem;font-weight:700}.provider-picker-header p{color:var(--text-muted);margin:0;font-size:.82rem}.provider-picker-cards{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.provider-card{cursor:pointer;text-align:left;background:#ffffff08;border:1px solid #ffffff14;border-radius:14px;flex-direction:column;gap:.5rem;padding:1.5rem 1.25rem 1.25rem;transition:all .25s cubic-bezier(.22,1,.36,1);display:flex;position:relative;overflow:hidden}.provider-card:before{content:"";opacity:0;border-radius:14px;transition:opacity .3s;position:absolute;inset:0}.provider-card:hover{border-color:#ffffff2e;transform:translateY(-3px);box-shadow:0 12px 40px #0000004d}.provider-card:hover:before{opacity:1}.provider-card--dhl:before{background:linear-gradient(135deg,#f59e0b14,#f59e0b05)}.provider-card--dhl:hover{border-color:#f59e0b66;box-shadow:0 12px 40px #f59e0b1f}.provider-card--fedex:before{background:linear-gradient(135deg,#7c3aed14,#7c3aed05)}.provider-card--fedex:hover{border-color:#7c3aed66;box-shadow:0 12px 40px #7c3aed1f}.provider-card-badge{letter-spacing:.5px;border-radius:5px;width:fit-content;padding:3px 10px;font-size:.6rem;font-weight:800;display:inline-block}.dhl-badge{color:#000;background:#f59e0b}.fedex-badge{color:#fff;background:#7c3aed}.provider-card-title{color:var(--text);font-size:1rem;font-weight:700}.provider-card-desc{color:var(--text-muted);flex:1;font-size:.75rem;line-height:1.45}.provider-card-arrow{color:var(--text-muted);align-self:flex-end;font-size:1.2rem;transition:transform .2s,color .2s}.provider-card:hover .provider-card-arrow{color:var(--text);transform:translate(4px)}@media (width<=500px){.provider-picker-cards{grid-template-columns:1fr}.provider-picker-modal{padding:1.75rem 1.5rem 1.5rem}}.login-container{background:linear-gradient(135deg,#f5f7fa 0%,#e4e8f0 100%);justify-content:center;align-items:center;min-height:100vh;padding:20px;display:flex}.login-card{background:#fff;border-radius:16px;flex-direction:column;gap:24px;width:100%;max-width:400px;padding:40px;display:flex;box-shadow:0 10px 25px #0000000d}.login-header{text-align:center}.login-icon-wrapper{color:#d40511;background:#fff0f0;border-radius:50%;justify-content:center;align-items:center;width:64px;height:64px;margin:0 auto 16px;display:flex}.login-header h1{color:#1f2937;margin-bottom:8px;font-size:24px;font-weight:700}.login-header p{color:#6b7280;font-size:14px}.login-error{color:#b91c1c;background:#fee2e2;border-radius:8px;align-items:center;gap:12px;padding:12px 16px;font-size:14px;font-weight:500;display:flex}.login-form{flex-direction:column;gap:20px;display:flex}.input-group{flex-direction:column;gap:8px;display:flex}.input-group label{color:#374151;font-size:14px;font-weight:600}.input-wrapper{align-items:center;display:flex;position:relative}.input-icon{color:#9ca3af;position:absolute;left:12px}.input-wrapper input{border:1px solid #d1d5db;border-radius:8px;width:100%;padding:12px 40px;font-size:14px;transition:all .2s}.password-toggle{color:#9ca3af;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;transition:color .2s;display:flex;position:absolute;right:12px}.password-toggle:hover{color:#4b5563}.input-wrapper input:focus{border-color:#d40511;outline:none;box-shadow:0 0 0 3px #d405111a}.login-btn{color:#fff;cursor:pointer;background:#d40511;border:none;border-radius:8px;justify-content:center;align-items:center;gap:8px;margin-top:8px;padding:14px;font-size:16px;font-weight:600;transition:background .2s;display:flex}.login-btn:hover:not(:disabled){background:#b9040e}.login-btn:disabled{opacity:.7;cursor:not-allowed}.login-footer{text-align:center;color:#9ca3af;border-top:1px solid #f3f4f6;margin-top:16px;padding-top:24px;font-size:13px}.spinner{border:2px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:20px;height:20px;animation:1s ease-in-out infinite spin}.permissions-page{max-width:1200px;margin:0 auto;padding:24px}.unauthorized-message{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:16px;height:60vh;display:flex}.unauthorized-message h2{color:var(--text);font-size:24px}.unauthorized-message p{color:var(--text-muted)}.page-header{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.page-title{color:var(--text);align-items:center;gap:12px;margin:0;font-size:24px;font-weight:700;display:flex}.page-subtitle{color:var(--text-muted);margin:4px 0 0}.search-box{align-items:center;display:flex;position:relative}.search-icon{color:var(--text-muted);position:absolute;left:12px}.search-box input{border:1px solid var(--border);background:var(--bg-input);color:var(--text);border-radius:8px;width:300px;padding:10px 16px 10px 40px;font-size:14px;transition:all .2s}.search-box input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #6366f126}.users-table-container{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.users-table{border-collapse:collapse;width:100%}.users-table th{background:var(--bg-input);text-align:left;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--border);padding:12px 24px;font-size:12px;font-weight:600}.users-table td{border-bottom:1px solid var(--border);vertical-align:middle;padding:16px 24px}.user-name{color:var(--text);font-weight:600}.user-email{color:var(--text-muted);margin-top:2px;font-size:13px}.status-badge{text-transform:capitalize;border-radius:9999px;padding:4px 10px;font-size:12px;font-weight:500;display:inline-flex}.status-badge.active{color:#166534;background:#dcfce7}.status-badge.inactive{color:#4b5563;background:#f3f4f6}.status-badge.terminated{color:#991b1b;background:#fee2e2}.role-badge{border-radius:6px;align-items:center;gap:6px;padding:6px 12px;font-size:12px;font-weight:600;display:inline-flex}.role-badge.admin{color:var(--amber);background:#fbbf2426}.role-badge.user{color:var(--cyan);background:#22d3ee1f}.role-badge.none{background:var(--bg-input);color:var(--text-muted)}.action-buttons{gap:8px;display:flex}.action-buttons button{cursor:pointer;border:1px solid #0000;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:500;transition:all .2s}.btn-grant{background:linear-gradient(135deg, var(--accent), var(--accent2));color:#fff;border:none}.btn-grant:hover{opacity:.9;transform:translateY(-1px)}.btn-admin{border-color:var(--amber);color:var(--amber);background:0 0}.btn-admin:hover{background:#fbbf2426}.btn-user{border-color:var(--cyan);color:var(--cyan);background:0 0}.btn-user:hover{background:#22d3ee1f}.btn-revoke{border-color:var(--red);color:var(--red);background:0 0}.btn-revoke:hover{background:#f8717126}
