*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--color-primary: #0b4ea2;--color-primary-dark: #083d82;--color-bg: #f3f6fb;--color-surface: #ffffff;--color-border: #e5e7eb;--color-text: #111827;--color-text-muted: #6b7280;--color-success: #16a34a;--color-error: #dc2626;--color-warning: #d97706;--sidebar-width: 250px;--topbar-height: 64px;font-family:Inter,system-ui,-apple-system,sans-serif;font-size:14px;color:var(--color-text);background:var(--color-bg)}body{min-height:100vh}a{color:inherit;text-decoration:none}button{cursor:pointer;font-family:inherit;font-size:inherit}ul{list-style:none}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;gap:12px;color:var(--color-text-muted)}.spinner{width:36px;height:36px;border:3px solid var(--color-border);border-top-color:var(--color-primary);border-radius:50%;animation:spin .7s linear infinite}.spinner-sm{width:18px;height:18px;border-width:2px}@keyframes spin{to{transform:rotate(360deg)}}.btn-primary{display:inline-flex;align-items:center;justify-content:center;padding:10px 20px;background:var(--color-primary);color:#fff;border:none;border-radius:6px;font-weight:600;transition:background .15s}.btn-primary:hover{background:var(--color-primary-dark)}.btn-logout{padding:6px 14px;background:transparent;color:var(--color-text-muted);border:1px solid var(--color-border);border-radius:6px;font-size:13px;transition:background .15s,color .15s}.btn-logout:hover{background:var(--color-bg);color:var(--color-text)}.app-shell{display:flex;height:100vh;overflow:hidden}.app-main{flex:1;display:flex;flex-direction:column;overflow:hidden}.app-content{flex:1;overflow-y:auto;padding:24px;background:var(--color-bg)}.sidebar{width:var(--sidebar-width);background:var(--color-surface);border-right:1px solid #dbe3f0;display:flex;flex-direction:column;flex-shrink:0;overflow-y:auto;transition:width .2s ease}.sidebar.is-collapsed{width:72px}.sidebar-logo{height:var(--topbar-height);display:flex;align-items:center;padding:0 18px;gap:10px;border-bottom:1px solid #dbe3f0}.sidebar-nav{padding:12px 0}.menu-root{display:flex;flex-direction:column}.menu-group-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:9px 16px;background:none;border:none;font-size:13px;font-weight:600;color:var(--color-text-muted);transition:color .15s}.menu-group-toggle:hover{color:var(--color-text)}.menu-label{display:inline-flex;align-items:center;gap:10px}.menu-chevron{font-size:12px;transition:transform .2s;display:inline-block}.menu-chevron.open{transform:rotate(0)}.menu-chevron:not(.open){transform:rotate(-90deg)}.menu-children{display:flex;flex-direction:column}.menu-link{display:inline-flex;align-items:center;gap:10px;width:100%;padding:10px 16px;font-size:14px;color:var(--color-text);transition:background .12s,color .12s}a.menu-link:hover{background:#f1f5fb;color:var(--color-primary)}a.menu-link.active{background:#eef4ff;color:var(--color-primary);font-weight:600;border-right:3px solid var(--color-primary)}.topbar{height:var(--topbar-height);background:var(--color-surface);border-bottom:1px solid #dbe3f0;display:flex;align-items:center;justify-content:space-between;padding:0 24px 0 16px;flex-shrink:0;box-shadow:0 2px 8px #0f172a0d}.topbar-brand{gap:16px}.topbar-left{display:flex;align-items:center;gap:12px}.brand-mark{width:34px;height:34px;color:var(--color-primary)}.brand-mark svg{width:100%;height:100%}.brand-text{display:flex;flex-direction:column;line-height:1.05;font-weight:700;color:var(--color-primary)}.brand-title,.brand-subtitle{font-size:16px}.topbar-menu{width:36px;height:36px;border-radius:6px;border:1px solid #dbe3f0;background:#f8fafc;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.topbar-menu span{display:block;width:16px;height:2px;background:var(--color-primary)}.topbar-user{display:flex;align-items:center;gap:12px}.topbar-avatar{width:34px;height:34px;border-radius:50%;overflow:hidden;background:#14b8a6;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}.topbar-avatar img{width:100%;height:100%;object-fit:cover}.topbar-user-info{display:flex;flex-direction:column;align-items:flex-end}.topbar-user-name{font-size:13px;font-weight:600}.topbar-user-role{font-size:11px;color:var(--color-text-muted)}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1a56db,#1e40af)}.login-card{background:var(--color-surface);border-radius:12px;padding:48px 40px;width:100%;max-width:400px;box-shadow:0 20px 60px #00000026;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center}.login-logo{width:56px;height:56px;background:var(--color-primary);border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:8px}.login-logo .logo-text{color:#fff;font-size:18px}.login-title{font-size:22px;font-weight:700;color:var(--color-text)}.login-subtitle{font-size:14px;color:var(--color-text-muted);line-height:1.5}.login-error{width:100%;padding:10px 14px;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;color:var(--color-error);font-size:13px}.btn-login{width:100%;padding:12px;font-size:15px;margin-top:8px}.home-page{display:flex;flex-direction:column;gap:24px;max-width:900px}.home-welcome{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.home-title{font-size:24px;font-weight:700}.home-role-badge{display:inline-flex;align-items:center;padding:3px 10px;background:#eff6ff;color:var(--color-primary);border-radius:999px;font-size:12px;font-weight:600}.home-api-status{display:flex}.status-card{display:flex;align-items:center;gap:10px;padding:12px 18px;border-radius:8px;font-size:14px;font-weight:500}.status-loading{background:#f0f9ff;color:#0369a1;border:1px solid #bae6fd}.status-success{background:#f0fdf4;color:var(--color-success);border:1px solid #bbf7d0}.status-error{background:#fef2f2;color:var(--color-error);border:1px solid #fecaca}.status-icon{font-size:16px;font-weight:700}.home-dashboard{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.dashboard-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:10px;padding:24px}.dashboard-card h2{font-size:16px;font-weight:600;margin-bottom:8px}.dashboard-card p{font-size:13px;color:var(--color-text-muted);line-height:1.5}.customer-details-page{display:flex;flex-direction:column;gap:16px;max-width:1200px}.page-header{display:flex;flex-direction:column;gap:4px}.page-title{font-size:20px;font-weight:700}.page-subtitle{color:var(--color-text-muted);font-size:13px}.section-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:8px;padding:16px}.section-title{font-size:13px;font-weight:700;color:var(--color-primary);text-transform:uppercase;letter-spacing:.04em;margin-bottom:12px}.field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:12px;color:var(--color-text-muted)}.field input,.field select{height:34px;padding:6px 10px;border:1px solid var(--color-border);border-radius:4px;background:#f9fafb;color:var(--color-text);font-size:13px}.field.checkbox-inline{align-items:flex-start}.field.checkbox-inline input{width:auto;height:auto;margin-top:6px}.accounts-table-wrapper{overflow-x:auto}.accounts-table{width:100%;border-collapse:collapse;font-size:12px}.accounts-table thead th{background:#111827;color:#fff;padding:8px;text-align:left;font-weight:600}.accounts-table tbody td{border-bottom:1px solid var(--color-border);padding:8px;white-space:nowrap}.accounts-table tbody tr:nth-child(2n){background:#f9fafb}.accounts-table input[type=checkbox]{width:14px;height:14px;accent-color:var(--color-primary)}.checkbox-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px 16px;margin-top:12px}.checkbox-item{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--color-text)}.checkbox-item input{width:14px;height:14px;accent-color:var(--color-primary)}.policy-list{display:grid;gap:10px}.policy-row{display:grid;grid-template-columns:minmax(200px,1fr) minmax(240px,1fr);gap:12px;align-items:center}.policy-label{font-size:12px;color:var(--color-text-muted)}.policy-actions{display:flex;justify-content:center;margin:14px 0}.customer-details-loading{display:grid;gap:16px}.buyer-credit-page{display:flex;flex-direction:column;gap:16px;max-width:900px}.buyer-credit-form{display:grid;gap:18px}.field-required{color:var(--color-error)}.form-actions{display:flex;justify-content:flex-end}.customer-list-table tbody tr{cursor:pointer;transition:background .12s}.customer-list-table tbody tr:hover{background:#eef2ff}.dashboard-page{display:flex;flex-direction:column;gap:16px;max-width:1200px}.dashboard-form{display:grid;gap:18px}.dashboard-section{border:1px solid #9dbdf0;border-radius:8px;padding:14px;background:#f7f9ff}.dashboard-section-title{font-size:12px;font-weight:700;color:var(--color-primary);margin-bottom:10px}.dashboard-row{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px;align-items:end}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px;align-items:end}.dashboard-full{grid-column:1 / -1}.dashboard-action{display:flex;align-items:flex-end;justify-content:flex-end}.icon-button{width:32px;height:32px;border-radius:4px;border:none;background:var(--color-primary);color:#fff;display:inline-flex;align-items:center;justify-content:center}.icon-button span{font-size:14px}.claim-list-page{display:flex;flex-direction:column;gap:16px;max-width:1200px}.claim-list-form{display:grid;gap:16px}.claim-list-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:12px}.claim-search{display:flex;justify-content:flex-start}.maximum-requests-page{display:flex;flex-direction:column;gap:16px;max-width:1400px}.maximum-requests-form{display:grid;gap:16px}.maximum-requests-grid{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:12px;align-items:end}.maximum-requests-table{font-size:11px}.maximum-requests-grid-wide{grid-template-columns:repeat(4,minmax(220px,1fr))}.table-meta{display:flex;justify-content:space-between;align-items:center;margin:8px 0 6px;font-size:12px;color:var(--color-text-muted)}.table-meta-left{display:inline-flex;align-items:center;gap:6px}.table-meta select{height:28px;border:1px solid var(--color-border);border-radius:4px;padding:0 6px;background:#fff}.table-pagination{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:12px;color:var(--color-text-muted)}.pagination-controls{display:inline-flex;align-items:center;gap:6px}.pagination-controls button{border:1px solid #dbe3f0;background:#fff;padding:4px 8px;border-radius:4px;font-size:12px}.pagination-controls button.active{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.pagination-controls span{padding:0 4px}.table-empty{text-align:center;color:var(--color-text-muted);padding:18px}.status-pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:600}.status-active{background:#ecfdf3;color:#15803d;border:1px solid #bbf7d0}.status-pending{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}.breadcrumbs{margin-bottom:16px}.breadcrumbs-list{display:flex;align-items:center;flex-wrap:wrap;gap:4px;padding:0;margin:0}.breadcrumb-item{display:flex;align-items:center;gap:4px;font-size:13px}.breadcrumb-link{color:var(--color-primary);text-decoration:none;transition:opacity .15s}.breadcrumb-link:hover{opacity:.75;text-decoration:underline}.breadcrumb-current{color:var(--color-text-muted);font-weight:500}.breadcrumb-sep{color:var(--color-text-muted);font-size:14px}.skeleton{background:linear-gradient(90deg,var(--color-border) 25%,#e9eaec 50%,var(--color-border) 75%);background-size:200% 100%;animation:skeleton-shimmer 1.4s ease-in-out infinite;display:block}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.error-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--color-bg)}.error-card{background:var(--color-surface);border-radius:12px;padding:48px 40px;max-width:400px;width:100%;text-align:center;box-shadow:0 4px 24px #0000000f;display:flex;flex-direction:column;align-items:center;gap:12px}.error-code{font-size:64px;font-weight:800;color:var(--color-border);line-height:1}.error-title{font-size:22px;font-weight:700}.error-message{font-size:14px;color:var(--color-text-muted);margin-bottom:8px}.placeholder-page{padding:8px 0}.placeholder-page h2{font-size:20px;font-weight:700;margin-bottom:8px}.placeholder-page p{color:var(--color-text-muted)}
