:root{--color-primary:#2563eb;--color-primary-dark:#1d4ed8;--color-success:#16a34a;--color-danger:#dc2626;--color-warning:#d97706;--color-info:#0891b2;--color-bg:#f8fafc;--color-surface:#fff;--color-border:#e2e8f0;--color-text:#1e293b;--color-text-muted:#64748b;--radius:6px;--shadow:0 1px 3px #00000014;--card-bg:#fff;--card-border:#e2e8f0;--card-shadow:0 2px 8px #0000000d, 0 1px 2px #00000008;--card-hover-shadow:0 6px 18px #00000014;--card-hover-border:#cbd5e1;--card-selected-bg:#fff;--card-selected-shadow:0 4px 14px #00000014;--card-label-color:#64748b;--card-count-color:#0f172a;--card-amount-color:#64748b;--card-zero-count:#94a3b8;--card-skeleton-bg:#e2e8f0}[data-theme=dark]{--color-bg:#0f172a;--color-surface:#1e293b;--color-border:#334155;--color-text:#f8fafc;--color-text-muted:#94a3b8;--shadow:0 1px 3px #0000004d;--card-bg:#23231e;--card-border:#33332b;--card-shadow:0 4px 12px #00000040;--card-hover-shadow:0 8px 20px #00000059;--card-hover-border:#4a4a3e;--card-selected-bg:#282822;--card-selected-shadow:0 8px 24px #0006;--card-label-color:#949488;--card-count-color:#fff;--card-amount-color:#a3a395;--card-zero-count:#d1d1c7;--card-skeleton-bg:#33332b}[data-theme=dark] body{background:var(--color-bg);color:var(--color-text)}[data-theme=dark] .claims-table,[data-theme=dark] .claim-card,[data-theme=dark] .login-card,[data-theme=dark] .ai-review-panel,[data-theme=dark] .detail-table,[data-theme=dark] .claim-form{background:var(--color-surface);border-color:var(--color-border)}[data-theme=dark] .claims-table th{color:#94a3b8;border-bottom-color:var(--color-border);background:#1e293b}[data-theme=dark] .claims-table td,[data-theme=dark] .detail-table th,[data-theme=dark] .detail-table td{border-bottom-color:var(--color-border)}[data-theme=dark] .claims-table tr:hover td{background:#253349}[data-theme=dark] .form-input,[data-theme=dark] .form-select,[data-theme=dark] .form-textarea,[data-theme=dark] .login-form input,[data-theme=dark] .claim-form input,[data-theme=dark] .claim-form select,[data-theme=dark] .claim-form textarea,[data-theme=dark] .reject-form textarea{color:#f8fafc;background:#0f172a;border-color:#334155}[data-theme=dark] .btn-outline{color:#60a5fa;border-color:#3b82f6}[data-theme=dark] .btn-outline:hover:not(:disabled){background:#3b82f626}[data-theme=dark] .ai-security-flags{background:#2d1808;border-color:#7c2d12}[data-theme=dark] .ai-security-flags .flag-item{color:#fdba74}*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{background:var(--color-bg);color:var(--color-text);font-family:system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.6}.navbar{background:var(--color-primary);color:#fff;min-height:56px;box-shadow:var(--shadow);justify-content:space-between;align-items:center;gap:1rem;padding:0 1.5rem;display:flex}.navbar-brand{color:#fff;flex-shrink:0;font-size:1.25rem;font-weight:700;text-decoration:none}.navbar-right{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:1rem;display:flex}.navbar-user{opacity:.95;flex-wrap:wrap;align-items:center;gap:.45rem;font-size:.9rem;display:flex}.navbar-bullet{opacity:.6}.role-badge{letter-spacing:.02em;background:#fff3;border-radius:99px;padding:1px 7px;font-size:.75rem;font-weight:600}.btn-logout{color:#fff;border-radius:var(--radius);cursor:pointer;white-space:nowrap;background:0 0;border:1.5px solid #ffffffd9;flex-shrink:0;justify-content:center;align-items:center;padding:.35rem .85rem;font-size:.85rem;font-weight:600;transition:all .15s ease-in-out;display:inline-flex}.btn-logout:hover{color:#fff;background:#fff3;border-color:#fff}.btn-logout:active{background:#ffffff4d}.theme-toggle-switch{cursor:pointer;box-sizing:border-box;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;border:1px solid #0000;border-radius:9999px;flex-shrink:0;justify-content:space-between;align-items:center;width:66px;height:34px;padding:0;transition:background-color .25s,border-color .25s,box-shadow .2s;display:inline-flex;position:relative}.theme-toggle-switch.is-light{background:#edf2f7;border-color:#00000014;box-shadow:inset 0 1px 2px #0000000f}.theme-toggle-switch.is-dark{background:#090d16;border-color:#1e293b;box-shadow:inset 0 1px 3px #0006}.theme-toggle-thumb{z-index:1;pointer-events:none;border-radius:9999px;width:28px;height:26px;transition:transform .25s cubic-bezier(.34,1.35,.64,1),background-color .2s,box-shadow .2s;position:absolute;top:3px;left:3px}.theme-toggle-switch.is-light .theme-toggle-thumb{background:#fff;transform:translate(0);box-shadow:0 1px 4px #0000001f,0 1px 2px #0000000f}.theme-toggle-switch.is-dark .theme-toggle-thumb{background:#263244;transform:translate(30px);box-shadow:0 1px 4px #00000059}.theme-toggle-icon{z-index:2;pointer-events:none;justify-content:center;align-items:center;width:33px;height:32px;transition:color .2s,opacity .2s;display:inline-flex}.theme-toggle-switch.is-light .sun-icon{color:#1e293b;opacity:1}.theme-toggle-switch.is-dark .sun-icon{color:#64748b;opacity:.55}.theme-toggle-switch.is-light .moon-icon{color:#94a3b8;opacity:.6}.theme-toggle-switch.is-dark .moon-icon{color:#fff;opacity:1}.theme-toggle-switch:focus-visible{outline-offset:2px;outline:2px solid #60a5fa}.theme-toggle-switch:hover{filter:brightness(1.05)}.login-theme-toggle{z-index:10;position:absolute;top:1.25rem;right:1.5rem}@media (width<=640px){.navbar{min-height:52px;padding:.5rem 1rem}.navbar-right{gap:.6rem}.navbar-user{font-size:.82rem}.btn-logout{padding:.28rem .65rem;font-size:.8rem}}.page-content{max-width:1100px;margin:0 auto;padding:2rem 1.5rem}.btn{border-radius:var(--radius);cursor:pointer;border:none;justify-content:center;align-items:center;padding:.5rem 1.1rem;font-size:.9rem;font-weight:600;text-decoration:none;transition:background .15s;display:inline-flex}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--color-primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--color-primary-dark)}.btn-success{background:var(--color-success);color:#fff}.btn-success:hover:not(:disabled){background:#15803d}.btn-danger{background:var(--color-danger);color:#fff}.btn-danger:hover:not(:disabled){background:#b91c1c}.btn-info{background:var(--color-info);color:#fff}.btn-info:hover:not(:disabled){background:#0e7490}.btn-outline{color:var(--color-primary);border:1.5px solid var(--color-primary);background:0 0}.btn-outline:hover:not(:disabled){background:#eff6ff}.btn-sm{padding:.3rem .75rem;font-size:.8rem}.btn-full{width:100%}.error-banner{border:1px solid #fecaca;border-left:4px solid var(--color-danger);border-radius:var(--radius);color:#991b1b;background:#fef2f2;align-items:flex-start;gap:1rem;margin-bottom:1.25rem;padding:.9rem 1.1rem;display:flex;box-shadow:0 1px 3px #0000000d}[data-theme=dark] .error-banner{color:#fca5a5;background:#2b1111;border-color:#5c1818 #5c1818 #5c1818 #ef4444}.error-banner-body{text-align:left;flex-direction:column;flex:1;gap:.35rem;display:flex}.error-banner-header{flex-wrap:wrap;align-items:center;gap:.6rem;margin-bottom:.15rem;display:flex}.error-badge{background:var(--color-danger);color:#fff;letter-spacing:.03em;text-transform:uppercase;border-radius:4px;padding:2px 8px;font-size:.76rem;font-weight:700}.error-code-badge{color:#7f1d1d;background:#fee2e2;border:1px solid #fca5a5;border-radius:4px;padding:1px 6px;font-family:monospace;font-size:.72rem;font-weight:700}[data-theme=dark] .error-code-badge{color:#fca5a5;background:#451a1a;border-color:#7f1d1d}.error-banner-definition{color:#7f1d1d;font-size:.88rem;line-height:1.45}[data-theme=dark] .error-banner-definition{color:#fca5a5}.error-banner-message{color:#991b1b;font-size:.92rem;font-weight:600;line-height:1.45}[data-theme=dark] .error-banner-message{color:#fee2e2}.error-dismiss{cursor:pointer;color:inherit;opacity:.7;background:0 0;border:none;margin-left:auto;padding:0 .25rem;font-size:1.35rem;line-height:1;transition:opacity .15s}.error-dismiss:hover{opacity:1}.error-detail-list{flex-direction:column;gap:.2rem;margin-top:.35rem;padding-left:1.25rem;font-size:.85rem;display:flex}.error-inline{color:var(--color-danger);margin:.5rem 0;font-size:.9rem}.status-badge{text-transform:uppercase;letter-spacing:.04em;border-radius:99px;padding:2px 10px;font-size:.75rem;font-weight:700;display:inline-block}.badge-submitted{color:#1d4ed8;background:#dbeafe}.badge-approved{color:#15803d;background:#dcfce7}.badge-paid{color:#065f46;background:#d1fae5}.badge-rejected{color:#b91c1c;background:#fee2e2}.login-container{justify-content:center;align-items:center;min-height:100vh;padding:2rem;display:flex}.login-card{background:var(--color-surface);border-radius:var(--radius);width:100%;max-width:440px;padding:2.5rem;box-shadow:0 4px 16px #0000001a}.login-title{text-align:center;color:var(--color-primary);margin-bottom:.25rem;font-size:1.75rem}.login-subtitle{text-align:center;color:var(--color-text-muted);margin-bottom:1.5rem}.login-form{flex-direction:column;gap:1rem;display:flex}.login-form label{flex-direction:column;gap:.25rem;font-size:.9rem;font-weight:500;display:flex}.login-form input,.claim-form input,.claim-form select,.claim-form textarea{border:1.5px solid var(--color-border);border-radius:var(--radius);width:100%;padding:.55rem .75rem;font-size:.95rem}.login-form input:focus,.claim-form input:focus,.claim-form select:focus,.claim-form textarea:focus{outline:2px solid var(--color-primary);border-color:var(--color-primary)}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.5rem;display:flex}.page-header h2{font-size:1.4rem}.page-header-actions{align-items:center;gap:.75rem;display:flex}.loading-msg{color:var(--color-text-muted);padding:1rem 0}.empty-msg{color:var(--color-text-muted);text-align:center;padding:2rem}.summary-cards-grid{grid-template-columns:repeat(5,1fr);gap:1rem;margin-bottom:2rem;display:grid}@media (width<=900px){.summary-cards-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=500px){.summary-cards-grid{grid-template-columns:1fr}}.summary-card{background:var(--card-bg);border:1px solid var(--card-border);text-align:left;box-shadow:var(--card-shadow);cursor:pointer;border-radius:12px;flex-direction:column;align-items:flex-start;width:100%;padding:1.1rem 1.25rem;transition:transform .2s cubic-bezier(.16,1,.3,1),box-shadow .2s,border-color .2s,background-color .2s;display:flex;position:relative;overflow:hidden}.summary-card:before{content:"";background:var(--card-accent,#64748b);border-top-left-radius:12px;border-top-right-radius:12px;height:3.5px;transition:height .15s;position:absolute;top:0;left:0;right:0}.summary-card.accent-all{--card-accent:#f59e0b}.summary-card.accent-submitted{--card-accent:#3b82f6}.summary-card.accent-approved{--card-accent:#16a34a}.summary-card.accent-rejected{--card-accent:#ef4444}.summary-card.accent-paid{--card-accent:#8b5cf6}.summary-card:hover{box-shadow:var(--card-hover-shadow);border-color:var(--card-hover-border);transform:translateY(-2px)}.summary-card:hover:before{height:4.5px}.summary-card:focus-visible{outline:2px solid var(--card-accent,#3b82f6);outline-offset:2px}.summary-card.selected{border-color:var(--card-accent,#f59e0b);box-shadow:0 0 0 1.5px var(--card-accent,#f59e0b), var(--card-selected-shadow);background:var(--card-selected-bg)}.summary-card-label{color:var(--card-label-color);letter-spacing:.08em;text-transform:uppercase;margin-bottom:.5rem;font-size:.72rem;font-weight:700}.summary-card-count{color:var(--card-count-color);margin-bottom:.35rem;font-size:2rem;font-weight:800;line-height:1.1}.summary-card-amount{color:var(--card-amount-color);letter-spacing:.01em;font-size:.8rem;font-weight:500}.summary-card.zero-count{opacity:.75}.summary-card.zero-count .summary-card-count{color:var(--card-zero-count)}.summary-card.skeleton{cursor:default;pointer-events:none}.summary-card.skeleton .skeleton-label,.summary-card.skeleton .skeleton-count,.summary-card.skeleton .skeleton-amount{background:var(--card-skeleton-bg);border-radius:4px;animation:1.5s ease-in-out infinite pulse}.summary-card.skeleton .skeleton-label{width:60%;height:12px;margin-bottom:.8rem}.summary-card.skeleton .skeleton-count{width:40%;height:32px;margin-bottom:.6rem}.summary-card.skeleton .skeleton-amount{width:75%;height:14px}@keyframes pulse{0%,to{opacity:.6}50%{opacity:.25}}.claims-table{border-collapse:collapse;background:var(--color-surface);border-radius:var(--radius);width:100%;box-shadow:var(--shadow);overflow:hidden}.claims-table th,.claims-table td{text-align:left;border-bottom:1px solid var(--color-border);padding:.7rem 1rem;font-size:.9rem}.claims-table th{color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.04em;background:#f1f5f9;font-size:.8rem;font-weight:600}.claims-table tr:last-child td{border-bottom:none}.claims-table tr:hover td{background:#f8fafc}.claim-detail{max-width:800px}.back-btn{margin-bottom:1rem}.claim-detail-header{flex-wrap:wrap;align-items:center;gap:1rem;margin-bottom:1.5rem;display:flex}.claim-detail-header h2{font-size:1.4rem}.detail-table{border-collapse:collapse;background:var(--color-surface);border-radius:var(--radius);width:100%;box-shadow:var(--shadow);margin-bottom:1.5rem}.detail-table th,.detail-table td{border-bottom:1px solid var(--color-border);vertical-align:top;padding:.65rem 1rem;font-size:.9rem}.detail-table th{width:160px;color:var(--color-text-muted);text-align:right;white-space:nowrap;padding-right:1.5rem;font-weight:600}.detail-table tr:last-child th,.detail-table tr:last-child td{border-bottom:none}.rejection-reason{color:var(--color-danger)}.claim-actions{flex-wrap:wrap;align-items:flex-start;gap:.75rem;margin-bottom:2rem;display:flex}.reject-form{flex-direction:column;gap:.5rem;display:flex}.reject-form textarea{border:1.5px solid var(--color-border);border-radius:var(--radius);resize:vertical;padding:.5rem;font-size:.9rem}.reject-form div{gap:.5rem;display:flex}.form-page{max-width:560px}.form-page h2{margin-bottom:1.5rem}.claim-form{background:var(--color-surface);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:1rem;padding:1.75rem;display:flex}.claim-form label{flex-direction:column;gap:.3rem;font-size:.9rem;font-weight:500;display:flex}.claim-form textarea{resize:vertical}.checkbox-label{cursor:pointer;align-items:center;flex-direction:row!important;gap:.6rem!important}.checkbox-label input{width:auto}.form-actions{justify-content:flex-end;gap:.75rem;padding-top:.5rem;display:flex}.ai-review-panel{background:var(--color-surface);border-radius:var(--radius);box-shadow:var(--shadow);margin-top:1.5rem;padding:1.5rem}.ai-review-header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.ai-review-header h3{font-size:1.1rem}.ai-meta{flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:.75rem;display:flex}.ai-type{color:var(--color-text-muted);text-transform:uppercase;font-size:.75rem;font-weight:600}.ai-model{color:var(--color-text-muted);margin-left:auto;font-size:.75rem}.rec-badge{border-radius:99px;padding:2px 10px;font-size:.78rem;font-weight:700}.rec-approve{color:#15803d;background:#dcfce7}.rec-reject{color:#b91c1c;background:#fee2e2}.rec-needs-info{color:#92400e;background:#fef9c3}.ai-summary{margin-bottom:1rem;font-size:.95rem}.ai-no-review{color:var(--color-text-muted);font-size:.9rem}.ai-violations{margin-bottom:1rem}.ai-violations ul{flex-direction:column;gap:.3rem;margin-top:.4rem;padding-left:1.2rem;display:flex}.ai-violations li{font-size:.9rem}.violation-rule{color:var(--color-danger);margin-right:.25rem;font-weight:700}.ai-security-flags{border-radius:var(--radius);background:#fff7ed;border:1px solid #fed7aa;margin-bottom:1rem;padding:.75rem 1rem}.ai-security-flags ul{margin-top:.4rem;padding-left:1.2rem}.flag-item{color:#9a3412;font-size:.85rem;font-weight:600}.ai-timestamp{color:var(--color-text-muted);margin-top:.75rem;font-size:.78rem}.tool-calls-section{border:1px solid var(--color-border);border-radius:var(--radius);background:var(--color-bg);margin-top:1.25rem;overflow:hidden}[data-theme=dark] .tool-calls-section{background:#0f172a;border-color:#334155}.tool-calls-summary{cursor:pointer;color:var(--color-text);-webkit-user-select:none;user-select:none;background:var(--color-surface);border-bottom:1px solid #0000;align-items:center;gap:.6rem;padding:.75rem 1rem;font-size:.9rem;font-weight:700;transition:background-color .15s;display:flex}[data-theme=dark] .tool-calls-summary{color:#f8fafc;background:#1e293b}.tool-calls-summary:hover{background:#f1f5f9}[data-theme=dark] .tool-calls-summary:hover{background:#253349}.tool-calls-section[open] .tool-calls-summary{border-bottom-color:var(--color-border)}[data-theme=dark] .tool-calls-section[open] .tool-calls-summary{border-bottom-color:#334155}.tool-calls-count-badge{color:#475569;background:#e2e8f0;border-radius:99px;padding:1px 8px;font-size:.75rem;font-weight:700}[data-theme=dark] .tool-calls-count-badge{color:#cbd5e1;background:#334155}.tool-calls-list{flex-direction:column;gap:.5rem;padding:.75rem 1rem;list-style:none;display:flex}.tool-call-row{background:var(--color-surface);border:1px solid var(--color-border);border-radius:8px;transition:border-color .15s,box-shadow .15s;overflow:hidden;box-shadow:0 1px 2px #0000000a}[data-theme=dark] .tool-call-row{background:#1e293b;border-color:#334155;box-shadow:0 1px 3px #0000004d}.tool-call-row:hover{border-color:#cbd5e1}[data-theme=dark] .tool-call-row:hover{border-color:#4b5563}.tool-call-row.is-open{border-color:#93c5fd}[data-theme=dark] .tool-call-row.is-open{border-color:#3b82f6}.tool-call-toggle{text-align:left;cursor:pointer;width:100%;color:var(--color-text);background:0 0;border:none;flex-wrap:wrap;align-items:center;gap:.6rem;padding:.65rem .85rem;font-size:.85rem;transition:background-color .15s;display:flex}[data-theme=dark] .tool-call-toggle{color:#f1f5f9}.tool-call-toggle:hover{background:#f8fafc}[data-theme=dark] .tool-call-toggle:hover{background:#253349}.tool-status-badge{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;font-size:.75rem;font-weight:800;display:inline-flex}.tool-status-badge.status-ok{color:#15803d;background:#dcfce7}[data-theme=dark] .tool-status-badge.status-ok{color:#4ade80;background:#14532d}.tool-status-badge.status-fail{color:#b91c1c;background:#fee2e2}[data-theme=dark] .tool-status-badge.status-fail{color:#f87171;background:#7f1d1d}.tool-step-tag{text-transform:uppercase;letter-spacing:.04em;color:#475569;background:#e2e8f0;border-radius:4px;flex-shrink:0;padding:2px 6px;font-size:.72rem;font-weight:700}[data-theme=dark] .tool-step-tag{color:#cbd5e1;background:#334155}.tool-name{color:#2563eb;background:#eff6ff;border-radius:4px;flex-shrink:0;padding:2px 6px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.88rem;font-weight:700}[data-theme=dark] .tool-name{color:#60a5fa;background:#2563eb40}.tool-args-preview{color:#475569;text-overflow:ellipsis;white-space:nowrap;background:#f1f5f9;border-radius:4px;max-width:380px;padding:2px 6px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.8rem;overflow:hidden}[data-theme=dark] .tool-args-preview{color:#cbd5e1;background:#0f172a}.tool-chevron-icon{color:var(--color-text-muted);flex-shrink:0;margin-left:auto;font-size:.7rem}[data-theme=dark] .tool-chevron-icon{color:#94a3b8}.tool-result-wrapper{border-top:1px solid var(--color-border);background:#0f172a}[data-theme=dark] .tool-result-wrapper{background:#090d16;border-top-color:#334155}.tool-result-header{letter-spacing:.05em;text-transform:uppercase;color:#94a3b8;background:#1e293b;border-bottom:1px solid #334155;justify-content:space-between;align-items:center;padding:.45rem .85rem;font-size:.72rem;font-weight:700;display:flex}[data-theme=dark] .tool-result-header{color:#94a3b8;background:#151d2a;border-bottom-color:#243042}.tool-result-status.ok{color:#4ade80}.tool-result-status.fail{color:#f87171}.tool-result{color:#e2e8f0;white-space:pre;background:0 0;margin:0;padding:.75rem .85rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.8rem;line-height:1.45;overflow-x:auto}[data-theme=dark] .tool-result{color:#f1f5f9}
