@import"https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Urbanist:wght@400;500;600&display=swap";:root{font-family:Urbanist,Space Grotesk,sans-serif;line-height:1.5;font-weight:400;color:#111827;background-color:#f9fafc;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--nav-bg: #dff0ff;--nav-text: #1f2937;--accent: #e62318;--accent-soft: rgba(230, 35, 24, .12);--card: #ffffff;--muted: #666666;--border: #e3e8f0;--bg-hover: #f9fafc;--header-height: 140px;--header-measured: 0px;--tab-bar-height: 46px;--dashboard-number-size: 20px}*{box-sizing:border-box}html{font-size:15px}body{margin:0;min-height:100vh;background:radial-gradient(circle at top left,#e6231817,#f9fafc 42%,#e3e8f0)}a{text-decoration:none;color:inherit}h1{font-family:Space Grotesk,sans-serif;font-size:2rem;margin:0}p{margin:.4rem 0 0;color:var(--muted)}.app-shell{display:flex;height:100vh;overflow:hidden}.app-nav{width:240px;background:var(--nav-bg);color:var(--nav-text);padding:2rem 1.5rem;display:flex;flex-direction:column;gap:1.5rem;position:sticky;top:0;height:100vh;overflow-y:auto;align-self:flex-start}.nav-brand{font-family:Space Grotesk,sans-serif;font-size:1.4rem;letter-spacing:.04em}.nav-links{display:flex;flex-direction:column;gap:.75rem}.nav-link{padding:.5rem .75rem;border-radius:999px;color:var(--nav-text);transition:all .2s ease;font-size:var(--dashboard-number-size)}.nav-link.active,.nav-link:hover{background:#b9dcff;color:#1d4f91}.app-main{flex:1;display:flex;flex-direction:column;height:100vh;overflow-y:auto}.app-header{position:sticky;top:0;z-index:10;padding:1.5rem 2rem;min-height:var(--header-height);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);background:#ffffffdb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.app-title{font-family:Space Grotesk,sans-serif;font-size:1.4rem}.app-subtitle{color:var(--muted);font-size:.95rem}#header-extra{display:flex;flex-direction:column;align-items:flex-start;gap:.45rem;margin-left:0!important;margin-top:.45rem}.header-stats{color:var(--muted);font-size:.9rem;line-height:1.4}.app-user{display:flex;align-items:center;gap:1rem}.app-user-meta{display:flex;flex-direction:column;align-items:flex-end;gap:.2rem}.app-user-name{font-weight:600}.app-user-role{color:var(--muted);font-size:.8rem}.app-store-scope{display:inline-flex;align-items:center;gap:.45rem;color:var(--muted);font-size:.78rem}.app-store-scope select{min-width:160px;padding:.25rem .45rem;border-radius:8px;border:1px solid var(--border);background:#fff;font-size:.82rem;color:var(--text)}.app-content{padding:2rem;display:flex;flex-direction:column;gap:1.5rem}.api-status-banner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1rem 1.25rem;border-radius:16px;border:1px solid rgba(216,69,47,.2);background:#d8452f14;color:#7a2f22;box-shadow:0 10px 24px #d8452f14}.api-status-title{font-weight:600;margin-bottom:.15rem}.api-status-detail{font-size:.9rem;color:#8b4a3c}.api-status-actions{display:flex;align-items:center;gap:.75rem}@media(max-width:1100px){.dashboard-metric-grid{grid-template-columns:1fr}}@media(max-width:900px){.api-status-banner{flex-direction:column;align-items:flex-start}}.tab-bar{display:flex;gap:.5rem;padding:.35rem 2rem;overflow-x:auto;overflow-y:hidden;position:sticky;top:var(--header-measured);z-index:9;background:#ffffffd9;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);min-height:var(--tab-bar-height);align-items:center}.tab-chip{display:inline-flex;flex:0 0 auto;align-items:center;gap:.4rem;height:34px;padding:0 .8rem;line-height:1;box-sizing:border-box;border-radius:10px;border:1px solid var(--border);background:#fff;cursor:pointer;white-space:nowrap;transition:all .15s ease}.tab-chip:hover{border-color:var(--accent);color:var(--accent)}.tab-chip.active{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:none}.tab-close{border:none;background:transparent;color:inherit;cursor:pointer;font-size:.95rem;line-height:1;padding:0 .1rem}.page{display:flex;flex-direction:column;gap:1.5rem}.page-header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.page-tabs{display:inline-flex;gap:.5rem;flex-wrap:wrap}.page-tab{border:1px solid var(--border);background:#fff;color:inherit;padding:.35rem .85rem;border-radius:999px;font-size:.85rem;cursor:pointer;transition:all .15s ease}.page-tab:hover{border-color:var(--accent);color:var(--accent)}.page-tab.active{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 6px 14px #e623182e}.hub-grid{display:grid;grid-template-columns:1fr;gap:1.5rem;align-items:start}.hub-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.hub-group{background:var(--card);border-radius:16px;padding:.85rem 1rem;border:1px solid var(--border);box-shadow:0 10px 20px #1214160f;display:flex;flex-direction:column;gap:.65rem}.hub-group-header{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.hub-group-title{font-family:Space Grotesk,sans-serif;font-size:.88rem;color:var(--muted);letter-spacing:.02em}.hub-buttons{display:flex;flex-direction:row;flex-wrap:wrap;gap:.5rem;flex:1}.hub-button{text-align:center;padding:.45rem .9rem;border-radius:999px;border:1px solid var(--border);background:#fff;color:#1b1f24;font-family:Space Grotesk,sans-serif;cursor:pointer;transition:all .2s ease;white-space:nowrap}.hub-button:hover{border-color:var(--accent);color:var(--accent)}.hub-button.active{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 10px 18px #e6231838}.hub-content{display:flex;flex-direction:column;gap:1.5rem}.hub-panel{display:flex;flex-direction:column;gap:1rem}.hub-panel .page-header{margin-bottom:1rem}.tool-panel{display:flex;flex-direction:column;gap:1rem}.tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem}.secondary-panel{border:1px dashed var(--border);background:#ffffffdb}.secondary-panel.open{border-color:var(--accent)}.secondary-header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.secondary-actions{display:flex;align-items:center;gap:.5rem}.secondary-sub{color:var(--muted);font-size:.85rem}.secondary-body{margin-top:1rem;display:grid;grid-template-columns:220px 1fr;gap:1rem}.secondary-buttons{align-self:start;flex-direction:column}.secondary-content{min-width:0}.card{background:var(--card);border-radius:18px;padding:1.5rem;box-shadow:0 12px 24px #12141614;border:1px solid var(--border)}.card.highlight{background:linear-gradient(135deg,#1c1c20,#2f3342);color:#fff}.card-title{font-family:Space Grotesk,sans-serif;font-size:1rem;margin-bottom:.75rem}.stat-value{font-size:2.2rem;font-weight:700;font-family:Space Grotesk,sans-serif}.stat-meta{color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem}.grid .card.wide{grid-column:span 2}.dashboard-panels{display:grid;grid-template-columns:repeat(4,minmax(240px,1fr));gap:1rem;align-items:stretch}.dashboard-panel{padding:1rem 1.05rem 1.15rem;border-radius:16px;border:1px solid #e3e8f0;background:linear-gradient(180deg,#fffffffc,#f9fafcf5);box-shadow:0 10px 24px #1214160f;position:relative;overflow:hidden;height:100%}.dashboard-panel-finance{grid-column:1 / -1}.dashboard-panel:before{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:linear-gradient(90deg,#e62318f2,#e6231829)}.dashboard-panel-title{font-family:Space Grotesk,sans-serif;font-size:1rem;font-weight:700;margin-bottom:.25rem;display:flex;align-items:center;gap:.42rem}.dashboard-panel-title:before{content:"";width:8px;height:8px;border-radius:999px;background:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}.dashboard-panel-subtitle{color:var(--muted);font-size:.82rem;line-height:1.35;margin-bottom:.9rem;min-height:2.2em}.dashboard-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.dashboard-metric-grid-finance{grid-template-columns:repeat(8,minmax(0,1fr))}.dashboard-metric-grid-finance>.dashboard-metric:nth-child(1),.dashboard-metric-grid-finance>.dashboard-metric:nth-child(2),.dashboard-metric-grid-finance>.dashboard-metric:nth-child(3),.dashboard-metric-grid-finance>.dashboard-metric:nth-child(4){grid-column:span 2}.dashboard-metric-grid-finance>.dashboard-metric:nth-child(n+5){grid-column:span 2}.dashboard-metric{border:1px solid #e3e8f0;border-radius:12px;padding:.65rem .75rem;background:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:center;text-align:center;gap:.34rem;min-height:84px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.dashboard-metric:hover{transform:translateY(-1px);border-color:#e6231861;box-shadow:0 8px 14px #1214160f}a.dashboard-metric{color:inherit;text-decoration:none}a.dashboard-metric:hover .dashboard-metric-value.link{text-decoration:underline;text-decoration-thickness:1.5px}.dashboard-metric-label{font-size:.9rem;color:#111827;font-weight:700;line-height:1.3}.dashboard-metric-label+.dashboard-metric-label{margin-top:.08rem;font-size:.74rem;color:#666}.dashboard-metric-note-row{margin-top:.08rem;display:flex;justify-content:flex-end}.dashboard-metric-note-row .dashboard-metric-label{margin-top:0;font-size:.74rem;color:#666;flex:1}.dashboard-metric-note-btn{width:18px;height:18px;border-radius:999px;border:1px solid #d7cbb8;background:#fffaf2;color:#8b6d49;display:inline-flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:700;line-height:1;flex-shrink:0;padding:0;cursor:pointer}.dashboard-metric-note-btn:hover{border-color:#c4a983;background:#fdf2e6}.dashboard-metric-note-btn:focus-visible{outline:none;box-shadow:0 0 0 3px #e623182e}.dashboard-hint-modal{width:min(480px,94vw);padding:1.25rem 1.45rem}.dashboard-hint-modal-content{font-size:.9rem;color:#374151;line-height:1.55}.dashboard-metric-value{font-family:Space Grotesk,sans-serif;font-size:var(--dashboard-number-size);font-weight:800;line-height:1.12;color:#121416;font-variant-numeric:tabular-nums;width:100%;text-align:center}.dashboard-metric-value.link{color:#0f5ea7;text-decoration:none}.dashboard-metric-value.link.dashboard-metric-value-alert{color:#d84333;font-size:var(--dashboard-number-size);font-weight:800}.dashboard-metric-value.money{font-size:var(--dashboard-number-size)}.dashboard-metric-combo{align-items:stretch;text-align:left;justify-content:flex-start;gap:.5rem}.dashboard-metric-combo-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.5rem}.dashboard-metric-combo-key{font-size:.88rem;color:#111827;font-weight:700;white-space:nowrap}.dashboard-metric-combo-value{font-size:var(--dashboard-number-size);width:auto;min-width:3ch;text-align:right;justify-self:end}.dashboard-metric-return-unliquidated .dashboard-return-unliquidated-table{display:grid;gap:.48rem;margin-top:0}.dashboard-metric-return-unliquidated .dashboard-return-unliquidated-title,.dashboard-metric-return-unliquidated .dashboard-return-unliquidated-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(54px,auto) minmax(54px,auto);align-items:center;gap:.36rem}.dashboard-metric-return-unliquidated .dashboard-return-unliquidated-title span{font-size:.69rem;color:#666;font-weight:700;text-align:right}.dashboard-metric-return-unliquidated .dashboard-return-unliquidated-title .dashboard-metric-label{font-size:.9rem;color:#111827;text-align:left}.dashboard-metric-return-unliquidated .dashboard-return-unliquidated-title span:first-child{text-align:left}.dashboard-metric-return-unliquidated .dashboard-return-unliquidated-row .dashboard-metric-combo-value{min-width:0;width:100%;font-size:var(--dashboard-number-size)}.dashboard-metric-return-unliquidated .dashboard-return-unliquidated-row{padding-top:0;padding-bottom:0}.dashboard-metric-return-unliquidated .dashboard-metric-combo-key{font-size:.82rem}@media(max-width:1280px){.dashboard-panels{grid-template-columns:repeat(2,minmax(320px,1fr))}.dashboard-metric-grid-finance{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-metric-grid-finance>.dashboard-metric:nth-child(1),.dashboard-metric-grid-finance>.dashboard-metric:nth-child(2),.dashboard-metric-grid-finance>.dashboard-metric:nth-child(3),.dashboard-metric-grid-finance>.dashboard-metric:nth-child(4),.dashboard-metric-grid-finance>.dashboard-metric:nth-child(n+5){grid-column:span 1}}@media(max-width:1080px){.dashboard-panels{grid-template-columns:1fr}.dashboard-metric-grid-finance{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:640px){.dashboard-metric-grid{grid-template-columns:1fr}.dashboard-metric-grid-finance{grid-template-columns:repeat(4,minmax(5.8rem,1fr));overflow-x:auto;padding-bottom:.2rem}.dashboard-metric-return-unliquidated .dashboard-return-unliquidated-title,.dashboard-metric-return-unliquidated .dashboard-return-unliquidated-row{grid-template-columns:minmax(0,1fr) minmax(54px,auto) minmax(54px,auto);gap:.42rem}}.list{display:flex;flex-direction:column;gap:.75rem}.list-row{display:flex;justify-content:space-between;align-items:center;padding:.6rem .75rem;border-radius:12px;background:#f9fafc}.list-title{font-weight:600}.list-subtitle{font-size:.85rem;color:var(--muted)}.list-amount{font-weight:600}.action-list{display:flex;flex-direction:column;gap:.5rem;font-size:.95rem}.table-card{padding:1rem 1.5rem 1.5rem}.table-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;color:var(--muted)}.table-toolbar-left{display:flex;flex-direction:column;gap:.5rem}.table-filters{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}.table-filters input{padding:.45rem .7rem;border-radius:10px;border:1px solid var(--border);font-size:.85rem;background:#fff;min-width:180px}.table-wrapper{overflow-x:auto}.payments-sticky-wrapper{max-height:68vh;overflow-y:auto}.payments-sticky-table thead th{position:sticky;top:0;z-index:3;background:#fff}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:.75rem;border-bottom:1px solid var(--border);font-size:.9rem}th{text-transform:uppercase;letter-spacing:.05em;font-size:.7rem;color:var(--muted)}tr.target-row td{background:#fff7ed}.lodging-monthly-detail-table th,.lodging-monthly-detail-table td{padding-top:.375rem;padding-bottom:.375rem}.table-actions{display:flex;gap:.5rem}.inline-toolbar{display:flex;justify-content:flex-end}.form{display:flex;flex-direction:column;gap:1rem}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.field{display:flex;flex-direction:column;gap:.35rem;font-size:.85rem}.field input,.field select,.field textarea{padding:.6rem .7rem;border-radius:10px;border:1px solid var(--border);font-family:inherit;font-size:.9rem;background:#fff}.searchable-select input{background:#fff;border:1px solid var(--border);border-radius:10px;padding:.6rem .7rem}.searchable-select{position:relative;z-index:0}.searchable-select.open{z-index:3000}.options-dropdown{background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 30px #0000001f;z-index:1;overflow:hidden;opacity:1;-webkit-backdrop-filter:none;backdrop-filter:none;isolation:isolate}.option-item{background:#fff;opacity:1}.option-item:hover{background:var(--bg-hover)}.field textarea{min-height:80px}.form-actions{display:flex;gap:.75rem}.btn{border:none;border-radius:999px;padding:.55rem 1.2rem;font-family:Space Grotesk,sans-serif;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.btn.small{padding:.4rem .9rem;font-size:.82rem}.btn:hover{transform:translateY(-1px);box-shadow:0 6px 18px #1214161f}.btn.primary{background:var(--accent);color:#fff}.btn.ghost{background:transparent;border:1px solid var(--border);color:var(--muted)}.btn.danger{background:#f0583d;color:#fff}.pill{background:var(--accent-soft);color:var(--accent);padding:.4rem .9rem;border-radius:999px;font-size:.85rem}.pill.ghost{background:#f3f4f6;color:#374151}.pill.success{background:#e6f4ea;color:#1b7a36}.pill.pending{background:#dbeafe;color:#1e3a8a}.pill.danger{background:#fde7e7;color:#b42318}.driver-flow-name-cell{display:inline-flex;align-items:center;gap:.35rem}.driver-flow-guaranteed-dot{display:inline-block;width:8px;height:8px;border-radius:999px;background:#f59e0b;box-shadow:0 0 0 3px #f59e0b2e;flex:0 0 auto}.driver-flow-guaranteed-badge{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;background:#f59e0b;color:#fff;font-size:.72rem;font-weight:700;line-height:1;box-shadow:0 2px 6px #f59e0b47}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;background:radial-gradient(circle at top,#e623181a,#f9fafc 58%,#e3e8f0)}.login-card{width:min(400px,90vw);background:#fff;border-radius:22px;padding:2rem;box-shadow:0 20px 40px #12141626;display:flex;flex-direction:column;gap:1rem}.login-title{font-family:Space Grotesk,sans-serif;font-size:1.8rem}.login-subtitle{color:var(--muted)}.login-form{display:flex;flex-direction:column;gap:.9rem}.login-hint{font-size:.85rem;color:var(--muted)}.error-text{color:#d8452f;font-size:.9rem}.modal-backdrop{position:fixed;inset:0;background:#12141666;display:flex;align-items:center;justify-content:center;padding:1.5rem;z-index:1000}.modal-card{width:min(920px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:26px;padding:2rem 2.25rem;box-shadow:0 24px 60px #0f172a1f;border:1px solid #e7e7e7}.form-modal{padding:2rem 2.25rem;border-radius:26px;background:#fff;border:1px solid #e7e7e7;box-shadow:0 24px 60px #0f172a1f}.form-modal .modal-header{margin-bottom:1.5rem;padding-bottom:0;border-bottom:none}.form-modal .modal-title{font-size:1.3rem;letter-spacing:.01em}.form-modal .form,.form-modal .form-grid{gap:1.2rem}.form-modal .field{background:transparent;border:none;border-radius:0;padding:0;gap:.35rem;box-shadow:none}.form-modal .field span{font-size:.85rem;color:var(--muted);letter-spacing:.01em;font-weight:600}.form-modal .field input,.form-modal .field select,.form-modal .field textarea{border:1px solid var(--border);padding:.6rem .75rem;background:#fff;font-size:.95rem}.form-modal .field:focus-within{border-color:transparent;background:transparent;box-shadow:none}.form-modal .field:focus-within input,.form-modal .field:focus-within select,.form-modal .field:focus-within textarea{border-color:var(--accent);box-shadow:0 0 0 3px #e6231824}.form-modal .form-actions{justify-content:flex-end;padding-top:1rem;border-top:1px dashed rgba(18,20,22,.08)}.form-modal .btn.primary{box-shadow:0 10px 20px #e6231838}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.4rem;gap:1rem}.modal-title{font-family:Space Grotesk,sans-serif;font-size:1.3rem;font-weight:700;color:#1f2937}.modal-close{width:36px;height:36px;border-radius:999px;border:1px solid #e5e5e5;background:#fff;color:#6b7280;display:inline-flex;align-items:center;justify-content:center;font-size:1.05rem;cursor:pointer;transition:border-color .2s ease,color .2s ease,box-shadow .2s ease}.modal-close:hover{border-color:#d1d5db;color:#111827;box-shadow:0 8px 16px #0f172a14}.search-card input{padding:.65rem .8rem;border-radius:10px;border:1px solid var(--border);min-width:240px;font-size:.95rem}.search-title{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.search-actions{display:flex;gap:.6rem;align-items:center}.contract-grid{display:flex;flex-wrap:wrap;gap:.9rem;margin-top:1rem}.contract-card{flex:0 0 380px;width:380px;max-width:100%;border:1px solid var(--border);border-radius:14px;padding:.9rem;background:#fff;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,transform .1s ease}.contract-card:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:0 10px 20px #12141614}.contract-card.active{border-color:var(--accent);box-shadow:0 12px 24px #e6231829}.contract-row{display:flex;justify-content:space-between;align-items:center;gap:.75rem;font-size:.95rem}.contract-row+.contract-row{margin-top:.45rem}.contract-right{margin-left:auto;text-align:right;white-space:nowrap}.bill-list{display:flex;flex-direction:column;gap:.6rem}.bill-row{padding:.75rem .9rem;border-radius:12px;border:1px solid var(--border);background:#fff;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}.bill-row.active{border-color:var(--accent);box-shadow:0 10px 20px #e6231824}.bill-row-main{display:flex;justify-content:space-between;align-items:center}.bill-row-meta,.bill-row-amounts{display:flex;gap:1rem;flex-wrap:wrap;font-size:.9rem;color:var(--muted);margin-top:.35rem}.bill-row-amounts span{font-weight:600;color:#1b1f24}.bill-no{font-weight:700;letter-spacing:.01em}.bill-card-list{display:flex;flex-direction:column;gap:.75rem}.bill-card{border:1px solid var(--border);border-radius:14px;padding:.9rem 1rem;background:#fff;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,transform .1s ease}.bill-card:hover{border-color:var(--accent);box-shadow:0 8px 16px #e623181f}.bill-card.active{border-color:var(--accent);box-shadow:0 12px 22px #e6231826}.bill-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.35rem}.bill-card-meta{display:flex;flex-wrap:wrap;gap:1rem;color:var(--muted);font-size:.9rem;margin-bottom:.4rem}.bill-card-amounts{display:flex;flex-wrap:wrap;gap:.5rem}.chips-row{margin-top:.35rem}.amount-chip{padding:.4rem .75rem;border-radius:10px;font-weight:600;font-size:.92rem}.amount-chip.due{background:#f3f4f6;color:var(--muted)}.amount-chip.paid{background:#eef3ff;color:#1e3a8a}.amount-chip.outstanding{background:#fff4ed;color:#b24a1b}.bill-detail-card{display:flex;flex-direction:column;gap:1rem}.bill-detail-header{display:flex;justify-content:space-between;align-items:center}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.8rem}.detail-block{border:1px solid var(--border);border-radius:12px;padding:.9rem;background:#fdfbf8}.detail-title{font-weight:600;margin-bottom:.25rem}.detail-amount{font-size:1.2rem;font-weight:700}.detail-list{display:flex;flex-direction:column;gap:.5rem}.detail-row{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--border);padding:.75rem .9rem;border-radius:10px}.muted{color:var(--muted)}.strong{font-weight:600}.bill-items{margin-top:1rem;border:1px solid var(--border);border-radius:12px;padding:.75rem .9rem;background:#fff}.bill-detail-main-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:1rem;align-items:start}.bill-detail-main-grid>*{min-width:0}.bill-detail-main-grid .bill-items{margin-top:0}.bill-payment-panel{border:1px solid var(--border);border-radius:12px;padding:.75rem .9rem;background:#fff}.bill-payment-panel .table-wrapper{overflow-x:auto}.bill-items-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.bill-items-table-wrapper{overflow-x:auto}.bill-items-table{width:100%;border-collapse:collapse;table-layout:fixed}.bill-items-table th:nth-child(1),.bill-items-table td:nth-child(1){width:18%}.bill-items-table th:nth-child(2),.bill-items-table td:nth-child(2){width:24%}.bill-items-table th:nth-child(3),.bill-items-table td:nth-child(3){width:12%}.bill-items-table th:nth-child(4),.bill-items-table td:nth-child(4){width:12%}.bill-items-table th:nth-child(5),.bill-items-table td:nth-child(5){width:12%}.bill-items-table th:nth-child(6),.bill-items-table td:nth-child(6){width:12%}.bill-items-table th:nth-child(7),.bill-items-table td:nth-child(7){width:10%}.bill-items-table th:nth-child(2),.bill-items-table td:nth-child(2){min-width:160px}.bill-items-table th:last-child,.bill-items-table td:last-child{text-align:center}.bill-items-table th:nth-child(3),.bill-items-table th:nth-child(4),.bill-items-table th:nth-child(5),.bill-items-table th:nth-child(6),.bill-items-table td:nth-child(3),.bill-items-table td:nth-child(4),.bill-items-table td:nth-child(5),.bill-items-table td:nth-child(6){text-align:right}.bill-items-table th,.bill-items-table td{padding:.42rem .55rem;border-bottom:1px solid var(--border);font-size:.9rem;text-align:left;vertical-align:middle}.bill-items-table th{color:var(--muted);font-size:.85rem;letter-spacing:.02em}.bill-items-table.bill-items-table-guaranteed th:nth-child(1),.bill-items-table.bill-items-table-guaranteed td:nth-child(1){width:16%}.bill-items-table.bill-items-table-guaranteed th:nth-child(2),.bill-items-table.bill-items-table-guaranteed td:nth-child(2){width:10%;min-width:0}.bill-items-table.bill-items-table-guaranteed th:nth-child(3),.bill-items-table.bill-items-table-guaranteed td:nth-child(3){width:8%}.bill-items-table.bill-items-table-guaranteed th:nth-child(4),.bill-items-table.bill-items-table-guaranteed td:nth-child(4),.bill-items-table.bill-items-table-guaranteed th:nth-child(5),.bill-items-table.bill-items-table-guaranteed td:nth-child(5),.bill-items-table.bill-items-table-guaranteed th:nth-child(6),.bill-items-table.bill-items-table-guaranteed td:nth-child(6),.bill-items-table.bill-items-table-guaranteed th:nth-child(7),.bill-items-table.bill-items-table-guaranteed td:nth-child(7),.bill-items-table.bill-items-table-guaranteed th:nth-child(8),.bill-items-table.bill-items-table-guaranteed td:nth-child(8),.bill-items-table.bill-items-table-guaranteed th:nth-child(9),.bill-items-table.bill-items-table-guaranteed td:nth-child(9),.bill-items-table.bill-items-table-guaranteed th:nth-child(10),.bill-items-table.bill-items-table-guaranteed td:nth-child(10),.bill-items-table.bill-items-table-guaranteed th:nth-child(11),.bill-items-table.bill-items-table-guaranteed td:nth-child(11){width:8.25%}.bill-items-table.bill-items-table-guaranteed th:nth-child(1),.bill-items-table.bill-items-table-guaranteed td:nth-child(1),.bill-items-table.bill-items-table-guaranteed th:nth-child(2),.bill-items-table.bill-items-table-guaranteed td:nth-child(2),.bill-items-table.bill-items-table-guaranteed th:nth-child(3),.bill-items-table.bill-items-table-guaranteed td:nth-child(3){padding-left:.45rem;padding-right:.45rem}.bill-items-table.bill-items-table-guaranteed th:nth-child(3),.bill-items-table.bill-items-table-guaranteed th:nth-child(4),.bill-items-table.bill-items-table-guaranteed th:nth-child(5),.bill-items-table.bill-items-table-guaranteed th:nth-child(6),.bill-items-table.bill-items-table-guaranteed th:nth-child(7),.bill-items-table.bill-items-table-guaranteed th:nth-child(8),.bill-items-table.bill-items-table-guaranteed th:nth-child(9),.bill-items-table.bill-items-table-guaranteed th:nth-child(10),.bill-items-table.bill-items-table-guaranteed td:nth-child(3),.bill-items-table.bill-items-table-guaranteed td:nth-child(4),.bill-items-table.bill-items-table-guaranteed td:nth-child(5),.bill-items-table.bill-items-table-guaranteed td:nth-child(6),.bill-items-table.bill-items-table-guaranteed td:nth-child(7),.bill-items-table.bill-items-table-guaranteed td:nth-child(8),.bill-items-table.bill-items-table-guaranteed td:nth-child(9),.bill-items-table.bill-items-table-guaranteed td:nth-child(10){text-align:right}.bill-items-table.bill-items-table-guaranteed th:nth-child(11),.bill-items-table.bill-items-table-guaranteed td:nth-child(11){text-align:center}.bill-items-table.bill-items-table-no-flow th:nth-child(1),.bill-items-table.bill-items-table-no-flow td:nth-child(1){width:24%}.bill-items-table.bill-items-table-no-flow th:nth-child(2),.bill-items-table.bill-items-table-no-flow td:nth-child(2),.bill-items-table.bill-items-table-no-flow th:nth-child(3),.bill-items-table.bill-items-table-no-flow td:nth-child(3),.bill-items-table.bill-items-table-no-flow th:nth-child(4),.bill-items-table.bill-items-table-no-flow td:nth-child(4),.bill-items-table.bill-items-table-no-flow th:nth-child(5),.bill-items-table.bill-items-table-no-flow td:nth-child(5),.bill-items-table.bill-items-table-no-flow th:nth-child(6),.bill-items-table.bill-items-table-no-flow td:nth-child(6){width:15.2%;min-width:0}.bill-items-table.bill-items-table-no-flow th:nth-child(2),.bill-items-table.bill-items-table-no-flow th:nth-child(3),.bill-items-table.bill-items-table-no-flow th:nth-child(4),.bill-items-table.bill-items-table-no-flow th:nth-child(5),.bill-items-table.bill-items-table-no-flow td:nth-child(2),.bill-items-table.bill-items-table-no-flow td:nth-child(3),.bill-items-table.bill-items-table-no-flow td:nth-child(4),.bill-items-table.bill-items-table-no-flow td:nth-child(5){text-align:right}.bill-items-table.bill-items-table-no-flow th:nth-child(6),.bill-items-table.bill-items-table-no-flow td:nth-child(6){text-align:center}.bill-items-table tbody tr:hover{background:#f9fafb}.bill-items-table tbody tr:last-child td{border-bottom:none}@media(max-width:1280px){.bill-detail-main-grid{grid-template-columns:1fr}.bill-detail-main-grid .bill-payment-panel{margin-top:1rem!important}}.bill-total-row td{border-top:1px solid var(--border);background:#fffaf0}.num-cell{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.delta-pos{color:#312e81;font-weight:600}.delta-neg{color:#b45309;font-weight:600}.delta-zero{color:var(--muted)}.settlement-chip{display:inline-flex;align-items:center;padding:.25rem .55rem;border-radius:999px;font-weight:600;font-size:.85rem;line-height:1}.bill-header-search{display:inline-flex;gap:.6rem;align-items:center;margin-left:1rem}.bill-header-search input{padding:.55rem .8rem;border-radius:10px;border:1px solid var(--border);min-width:240px;font-size:.95rem}@media(max-width:900px){.bill-header-search{display:flex;flex-direction:column;align-items:flex-start;margin-left:0;margin-top:.4rem}.bill-header-search input{width:100%}}@media(max-width:960px){.app-shell{flex-direction:column;height:auto}.app-nav{width:100%;flex-direction:row;flex-wrap:wrap;gap:.5rem;align-items:center;position:static;height:auto;overflow:visible}.nav-links{flex-direction:row;flex-wrap:wrap}.app-header{flex-direction:column;align-items:flex-start;gap:.75rem}.app-content{padding:1.5rem}.grid .card.wide{grid-column:span 1}.hub-grid{grid-template-columns:1fr}.hub-sidebar{position:static;grid-template-columns:1fr}.page-header{align-items:flex-start;flex-direction:column}.secondary-body{grid-template-columns:1fr}}.nav-group{margin-bottom:.25rem}.nav-group-title{display:flex;align-items:center;padding:.75rem;color:var(--nav-text);font-size:.95rem;font-weight:500;cursor:pointer;border-radius:999px;transition:all .2s ease;list-style:none}.nav-group-title::-webkit-details-marker{display:none}.nav-group-title:hover{background:var(--accent-soft);color:var(--accent)}.nav-group[open] .nav-group-title{color:var(--accent);font-weight:600}.nav-nested{display:flex;flex-direction:column;gap:.25rem;padding-left:1.2rem;margin-top:.25rem;border-left:1px solid rgba(255,255,255,.1);margin-left:.8rem}.nav-nested .nav-link{padding:.4rem .75rem;font-size:.9rem}
