:root{--green:#557d33;--bright:#87be4c;--ink:#26322b;--muted:#788179;--line:#e6eae3;--bg:#f5f6f2;--white:#fff}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:14px/1.5 'Segoe UI',Arial,sans-serif;color:var(--ink)}button,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus,textarea:focus,select:focus{outline:2px solid var(--bright);outline-offset:2px}aside{position:fixed;inset:0 auto 0 0;width:245px;background:#fff;border-right:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;font-size:12px;font-weight:750;letter-spacing:.5px}.brand small{display:block;color:var(--muted);font-weight:400;font-size:12px;letter-spacing:0;margin-top:2px}.brand-mark{width:39px;height:42px;display:grid;place-items:center;background:var(--green);color:white;border-radius:11px;font-size:16px}.nav-label{font-size:10px;color:#92988e;letter-spacing:1.6px;margin:55px 10px 15px}nav{display:grid;gap:7px}nav button{border:0;text-align:left;background:none;padding:12px 14px;color:#74806f;border-radius:8px;font-size:18px;display:flex;gap:12px;align-items:center}nav button span{font-size:13px;font-weight:550}nav button.active{background:#edf3e5;color:var(--green)}.aside-bottom{margin-top:auto;font-size:11px;color:var(--muted);padding:12px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:100%;background:#7dad45;margin-right:7px}.logout{background:none;border:0;padding:14px 0 0;color:var(--muted);font-size:12px}main{margin-left:245px;min-height:100vh}header{height:77px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 44px}.breadcrumb{font-size:12px;color:#8b9389}.breadcrumb span{padding:0 13px;color:#c8cec3}.header-right{color:var(--green);font-size:12px;font-weight:700}.header-right span{margin-left:14px;color:var(--muted);font-weight:400}.content{padding:37px 44px 45px;max-width:1600px;margin:auto}.page-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--green);font-weight:650}h1{font-size:30px;font-weight:600;letter-spacing:-.7px;margin:7px 0}p{margin:8px 0 20px;color:#7c8478}h2{font-size:16px;font-weight:600;margin:0 0 20px}.page-top p{margin:4px 0 0;font-size:13px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;border-radius:7px;padding:11px 18px;text-decoration:none;font-size:12px;font-weight:600;white-space:nowrap}.primary{background:var(--green);color:white;border:1px solid var(--green)}.primary:hover{background:#45662b}.secondary{background:white;border:1px solid #dde3d7;color:#53634b}.small{padding:8px 12px;font-size:11px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:19px;margin:24px 0 29px}.stats article{padding:23px 26px;background:white;border:1px solid var(--line);border-radius:10px}.stats article>span{display:block;font-size:12px;color:#7b8376}.stats strong{display:block;font-size:29px;font-weight:550;letter-spacing:-.6px;margin:9px 0 7px}.stats article:nth-child(2) strong{color:#ae7a25}.stats article:nth-child(3) strong{color:var(--green)}small{font-size:11px;color:#8d9586}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.panel-top{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 23px}.tabs{display:flex;gap:22px}.tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:20px 0;font-size:12px;color:#8b9383}.tabs button.selected{color:var(--green);border-bottom-color:var(--green);font-weight:600}.filters{display:flex;gap:12px;padding:19px 23px}.filters input{max-width:420px}.filters select{margin-left:auto;width:140px}input,textarea,select{width:100%;padding:10px 12px;color:var(--ink);background:#fff;border:1px solid #dfe5d8;border-radius:6px;font-size:12px;min-height:39px}textarea{resize:vertical}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{font-size:9px;font-weight:650;letter-spacing:.6px;text-align:left;color:#8c9484;background:#fafbf8;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 20px;white-space:nowrap}td{padding:16px 20px;border-bottom:1px solid #edf0e9}tbody tr:last-child td{border-bottom:0}.invoice-table tbody tr:hover{background:#fafcf7;cursor:pointer}.invoice-number{font-weight:650;color:#4b5c41}.numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.badge{font-size:10px;padding:4px 9px;border-radius:5px;white-space:nowrap;display:inline-block;background:#eef5e7;color:#61813e}.badge.open{background:#fbf1df;color:#ae812c}.badge.zero{background:#f0f1ee;color:#8b9283}.warn-dot{color:#bc8326;margin-left:6px}.pdf-link{font-size:10px;border:1px solid #e1e8d9;border-radius:4px;padding:4px 6px;text-decoration:none;color:#6e8655}.table-footer{display:flex;justify-content:space-between;gap:12px;padding:15px 22px;border-top:1px solid var(--line);color:#949b8b;font-size:10px}footer{margin:0 44px;padding:20px 0;border-top:1px solid var(--line);font-size:10px;color:#9ca28f;display:flex;justify-content:space-between}.notice{padding:12px 16px;border:1px solid #e3e8da;background:#edf3e6;border-radius:7px;color:#667b4f;font-size:12px;margin:15px 0}.link-button{padding:0;background:none;border:0;color:var(--green);text-decoration:underline;font-size:inherit}.form-grid{display:grid;grid-template-columns:minmax(0,1fr) 325px;gap:22px;align-items:start}.form-panel{padding:25px;margin-bottom:22px}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}label{display:block;font-size:12px;font-weight:550;color:#627055;margin-bottom:17px}label input,label select,label textarea{margin-top:7px;font-weight:400}label small{font-weight:400;margin-left:5px}.summary-line{display:flex;justify-content:space-between;padding:13px 0;font-size:12px}.summary-line strong{font-weight:550}.summary-line.total{border-top:1px solid var(--line);font-size:17px;margin-top:9px;padding:18px 0}.check{display:flex;gap:10px;margin-top:23px;align-items:flex-start;font-weight:400}.check input{width:16px;min-height:16px;margin:4px 0;accent-color:var(--green)}.muted{font-size:12px;color:#8a9382}.full{width:100%;margin-bottom:10px}.summary-panel>small{display:block;line-height:1.6}.section-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.section-top h2{margin:0}.line-table th,.line-table td{padding:9px 5px}.line-table th:first-child,.line-table td:first-child{padding-left:0}.line-table td:first-child{min-width:240px;width:45%}.line-table td:nth-child(2){width:80px;min-width:70px}.line-table td:nth-child(3){width:115px;min-width:100px}.line-table td:nth-child(4){width:85px;min-width:75px}.line-table td:nth-child(5){min-width:90px;text-align:right;white-space:nowrap}.line-table input,.line-table select{padding:8px}.line-table textarea{min-height:40px;margin:0}.remove-line{background:none;border:0;color:#a69786;font-size:19px}.form-panel>.table-wrap{margin-bottom:25px}.warning{background:#fff6e5;color:#996d28;border:1px solid #eadcc0;padding:12px;border-radius:6px;font-size:12px;line-height:1.6}dl{display:grid;grid-template-columns:80px 1fr;font-size:12px;row-gap:9px}dt{color:#929b87}dd{margin:0}dialog{width:min(760px,94vw);max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:32px;color:var(--ink);box-shadow:0 20px 80px #18211830}dialog::backdrop{background:#17211666}.dialog-close{float:right;margin:0 0 12px 16px}.detail-total{font-size:29px;letter-spacing:-.7px;margin:8px 0 20px}.detail-actions{display:flex;gap:10px;margin:22px 0;flex-wrap:wrap}#toast{position:fixed;bottom:25px;right:25px;max-width:500px;background:#26392b;color:white;padding:16px 22px;border-radius:9px;box-shadow:0 7px 30px #0002;z-index:100;font-size:13px}#toast.error{background:#974528}#pdf-preview{width:90vw;height:94vh;padding:15px}#preview-frame{width:100%;height:calc(100% - 55px);border:0}.login-page{min-height:100vh;display:grid;place-items:center}.login-card{margin:30px;background:#fff;border:1px solid var(--line);padding:42px;width:min(460px,92vw);min-height:0;border-radius:14px}.login-card .brand{margin-bottom:35px}.login-card h1{font-size:27px}.login-card .primary{width:100%;margin:8px 0 25px}.login-card>small{display:block;text-align:center}.empty{text-align:center;color:#8a9382;padding:35px}[hidden]{display:none!important}@media(min-width:1500px){.content{padding-top:48px}.stats article{padding:28px 30px}}@media(max-width:1100px){aside{width:200px;padding:25px 15px}main{margin-left:200px}header{padding:0 25px}.content{padding:28px 25px}.form-grid{grid-template-columns:minmax(0,1fr) 285px}.stats strong{font-size:24px}td,th{padding:13px}.tabs{gap:16px}.brand{font-size:10px}}@media(max-width:850px){aside{position:static;width:auto;padding:15px 20px;border-right:0;border-bottom:1px solid var(--line)}aside .brand{font-size:11px}.nav-label,.aside-bottom{display:none}nav{display:flex;margin-top:15px;gap:5px}nav button{padding:8px;font-size:15px}nav button span{font-size:11px}main{margin-left:0}header{height:54px}.content{padding:25px 18px}.header-right{display:none}.page-top{align-items:flex-start}h1{font-size:25px}.page-top>.primary{padding:10px;font-size:11px}.stats{gap:9px}.stats article{padding:15px}.stats strong{font-size:21px}.stats small{font-size:9px}.form-grid{grid-template-columns:1fr}.summary-panel{grid-row:2}.two-cols{gap:0 12px}.panel-top{padding:0 14px}.tabs{gap:12px}.tabs button{font-size:10px}.filters{padding:14px}.filters input{min-width:0}.filters select{width:105px}.table-footer{flex-direction:column}footer{margin:0 18px}.form-panel{padding:20px}.stats article>span{font-size:10px}}@media(max-width:480px){.stats{grid-template-columns:1fr}.stats article{display:grid;grid-template-columns:1fr 1fr;align-items:center}.stats strong{grid-column:2;grid-row:1/3;text-align:right}.stats small{grid-column:1}.two-cols{grid-template-columns:1fr}.tabs{gap:9px}.panel-top .secondary{padding:6px;font-size:9px}.form-panel{padding:17px}.page-top>.secondary{padding:8px}.header-right{display:none}}
#pdf-preview{max-width:960px;height:auto;padding:22px;background:#f3f5f0}.preview-tools{margin-bottom:20px}#preview-document{background:#fff;border-left:7px solid #86c940;padding:38px;min-height:800px}.preview-head{display:grid;grid-template-columns:1fr 280px;gap:20px;margin-bottom:40px}.preview-head img{width:245px;max-width:100%}.preview-head p{font-size:12px;color:#333}.preview-meta{display:flex;justify-content:space-between;gap:15px;padding:20px 0;margin:20px 0;font-size:12px}.preview-meta span{border-left:2px solid #86c940;padding-left:10px}.preview-totals{max-width:350px;margin:25px 0 25px auto}#preview-document th,#preview-document td{padding:12px 8px}@media(max-width:600px){#preview-document{padding:18px}.preview-head{grid-template-columns:1fr 1fr}.preview-head img{width:160px}.preview-meta{flex-wrap:wrap}.preview-head p{font-size:10px}#pdf-preview{padding:12px}}
.brand-image{display:block;width:100%}.brand-image img{display:block;width:185px;max-width:100%;height:auto}.brand-image small{margin-top:10px;padding-left:3px;font-size:10px;letter-spacing:1.2px;text-transform:uppercase}.login-card .brand-image img{width:220px}.login-card .brand{margin-bottom:25px}@media(max-width:850px){aside .brand-image{display:flex;gap:20px;align-items:center}aside .brand-image img{width:160px}aside .brand-image small{margin:0}}
.line-specs{display:block;color:#84907e;font-size:10px;line-height:1.6;margin-top:4px;font-weight:400}.line-table textarea[data-field=specifications]{font-size:11px;color:#7e8974;background:#fafbf8;min-height:33px;margin-top:7px;padding:7px 9px}#preview-document{border-left:0;font-family:"Segoe UI",Arial,sans-serif;padding:38px;color:#21392e}#preview-document h1{font-family:"Segoe UI",Arial,sans-serif;font-weight:300}.business-preview-header{display:flex;justify-content:space-between;gap:24px;border-bottom:1px solid #e4eae5;padding-bottom:24px}.business-preview-header img{width:235px;max-width:42%;object-fit:contain;align-self:flex-start}.business-preview-header>div{text-align:right}.business-preview-header h1{font-size:42px;margin:0}.business-preview-header p{font-size:10px;margin:3px 0 12px}.business-preview-header span{font-size:9px;color:#61984b;background:#f4f7f3;padding:5px 15px;border-radius:4px}.business-preview-parties{display:grid;grid-template-columns:1.6fr 1fr;gap:25px;margin:30px 0}.business-preview-parties small,.business-preview-bottom small{font-size:9px;letter-spacing:1px;font-weight:600;color:#78867e}.business-preview-parties h2{font-size:19px;margin:8px 0}.business-preview-parties p{font-size:12px;line-height:1.6;color:#21392e;margin:7px 0}.business-preview-header+.business-preview-parties+.preview-meta{background:#f4f7f3;padding:18px 14px;border-radius:5px;font-size:8px;gap:10px}.business-preview-parties+.preview-meta span{border:0;padding:0;flex:1}.business-preview-parties+.preview-meta strong{display:block;font-size:11px;margin-top:6px;color:#21392e}.preview-order{font-size:11px!important;margin:12px 0 24px!important}.business-preview-title{font-size:22px;font-weight:300;margin:25px 0 6px}.preview-subtitle{font-size:11px!important;margin-bottom:20px!important}.business-line-table th{background:#21392e!important;color:#fff!important;font-size:8px!important;padding:13px 10px!important;letter-spacing:.2px}.business-line-table td{padding:18px 10px!important;font-size:12px;vertical-align:top}.business-line-table td:first-child{min-width:220px}.business-line-table .line-specs{font-size:10px}.business-preview-bottom{display:grid;grid-template-columns:1.15fr 1fr;gap:30px;margin:30px 0}.business-preview-bottom p{font-size:12px;line-height:1.8;margin:9px 0 18px;color:#21392e}.business-preview-bottom p span{color:#78867e;font-size:10px}.business-preview-bottom .summary-line{font-size:12px;padding:8px 10px}.business-preview-total{border-left:3px solid #61984b;padding:12px 14px;background:#f4f7f3;margin-top:10px}.business-preview-total>span{font-size:10px;color:#78867e;display:block}.business-preview-total>strong{display:block;text-align:right;font-size:30px;font-weight:300;color:#21392e}.preview-note{font-size:10px!important;color:#78867e;line-height:1.7}.business-preview-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #e4eae5;padding-top:18px;margin-top:35px;font-size:11px;color:#21392e}.business-preview-footer>span:last-child{text-align:right}.business-preview-footer small{font-size:9px;color:#78867e;display:inline-block;margin-top:7px}@media(max-width:600px){#preview-document{padding:20px}.business-preview-header{gap:12px}.business-preview-header h1{font-size:30px}.business-preview-header p{font-size:8px}.business-preview-header img{width:160px}.business-preview-parties{gap:15px}.business-preview-parties p{font-size:10px}.business-preview-bottom{grid-template-columns:1fr;gap:0}.business-preview-title{font-size:20px}.business-preview-footer{font-size:9px}.business-preview-footer small{font-size:8px}}
.danger-button{border:1px solid #eaded4;background:#fff;color:#a16445;border-radius:6px;padding:9px 12px;font-size:11px;cursor:pointer;white-space:nowrap}.danger-button:hover{background:#fcf3ec;border-color:#ddbea9}.invoice-table td:last-child{padding-left:8px}.tabs [data-filter=trash]{color:#929a89}.tabs [data-filter=trash].selected{color:#796a5e;border-bottom-color:#9f8c7a}@media(max-width:600px){#overview .panel-top{flex-wrap:wrap;gap:8px;padding-bottom:10px}#overview .tabs{gap:10px;flex-wrap:wrap}#overview .tabs button{padding:14px 0;font-size:10px}}

/* Readable customer and sender addresses in the invoice preview. */
#preview-document .business-preview-parties{grid-template-columns:1.3fr 1fr;gap:30px}#preview-document .business-preview-parties p{font-size:15px;line-height:1.65;color:#21392e}#preview-document .business-preview-parties h2{font-size:20px;line-height:1.4}
/* Stronger Repair Partners invoice identity. */
#preview-document{border-top:6px solid #61984b}#preview-document .business-preview-header>div{background:#21392e;color:#fff;padding:18px 22px;border-left:4px solid #61984b;min-width:45%}#preview-document .business-preview-header h1{font-weight:700;color:#fff}#preview-document .business-preview-header p{color:#fff}#preview-document .business-preview-header span{background:transparent;color:#fff;font-weight:700}#preview-document .business-preview-total{background:#21392e;border-left:4px solid #61984b;padding:18px}#preview-document .business-preview-total>span{color:#fff;text-transform:uppercase}#preview-document .business-preview-total>strong{color:#fff;font-weight:700;font-size:34px;margin-top:12px}#preview-document .business-line-table tbody tr:nth-child(even){background:#f4f7f3}
/* Soft invoice palette sampled from the Repair Partners logo (#5aad58). */
#preview-document{border-top:3px solid #5aad58}#preview-document .business-preview-header>div{background:#f1f7f0;color:#21392e;border:0;border-radius:12px}#preview-document .business-preview-header h1{font-weight:300;color:#21392e}#preview-document .business-preview-header p{color:#78867e}#preview-document .business-preview-header span{color:#5aad58}#preview-document .business-preview-total{background:#f1f7f0;border-left:2px solid #5aad58;border-radius:8px}#preview-document .business-preview-total>span,#preview-document .business-preview-total>strong{color:#21392e}#preview-document .business-preview-total>strong{font-weight:300}#preview-document .business-line-table th{background:#f1f7f0!important;color:#21392e!important}#preview-document .business-line-table tbody tr:nth-child(even){background:#f8fbf7}
#preview-document .business-preview-header{align-items:flex-start}#preview-document .business-preview-header>div{box-sizing:border-box;min-width:0;width:42%;padding:20px 24px;background:#edf5ec;border:1px solid #dcebda;border-radius:14px;text-align:right}#preview-document .business-preview-header h1{font-size:38px;line-height:1.15;margin:0 0 10px}#preview-document .business-preview-header p{font-size:12px;line-height:1.4;color:#21392e;margin:0 0 12px}#preview-document .business-preview-header span{display:inline-block;padding:0;font-size:9px;letter-spacing:1px}@media(max-width:600px){#preview-document .business-preview-header>div{width:49%;padding:14px 12px}#preview-document .business-preview-header h1{font-size:24px}#preview-document .business-preview-header p{font-size:10px}}
#preview-document .business-preview-header{align-items:center}#preview-document .business-preview-header>div{background:transparent;border:0;border-radius:0;padding:0;width:48%;min-width:0}#preview-document .business-preview-header h1{font-weight:700;font-size:40px;line-height:1.2;margin:0}#preview-document .business-preview-header span{margin-top:12px}#preview-document .preview-meta>span:first-child strong,#preview-document .preview-meta>span:last-child strong{color:#5aad58;font-weight:700}@media(max-width:600px){#preview-document .business-preview-header>div{padding:0;width:49%}#preview-document .business-preview-header h1{font-size:25px}}
#preview-document .preview-project{margin:24px 0;padding-top:16px;border-top:1px solid #dcebda}#preview-document .preview-project h3{font-size:13px;color:#21392e;margin:0 0 8px}#preview-document .preview-project p{font-size:12px;line-height:1.7;color:#21392e}
#preview-document .business-line-table td.numeric,#preview-document .business-line-table th,#preview-document .business-preview-total>strong{text-align:left!important}#preview-document .business-preview-bottom .summary-line{display:grid;grid-template-columns:1fr 1fr;gap:12px}#preview-document .business-preview-bottom .summary-line strong{text-align:left}

#preview-document .business-line-table td.numeric,#preview-document .business-preview-total>strong,#preview-document .business-preview-bottom .summary-line strong{text-align:right!important}#preview-document .business-line-table th:not(:first-child){text-align:right!important}
