.finance-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin:20px 0 28px}.finance-stat{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:24px;display:grid;gap:14px}.finance-stat span{color:var(--muted)}.finance-stat strong{font-size:25px;color:var(--ink);overflow-wrap:anywhere}.finance-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:14px;align-items:end;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:22px;margin-bottom:20px}.finance-filters .btn{min-height:46px}.finance-overview{margin-bottom:28px}.owner-bottom-nav{display:flex;position:fixed;bottom:16px;left:calc(50% - 122px);transform:translateX(-50%);z-index:8;gap:8px;padding:9px;border-radius:20px;background:var(--panel);border:1px solid var(--line);box-shadow:0 12px 36px #0005;width:min(740px,calc(100% - 290px))}.owner-bottom-nav .nav-link{flex:1;justify-content:center;white-space:nowrap;min-height:50px;font-size:14px;padding:10px}.owner-bottom-nav .nav-link.active{box-shadow:none;background:#454c57;color:white}.workspace:has(~ .owner-bottom-nav){padding-bottom:100px}html[dir=ltr] .owner-bottom-nav{left:calc(50% + 122px)}.report-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.report-paper{background:var(--panel);padding:28px;border:1px solid var(--line);border-radius:16px}.report-heading{display:flex;justify-content:space-between;gap:25px;border-bottom:2px solid var(--line);padding-bottom:15px}.report-heading strong{font-size:26px;letter-spacing:3px}.report-basis{font-size:13px;color:var(--muted)}.salary-net{font-size:20px;font-weight:bold}textarea{width:100%;resize:vertical;min-height:90px;font:inherit;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:12px}.finance-table td{white-space:normal;overflow-wrap:anywhere}.finance-table td small{display:block;max-width:280px}.finance-table table{min-width:0;width:100%}html[data-theme=sport] .owner-bottom-nav .nav-link.active{background:#a62233}html[data-theme=light] .owner-bottom-nav .nav-link.active{background:#454c57;color:white}html[data-theme=light] textarea{color:#152332;background:#fff}
@media(max-width:1050px){.owner-bottom-nav .nav-link{font-size:12px;gap:5px;padding:8px 5px}.owner-bottom-nav .nav-icon{display:none}}
@media(max-width:760px){.owner-bottom-nav,html[dir=ltr] .owner-bottom-nav{left:0;transform:none;bottom:0;width:100%;border-radius:18px 18px 0 0;padding:8px 4px calc(8px + env(safe-area-inset-bottom));gap:2px}.owner-bottom-nav .nav-link{font-size:11px;display:flex;flex-direction:column;gap:4px;padding:7px 3px}.owner-bottom-nav .nav-icon{display:block;font-size:20px}.finance-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.finance-stat{padding:16px}.finance-stat strong{font-size:21px}.finance-stat:last-child{grid-column:1/-1}.finance-filters{grid-template-columns:1fr 1fr;padding:14px}.report-paper{padding:14px}.report-heading{flex-direction:column;gap:5px}.finance-table table,.finance-table tbody,.finance-table tr,.finance-table td{display:block}.finance-table thead{display:none}.finance-table tr{border:1px solid var(--line);border-radius:12px;padding:13px;margin-bottom:12px;background:var(--panel)}.finance-table td{border:0;padding:7px;display:flex;gap:10px;justify-content:space-between;text-align:end}.finance-table td:before{content:attr(data-label);font-size:12px;color:var(--muted);flex-shrink:0}.finance-table .row-actions{flex-wrap:wrap}.finance-table.table-wrap{border:0;overflow:visible}}
@media print{
 @page{size:A4 landscape;margin:12mm}
 html,body{background:white!important;color:black!important;font-size:10pt!important;color-scheme:light}
 body *{visibility:hidden}#finance-print,#finance-print *{visibility:visible}
 .sidebar,.topbar,.owner-bottom-nav,.mobile-nav,.finance-filters,.page-heading,.report-actions,.no-print,#toast,dialog{display:none!important}
 .workspace,.content{margin:0!important;padding:0!important;width:100%!important;max-width:none!important}
 #finance-print{position:static;border:0!important;background:white!important;color:black!important;padding:0!important;width:100%!important}
 #finance-print *{color:black!important;box-shadow:none!important;background:transparent!important}
 .report-heading{display:flex;flex-direction:row}.report-paper .finance-stats{display:flex;gap:8px}.report-paper .finance-stat{flex:1;border:1px solid #aaa;padding:10px;break-inside:avoid}.report-paper .finance-stat strong{font-size:15pt}
 .report-paper .table-wrap{overflow:visible!important;border:0!important}.report-paper table{display:table!important;table-layout:fixed;width:100%!important;border-collapse:collapse}.report-paper thead{display:table-header-group!important}.report-paper tbody{display:table-row-group!important}.report-paper tr{display:table-row!important;break-inside:avoid}.report-paper th,.report-paper td{display:table-cell!important;border:1px solid #aaa!important;padding:6px!important;font-size:9pt!important;white-space:normal!important;overflow-wrap:anywhere}.report-paper td:before{display:none}.report-paper .badge{border:0}.report-heading{break-after:avoid}
}
.invoice-form{display:grid;gap:22px}.invoice-lines{display:grid;gap:14px}.invoice-line{display:grid;grid-template-columns:minmax(160px,2fr) 90px 140px auto;gap:12px;align-items:end;border:1px solid var(--line);border-radius:12px;padding:16px}.invoice-customer{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:22px 0}.invoice-customer>div{display:grid;gap:7px}.invoice-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.invoice-list-card>div{display:flex;justify-content:space-between;gap:10px}.invoice-list-card h2{margin-top:18px}.invoice-list-card>small{display:block;margin-top:10px}.invoice-success{padding:16px;border:1px solid #4d8e67;background:#153821;color:#c5f4d6;border-radius:10px}.notice-link{font-size:13px}.sidebar{overflow-y:auto}.side-nav{margin-top:16px;gap:3px}.side-nav .nav-link{padding:9px 12px}.sidebar-brand{padding-bottom:18px}.owner-bottom-nav{width:min(850px,calc(100% - 270px))}.owner-bottom-nav .nav-link{font-size:12px}.owner-bottom-nav .nav-icon{width:17px}.topbar-actions{flex-wrap:wrap}html[data-theme=light] .invoice-success{background:#e7f6ec;color:#1a5630}
@media(max-width:760px){.invoice-line{grid-template-columns:1fr 1fr;padding:12px}.invoice-line>label:first-child{grid-column:1/-1}.invoice-line>.danger{grid-column:1/-1}.invoice-customer{grid-template-columns:1fr 1fr}.owner-bottom-nav{width:100%}.owner-bottom-nav .nav-link{font-size:10px}.notice-link{font-size:11px;padding:8px}.invoice-list{grid-template-columns:1fr}.topbar-title{display:none}}
.invoice-ticket{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--panel2)}
.invoice-ticket>div{display:grid;gap:4px;padding:14px 18px;border-inline-end:1px dashed var(--line)}.invoice-ticket>div:last-child{border:0}
.invoice-ticket small{color:var(--muted)}.invoice-ticket strong{font-size:18px}
.invoice-form h2{margin:8px 0 0;font-size:18px;padding-top:6px;border-top:1px solid var(--line)}.invoice-form h2:first-of-type{border:0}
.field-hint{display:block;margin-top:4px;color:var(--muted);font-size:12px;font-weight:400}
.pay-chips{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pay-chip{position:relative;display:block;cursor:pointer}
.pay-chip input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}
.pay-chip span{display:flex;align-items:center;justify-content:center;min-height:54px;padding:0 12px;border:2px solid var(--line);border-radius:14px;background:var(--panel2);font-size:16px;font-weight:700;text-align:center;transition:.15s}
.pay-chip input:checked+span{border-color:var(--silver);background:var(--silver);color:var(--bg)}
.pay-chip input:focus-visible+span{outline:2px solid var(--silver);outline-offset:3px}
.big-submit{min-height:54px;font-size:17px}
@media(max-width:760px){.invoice-ticket{grid-template-columns:1fr 1fr}.invoice-ticket>div:last-child{grid-column:1/-1;border-top:1px dashed var(--line)}.pay-chips{grid-template-columns:1fr}.invoice-customer{grid-template-columns:1fr 1fr}}


.shared-bottom-nav{display:flex!important;z-index:10;justify-content:space-around}.shared-bottom-nav .nav-link{flex:1;min-width:0;padding:8px 4px}.contact-brand img{width:48px;height:20px;object-fit:contain}.guest-bottom{width:min(450px,calc(100% - 24px))}.content{padding-bottom:140px}.auth-shell{padding-bottom:120px}.permission-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.work-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-top:24px}.work-card img,.upload-preview{width:100%;height:230px;object-fit:cover;border-radius:10px}.work-card h2{font-size:20px;margin-top:16px}.work-card .danger{margin-top:15px}.upload-preview{max-width:500px;object-fit:contain}.toast{bottom:110px}html[data-theme=light] .contact-brand img{filter:invert(1)}@media(max-width:760px){.shared-bottom-nav{width:100%;bottom:0;left:0;transform:none;border-radius:14px 14px 0 0}.shared-bottom-nav .nav-link{font-size:10px;gap:4px}.shared-bottom-nav .contact-brand img{width:38px}.work-grid{grid-template-columns:1fr}}@media print{.shared-bottom-nav{display:none!important}}

.owner-more{margin-top:12px;border-top:1px solid var(--line);padding-top:14px}.owner-more summary{cursor:pointer;padding:12px;color:var(--muted)}.owner-more .nav-link{font-size:13px}.owner-search{display:grid;gap:14px;max-width:680px}.statement-paper{background:#fff;color:#202823;padding:36px;border-radius:18px}.statement-header{text-align:center;border-bottom:3px solid #627069;padding-bottom:22px}.statement-header img{width:240px;max-width:80%;height:85px;object-fit:contain;filter:grayscale(1) contrast(4) invert(1)}.statement-header h2{color:#17251f;font-size:28px;margin:12px 0}.statement-header p{color:#58665f}.statement-legend{display:flex;justify-content:center;gap:24px;font-size:12px;color:#5d7669}.statement-legend span{border-bottom:4px solid #8fc3a3;padding:6px}.statement-legend span:last-child{border-color:#d79aa6;color:#ae6172}.statement-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:22px 0}.statement-stats section{display:grid;gap:12px;background:var(--panel);border:1px solid var(--line);border-top:5px solid #94a39b;border-radius:12px;padding:20px;text-align:center}.statement-stats strong{font-size:23px}.statement-paper .statement-stats section{background:#f8faf9;color:#26362e;border-color:#d5ddd7;border-top-color:#94a39b}.statement-paper .statement-table th{background:#4d5c54;color:white;white-space:normal}.statement-paper .statement-table td{background:transparent;color:#374c40;white-space:normal;border:1px solid #d8dfda;font-size:13px;padding:12px 8px}.statement-table .paid-row{background:#f0f8f3}.statement-table .unpaid-row{background:#fcf2f3}.statement-table a{color:inherit;text-decoration:underline}.statement-paper h3{font-size:17px;color:#3e5146}.statement-paper footer{margin-top:24px;font-size:12px;color:#61756b}.statement-paper small{color:#61756b}.statement-paper .empty{color:#61756b}.statement-table table{min-width:1000px}.statement-paper .statement-table{margin-top:14px}.shared-bottom-nav:has([href="?page=notifications"]){width:min(650px,calc(100% - 270px))}.shared-bottom-nav:has([href="?page=notifications"]) .nav-icon{display:inline-block}.statement-paper .statement-stats strong{color:#26362e!important}
@media(max-width:760px){.statement-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.statement-stats section{padding:15px 8px}.statement-stats strong{font-size:20px}.statement-paper{padding:18px 12px}.statement-header h2{font-size:23px}.shared-bottom-nav:has([href="?page=notifications"]){width:100%}.statement-table table,.statement-table tbody,.statement-table tr,.statement-table td{display:block;min-width:0}.statement-table thead{display:none}.statement-table tr{margin:12px 0;border-radius:10px;border:1px solid #d8dfda;padding:10px}.statement-paper .statement-table td{display:flex;justify-content:space-between;border:0;gap:14px;padding:6px;text-align:end}.statement-table td:before{content:attr(data-label);font-size:12px;color:#65776c;flex-shrink:0}.statement-table.table-wrap{overflow:visible;border:0}}
@media print{.statement-paper{break-before:avoid}.statement-paper .statement-header{border-bottom:2px solid #627069!important;break-after:avoid}.statement-paper .statement-header img{display:block;margin:auto;width:180px;height:60px}.statement-paper .statement-header h2{font-size:18pt}.statement-paper .statement-stats{display:flex;gap:8px}.statement-paper .statement-stats section{flex:1;border:1px solid #adbab1;border-top:3px solid #94a39b;border-radius:6px;padding:10px;break-inside:avoid}.statement-paper .statement-stats strong{font-size:14pt}.statement-paper .statement-table table{min-width:0!important;table-layout:fixed}.statement-paper .statement-table th{background:#4d5c54!important;color:white!important;font-size:8pt!important}.statement-paper .statement-table td{font-size:8pt!important;padding:6px 4px!important;border-color:#c6d1c9!important}.statement-paper .statement-table .paid-row td{background:#f0f8f3!important}.statement-paper .statement-table .unpaid-row td{background:#fcf2f3!important}.statement-paper .statement-table a{text-decoration:none}.statement-paper *{-webkit-print-color-adjust:exact;print-color-adjust:exact}.statement-header p{margin:5px 0}.statement-paper footer{break-inside:avoid}.owner-more{display:none!important}}

@media(min-width:761px){.statement-table table{min-width:0;table-layout:fixed;width:100%}.statement-paper .statement-table th{font-size:12px;padding:10px 5px}.statement-paper .statement-table td{font-size:12px;overflow-wrap:anywhere}.statement-table th:nth-child(2){width:13%}.statement-table th:nth-child(6){width:12%}}

.contact-brand .contact-icon{display:block;width:44px;height:24px;min-width:44px;max-width:44px;max-height:24px;background:#eee;mask-image:url(../assets/logo-clear.svg);mask-mode:luminance;mask-size:contain;mask-position:center;mask-repeat:no-repeat;-webkit-mask-image:url(../assets/logo-clear.svg);-webkit-mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat}html[data-theme=light] .contact-brand .contact-icon{background:#000}

.statement-sub{display:block;margin-top:5px;font-size:11px}.statement-paper{max-width:820px;margin-inline:auto}@media print{@page{size:A4 portrait;margin:10mm}.statement-paper{max-width:none!important;width:100%!important}.statement-paper .statement-table th,.statement-paper .statement-table td{font-size:7.5pt!important;padding:5px 3px!important}.statement-paper .statement-sub{font-size:7pt!important}.statement-paper .statement-header img{width:150px;height:50px}.statement-paper .statement-stats strong{font-size:12pt}.statement-paper .statement-stats section{padding:8px}.statement-paper .statement-header h2{font-size:16pt}.statement-paper .statement-table th:nth-child(2){width:13%}.statement-paper .statement-table th:nth-child(3){width:14%}}

.invoice-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.invoice-summary .finance-stat{text-align:center;border-top:5px solid #94a39b}.invoice-summary strong{font-variant-numeric:tabular-nums}.shared-bottom-nav:has([href="?page=new_invoice"]){max-width:480px}

/* Keep notification count above its label in every navigation surface. */
[data-invoice-notice]{position:relative;display:flex;flex-direction:column!important;justify-content:center;gap:3px;padding-top:26px!important;min-height:64px}
[data-invoice-notice] .notice-symbol{display:none}
.notice-count{position:absolute;top:4px;left:50%;transform:translateX(-50%);min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#d6233b!important;color:#fff!important;font-size:12px!important;font-weight:700;line-height:22px;text-align:center;box-shadow:0 2px 5px #b91c3030}
.statement-paper .statement-table .paid-row td{background:#eef8f1;color:#245b38}
.statement-paper .statement-table .unpaid-row td{background:#fff0f2;color:#923444}
.statement-paper .statement-table .paid-row td:last-child{font-weight:bold;color:#22713b}
.statement-paper .statement-table .unpaid-row td:last-child{font-weight:bold;color:#b02943}
.invoice-summary .finance-stat:last-child{grid-column:auto}
@media(max-width:760px){.shared-bottom-nav:has([href="?page=new_invoice"]){max-width:none}}
@media print{
 #finance-print.statement-paper .statement-table th{background:#4d5c54!important;color:#fff!important}
 #finance-print.statement-paper .statement-table .paid-row td{background:#eef8f1!important;color:#245b38!important}
 #finance-print.statement-paper .statement-table .unpaid-row td{background:#fff0f2!important;color:#923444!important}
 #finance-print.statement-paper .statement-stats section{background:#f8faf9!important;color:#26362e!important}
 #finance-print.statement-paper *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
}

/* Larger labels in the bottom navigation. */
.owner-bottom-nav.shared-bottom-nav .nav-link{font-size:20px;font-weight:700;line-height:1.5;white-space:normal;text-align:center;min-height:64px}
.owner-bottom-nav.shared-bottom-nav .nav-icon{font-size:24px}
.owner-bottom-nav.shared-bottom-nav .notice-count{font-size:14px!important;min-width:25px;height:25px;line-height:25px}
.owner-bottom-nav.shared-bottom-nav [data-invoice-notice]{padding-top:31px!important}
@media(max-width:760px){.owner-bottom-nav.shared-bottom-nav .nav-link{font-size:14px;padding-inline:3px;min-height:60px}.owner-bottom-nav.shared-bottom-nav .nav-icon{font-size:23px}.owner-bottom-nav.shared-bottom-nav .car-count{font-size:13px}}

.push-bell{width:44px;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:23px;position:relative}
.push-bell.push-enabled:after{content:'';position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:50%;background:#228049}
@media(max-width:760px){
 .topbar{height:auto;min-height:76px;padding:10px 12px;gap:8px;align-items:flex-start}
 .topbar>.topbar-actions:first-child{flex:0 0 auto}
 .topbar>.topbar-actions:last-child{flex:1;min-width:0;justify-content:flex-end;gap:6px;flex-wrap:wrap}
 .topbar .icon-button{min-width:44px;min-height:44px;padding:8px}
 .topbar .notice-link{font-size:12px;min-width:70px;min-height:54px;padding-inline:6px}
 .topbar .identity{flex-basis:100%;justify-content:flex-end;margin-top:2px}
 .topbar .identity .avatar{display:none}
 .topbar .identity strong{max-width:100%;font-size:13px}
 .topbar .identity small{display:none}
 .content{padding-inline:12px;padding-bottom:calc(150px + env(safe-area-inset-bottom))}
 .owner-bottom-nav.shared-bottom-nav{padding-bottom:calc(8px + env(safe-area-inset-bottom));gap:2px}
 .owner-bottom-nav.shared-bottom-nav .nav-link{min-width:0;overflow-wrap:anywhere}
 .toast{bottom:calc(105px + env(safe-area-inset-bottom))}
 .invoice-form input,.invoice-form select,.invoice-form textarea{font-size:16px}
}
