:root{font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Maersk Text,Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}body{min-height:100vh;margin:0}#root{min-height:100vh}:root{--bg:#f4f6f8;--surface:#fff;--surface-soft:#eef3f6;--surface-soft-alt:#f7fafc;--border:#d6dee6;--text:#11263c;--text-soft:#48627b;--brand:#1b6f97;--brand-strong:#13516f;--table-head-bg:linear-gradient(180deg, #165c80 0%, #114863 100%);--table-head-border:#0f3f58;--invoice-status-audited-bg:#e8f8ed;--invoice-status-audited-border:#9fd9b0;--invoice-status-audited-text:#1f6b36;--invoice-status-warning-bg:#fff6d6;--invoice-status-warning-border:#f0d88b;--invoice-status-warning-text:#7a5a00;--invoice-status-cancelled-bg:#eef1f4;--invoice-status-cancelled-border:#c5ced7;--invoice-status-cancelled-text:#4a5c6d;--invoice-status-dispute-bg:#ffe6e8;--invoice-status-dispute-border:#f2a9b1;--invoice-status-dispute-text:#8a2733;--shadow:0 10px 30px #142d4214;--row-soft-divergence:#ff0a0a1a;--row-soft-ok:#2f7d2e1a}.app-shell{background:radial-gradient(circle at 15% -20%, #388ab133, transparent 35%), radial-gradient(circle at 110% 10%, #b7d3e459, transparent 30%), var(--bg);min-height:100vh;color:var(--text);transition:background .3s,color .3s}.app-shell[data-theme=dark]{--bg:#0b1622;--surface:#102334;--surface-soft:#0f2c42;--surface-soft-alt:#17344a;--border:#29506f;--text:#f2f8fd;--text-soft:#acd1eb;--brand:#4bb0e3;--brand-strong:#8ad5fb;--table-head-bg:linear-gradient(180deg, #1f6f99 0%, #16506f 100%);--table-head-border:#2a84b2;--invoice-status-audited-bg:#1e3d2a;--invoice-status-audited-border:#3e7b57;--invoice-status-audited-text:#b8f0c8;--invoice-status-warning-bg:#4b3d16;--invoice-status-warning-border:#8f7635;--invoice-status-warning-text:#ffe79b;--invoice-status-cancelled-bg:#2a3340;--invoice-status-cancelled-border:#4a596b;--invoice-status-cancelled-text:#d3dce6;--invoice-status-dispute-bg:#4a2027;--invoice-status-dispute-border:#8e434f;--invoice-status-dispute-text:#ffbdc4;--shadow:0 12px 35px #020a1180;--row-soft-divergence:#ff0a0a33;--row-soft-ok:#2f7d2e33}.app-header{border-bottom:1px solid var(--border);background:var(--surface);height:72px;box-shadow:var(--shadow);z-index:50;justify-content:space-between;align-items:center;padding:0 20px;display:flex;position:sticky;top:0}.header-left,.header-right{align-items:center;gap:12px;display:flex}.icon-button{width:40px;height:40px;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:10px;place-items:center;display:grid}.icon-button:hover{border-color:var(--brand)}.hamburger-line{background:var(--text);border-radius:99px;width:18px;height:2px;margin:2px 0;display:block}.brand-block{align-items:center;gap:12px;display:flex}.brand-logo{color:#fff;letter-spacing:.08em;border-radius:0;place-items:center;min-width:100px;height:50px;padding:0;font-size:.76rem;font-weight:800;display:grid}.brand-divider{background:var(--border);width:1px;height:28px}.brand-title{letter-spacing:.02em;font-size:1rem;font-weight:700}.theme-button,.logout-button{border:1px solid var(--border);background:var(--surface-soft);color:var(--text);cursor:pointer;border-radius:10px;padding:8px 14px;font-weight:600}.theme-button:hover,.logout-button:hover{border-color:var(--brand)}.theme-button:disabled,.logout-button:disabled,.invoices-action-link:disabled,.invoices-primary-action:disabled{opacity:.5;cursor:not-allowed}.profile-area{position:relative}.user-button svg{width:20px;height:20px}.profile-panel{background:var(--surface);border:1px solid var(--border);width:340px;box-shadow:var(--shadow);border-radius:14px;gap:10px;padding:14px;display:grid;position:absolute;top:52px;right:0}.profile-loading,.profile-email,.profile-access{color:var(--text-soft);margin:0;font-size:.9rem}.profile-name{margin:0;font-size:1rem;font-weight:700}.profile-token-label{color:var(--text-soft);text-transform:uppercase;letter-spacing:.06em;margin:0;font-size:.78rem}.profile-token{resize:vertical;border:1px solid var(--border);background:var(--surface-soft);width:100%;color:var(--text);border-radius:8px;padding:10px;font-size:.78rem;line-height:1.35}.profile-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.profile-error,.profile-copy-status{color:var(--text-soft);margin:0;font-size:.82rem}.profile-error{color:#c53f3f}.access-switcher{flex-wrap:wrap;gap:6px;display:flex}.access-switcher span{border:1px solid var(--border);color:var(--text-soft);border-radius:999px;padding:4px 8px;font-size:.75rem}.app-layout{min-height:calc(100vh - 72px);display:flex}.sidebar{background:var(--surface);border-right:1px solid var(--border);width:250px;padding:16px 12px;transition:width .2s,padding .2s;overflow:hidden}.sidebar.closed{border-right:0;width:0;padding:16px 0}.sidebar ul{gap:8px;margin:0;padding:0;list-style:none;display:grid}.nav-link{text-align:left;width:100%;color:var(--text-soft);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:10px;padding:10px 12px;font-weight:600;text-decoration:none;display:block}.nav-link:hover{border-color:var(--border)}.nav-link.active{background:var(--surface-soft);border-color:var(--brand);color:var(--text)}.content-area{flex:1;padding:28px}.content-area h1{margin-top:0}.page-header-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.placeholder-card{border:1px solid var(--border);background:var(--surface);border-radius:14px;max-width:560px;margin-top:20px;padding:18px}.placeholder-card h2{margin:0 0 8px}.placeholder-card p{color:var(--text-soft);margin:0}.dashboard-grid{grid-template-columns:repeat(2,minmax(280px,1fr));gap:16px;margin-top:16px;display:grid}.dashboard-filters{gap:8px;max-width:420px;margin-top:10px;display:grid;position:relative}.dashboard-filters label{color:var(--text-soft);text-transform:uppercase;letter-spacing:.04em;font-size:.82rem;font-weight:700}.route-fallback{place-items:center;min-height:60vh;padding:24px;display:grid}.route-fallback-card{border:1px solid var(--border);background:var(--surface);width:min(720px,100%);box-shadow:var(--shadow);border-radius:14px;padding:20px}.route-fallback-spinner-wrap{justify-content:center;display:flex}.dashboard-dropdown{position:relative}.dashboard-dropdown-trigger{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);text-align:left;cursor:pointer;border-radius:10px;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;display:flex}.dashboard-dropdown-trigger:hover{border-color:var(--brand)}.dashboard-dropdown-menu{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);z-index:20;border-radius:10px;padding:10px;position:absolute;top:calc(100% + 8px);left:0;right:0}.dashboard-dropdown-actions{gap:8px;margin-bottom:8px;display:flex}.dashboard-dropdown-actions button{border:1px solid var(--border);background:var(--surface-soft);color:var(--text);cursor:pointer;border-radius:10px;flex:1;padding:7px 10px;font-weight:600}.dashboard-dropdown-actions button:hover{border-color:var(--brand)}.dashboard-dropdown-menu ul{gap:4px;max-height:220px;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.dashboard-dropdown-menu li label{cursor:pointer;border:1px solid #0000;border-radius:8px;align-items:center;gap:8px;padding:6px 8px;display:flex}.dashboard-dropdown-menu li label:hover{border-color:var(--border);background:var(--surface-soft)}.dashboard-pie-card{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:14px;margin-top:16px;padding:16px}.dashboard-pie-card h2{margin:0 0 12px;font-size:1rem}.dashboard-pie-layout{grid-template-columns:minmax(180px,230px) 1fr;align-items:center;gap:20px;display:grid}.dashboard-pie{aspect-ratio:1;border:1px solid var(--border);width:100%;box-shadow:inset 0 0 0 22px var(--surface);border-radius:50%;place-items:center;display:grid}.dashboard-pie span{color:var(--text);background-color:#b7d3e4b3;border-radius:50px;justify-content:center;align-items:center;width:30px;height:30px;margin:0;padding:0;font-size:1.5rem;font-weight:700;display:flex}.dashboard-pie-legend{gap:10px;margin:0;padding:0;list-style:none;display:grid}.dashboard-pie-legend li{border:1px solid var(--border);background:var(--surface-soft);border-radius:10px;grid-template-columns:12px 1fr auto;align-items:center;gap:10px;padding:8px 10px;display:grid}.legend-dot{border-radius:50%;width:12px;height:12px}.legend-label{color:var(--text);font-size:.88rem;font-weight:600}.dashboard-card{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:14px;padding:16px}.dashboard-card h2{margin:0 0 12px;font-size:1rem}.dashboard-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;display:grid}.dashboard-kpis p{border:1px solid var(--border);background:var(--surface-soft);border-radius:10px;gap:4px;margin:0;padding:10px;display:grid}.dashboard-kpis span{color:var(--text-soft);text-transform:uppercase;letter-spacing:.04em;font-size:.75rem}.dashboard-kpis strong{font-size:1.1rem}.dashboard-error{color:#c53f3f;margin:0}.login-page{background:radial-gradient(circle at 15% -20%, #388ab133, transparent 35%), radial-gradient(circle at 110% 10%, #b7d3e459, transparent 30%), var(--bg);place-items:center;min-height:100vh;padding:24px;display:grid}.login-card{border:1px solid var(--border);background:var(--surface);width:min(520px,100%);box-shadow:var(--shadow);border-radius:18px;gap:14px;padding:30px;display:grid}.login-badge{letter-spacing:.07em;text-transform:uppercase;color:var(--brand-strong);margin:0;font-size:.78rem;font-weight:700}.login-card h1{margin:0;font-size:1.7rem}.login-description,.login-error{color:var(--text-soft);margin:0}.login-error{color:#c53f3f}.login-button{border:1px solid var(--brand);background:linear-gradient(135deg, var(--brand), var(--brand-strong));color:#fff;cursor:pointer;border-radius:12px;padding:12px 16px;font-size:.96rem;font-weight:700}.login-button:hover{filter:brightness(1.06)}.invoices-table{flex-direction:column;justify-content:flex-start;gap:12px;min-width:auto;min-height:200px;margin-top:30px;padding:0;display:flex}.invoices-filters-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));align-items:end;gap:12px;margin-top:12px;display:grid}.invoices-filters-grid--invoices{grid-template-columns:repeat(4,minmax(220px,1fr))}.invoices-filters-grid--invoices .invoices-filter-row{grid-column:1/-1;grid-template-columns:repeat(4,minmax(220px,1fr));gap:12px;display:grid}.invoices-date-range{grid-template-columns:1fr 1fr;gap:8px;display:grid}.invoices-filter-input{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);border-radius:10px;padding:10px 12px}.invoices-filter-input:hover,.invoices-filter-input:focus{border-color:var(--brand);outline:none}.invoices-filters-actions{margin-top:8px}.ratecard-filters-actions{justify-content:space-between;align-items:center;gap:12px;width:100%;display:flex}.ratecard-toggle{color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:999px;align-items:center;gap:10px;margin-left:auto;padding:8px 12px;font-weight:600;display:inline-flex}.ratecard-toggle:hover{border-color:var(--brand)}.ratecard-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.ratecard-toggle-label{color:var(--text)}.ratecard-toggle-track{background:#8ea3b6;border-radius:999px;flex-shrink:0;width:44px;height:24px;transition:background-color .2s;position:relative}.ratecard-toggle-thumb{background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .2s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #00000040}.ratecard-toggle[aria-pressed=true] .ratecard-toggle-track{background:var(--brand)}.ratecard-toggle[aria-pressed=true] .ratecard-toggle-thumb{transform:translate(20px)}.ratecard-toggle-state{text-align:right;letter-spacing:.04em;min-width:30px;color:var(--text-soft);font-size:.78rem}.ratecard-toggle[aria-pressed=true] .ratecard-toggle-state{color:var(--brand-strong)}.reports-page{max-width:1120px}.reports-filters-grid{grid-template-columns:repeat(12,minmax(0,1fr));align-items:end;gap:12px;margin-top:20px;display:grid}.reports-filter{max-width:none}.reports-filter--customer,.reports-filter--vendor,.reports-filter--status{grid-column:span 4}.reports-filter--start-date,.reports-filter--end-date{grid-column:span 3}.reports-filters-actions{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:10px;margin-top:14px;display:flex}.reports-filters-actions .logout-button,.reports-filters-actions .theme-button{min-width:150px}.invoices-table table{border-collapse:collapse;width:100%;margin:0;padding:0}.invoices-table th,.invoices-table td{border:1px solid var(--border);text-align:left;padding:10px}.invoices-table th{background:var(--brand);color:#fff}.invoices-header-actions{gap:15px;display:flex}.invoices-details-button{border:1px solid var(--brand);background:var(--surface-soft);color:var(--text);cursor:pointer;border-radius:8px;padding:6px 10px;font-weight:600}.invoices-details-button:hover{border-color:var(--brand-strong)}.invoices-pagination{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.invoices-pagination p{color:var(--text-soft);margin:0;font-weight:600}.invoices-modal-overlay{z-index:100;background:#06142273;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.invoices-modal{border:1px solid var(--border);background:var(--surface);width:min(1200px,100%);max-height:90vh;box-shadow:var(--shadow);border-radius:14px;padding:16px;overflow:auto}.invoices-modal-header{justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;display:flex}.invoices-modal-header h2{margin:0}.invoices-modal-content{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;display:grid}.invoices-modal-layout{gap:14px;display:grid}.invoices-modal-info-lines{gap:8px;display:grid}.invoices-modal-info-lines p{color:var(--text-soft);margin:0}.invoices-modal-primary-line{font-size:1.1rem;color:var(--text)!important}.invoices-status-badge{color:#fff;text-transform:uppercase;background:#2f6f94;border-radius:999px;align-items:center;padding:3px 10px;font-size:.8rem;font-weight:700;display:inline-flex}.invoices-status-badge.warning{background:#e46a00}.invoices-status-badge.pending{background:#c58b1f}.invoices-table-status{border:1px solid var(--border);letter-spacing:.01em;text-transform:uppercase;color:var(--text);background:var(--surface-soft-alt);border-radius:999px;align-items:center;padding:2px 8px;font-size:.78rem;font-weight:700;display:inline-flex}.invoices-table-status.audited{background:var(--invoice-status-audited-bg);border-color:var(--invoice-status-audited-border);color:var(--invoice-status-audited-text)}.invoices-table-status.warning{background:var(--invoice-status-warning-bg);border-color:var(--invoice-status-warning-border);color:var(--invoice-status-warning-text)}.invoices-table-status.cancelled{background:var(--invoice-status-cancelled-bg);border-color:var(--invoice-status-cancelled-border);color:var(--invoice-status-cancelled-text)}.invoices-table-status.dispute{background:var(--invoice-status-dispute-bg);border-color:var(--invoice-status-dispute-border);color:var(--invoice-status-dispute-text)}.invoices-divergence-alert{color:#7e4f16;background:#f4ead8;border:1px solid #ead9bf;border-radius:8px;align-items:center;gap:10px;padding:12px 14px;display:flex}.invoices-divergence-icon{color:#e46a00;border:1px solid #e46a00;border-radius:50%;place-items:center;width:18px;height:18px;font-size:.8rem;font-weight:700;display:grid}.invoices-modal-section-title{margin:0 0 8px;font-size:1.15rem}.table-card{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:14px;margin:15px 0;padding:0}.table-card table{border-collapse:collapse;background-color:var(--surface);width:100%}.table-card th,.table-card td{border:1px solid var(--border);text-align:left;color:var(--text);padding:10px}.table-card thead th,.table-card .MuiTableHead-root .MuiTableCell-root{background:var(--table-head-bg);border-color:var(--table-head-border);color:#fff;font-weight:700}.table-card tbody tr:nth-child(odd) td,.table-card .MuiTableBody-root .MuiTableRow-root:nth-child(odd) .MuiTableCell-root{background:var(--surface-soft-alt)}.table-card tbody tr:nth-child(2n) td,.table-card .MuiTableBody-root .MuiTableRow-root:nth-child(2n) .MuiTableCell-root{background:var(--surface-soft)}.table-card strong{color:inherit}.invoices-modal-expenses table{border-collapse:collapse;width:100%}.invoices-modal-expenses th,.invoices-modal-expenses td{border-bottom:1px solid var(--border);text-align:left;padding:8px 6px}.invoices-modal-expenses th{color:var(--text-soft);font-weight:700}.invoices-modal-fields{gap:10px;display:grid}.invoices-modal-edit-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.invoices-modal-edit-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;display:grid}.invoices-modal-field{gap:6px;display:grid}.invoices-modal-field label{color:var(--text-soft);text-transform:uppercase;letter-spacing:.04em;font-size:.78rem;font-weight:700}.invoices-modal-input{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);resize:vertical;border-radius:6px;padding:12px;font-family:inherit;font-size:.95rem}.invoices-modal-input::placeholder{color:#6e6e6e}.invoices-modal-field .invoices-modal-input{resize:none;padding:8px 10px}.invoices-modal-expenses td .invoices-modal-input{resize:none;min-width:120px;padding:6px 8px}.invoices-modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:12px;margin-top:4px;display:flex}.invoices-action-link{color:#e46a00;cursor:pointer;background:0 0;border:0;padding:8px 0;font-weight:700}.invoices-primary-action{color:#fff;cursor:pointer;background:#0f4f7a;border:1px solid #0f4f7a;border-radius:6px;padding:8px 14px;font-weight:700}.invoices-modal-card{border:1px solid var(--border);background:var(--surface-soft);border-radius:12px;padding:12px}.invoices-modal-card h3{margin:0 0 8px}.invoices-modal-card p{color:var(--text);margin:0 0 6px}.invoices-modal-list{color:var(--text);gap:6px;margin:0;padding-left:18px;display:grid}.action-buttons{gap:15px;display:flex}.expense-row{transition:background-color .2s}.expense-row--divergence{background-color:var(--row-soft-divergence)}.expense-row--divergence:hover{background-color:#d32f2f61}.expense-row--ok{background-color:var(--row-soft-ok)}.table-card tbody tr.ratecard-row--date-alert td,.table-card .MuiTableBody-root .MuiTableRow-root.ratecard-row--date-alert .MuiTableCell-root{background:var(--row-soft-divergence)}.table-card tbody tr.ratecard-row--date-alert:hover td,.table-card .MuiTableBody-root .MuiTableRow-root.ratecard-row--date-alert:hover .MuiTableCell-root{background:#d32f2f61}@media (width<=900px){.app-header{flex-direction:column;align-items:flex-start;gap:8px;height:auto;min-height:72px;padding:12px}.header-left,.header-right{justify-content:space-between;width:100%}.brand-title{font-size:.9rem}.app-layout{min-height:calc(100vh - 108px)}.sidebar{z-index:60;box-shadow:var(--shadow);position:fixed;top:108px;bottom:0;left:0}.sidebar.closed{width:0;padding:0}.content-area{padding:20px}.profile-panel{width:min(92vw,340px)}.profile-actions,.dashboard-kpis,.dashboard-pie-layout{grid-template-columns:1fr}.dashboard-filters{max-width:none}.invoices-filters-grid--invoices{grid-template-columns:1fr}.reports-filters-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-filter--customer,.reports-filter--vendor,.reports-filter--status,.reports-filter--start-date,.reports-filter--end-date{grid-column:auto}.invoices-filters-grid--invoices .invoices-filter-row,.invoices-date-range{grid-template-columns:1fr}.invoices-filter-input{background:var(--surface);width:50%;color:var(--text);padding:5px}.reports-page .invoices-filter-input{width:100%;padding:10px 12px}.reports-filters-actions{justify-content:flex-start}.reports-filters-actions .logout-button,.reports-filters-actions .theme-button{width:100%}.invoices-pagination{flex-direction:column;align-items:flex-start}.ratecard-filters-actions{align-items:stretch}.ratecard-filters-actions .logout-button,.ratecard-filters-actions .ratecard-toggle{width:100%;margin-left:0}.ratecard-toggle{justify-content:space-between}.invoices-modal-actions{justify-content:flex-start}}@media (width<=620px){.reports-filters-grid{grid-template-columns:1fr}}
