:root{
  --navy:#08264b;--navy-2:#061d3a;--blue:#0b6edc;--blue-2:#0756b4;
  --cyan:#25bde8;--ink:#14233b;--muted:#687a91;--line:#dbe5ef;
  --surface:#fff;--soft:#f5f8fc;--bg:#edf3f9;--green:#14835a;
  --red:#b53b45;--amber:#a56808;--shadow:0 10px 32px rgba(20,51,87,.08);
}
*{box-sizing:border-box}
html{font-size:16px;scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:linear-gradient(145deg,#f7faff 0,#edf3f9 65%,#eaf2fa 100%);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;line-height:1.45}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{transition:border-color .18s,box-shadow .18s,background .18s,transform .18s}
button{cursor:pointer}
aside{position:fixed;z-index:20;inset:0 auto 0 0;width:268px;padding:28px 20px;background:linear-gradient(165deg,#0b3970 0%,#072b57 52%,#061d3a 100%);color:#fff;box-shadow:12px 0 38px rgba(6,34,68,.14);overflow-y:auto}
.brand{display:flex;align-items:center;gap:14px;padding:0 8px 26px;margin-bottom:22px;border-bottom:1px solid rgba(255,255,255,.12)}
.brand>b{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,#3ad0f2,#0875dd);box-shadow:0 10px 25px rgba(15,151,225,.35),inset 0 1px rgba(255,255,255,.35);font-size:23px}
.brand span{display:flex;flex-direction:column}
.brand strong{font-size:21px;letter-spacing:.09em}
.brand small{margin-top:2px;color:#aac8e2;font-size:11px}
nav{display:flex;flex-direction:column;gap:4px}
nav a{display:flex;align-items:center;min-height:44px;padding:11px 14px;border-radius:11px;color:#bed1e3;text-decoration:none;font-size:14px;font-weight:600}
nav a:hover{background:rgba(255,255,255,.08);color:#fff;transform:translateX(2px)}
nav a.active{color:#fff;background:linear-gradient(90deg,rgba(38,164,232,.30),rgba(255,255,255,.07));box-shadow:inset 3px 0 #37c4ed,0 8px 20px rgba(0,0,0,.08)}
nav label{margin:24px 14px 8px;color:#75a1c5;font-size:10px;font-weight:800;letter-spacing:.16em}
main{min-height:100vh;margin-left:268px}
main>header{position:sticky;z-index:10;top:0;display:flex;align-items:center;height:74px;padding:14px 40px;background:rgba(255,255,255,.90);border-bottom:1px solid rgba(211,224,237,.95);backdrop-filter:blur(14px);box-shadow:0 4px 18px rgba(27,57,93,.045)}
main>header form{width:min(440px,100%)}
main>header input{width:100%;height:44px;padding:0 15px;border:1px solid transparent;border-radius:11px;background:#f1f5f9;color:var(--ink);font-size:14px;outline:0}
main>header input:focus{background:#fff;border-color:#87bcec;box-shadow:0 0 0 4px rgba(11,110,220,.10)}
.header-title{color:#385673;font-size:13px;font-weight:700;letter-spacing:.035em}
.page{width:100%;max-width:1540px;margin:0 auto;padding:36px 40px 58px}
.heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
.heading p{margin:0 0 5px;color:var(--blue);font-size:11px;font-weight:850;letter-spacing:.16em}
.heading h1{margin:0 0 5px;font-size:31px;line-height:1.15;letter-spacing:-.035em}
.heading span{display:block;color:var(--muted);font-size:14px}
button,.heading button{min-height:42px;padding:0 16px;border:1px solid #d3deea;border-radius:10px;background:#fff;color:#42566e;font-size:13px;font-weight:750}
button:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(18,51,88,.10)}
.primary{border-color:transparent!important;background:linear-gradient(135deg,#0b7be9,#0755b5)!important;color:#fff!important;box-shadow:0 8px 22px rgba(11,110,220,.26)}
.primary:hover{box-shadow:0 11px 28px rgba(11,110,220,.34)}
.card{overflow:hidden;margin-bottom:18px;border:1px solid rgba(213,225,238,.96);border-radius:17px;background:var(--surface);box-shadow:var(--shadow)}
.notice{margin-bottom:18px;padding:13px 16px;border:1px solid #bce8d2;border-radius:11px;background:#e6f8ef;color:#176f4e;font-size:14px;font-weight:650;box-shadow:0 7px 20px rgba(22,117,76,.06)}
.empty{margin:0;padding:42px 20px;text-align:center;color:#78899e;font-size:14px}
.filters{display:grid;grid-template-columns:1.35fr 1fr 1fr auto auto;gap:14px;align-items:end;padding:18px 20px}
.filters label,.panel label{display:flex;flex-direction:column;gap:7px;color:#475a70;font-size:13px;font-weight:700}
.filters input,.filters select,.panel input,.panel textarea{width:100%;min-height:42px;padding:9px 11px;border:1px solid #d4e0ec;border-radius:9px;background:#fbfdff;color:var(--ink);font-size:14px;outline:0}
.filters input:focus,.filters select:focus,.panel input:focus,.panel textarea:focus{border-color:#6cace7;background:#fff;box-shadow:0 0 0 4px rgba(11,110,220,.09)}
.filters a{display:grid;place-items:center;min-height:42px;padding:0 8px;color:#4b6380;text-decoration:none;font-size:13px;font-weight:750}
.filters a:hover{color:var(--blue)}
.purchase-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:18px}
.purchase-stats article{position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:124px;padding:21px 22px;border:1px solid rgba(213,225,238,.96);border-radius:16px;background:#fff;box-shadow:var(--shadow)}
.purchase-stats article:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(180deg,#25bde8,#0b6edc)}
.purchase-stats article:nth-child(2):before{background:linear-gradient(180deg,#50d1b1,#16906b)}
.purchase-stats article:nth-child(3):before{background:linear-gradient(180deg,#8eaeff,#7258d0)}
.purchase-stats small{color:#65788f;font-size:11px;font-weight:850;letter-spacing:.085em}
.purchase-stats strong{margin:7px 0 3px;font-size:26px;line-height:1.15;letter-spacing:-.025em}
.purchase-stats span{color:var(--muted);font-size:12px}
.card-title,.birthday-title,.table-title{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid #e8eef4;background:linear-gradient(180deg,#fff,#fbfdff)}
.card-title>div,.birthday-title>div{display:flex;align-items:center;gap:11px}
.card-title span,.birthday-title span,.table-title>div{display:flex;flex-direction:column;gap:3px}
.card-title b,.birthday-title h2,.table-title b{margin:0;font-size:15px}
.card-title small,.birthday-title p,.table-title small{margin:0;color:var(--muted);font-size:12px}
.birthday-title{background:linear-gradient(90deg,#eef7ff,#fff)}
.birthday-title>div>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#dceeff;font-size:18px}
.birthday-title>strong{display:grid;place-items:center;min-width:32px;height:32px;padding:0 10px;border-radius:18px;background:#dfefff;color:var(--blue);font-size:13px}
.birthday-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.birthday-grid article{display:grid;grid-template-columns:44px 1fr auto;gap:11px;align-items:center;padding:15px 18px;border-right:1px solid #e9eff5}
.birthday-grid article:last-child{border-right:0}
.birthday-grid time{display:flex;flex-direction:column;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;background:#eaf4ff;color:var(--blue)}
.birthday-grid time b{line-height:1;font-size:16px}.birthday-grid time small{margin-top:2px;font-size:9px;font-weight:850}
.birthday-grid article>span{display:flex;flex-direction:column;min-width:0}.birthday-grid article>span b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.birthday-grid article>span small{color:var(--muted);font-size:11px}
.birthday-grid a,.whatsapp-button{padding:8px 10px;border:1px solid #bce6ce;border-radius:8px;background:#e5f7ed;color:#167d4d;text-decoration:none;font-size:11px;font-weight:800}
.table{overflow-x:auto}
.row,.purchase-row,.receivable-row,.check-row,.check-row-v2{border-bottom:1px solid #ebf0f5}
.row:last-child,.purchase-row:last-child,.receivable-row:last-child,.check-row:last-child,.check-row-v2:last-child{border-bottom:0}
.row:hover,.purchase-row:not(.head):hover,.receivable-row:not(.head):hover,.check-row:not(.head):hover,.check-row-v2:not(.head):hover{background:#f7fbff}
.row.head,.purchase-row.head,.receivable-row.head,.check-row.head,.check-row-v2.head{background:#f5f8fc;color:#64768b;font-size:11px;font-weight:850;letter-spacing:.055em}
.row{display:grid;grid-template-columns:1.5fr .8fr 1fr 1fr .8fr;gap:13px;align-items:center;padding:14px 20px;font-size:13px}
.client{display:flex;align-items:center;gap:11px;min-width:0}.client>i{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:#e5f1ff;color:var(--blue);font-style:normal;font-size:12px;font-weight:850}.client>span{display:flex;flex-direction:column;min-width:0}.client b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.client small{color:var(--muted);font-size:11px}
.purchase-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:18px}
.purchase-row{display:grid;grid-template-columns:105px 1.1fr 1.35fr 130px;gap:13px;align-items:center;padding:14px 19px;font-size:13px}.purchase-row>b{text-align:right;color:var(--green)}
.supplier-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 19px;border-bottom:1px solid #ebf0f5}.supplier-line:hover{background:#f7fbff}.supplier-line>span{display:flex;flex-direction:column;gap:3px}.supplier-line small{color:var(--muted);font-size:11px}.supplier-line>strong{color:var(--green);white-space:nowrap}
.receivable-filters{grid-template-columns:1.25fr .8fr 1fr 1fr auto auto}
.receivable-row{display:grid;grid-template-columns:100px minmax(170px,1.25fr) 110px 110px 120px 90px 125px;gap:12px;align-items:center;min-width:980px;padding:14px 19px;font-size:13px}
.receivable-customer,.receivable-row>span:nth-child(4){display:flex;flex-direction:column;gap:3px}.receivable-customer small,.receivable-row>span:nth-child(4) small{color:var(--muted);font-size:11px}.receivable-row>strong{color:var(--green)}
.receivable-row>em,.check-row>em,.check-row-v2>em{padding:6px 8px;border-radius:16px;font-style:normal;text-align:center;font-size:10px;font-weight:800}.pending{background:#e8f2ff;color:#1768bd}.overdue{background:#ffe9ea;color:var(--red)}.paid{background:#e2f7eb;color:#147849}
.inline-form{margin:0}.inline-form button{min-height:34px;padding:0 9px;border-color:#b9d4ed;color:var(--blue);font-size:11px}
.check-filters,.check-filters-v2{grid-template-columns:repeat(3,minmax(140px,1fr)) repeat(2,minmax(145px,.9fr)) auto auto}
.check-row{display:grid;grid-template-columns:100px 170px 100px 1.25fr 1fr 90px;gap:12px;align-items:center;min-width:900px;padding:14px 19px;font-size:13px}
.check-row-v2{display:grid;grid-template-columns:100px minmax(170px,1.25fr) minmax(160px,1.1fr) 105px 110px 120px 110px;gap:12px;align-items:center;min-width:1080px;padding:14px 19px;font-size:13px}
.check-row-v2>span:nth-child(2),.check-row-v2>span:nth-child(3),.check-row-v2>span:nth-child(5){display:flex;flex-direction:column;gap:3px;min-width:0}.check-row-v2 small{color:var(--muted);font-size:11px}.check-row-v2>strong{color:var(--green)}
.modal{position:fixed;z-index:100;inset:0;display:none;justify-content:flex-end;background:rgba(5,24,48,.68);backdrop-filter:blur(5px)}.modal.open{display:flex}
.panel{width:min(850px,96vw);height:100%;overflow:auto;background:linear-gradient(180deg,#f9fbfe,#f2f6fb);box-shadow:-22px 0 58px rgba(5,27,55,.24)}
.purchase-panel{width:min(700px,96vw);height:auto;max-height:100%;margin-left:auto}
.modal-head{position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:space-between;padding:22px 28px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.96);box-shadow:0 4px 18px rgba(20,46,76,.055);backdrop-filter:blur(10px)}
.modal-head small{color:var(--blue);font-size:10px;font-weight:850;letter-spacing:.13em}.modal-head h2{margin:3px 0 0;font-size:23px;letter-spacing:-.025em}.modal-head button{width:38px;min-height:38px;padding:0;border-radius:11px;font-size:22px}
.panel form{padding:24px 28px 30px}.toggle{display:flex;gap:20px;padding:12px;border:1px solid #d7e2ed;border-radius:11px;background:#e9eff6}.toggle label{flex-direction:row;align-items:center}
.panel h3{margin:23px 0 12px;font-size:15px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.grid.three{grid-template-columns:1fr 1fr 1fr}.wide,.full-field{grid-column:1/-1}.with-button{display:flex;gap:8px}.with-button input{min-width:0;flex:1}.with-button button{min-height:42px;white-space:nowrap;font-size:11px}.panel textarea{min-height:85px;resize:vertical}
.panel footer{display:flex;justify-content:flex-end;gap:10px;padding-top:22px}.form-help,.interest-preview{margin-top:15px;padding:12px 14px;border:1px solid #d3e8fa;border-radius:10px;background:linear-gradient(135deg,#eaf5ff,#f5faff);color:#526980;font-size:12px}.interest-preview{display:flex;justify-content:flex-end;gap:28px}.interest-preview strong{color:var(--blue);font-size:16px}
@media(max-width:1180px){.filters,.receivable-filters,.check-filters,.check-filters-v2{grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-columns{grid-template-columns:1fr}.birthday-grid{grid-template-columns:1fr}.birthday-grid article{border-right:0;border-bottom:1px solid #e9eff5}.birthday-grid article:last-child{border-bottom:0}}
@media(max-width:900px){aside{display:none}main{margin-left:0}main>header{height:66px;padding:11px 18px}.page{padding:26px 17px 44px}.heading h1{font-size:28px}.purchase-stats{gap:10px}.purchase-stats article{padding:18px}.row{grid-template-columns:1.4fr 1fr 1fr}.row>*:nth-child(2),.row>*:nth-child(5){display:none}}
@media(max-width:680px){.heading{align-items:flex-start}.heading>button{white-space:nowrap}.filters,.receivable-filters,.check-filters,.check-filters-v2{grid-template-columns:1fr}.purchase-stats{grid-template-columns:1fr}.purchase-stats article{min-height:105px}.grid,.grid.three{grid-template-columns:1fr}.wide,.full-field{grid-column:auto}.panel form,.modal-head{padding-left:18px;padding-right:18px}.interest-preview{flex-direction:column;gap:7px}.purchase-row{grid-template-columns:85px 1fr 115px;min-width:560px}.purchase-row>*:nth-child(3){display:none}.row{min-width:560px}.birthday-grid article{grid-template-columns:44px 1fr}.birthday-grid article>a,.birthday-grid article>em{grid-column:2;justify-self:start}}
@media(max-width:480px){.page{padding:22px 12px 38px}.heading{flex-direction:column}.heading>button{width:100%}.card{border-radius:14px}.panel{width:100vw}.brand strong{font-size:19px}}
.expense-report-box{overflow:visible}.expense-report-title{padding:20px 22px 12px}.expense-report-title small{color:var(--blue);font-size:10px;font-weight:850;letter-spacing:.14em}.expense-report-title h2{margin:4px 0 3px;font-size:19px;letter-spacing:-.02em}.expense-report-title p{margin:0;color:var(--muted);font-size:13px}.expense-filters{display:grid;grid-template-columns:minmax(260px,1.7fr) 1fr 1fr auto auto;gap:14px;align-items:end;padding:10px 22px 20px}.expense-filters label{display:flex;flex-direction:column;gap:7px;color:#475a70;font-size:13px;font-weight:700}.expense-filters input{width:100%;min-height:42px;padding:9px 11px;border:1px solid #d4e0ec;border-radius:9px;background:#fbfdff;color:var(--ink);font-size:14px;outline:0}.expense-filters input:focus{border-color:#6cace7;background:#fff;box-shadow:0 0 0 4px rgba(11,110,220,.09)}.expense-filters a{display:grid;place-items:center;min-height:42px;color:#4b6380;text-decoration:none;font-size:13px;font-weight:750}.expense-row{display:grid;grid-template-columns:100px 130px 1fr 125px;gap:13px;align-items:center;padding:14px 19px;border-bottom:1px solid #ebf0f5;font-size:13px}.expense-row.head{background:#f5f8fc;color:#64768b;font-size:11px;font-weight:850;letter-spacing:.055em}.expense-row:not(.head):hover{background:#f7fbff}.expense-row>span:nth-child(3){display:flex;flex-direction:column;gap:3px}.expense-row>span:nth-child(3) small{color:var(--muted);font-size:11px}.expense-row>strong{text-align:right;color:var(--red)}.category-pill{justify-self:start;padding:6px 9px;border-radius:16px;background:#e8f2ff;color:#1768bd;font-size:11px;font-weight:800}@media(max-width:1080px){.expense-filters{grid-template-columns:1fr 1fr}.expense-filters label:first-child{grid-column:1/-1}}@media(max-width:680px){.expense-filters{grid-template-columns:1fr;padding-left:16px;padding-right:16px}.expense-filters label:first-child{grid-column:auto}.expense-row{grid-template-columns:80px 1fr 105px;min-width:560px}.expense-row>*:nth-child(2){display:none}}

/* Livro Caixa e Recibos */
.panel select{width:100%;min-height:42px;padding:9px 11px;border:1px solid #d4e0ec;border-radius:9px;background:#fbfdff;color:var(--ink);font-size:14px;outline:0}.panel select:focus{border-color:#6cace7;background:#fff;box-shadow:0 0 0 4px rgba(11,110,220,.09)}
.cash-date-bar{display:flex;align-items:center;justify-content:center;gap:24px;padding:15px 20px}.cash-date-bar form{margin:0}.cash-date-bar label{display:flex;align-items:center;gap:10px;color:#52677e;font-size:13px;font-weight:750}.cash-date-bar input{min-height:42px;padding:8px 11px;border:1px solid #d4e0ec;border-radius:9px;background:#fbfdff;color:var(--ink)}.cash-date-bar>a{padding:10px 14px;border-radius:9px;color:var(--blue);text-decoration:none;font-size:13px;font-weight:750}.cash-date-bar>a:hover{background:#edf6ff}
.cash-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}.cash-stats article{position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:122px;padding:20px 21px;border:1px solid rgba(213,225,238,.96);border-radius:16px;background:#fff;box-shadow:var(--shadow)}.cash-stats article:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:#7f98b4}.cash-stats article:nth-child(2):before{background:#14946a}.cash-stats article:nth-child(3):before{background:#d0555e}.cash-stats article.cash-closing{background:linear-gradient(135deg,#08376d,#0754a8);color:#fff}.cash-stats article.cash-closing:before{background:#37c4ed}.cash-stats small{font-size:10px;font-weight:850;letter-spacing:.09em}.cash-stats article:not(.cash-closing) small{color:#65788f}.cash-stats strong{margin:8px 0 3px;font-size:24px;line-height:1.15}.cash-stats span{color:#73859a;font-size:11px}.cash-stats .cash-closing span{color:#c5dcf3}.cash-in{color:var(--green)!important}.cash-out{color:var(--red)!important}.cash-row{display:grid;grid-template-columns:85px minmax(190px,1.4fr) 130px 130px 125px 125px;gap:12px;align-items:center;min-width:900px;padding:14px 19px;border-bottom:1px solid #ebf0f5;font-size:13px}.cash-row.head{background:#f5f8fc;color:#64768b;font-size:11px;font-weight:850;letter-spacing:.055em}.cash-row:not(.head):hover{background:#f7fbff}.cash-row>span:nth-child(2){display:flex;flex-direction:column;gap:3px}.cash-row small{color:var(--muted);font-size:11px}.cash-row>strong{text-align:right}.cash-row em{justify-self:start;padding:6px 9px;border-radius:15px;font-style:normal;font-size:10px;font-weight:850}.cash-entry{background:#e2f7eb;color:#147849}.cash-exit{background:#ffe9ea;color:var(--red)}
.receipt-filters{grid-template-columns:1.5fr 1fr 1fr auto auto}.receipt-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.receipt-row{display:grid;grid-template-columns:135px 100px minmax(170px,1.15fr) minmax(200px,1.4fr) 120px 90px;gap:12px;align-items:center;min-width:930px;padding:14px 19px;border-bottom:1px solid #ebf0f5;font-size:13px}.receipt-row.head{background:#f5f8fc;color:#64768b;font-size:11px;font-weight:850;letter-spacing:.055em}.receipt-row:not(.head):hover{background:#f7fbff}.receipt-row>span:nth-child(3){display:flex;flex-direction:column;gap:3px}.receipt-row small{color:var(--muted);font-size:11px}.receipt-row>strong{color:var(--green);text-align:right}.print-link{display:grid;place-items:center;min-height:34px;border:1px solid #b9d4ed;border-radius:8px;color:var(--blue);text-decoration:none;font-size:11px;font-weight:800}.print-link:hover{background:#eaf5ff}
.print-page{min-height:100vh;padding:40px;background:#eaf0f6}.receipt-sheet{width:min(820px,100%);min-height:530px;margin:0 auto;padding:48px 55px;border:1px solid #ced9e5;background:#fff;box-shadow:0 18px 55px rgba(15,42,75,.14);color:#17283d}.receipt-brand{display:flex;align-items:center;padding-bottom:22px;border-bottom:2px solid #0b6edc}.receipt-brand>span{display:grid;place-items:center;width:50px;height:50px;margin-right:13px;border-radius:14px;background:linear-gradient(145deg,#25bde8,#0868ca);color:#fff;font-size:24px;font-weight:900}.receipt-brand>div{display:flex;flex-direction:column}.receipt-brand>div strong{font-size:22px;letter-spacing:.1em}.receipt-brand>div small{color:#60778e;font-size:10px;letter-spacing:.18em}.receipt-brand>b{margin-left:auto;color:#0b5cb7;font-size:27px;letter-spacing:.12em}.receipt-number{display:flex;align-items:center;justify-content:space-between;margin:25px 0}.receipt-number span{color:#60778e;font-size:13px;font-weight:800}.receipt-number strong{padding:11px 18px;border-radius:10px;background:#eaf4ff;color:#075ab7;font-size:22px}.receipt-sheet p{margin:21px 0;font-size:16px;line-height:1.8}.receipt-reason{min-height:70px;padding:16px 18px;border:1px solid #d8e3ed;border-radius:10px;background:#f8fbfe;font-size:16px}.receipt-date{margin-top:34px;text-align:right;font-size:15px}.receipt-signature{display:flex;flex-direction:column;align-items:center;width:310px;margin:62px 0 0 auto}.receipt-signature span{width:100%;border-top:1px solid #53687e}.receipt-signature b{margin-top:8px}.receipt-signature small{color:#718398}.print-actions{display:flex;justify-content:center;gap:12px;margin:20px auto}.print-actions a{display:grid;place-items:center;min-height:42px;padding:0 16px;border:1px solid #ccd9e6;border-radius:10px;background:#fff;color:#42566e;text-decoration:none;font-size:13px;font-weight:750}
@media(max-width:1100px){.cash-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.cash-date-bar{flex-wrap:wrap;gap:7px}.cash-date-bar form{order:-1;width:100%}.cash-date-bar label{justify-content:center}.cash-stats,.receipt-stats{grid-template-columns:1fr}.receipt-filters{grid-template-columns:1fr}.print-page{padding:0}.receipt-sheet{min-height:100vh;padding:30px 22px;border:0}.receipt-brand>b{font-size:19px}.receipt-signature{width:85%}}
@media print{.print-page{padding:0;background:#fff}.receipt-sheet{width:100%;min-height:0;padding:25mm 18mm;border:0;box-shadow:none}.print-actions{display:none}}

/* Ordens de serviço */
.notice-error{border-color:#f1c3c7;background:#fff0f1;color:#a62f39}.os-filters{grid-template-columns:minmax(240px,1.5fr) minmax(170px,.7fr) auto auto}.os-panel{width:min(1040px,98vw)}.client-mode{display:flex;gap:12px;margin-bottom:14px;padding:10px;border:1px solid #d7e2ed;border-radius:11px;background:#edf3f9}.client-mode label{flex-direction:row;align-items:center;padding:6px 9px}.client-mode input{width:auto;min-height:0}.new-client{margin-top:14px}.os-items-head{display:flex;align-items:center;justify-content:space-between;margin-top:20px}.os-items-head h3{margin:0}.os-items-head button{min-height:36px;color:var(--blue)}.os-item{display:grid;grid-template-columns:125px minmax(230px,1.6fr) 105px 130px 40px;gap:10px;align-items:end;margin-top:11px;padding:13px;border:1px solid #d9e4ef;border-radius:12px;background:#fff}.os-item label{font-size:12px}.remove-item{min-height:42px;padding:0;border-color:#f1c3c7;color:var(--red);font-size:20px}.os-total{display:flex;align-items:center;justify-content:flex-end;gap:24px;margin:15px 0;padding:15px 18px;border-radius:11px;background:linear-gradient(135deg,#e9f4ff,#f6faff)}.os-total span{color:#5c7188;font-size:13px;font-weight:750}.os-total strong{color:var(--blue);font-size:23px}.os-row{display:grid;grid-template-columns:115px minmax(180px,1.25fr) 85px 135px 120px minmax(210px,1.2fr);gap:12px;align-items:center;min-width:1050px;padding:14px 19px;border-bottom:1px solid #ebf0f5;font-size:13px}.os-row.head{background:#f5f8fc;color:#64768b;font-size:11px;font-weight:850;letter-spacing:.055em}.os-row:not(.head):hover{background:#f7fbff}.os-row>span:first-child,.os-row>span:nth-child(2){display:flex;flex-direction:column;gap:3px}.os-row small{color:var(--muted);font-size:11px}.os-row>strong{color:var(--green);text-align:right}.os-row em{display:inline-block;padding:6px 9px;border-radius:15px;font-style:normal;font-size:10px;font-weight:800}.invoice-box{position:relative;display:inline-block;margin-left:7px}.invoice-box summary{display:inline-block;padding:6px 9px;border:1px solid #b9d4ed;border-radius:8px;color:var(--blue);font-size:11px;font-weight:800;cursor:pointer;list-style:none}.invoice-box[open] form{position:absolute;z-index:20;right:0;top:34px;width:290px;padding:15px;border:1px solid #cfddea;border-radius:12px;background:#fff;box-shadow:0 16px 42px rgba(12,43,78,.18)}.invoice-box form label{display:flex;flex-direction:column;gap:5px;margin-bottom:9px;color:#52677e;font-size:11px;font-weight:750}.invoice-box form input,.invoice-box form select{width:100%;min-height:38px;padding:7px 9px;border:1px solid #d4e0ec;border-radius:8px;background:#fbfdff}.invoice-box form button{width:100%;min-height:38px}
@media(max-width:800px){.os-filters{grid-template-columns:1fr}.os-item{grid-template-columns:1fr 1fr}.os-description{grid-column:1/-1}.remove-item{grid-column:2;justify-self:end;width:42px}.os-panel{width:100vw}}@media(max-width:520px){.client-mode{flex-direction:column}.os-item{grid-template-columns:1fr}.os-description,.remove-item{grid-column:auto}.remove-item{justify-self:stretch;width:auto}.os-total{justify-content:space-between}}

.os-view{position:relative}.os-view summary{color:var(--blue);font-size:12px;font-weight:800;cursor:pointer}.os-view>div{position:absolute;z-index:15;top:24px;left:0;width:300px;padding:12px 14px;border:1px solid #d4e0ec;border-radius:11px;background:#fff;box-shadow:0 14px 36px rgba(12,43,78,.16)}.os-view p{display:flex;flex-direction:column;margin:0;padding:8px 0;border-bottom:1px solid #edf2f7}.os-view p:last-child{border-bottom:0}.os-view small{margin-top:2px}


/* Central de relatórios */
.report-filters{display:grid;grid-template-columns:minmax(220px,1.3fr) 1fr 1fr minmax(210px,1.2fr) 1fr auto auto;gap:12px;align-items:end;padding:18px 20px}.report-filters label{display:flex;flex-direction:column;gap:7px;color:#475a70;font-size:13px;font-weight:700}.report-filters input,.report-filters select{width:100%;min-height:42px;padding:8px 10px;border:1px solid #d4e0ec;border-radius:9px;background:#fbfdff;color:var(--ink);outline:0}.report-filters input:focus,.report-filters select:focus{border-color:#6cace7;background:#fff;box-shadow:0 0 0 4px rgba(11,110,220,.09)}.report-filters>a{display:grid;place-items:center;min-height:42px;color:#4b6380;text-decoration:none;font-size:13px;font-weight:750}.report-print-title{display:flex;align-items:flex-end;justify-content:space-between;margin:20px 2px 14px}.report-print-title>div{display:flex;align-items:baseline;gap:13px}.report-print-title b{color:var(--blue);font-size:15px;letter-spacing:.12em}.report-print-title span{font-size:21px;font-weight:800}.report-print-title small{color:var(--muted);font-size:12px}.report-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:18px}.report-stats article{display:flex;flex-direction:column;min-height:110px;padding:19px 21px;border:1px solid rgba(213,225,238,.96);border-radius:15px;background:#fff;box-shadow:var(--shadow)}.report-stats small{color:#65788f;font-size:10px;font-weight:850;letter-spacing:.09em}.report-stats strong{margin:7px 0 3px;font-size:23px}.report-stats span{color:var(--muted);font-size:11px}.report-table table{width:100%;border-collapse:collapse;font-size:13px}.report-table th{padding:12px 15px;background:#f5f8fc;color:#64768b;text-align:left;font-size:10px;letter-spacing:.055em;white-space:nowrap}.report-table td{padding:13px 15px;border-bottom:1px solid #ebf0f5;vertical-align:top}.report-table tbody tr:hover{background:#f7fbff}.report-table td:last-child{font-weight:700}.report-table .empty{text-align:center}
@media(max-width:1250px){.report-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:720px){.report-filters{grid-template-columns:1fr}.report-stats{grid-template-columns:1fr}.report-print-title{align-items:flex-start;flex-direction:column;gap:5px}.report-table table{min-width:800px}}
@media print{@page{size:A4 portrait;margin:10mm}body{background:#fff}aside,main>header,.no-print{display:none!important}main{margin:0}.report-page{max-width:none;padding:0}.report-print-title{margin-top:0}.report-stats{grid-template-columns:repeat(3,1fr);gap:7px}.report-stats article{min-height:76px;padding:10px;box-shadow:none}.report-table{border-radius:0;box-shadow:none}.report-table table{font-size:9px}.report-table th,.report-table td{padding:6px 7px}.card{break-inside:avoid}}

/* Impressão da Ordem de Serviço */
.os-print-link{display:inline-grid;place-items:center;min-height:30px;margin-left:6px;padding:0 9px;border:1px solid #b9d4ed;border-radius:8px;color:var(--blue);text-decoration:none;font-size:10px;font-weight:800}.os-print-link:hover{background:#eaf5ff}.os-print-sheet{width:min(920px,100%);min-height:650px;margin:0 auto;padding:42px 48px;border:1px solid #ced9e5;background:#fff;box-shadow:0 18px 55px rgba(15,42,75,.14);color:#17283d}.os-print-sheet>header{display:flex;align-items:center;justify-content:space-between;padding-bottom:20px;border-bottom:2px solid #0b6edc}.os-print-sheet>header>div:last-child{display:flex;flex-direction:column;align-items:flex-end}.os-print-sheet>header>div:last-child small{color:#64798e;font-size:10px;font-weight:850;letter-spacing:.14em}.os-print-sheet>header>div:last-child b{color:#075ab7;font-size:24px}.os-print-sheet>header time{font-size:12px}.os-print-brand{display:flex;align-items:center}.os-print-brand>span{display:grid;place-items:center;width:48px;height:48px;margin-right:12px;border-radius:14px;background:linear-gradient(145deg,#25bde8,#0868ca);color:#fff;font-size:23px;font-weight:900}.os-print-brand>div{display:flex;flex-direction:column}.os-print-brand strong{font-size:21px;letter-spacing:.1em}.os-print-brand small{color:#60778e;font-size:9px;letter-spacing:.18em}.os-print-sheet h2{margin:24px 0 11px;color:#0a5cb8;font-size:14px;text-transform:uppercase;letter-spacing:.08em}.os-print-client>div{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:1px;border:1px solid #d9e3ed;background:#d9e3ed}.os-print-client span{display:flex;flex-direction:column;min-height:60px;padding:11px 13px;background:#fff}.os-print-client .wide{grid-column:1/-1}.os-print-client small,.os-print-summary small,.os-print-notes>small{color:#708399;font-size:9px;font-weight:850;letter-spacing:.08em}.os-print-client b{margin-top:4px;font-size:13px}.os-print-items table{width:100%;border-collapse:collapse}.os-print-items th{padding:9px 10px;background:#edf5fd;color:#4f6983;text-align:left;font-size:9px}.os-print-items td{padding:10px;border-bottom:1px solid #dfe8f0;font-size:12px}.os-print-items th:nth-last-child(-n+2),.os-print-items td:nth-last-child(-n+2){text-align:right}.os-print-summary{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:12px;margin-top:24px}.os-print-summary>div{display:flex;flex-direction:column;padding:12px;border:1px solid #d9e3ed;border-radius:9px}.os-print-summary b{margin-top:4px;font-size:13px}.os-print-summary .total{border-color:#9dc8ed;background:#edf7ff}.os-print-summary strong{margin-top:3px;color:#075ab7;font-size:22px}.os-print-notes{margin-top:18px;padding:13px;border:1px solid #d9e3ed;border-radius:9px}.os-print-notes p{margin:5px 0 0;font-size:12px}.os-print-sheet>footer{display:grid;grid-template-columns:1fr 1fr;gap:80px;margin-top:65px}.os-print-sheet>footer>div{display:flex;flex-direction:column;align-items:center}.os-print-sheet>footer span{width:100%;border-top:1px solid #52677e}.os-print-sheet>footer b{margin-top:7px;font-size:11px}.os-print-sheet>footer small{color:#708399;font-size:9px}
@media(max-width:650px){.os-print-sheet{min-height:100vh;padding:26px 18px;border:0}.os-print-client>div,.os-print-summary{grid-template-columns:1fr}.os-print-client .wide{grid-column:auto}.os-print-sheet>footer{gap:22px}.os-print-items{overflow-x:auto}.os-print-items table{min-width:620px}}
@media print{.os-print-sheet{width:100%;min-height:0;padding:10mm;border:0;box-shadow:none}.os-print-sheet>footer{margin-top:35px}}

/* Exclusões auditadas */
.cash-row{grid-template-columns:85px minmax(190px,1.4fr) 120px 120px 115px 115px 90px;min-width:1020px}.record-actions{display:flex;align-items:center;gap:6px}.delete-box{display:inline-block}.delete-box>summary{display:grid;place-items:center;min-height:32px;padding:0 9px;border:1px solid #efbcc1;border-radius:8px;background:#fff5f5;color:var(--red);font-size:10px;font-weight:850;cursor:pointer;list-style:none}.delete-box>summary::-webkit-details-marker{display:none}.delete-box[open]>form{position:fixed;z-index:200;right:25px;bottom:25px;width:min(360px,calc(100vw - 30px));padding:17px;border:1px solid #ecc5c8;border-radius:13px;background:#fff;box-shadow:0 20px 60px rgba(40,20,25,.25)}.delete-box form label{display:flex;flex-direction:column;gap:7px;color:#5c6674;font-size:12px;font-weight:750}.delete-box textarea{width:100%;min-height:90px;padding:10px;border:1px solid #d7e0e9;border-radius:9px;resize:vertical}.danger{width:100%;margin-top:10px;border-color:#b93c46!important;background:#b93c46!important;color:#fff!important}.danger:hover{background:#9f2f38!important}.receipt-row{grid-template-columns:135px 100px minmax(170px,1.15fr) minmax(200px,1.4fr) 120px 150px;min-width:990px}

/* Agenda */
.agenda-layout{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(280px,.8fr);gap:18px;align-items:start}.calendar-card{overflow:visible}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid #e5edf5}.calendar-toolbar h2{margin:0;font-size:19px;text-transform:capitalize}.calendar-toolbar a{display:grid;place-items:center;width:38px;height:38px;border:1px solid #d5e1ed;border-radius:10px;color:var(--blue);text-decoration:none;font-size:20px}.calendar-week,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-week b{padding:10px;border-right:1px solid #e7edf4;background:#f5f8fc;color:#6a7b90;text-align:center;font-size:10px;letter-spacing:.08em}.calendar-day{position:relative;min-height:128px;padding:9px;border-right:1px solid #e7edf4;border-bottom:1px solid #e7edf4;background:#fff}.calendar-day:nth-child(7n){border-right:0}.calendar-day.muted{background:#f8fafc}.calendar-day>time{display:grid;place-items:center;width:27px;height:27px;margin-bottom:5px;border-radius:50%;color:#52677e;font-size:12px;font-weight:800}.calendar-day.today>time{background:var(--blue);color:#fff}.calendar-event{overflow:hidden;margin-top:4px;padding:5px 7px;border-left:3px solid #0b73d6;border-radius:6px;background:#eaf4ff}.calendar-event b,.calendar-event small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-event b{font-size:10px}.calendar-event small{color:#60758c;font-size:9px}.event-visit{border-color:#7c55ca;background:#f0ebff}.event-service,.event-os{border-color:#15906a;background:#e8f8f1}.event-other{border-color:#b87a14;background:#fff5df}.calendar-event.status-completed{opacity:.58}.calendar-event.status-cancelled{border-color:#b74650;background:#ffeaec;text-decoration:line-through;opacity:.65}.more-events{display:block;margin-top:5px;color:var(--blue);font-size:9px;font-weight:800}.agenda-upcoming{overflow:hidden}.agenda-upcoming article{display:grid;grid-template-columns:46px 1fr;gap:11px;align-items:center;padding:14px 16px;border-bottom:1px solid #e8eef4}.agenda-upcoming article:last-child{border-bottom:0}.agenda-upcoming time{display:flex;flex-direction:column;align-items:center;justify-content:center;width:46px;height:46px;border-radius:11px;background:#eaf4ff;color:var(--blue)}.agenda-upcoming time b{font-size:17px;line-height:1}.agenda-upcoming time small{margin-top:3px;font-size:9px;font-weight:850}.agenda-upcoming article>span{display:flex;flex-direction:column;min-width:0}.agenda-upcoming article>span b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.agenda-upcoming article>span small{color:var(--muted);font-size:10px}.agenda-row{display:grid;grid-template-columns:125px 105px minmax(190px,1.25fr) minmax(150px,1fr) 150px 95px 145px;gap:12px;align-items:center;min-width:1080px;padding:14px 19px;border-bottom:1px solid #ebf0f5;font-size:12px}.agenda-row.head{background:#f5f8fc;color:#64768b;font-size:10px;font-weight:850;letter-spacing:.055em}.agenda-row>span:first-child,.agenda-row>span:nth-child(3),.agenda-row>span:nth-child(4){display:flex;flex-direction:column;gap:3px}.agenda-row small{color:var(--muted);font-size:10px}.agenda-row em{padding:6px 8px;border-radius:15px;font-style:normal;text-align:center;font-size:10px;font-weight:800}.agenda-actions{display:flex;gap:5px}.agenda-actions button{min-height:31px;padding:0 7px;font-size:9px}.agenda-actions button:last-child{border-color:#e6b5ba;color:var(--red)}
@media(max-width:1180px){.agenda-layout{grid-template-columns:1fr}.agenda-upcoming{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.agenda-upcoming>.table-title{grid-column:1/-1}}@media(max-width:760px){.calendar-day{min-height:92px;padding:5px}.calendar-event small{display:none}.calendar-event b{font-size:8px}.agenda-upcoming{grid-template-columns:1fr}.calendar-week b{padding:7px 2px}.calendar-toolbar{padding:12px}.calendar-toolbar h2{font-size:16px}}

/* Login, usuários e permissões */
.sidebar-user{margin-top:auto;display:flex;align-items:center;gap:10px;padding:15px 17px;border-top:1px solid rgba(255,255,255,.12);background:rgba(0,26,59,.2)}
.sidebar-user>span{display:flex;flex:1;min-width:0;flex-direction:column}.sidebar-user b{overflow:hidden;color:#fff;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.sidebar-user small{margin-top:2px;color:#87a9ca;font-size:9px;text-transform:uppercase;letter-spacing:.07em}.sidebar-user form{margin:0}.sidebar-user button{min-height:31px;padding:0 10px;border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#dcecff;font-size:10px}
.auth-page{display:grid;min-height:100vh;place-items:center;padding:28px;background:radial-gradient(circle at 12% 15%,#0e75d8 0,transparent 31%),linear-gradient(135deg,#031d3e,#063568 58%,#0876ca)}
.auth-shell{display:grid;grid-template-columns:1.15fr .85fr;width:min(980px,100%);margin:0;overflow:hidden;border:1px solid rgba(255,255,255,.15);border-radius:24px;background:rgba(255,255,255,.08);box-shadow:0 32px 90px rgba(0,15,36,.38);backdrop-filter:blur(18px)}
.auth-brand{display:flex;min-height:580px;flex-direction:column;justify-content:center;padding:58px;color:#fff}.auth-logo{display:grid;width:58px;height:58px;margin-bottom:28px;place-items:center;border-radius:17px;background:linear-gradient(145deg,#35d0f2,#0870dd);box-shadow:0 14px 30px rgba(0,25,70,.3);color:#fff;font-size:28px;font-weight:900}.auth-brand p,.auth-card>p,.denied-card>p{margin:0 0 10px;color:#58cef1;font-size:10px;font-weight:900;letter-spacing:.16em}.auth-brand h1{max-width:520px;margin:0 0 17px;font-size:42px;line-height:1.08;letter-spacing:-.035em}.auth-brand>span{max-width:450px;color:#bdd7ee;font-size:15px;line-height:1.7}
.auth-card{display:flex;flex-direction:column;justify-content:center;padding:48px 44px;background:#fff}.auth-card h2{margin:0 0 7px;font-size:27px}.auth-card>span{margin-bottom:25px;color:var(--muted);font-size:13px}.auth-card form{display:flex;flex-direction:column;gap:15px}.auth-card label{display:flex;flex-direction:column;gap:7px;color:#42566e;font-size:12px;font-weight:800}.auth-card input{width:100%;min-height:46px;padding:9px 12px;border:1px solid #cfdae6;border-radius:10px;background:#f9fbfd;font-size:14px}.auth-card input:focus{border-color:#4a9ae2;outline:0;box-shadow:0 0 0 4px rgba(11,110,220,.1)}.auth-card button{min-height:47px;margin-top:5px}.auth-card>small{margin-top:19px;color:#8999aa;text-align:center;font-size:10px}.auth-card .notice{margin:0 0 16px}
.denied-card{width:min(540px,100%);padding:48px;border-radius:21px;background:#fff;box-shadow:0 28px 80px rgba(0,15,36,.35);text-align:center}.denied-card .auth-logo{margin:0 auto 22px;background:linear-gradient(145deg,#f06672,#b72f3c)}.denied-card h1{margin:0 0 12px;font-size:26px}.denied-card>span{display:block;color:var(--muted);line-height:1.6}.button-link{display:grid;width:max-content;min-height:43px;margin:25px auto 0;padding:0 18px;place-items:center;text-decoration:none}
.user-row{display:grid;grid-template-columns:minmax(220px,1.25fr) 125px minmax(280px,1.8fr) 80px 70px;gap:13px;align-items:center;min-width:900px;padding:14px 19px;border-bottom:1px solid #ebf0f5;font-size:12px}.user-row.head{background:#f5f8fc;color:#64768b;font-size:10px;font-weight:850;letter-spacing:.055em}.user-row>em{padding:6px 8px;border-radius:15px;font-style:normal;text-align:center;font-size:10px;font-weight:800}.user-row>button{min-height:34px;padding:0 10px;color:var(--blue);font-size:10px}.permission-tags{display:flex;flex-wrap:wrap;gap:5px}.permission-tags em{padding:4px 7px;border-radius:12px;background:#eaf4ff;color:#1768bd;font-style:normal;font-size:9px;font-weight:750}.permission-tags small{color:var(--muted)}.access-options{display:flex;gap:14px;margin-top:18px}.access-options label,.permission-grid label{display:flex;flex-direction:row;align-items:center;gap:8px;padding:11px 12px;border:1px solid #d8e3ed;border-radius:10px;background:#fff;color:#40546b;font-size:12px;font-weight:750}.access-options input,.permission-grid input{width:auto;min-height:0}.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.permission-grid.disabled{opacity:.42;pointer-events:none}
@media(max-width:760px){.auth-page{padding:0}.auth-shell{grid-template-columns:1fr;min-height:100vh;border:0;border-radius:0}.auth-brand{min-height:auto;padding:35px 28px}.auth-brand h1{font-size:29px}.auth-brand>span{display:none}.auth-logo{margin-bottom:17px}.auth-card{padding:34px 25px}.permission-grid{grid-template-columns:1fr}.access-options{flex-direction:column}}

/* Edição e situação da Ordem de Serviço */
.os-actions{display:flex!important;flex-direction:column;align-items:flex-start;gap:7px}.os-action-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.os-edit-button,.status-box>summary{display:grid;min-height:30px;padding:0 9px;place-items:center;border:1px solid #b9d4ed;border-radius:8px;background:#fff;color:var(--blue);font-size:10px;font-weight:800;cursor:pointer}.status-box{position:relative}.status-box>summary{list-style:none}.status-box>summary::-webkit-details-marker{display:none}.status-box[open]>form{position:absolute;z-index:25;right:0;top:35px;width:250px;padding:14px;border:1px solid #cfddea;border-radius:12px;background:#fff;box-shadow:0 16px 42px rgba(12,43,78,.2)}.status-box form label{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;color:#52677e;font-size:11px;font-weight:750}.status-box select{min-height:38px;padding:7px 9px;border:1px solid #d4e0ec;border-radius:8px;background:#fbfdff}.status-box button{width:100%;min-height:37px}.os-status{display:inline-block;padding:6px 9px;border-radius:15px;font-style:normal;font-size:10px;font-weight:850}.status-open{background:#e8f2ff;color:#1768bd}.status-in_progress{background:#fff2cf;color:#9a6412}.status-completed{background:#e3f7ed;color:#147849}.status-invoiced{background:#dff4fb;color:#086b8c}.status-cancelled{background:#ffe9ea;color:var(--red)}.locked-note{color:#7a8999;font-size:9px}.edit-warning{margin:15px 0 2px;padding:11px 13px;border:1px solid #cce0f3;border-radius:10px;background:#edf7ff;color:#42637f;font-size:11px}

/* V21 — painéis de ação visíveis fora da tabela */
.os-row{grid-template-columns:115px minmax(180px,1.2fr) 80px 120px 105px minmax(285px,1.5fr);min-width:1120px}.os-action-buttons{gap:7px}.status-box>summary{padding:0 11px;white-space:nowrap}.status-box[open]>form,.invoice-box[open]>form{position:fixed!important;z-index:500!important;top:50%!important;right:50%!important;bottom:auto!important;left:auto!important;width:min(390px,calc(100vw - 30px))!important;max-height:calc(100vh - 40px);overflow:auto;transform:translate(50%,-50%);padding:24px!important;border:1px solid #b9cfe3!important;border-radius:16px!important;background:#fff!important;box-shadow:0 25px 90px rgba(5,27,55,.38)!important}.status-box[open]>form:before{content:'Alterar situação da OS';display:block;margin-bottom:17px;color:#12304f;font-size:18px;font-weight:850}.invoice-box[open]>form:before{content:'Faturar ordem de serviço';display:block;margin-bottom:17px;color:#12304f;font-size:18px;font-weight:850}.status-box[open]>form:after,.invoice-box[open]>form:after{content:'Clique novamente no botão para fechar';display:block;margin-top:11px;color:#7a8999;text-align:center;font-size:10px}.status-box form label,.invoice-box form label{font-size:13px!important}.status-box select,.invoice-box input,.invoice-box select{min-height:44px!important;font-size:14px}.status-box button,.invoice-box form button{min-height:43px!important;margin-top:4px}
@media(max-width:760px){.status-box[open]>form,.invoice-box[open]>form{width:calc(100vw - 24px)!important;padding:20px!important}.os-row{min-width:1080px}}
.status-box .action-panel-close,.invoice-box .action-panel-close{position:absolute;top:12px;right:12px;width:34px!important;min-height:34px!important;margin:0!important;padding:0!important;border:0!important;border-radius:9px;background:#edf3f8!important;color:#48617a!important;font-size:21px!important;line-height:1}.status-box[open]>form:after,.invoice-box[open]>form:after{content:none}

/* V22 — ações diretas e itens visíveis da OS */
.os-items-button,.os-status-button,.os-invoice-button,.os-print-button{display:grid;min-height:34px;padding:0 11px;place-items:center;border-radius:8px;background:#fff;font-size:10px;font-weight:850;white-space:nowrap;cursor:pointer}.os-items-button{border:1px solid #b9d4ed;color:var(--blue)}.os-print-button{border:1px solid #b9d4ed;color:var(--blue)}.os-status-button{border:1px solid #e2c477;color:#93620f;background:#fffaf0}.os-invoice-button{border:1px solid #8bc9a9;color:#167249;background:#f1fbf6}.os-edit-button{min-height:34px}.action-modal.open{align-items:center;justify-content:center;padding:20px}.action-panel{width:min(760px,96vw);height:auto;max-height:calc(100vh - 40px);border-radius:18px;overflow:auto;background:#f7fafe;box-shadow:0 28px 90px rgba(5,27,55,.38)}.small-action-panel{width:min(500px,96vw)}.action-modal-body{padding:22px 26px}.action-modal-body footer,.action-panel form footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.action-panel form label{display:flex;flex-direction:column;gap:7px;color:#42566e;font-size:13px;font-weight:800}.action-panel form input,.action-panel form select{width:100%;min-height:44px;padding:8px 11px;border:1px solid #cfdae6;border-radius:9px;background:#fff;font-size:14px}.items-modal-list{overflow:hidden;border:1px solid #dbe5ee;border-radius:13px;background:#fff}.items-modal-list article{display:grid;grid-template-columns:38px minmax(0,1fr) 120px;gap:12px;align-items:center;padding:15px 17px;border-bottom:1px solid #e8eef4}.items-modal-list article:last-child{border-bottom:0}.items-modal-list article>b{display:grid;width:34px;height:34px;place-items:center;border-radius:9px;background:#eaf4ff;color:var(--blue);font-size:11px}.items-modal-list span{display:flex;min-width:0;flex-direction:column;gap:4px}.items-modal-list strong{font-size:13px}.items-modal-list small{color:var(--muted);font-size:11px}.items-modal-list em{color:var(--green);text-align:right;font-style:normal;font-weight:850}.action-modal .os-total{margin-bottom:0}
@media(max-width:760px){.action-modal.open{padding:10px}.action-panel{width:100%;max-height:calc(100vh - 20px)}.action-modal-body{padding:17px}.items-modal-list article{grid-template-columns:34px 1fr}.items-modal-list em{grid-column:2;text-align:left}.os-action-buttons{min-width:270px}}

/* V23 — faturamento da OS por cheque */
.invoice-action-panel{width:min(760px,96vw)}.invoice-check{margin:15px 0;padding:15px;border:1px solid #cfe0ef;border-radius:12px;background:#f2f8fd}.invoice-check[hidden]{display:none}.invoice-check label{margin:0}.invoice-action-panel>form{padding:23px 27px 28px}
@media(max-width:620px){.invoice-check{grid-template-columns:1fr}.invoice-action-panel>form{padding:18px}}

/* V24 — relatório individual por cliente */
.heading-actions{display:flex;align-items:center;gap:10px}.heading-actions>a{display:grid;min-height:42px;padding:0 15px;place-items:center;border:1px solid #b9d4ed;border-radius:10px;background:#fff;color:var(--blue);text-decoration:none;font-size:12px;font-weight:850}.client-report-filters{display:grid;grid-template-columns:minmax(280px,1.8fr) minmax(150px,.7fr) minmax(150px,.7fr) auto;gap:12px;align-items:end;padding:18px 20px}.client-report-filters label{display:flex;flex-direction:column;gap:7px;color:#475a70;font-size:13px;font-weight:750}.client-report-filters input,.client-report-filters select{width:100%;min-height:42px;padding:8px 10px;border:1px solid #d4e0ec;border-radius:9px;background:#fbfdff}.client-report-header{display:grid;grid-template-columns:1fr 1.3fr;gap:22px;margin-bottom:17px;padding:22px 24px;border-radius:17px;background:linear-gradient(135deg,#073a73,#0874cb);box-shadow:0 17px 42px rgba(6,55,108,.18);color:#fff}.client-report-header small{color:#76d7f1;font-size:9px;font-weight:900;letter-spacing:.15em}.client-report-header h2{margin:5px 0 4px;font-size:25px}.client-report-header span{color:#c5dcf0;font-size:12px}.client-report-header>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}.client-report-header p{display:flex;flex-direction:column;margin:0;color:#d3e5f5;font-size:12px}.client-report-header p:last-child{grid-column:1/-1}.client-report-header p b{margin-bottom:4px;color:#78d6ef;font-size:9px;letter-spacing:.08em}.client-report-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}.client-report-stats article{display:flex;min-height:105px;flex-direction:column;padding:17px 18px;border:1px solid #d7e3ee;border-radius:14px;background:#fff;box-shadow:var(--shadow)}.client-report-stats small{color:#64788e;font-size:9px;font-weight:900;letter-spacing:.08em}.client-report-stats strong{margin:8px 0 3px;font-size:19px}.client-report-stats span{color:var(--muted);font-size:10px}.client-report-columns{display:grid;grid-template-columns:1fr 1fr;gap:17px}.client-report-columns .card{min-width:0}.client-report-columns table{min-width:600px}.client-report-empty{display:flex;min-height:260px;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #bfd0df;border-radius:17px;background:#f8fbfe;color:#567087;text-align:center}.client-report-empty b{margin-bottom:7px;color:#183a5c;font-size:20px}.client-report-empty span{max-width:480px;font-size:13px}
@media(max-width:1100px){.client-report-stats{grid-template-columns:repeat(3,1fr)}.client-report-columns{grid-template-columns:1fr}}@media(max-width:720px){.heading-actions{align-items:stretch;flex-direction:column}.client-report-filters{grid-template-columns:1fr}.client-report-header{grid-template-columns:1fr}.client-report-header>div:last-child{grid-template-columns:1fr}.client-report-header p:last-child{grid-column:auto}.client-report-stats{grid-template-columns:1fr 1fr}}
@media print{.client-report-page .client-report-header{print-color-adjust:exact;-webkit-print-color-adjust:exact}.client-report-stats{grid-template-columns:repeat(5,1fr);gap:5px}.client-report-stats article{min-height:75px;padding:9px;box-shadow:none}.client-report-columns{grid-template-columns:1fr}.client-report-columns .card{break-inside:avoid}.client-report-page table{font-size:9px}}

/* V25 — todas as impressões em A4 retrato */
@media print{
 @page{size:A4 portrait;margin:10mm}
 html,body{width:auto!important;max-width:none!important;background:#fff!important}
 .report-page,.client-report-page{width:100%!important;max-width:none!important}
 .report-table{overflow:visible!important}
 .report-table table{width:100%!important;min-width:0!important;table-layout:fixed;font-size:7.5px!important}
 .report-table th,.report-table td{padding:4px 5px!important;overflow-wrap:anywhere;word-break:break-word;white-space:normal!important}
 .report-print-title span{font-size:17px}
 .report-stats strong,.client-report-stats strong{font-size:15px!important}
 .client-report-header{padding:12px 14px!important}
 .client-report-header h2{font-size:19px!important}
 .receipt-sheet,.os-print-sheet{width:100%!important;max-width:190mm!important;margin:0 auto!important}
 .os-print-items table{width:100%!important;min-width:0!important;table-layout:fixed}
 .os-print-items th,.os-print-items td{overflow-wrap:anywhere;word-break:break-word}
}

/* V26 — edição e exclusão segura de clientes */
.client-row{grid-template-columns:minmax(210px,1.45fr) 115px 145px 130px minmax(120px,.8fr) 135px;min-width:980px}.client-actions{display:flex;gap:7px}.client-actions button{min-height:34px;padding:0 11px;border-radius:8px;font-size:10px;font-weight:850}.client-edit{border-color:#acd0ef;color:var(--blue);background:#f4f9ff}.client-delete{border-color:#edb8bd;color:var(--red);background:#fff6f6}.delete-client-panel{width:min(520px,96vw)}.delete-client-name{margin:0 0 13px;padding:13px 15px;border-radius:10px;background:#edf5fc;color:#153b60;font-size:15px;font-weight:850}.delete-client-panel .form-help{margin:0 0 17px;color:#65788d;line-height:1.55}.delete-client-panel textarea{min-height:105px}.delete-client-panel footer{display:flex;gap:10px}.delete-client-panel footer button{flex:1}.delete-client-panel .danger{margin-top:0}
.client-row{grid-template-columns:minmax(210px,1.4fr) 110px 140px 125px minmax(115px,.75fr) 205px;min-width:1040px}.client-report-link{display:grid;min-height:34px;padding:0 10px;place-items:center;border:1px solid #b9d4ed;border-radius:8px;background:#fff;color:var(--blue);text-decoration:none;font-size:10px;font-weight:850}

/* V27 — exclusão segura de Ordens de Serviço */
.os-delete-button{display:grid;min-height:34px;padding:0 11px;place-items:center;border:1px solid #edb8bd;border-radius:8px;background:#fff6f6;color:var(--red);font-size:10px;font-weight:850;white-space:nowrap;cursor:pointer}.delete-order-panel{width:min(540px,96vw)}.delete-order-name{margin:0 0 12px;padding:13px 15px;border-radius:10px;background:#edf5fc;color:#153b60;font-size:15px;font-weight:850}.delete-order-warning{margin-bottom:17px;padding:12px 14px;border:1px solid #efc4c8;border-radius:10px;background:#fff4f4;color:#8c343c;font-size:12px;line-height:1.5}.delete-order-panel textarea{min-height:105px;padding:10px;border:1px solid #d4e0ec;border-radius:9px;resize:vertical}.delete-order-panel .danger{margin-top:0}.delete-order-panel footer button{flex:1}

/* V28 — associação de categorias na Central de Relatórios */
.category-breakdown>div:last-child{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.category-breakdown article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;border-right:1px solid #e8eef4;border-bottom:1px solid #e8eef4}.category-breakdown article:nth-child(4n){border-right:0}.category-breakdown article>span{display:flex;min-width:0;flex-direction:column;gap:3px}.category-breakdown article b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.category-breakdown article small{color:var(--muted);font-size:10px}.category-breakdown article strong{color:var(--green);font-size:14px;white-space:nowrap}
@media(max-width:1000px){.category-breakdown>div:last-child{grid-template-columns:repeat(2,1fr)}.category-breakdown article:nth-child(4n){border-right:1px solid #e8eef4}.category-breakdown article:nth-child(2n){border-right:0}}@media(max-width:560px){.category-breakdown>div:last-child{grid-template-columns:1fr}.category-breakdown article{border-right:0!important}}
@media print{.category-breakdown>div:last-child{grid-template-columns:repeat(4,1fr)}.category-breakdown article{padding:8px;break-inside:avoid}}
