@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
:root{font-family:Montserrat,Arial,sans-serif;color:#142235;background:#f3f5f8;--blue:#106bd8;--blue-dark:#0757b5;--header:#5d5e60;--ink:#142235;--muted:#6f7883;--line:#8a8a8a;--white:#fff;--red:#d73535;--border:#d9e0e7}*{box-sizing:border-box}html{background:#f3f5f8}body{margin:0;min-height:100vh;background:#f3f5f8}a{color:var(--blue)}button,input,textarea{font:inherit}.site-header{background:var(--header);color:#fff}.header-inner{width:min(1080px,calc(100% - 40px));min-height:116px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:30px}.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}.brand-mark{position:relative;width:54px;height:58px;display:grid;place-items:center}.brand-mark i{position:absolute;top:0;left:0;right:0;height:6px;background:#0a83f5}.brand-mark b{font-size:38px;line-height:1;font-weight:400;letter-spacing:-9px;transform:translateX(-4px)}.brand-name{font-size:30px;font-weight:400;letter-spacing:-1px}.brand>strong{font-size:25px;color:#1284f4;font-weight:600;letter-spacing:.02em;margin-left:7px}nav{display:flex;align-items:center;gap:8px}nav a{color:#fff;text-decoration:none;padding:11px 16px;border-radius:8px;font-size:14px;font-weight:600}nav a:hover,nav a.active{background:#fff;color:var(--blue)}.menu-toggle{display:none;width:44px;height:44px;border:0;background:transparent;padding:9px}.menu-toggle span{display:block;height:2px;background:#fff;margin:6px 0;border-radius:3px}main{width:min(790px,calc(100% - 40px));margin:0 auto;padding:76px 0 60px}.eyebrow{font-size:18px;letter-spacing:.01em;margin:0 0 48px;color:var(--ink)}h1{font-size:48px;line-height:1.08;margin:0 0 20px;color:#000;letter-spacing:-1.3px}h2{font-size:27px;color:#000;margin:0}.total-billed{font-size:25px;margin:0;color:var(--ink)}.total-billed strong{font-weight:500}.new-invoice-button,.save-button,.export-button,.delete-invoice{width:100%;min-height:74px;border:0;border-radius:15px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:25px;font-weight:500;cursor:pointer}.new-invoice-button,.save-button,.export-button{background:var(--blue);color:#fff}.new-invoice-button:hover,.save-button:hover,.export-button:hover{background:var(--blue-dark)}.new-invoice-button{margin:72px 0 78px}.history h2{margin-bottom:37px}.history-row{min-height:104px;border-top:2px dotted #676767;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 8px;color:var(--ink);text-decoration:none}.history-row:last-child{border-bottom:2px dotted #676767}.history-row>span{display:grid;gap:12px;min-width:0}.history-row strong{font-size:22px;color:#07578e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-row small{font-size:20px;color:#000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-row i{font-style:normal;font-size:42px;font-weight:300;color:#999}.history-row:hover strong{color:var(--blue)}.notice{padding:14px 16px;border:1px solid #b9dec7;border-radius:10px;background:#edf9f1;color:#187844;margin:0 0 26px}.empty{color:var(--muted);text-align:center;padding:28px}.back-link,.back{display:inline-flex;margin-bottom:30px;color:var(--blue);font-weight:600;text-decoration:none}.invoice-form-page h1{font-size:39px;margin-bottom:42px}.form-section{background:#fff;border:1px solid var(--border);border-radius:14px;padding:24px;margin:0 0 22px}.form-section h2{font-size:21px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:21px}.form-section>h2{margin-bottom:21px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid .full{grid-column:1/-1}label{display:grid;gap:8px;font-size:13px;font-weight:700;color:#34445a}input,textarea{width:100%;border:1px solid #c5d0db;border-radius:9px;background:#fff;color:var(--ink);padding:13px;font-size:16px;outline:0}input:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(16,107,216,.13)}textarea{resize:vertical}.field-help,.form-note{font-size:12px;color:var(--muted);margin:7px 0 0}.autocomplete{position:relative}.suggestions{position:absolute;z-index:30;left:0;right:0;top:70px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 14px 30px rgba(20,40,60,.17);overflow:auto;max-height:300px}.suggestion{width:100%;min-height:48px;padding:11px 13px;border:0;border-bottom:1px solid var(--border);background:#fff;color:var(--ink);text-align:left}.suggestion:hover{background:#eef6ff}.remove-service{border:0;background:transparent;color:var(--red);font-size:13px;font-weight:600;cursor:pointer}.add-service{width:100%;min-height:52px;border:1px dashed var(--blue);border-radius:10px;background:#eef6ff;color:var(--blue);font-weight:700;margin-bottom:22px;cursor:pointer}.save-button{margin-top:4px}.edit-actions{display:grid;grid-template-columns:1fr auto;gap:12px;margin-top:22px}.download-link{min-height:74px;padding:0 24px;border:1px solid var(--blue);border-radius:15px;display:flex;align-items:center;justify-content:center;color:var(--blue);font-weight:700;text-decoration:none}.delete-invoice-form{margin-top:18px}.delete-invoice{background:var(--red);color:#fff}.delete-invoice:hover{background:#b82727}.page-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}.page-title h1{font-size:42px;margin:0 0 8px}.page-title .eyebrow{font-size:15px;margin-bottom:20px}.lead{color:var(--muted);margin:0;line-height:1.5}.round-add{width:52px;height:52px;border-radius:12px;background:var(--blue);color:#fff;text-decoration:none;display:grid;place-items:center;font-size:30px}.search-bar{display:flex;gap:10px;margin:25px 0}.search-bar input{flex:1}.search-bar button,.contact-card button:not(.danger),.login button{border:0;border-radius:9px;background:var(--blue);color:#fff;padding:12px 18px;font-weight:700}.contact-list{background:transparent}.contact-row{min-height:82px;border-top:2px dotted #777;display:flex;align-items:center;gap:14px;padding:14px 8px;color:var(--ink);text-decoration:none}.contact-row:last-child{border-bottom:2px dotted #777}.contact-avatar{width:43px;height:43px;border-radius:50%;background:#e4f1ff;color:var(--blue);display:grid;place-items:center;font-weight:700;flex:0 0 auto}.contact-avatar.large{width:76px;height:76px;font-size:28px;margin:0 auto}.contact-data{display:grid;gap:6px;flex:1;min-width:0}.contact-data strong{font-size:18px;color:#07578e}.contact-data small{font-size:14px;color:var(--muted)}.chevron{font-size:34px;color:#999}.contact-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:25px}.contact-card>h1{text-align:center;font-size:31px;margin:12px 0 28px}.contact-card form{display:grid;gap:17px}.delete-form{margin-top:24px}.danger{width:100%;border:0;border-radius:9px;background:#fff0f0;color:var(--red);padding:13px;font-weight:700}.flash-wrap{padding-bottom:0}.flash,.error{color:#b52929;text-align:center}.flash{padding:13px;background:#fff0f0;border-radius:10px}.login{max-width:430px;background:#fff;border:1px solid var(--border);border-radius:14px;padding:28px}.login h1{font-size:34px;text-align:center}.login form{display:grid;gap:17px}.link{border:0;background:transparent;color:#6a7480;cursor:pointer}footer{text-align:center;padding:0 20px 30px}
@media(max-width:760px){.header-inner{width:calc(100% - 30px);min-height:84px}.brand-mark{width:39px;height:44px}.brand-mark i{height:5px}.brand-mark b{font-size:29px}.brand-name{font-size:22px}.brand>strong{font-size:18px;margin-left:3px}.menu-toggle{display:block}.site-header nav{display:none;position:absolute;top:84px;left:0;right:0;background:var(--header);padding:8px 15px 16px;border-top:1px solid rgba(255,255,255,.18)}.site-header nav.open{display:grid}.site-header nav a{padding:13px 12px}.eyebrow{font-size:15px;margin-bottom:38px}h1{font-size:40px}.total-billed{font-size:21px}.new-invoice-button{margin:58px 0 64px;min-height:66px;font-size:22px}.history h2{font-size:25px}.history-row{min-height:94px}.history-row strong{font-size:19px}.history-row small{font-size:17px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.edit-actions{grid-template-columns:1fr}.download-link{min-height:62px}.export-button,.delete-invoice,.save-button{min-height:64px;font-size:21px}}
@media(max-width:480px){main{width:calc(100% - 30px);padding:48px 0 44px}.header-inner{width:calc(100% - 24px)}.brand{gap:7px}.brand-name{font-size:20px}.brand>strong{font-size:16px}.invoice-form-page h1,.page-title h1{font-size:32px}.form-section{padding:17px;margin-bottom:16px}.new-invoice-button{border-radius:13px}.history-row{padding-left:0;padding-right:0}.page-title{align-items:center}.search-bar{display:grid}.search-bar button{width:100%}.contact-card{padding:18px}}
.site-header{background:#07111f}.site-header nav{background:#07111f}.site-header nav a,.site-header nav a:hover,.site-header nav a.active{color:#fff}.site-header nav a:hover,.site-header nav a.active{background:#123b68}.brand img{display:block;width:auto;height:58px}@media(max-width:760px){.brand img{height:44px}}
.form-grid>*{min-width:0}.form-grid input[type=date]{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;-webkit-appearance:none;appearance:none;min-height:48px}.pdf-view-page{width:min(1080px,calc(100% - 40px));padding-top:42px}.pdf-view-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.pdf-view-toolbar .back-link{margin:0}.pdf-download{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border:1px solid var(--blue);border-radius:10px;color:var(--blue);font-weight:700;text-decoration:none;background:#fff}.pdf-frame{display:block;width:100%;height:calc(100vh - 250px);min-height:620px;border:1px solid var(--border);border-radius:14px;background:#fff}@media(max-width:760px){.pdf-view-page{width:calc(100% - 24px);padding-top:24px}.pdf-view-toolbar{align-items:stretch;flex-direction:column}.pdf-view-toolbar .back-link,.pdf-download{min-height:48px;margin:0;align-items:center;justify-content:center}.pdf-frame{height:calc(100vh - 280px);min-height:520px;border-radius:10px}}
.pdf-view-toolbar{justify-content:flex-start}.pdf-view-toolbar .back-link{display:inline-flex;padding:0 18px;border:1px solid var(--blue);border-radius:10px;background:#fff}@media(max-width:760px){.pdf-view-toolbar .back-link{width:100%}.pdf-frame{width:100%;height:auto;min-height:0;aspect-ratio:210/297;max-height:none;overflow:auto}}
.pdf-view-toolbar,.pdf-canvas-wrap{width:100%;max-width:100%}.pdf-view-toolbar .back-link{width:100%;min-height:64px;align-items:center;justify-content:center;font-size:20px}.pdf-canvas-wrap{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:14px;background:#fff}.pdf-canvas-wrap canvas{display:block;width:100%;max-width:100%;height:auto}.pdf-loading{margin:0;padding:28px;text-align:center;color:var(--muted)}@media(max-width:760px){.pdf-view-page{width:calc(100% - 30px)}.pdf-view-toolbar .back-link{min-height:60px;font-size:18px}.pdf-canvas-wrap{border-radius:10px}.pdf-loading{padding:22px 12px}}
select{font:inherit}.contact-card select{width:100%;border:1px solid #c5d0db;border-radius:9px;background:#fff;color:var(--ink);padding:13px;font-size:16px;outline:0}.contact-card select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(16,107,216,.13)}
