:root{--ink:#12302e;--muted:#4c6866;--line:#d6e1e0;--ground:#f2f5f5;--surface:#fff;--teal:#0e7c74;--teal-dark:#0a5a53;--teal-soft:#e6f4f2;--side:#0b3b38;--danger:#8a2616}*{box-sizing:border-box}body{background:var(--ground);color:var(--ink);margin:0;font-family:Figtree,system-ui,sans-serif}button,input,select,textarea{font-family:inherit;font-size:15px}button{cursor:pointer}:focus-visible{outline:3px solid var(--teal);outline-offset:2px}h1{letter-spacing:-.02em;margin:0;font-size:28px}h2{margin:0;font-size:20px}.muted{color:var(--muted);font-size:14px}.app{flex-wrap:wrap;min-height:100vh;display:flex}.side{background:var(--side);color:#e7f3f1;flex-direction:column;flex:1 0 232px;gap:24px;max-width:100%;padding:24px 16px;display:flex}@media (width>=900px){.side{flex:0 0 232px}}.brand{align-items:center;gap:10px;font-size:17px;font-weight:700;display:flex}.brand small{color:#9cc9c3;font-size:12px;font-weight:400;display:block}.nav{flex-wrap:wrap;gap:6px;display:flex}.nav button{text-align:left;color:#e7f3f1;background:0 0;border:0;border-radius:10px;flex:140px;justify-content:space-between;align-items:center;min-height:44px;padding:0 14px;font-weight:600;display:flex}.nav button.on{color:var(--side);background:#e7f3f1}.badge{color:#3a2600;background:#f2b544;border-radius:11px;justify-content:center;align-items:center;min-width:22px;height:22px;font-size:12px;font-weight:700;display:inline-flex}.me{color:#9cc9c3;margin-top:auto;font-size:13px;line-height:1.5}.me button{color:#e7f3f1;background:0 0;border:1px solid #2c6561;border-radius:8px;min-height:40px;margin-top:8px;padding:0 12px}.main{flex-direction:column;flex:999 560px;gap:20px;min-width:0;padding:28px 32px;display:flex}@media (width<=600px){.main{padding:20px 16px}}.head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;display:flex}.row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.btn{min-height:44px;color:var(--ink);background:#fff;border:1.5px solid #b9ccca;border-radius:10px;padding:0 18px;font-weight:600}.btn.primary{background:var(--teal);border-color:var(--teal);color:#fff}.btn.outline{border-color:var(--teal);color:var(--teal-dark)}.btn.danger{color:var(--danger);border-color:#e0a99f}.btn.due{color:#fff;background:#c62828;border-color:#c62828}.btn.due:hover{background:#a81f1f}.btn.sm{min-height:44px;padding:0 14px;font-size:14px}.btn:disabled{opacity:.5;cursor:default}.field{flex-direction:column;gap:6px;display:flex}.field label{font-size:13px;font-weight:600}.input{background:#fff;border:1.5px solid #b9ccca;border-radius:10px;width:100%;min-height:44px;padding:0 12px}textarea.input{resize:vertical;padding:10px 12px}.grid2{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;display:grid}.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px}.kpis{flex-wrap:wrap;gap:10px;display:flex}.kpi{border:1px solid var(--line);background:#fff;border-radius:12px;min-width:92px;padding:8px 14px}.kpi b{font-size:22px;line-height:1.1;display:block}.kpi span{color:var(--muted);font-size:12px}.table-wrap{border:1px solid var(--line);background:#fff;border-radius:14px;padding:6px 16px;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:460px;font-size:14px}th{text-align:left;color:var(--muted);letter-spacing:.05em;text-transform:uppercase;padding:12px 8px;font-size:12px}td{border-top:1px solid #e3eae9;padding:12px 8px}td.num,th.num{text-align:right}tr.click{cursor:pointer}tr.click:hover td{background:var(--teal-soft)}.chip{white-space:nowrap;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:700}.s-agendado{color:#24435f;background:#e1eaf2}.s-chegou{color:#5e3a00;background:#ffe9b8}.s-atendimento{color:#07504a;background:#cbebe4}.s-atendido{color:#3f413b;background:#e2e4df}.s-faltou{color:#7e2113;background:#f8d5ce}.s-aberto{color:#24435f;background:#e1eaf2}.s-aprovado{color:#07504a;background:#cbebe4}.s-recusado,.s-vencido{color:#7e2113;background:#f8d5ce}.agenda{flex-wrap:wrap;align-items:flex-start;gap:20px;display:flex}.profs{flex-direction:column;flex:240px;gap:8px;display:flex}.prof{text-align:left;border:1.5px solid var(--line);background:#fff;border-radius:12px;flex-direction:column;gap:2px;min-height:44px;padding:12px 14px;display:flex}.prof.on{border-color:var(--teal);background:var(--teal-soft)}.prof b{font-size:15px}.slots-wrap{flex-direction:column;flex:3 420px;gap:12px;min-width:0;display:flex}.slots{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;display:grid}.slot{text-align:left;background:#f8fbfa;border:1.5px dashed #b9ccca;border-radius:12px;flex-direction:column;justify-content:space-between;gap:4px;min-height:84px;padding:10px 12px;display:flex}.slot.busy{background:#fff;border-style:solid}.slot .t{justify-content:space-between;align-items:center;gap:8px;font-weight:700;display:flex}.slot .free{color:var(--teal);font-size:13px;font-weight:600}.slot .pn{font-size:14px;font-weight:600}.slot .meta{color:var(--muted);font-size:12px}.cols{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));align-items:start;gap:14px;display:grid}.col{background:#e6eded;border-radius:14px;flex-direction:column;gap:10px;min-width:0;padding:12px;display:flex}.col-h{justify-content:space-between;align-items:center;padding:2px 4px;font-weight:700;display:flex}.col-h span{background:#fff;border-radius:999px;padding:2px 10px;font-size:13px}.qcard{border:1px solid var(--line);background:#fff;border-radius:12px;flex-direction:column;gap:8px;padding:12px;display:flex}.qcard .top{justify-content:space-between;align-items:baseline;gap:8px;font-weight:700;display:flex}.warn{color:#5e3a00;font-size:13px;font-weight:600}.warn.late{color:#a3361f}.paid{color:#fff;background:#1e8a3c;border-radius:10px;align-items:center;min-height:44px;padding:0 14px;font-size:14px;font-weight:700;display:inline-flex}.pay-tag{letter-spacing:.03em;color:#fff;border-radius:6px;padding:2px 8px;font-size:11px;font-weight:800;display:inline-block}.pay-tag.ok{background:#1e8a3c}.pay-tag.due{background:#c62828}.pay-tag.ref,.paid.ref{background:#6b7b7a}.svc-list{border:1px solid var(--line);border-radius:10px;flex-direction:column;max-height:190px;display:flex;overflow-y:auto}.svc-list button{text-align:left;border:0;border-bottom:1px solid var(--line);min-height:44px;font:inherit;cursor:pointer;background:#fff;justify-content:space-between;gap:10px;padding:6px 12px;display:flex}.svc-list button:last-child{border-bottom:0}.modal-bg{z-index:50;background:#0a1e1c80;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:16px;flex-direction:column;gap:14px;width:100%;max-width:460px;max-height:92vh;padding:24px;display:flex;overflow:auto}.modal.wide{max-width:680px}.modal .actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:4px;display:flex}.pick{flex-wrap:wrap;gap:6px;display:flex}.pick button{border:1.5px solid var(--teal);background:var(--teal-soft);min-height:44px;color:var(--teal-dark);border-radius:999px;padding:0 12px;font-size:13px;font-weight:600}.methods{flex-wrap:wrap;gap:8px;display:flex}.methods button{background:#fff;border:2px solid #c9d8d6;border-radius:10px;flex:100px;min-height:48px;font-weight:700}.methods button.on{border-color:var(--teal);background:var(--teal);color:#fff}.big{letter-spacing:-.02em;font-size:36px;font-weight:700}.toast{background:var(--ink);color:#fff;z-index:80;border-radius:12px;max-width:90vw;padding:12px 20px;font-weight:600;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 8px 24px #00000040}.toast.err{background:var(--danger)}.error{color:var(--danger);font-size:14px;font-weight:600}.tabs{flex-wrap:wrap;gap:8px;display:flex}.tabs button{border:1.5px solid var(--line);background:#fff;border-radius:10px;min-height:44px;padding:0 16px;font-weight:600}.tabs button.on{background:var(--teal);border-color:var(--teal);color:#fff}.sched-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.sched-row input[type=time]{border:1.5px solid #b9ccca;border-radius:10px;min-height:44px;padding:0 8px}.login{justify-content:center;align-items:center;min-height:100vh;padding:16px;display:flex}.login .card{flex-direction:column;gap:14px;width:100%;max-width:400px;padding:28px;display:flex}@media print{body{background:#fff}.side,.head .row,.no-print,.toast{display:none!important}.modal-bg{background:0 0;padding:0;position:static}.modal{max-height:none;box-shadow:none;max-width:none;padding:0;overflow:visible}.modal .actions{display:none}}.lbl{font-size:13px;font-weight:600}.input.up{text-transform:uppercase}.input.up::placeholder{text-transform:none}.picker{flex-direction:column;gap:8px;display:flex}.results{flex-direction:column;gap:6px;display:flex}.results button{text-align:left;border:1.5px solid var(--teal);background:var(--teal-soft);min-height:52px;color:var(--teal-dark);border-radius:10px;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 12px;display:flex}.results button:hover{background:#d9f1ee}.results button b{font-size:14px}.results button .muted{font-size:12px}.picked{border:1.5px solid var(--teal);background:var(--teal-soft);border-radius:10px;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;display:flex}.picked .who{flex-direction:column;gap:2px;display:flex}.newp{border:1.5px dashed var(--teal);background:#f8fbfa;border-radius:10px;flex-direction:column;gap:10px;padding:12px;display:flex}.tag-enc{letter-spacing:.06em;color:#8a5a00;background:#fff3d6;border:1px solid #f0cf86;border-radius:6px;margin-left:6px;padding:2px 6px;font-size:10px;font-weight:800}.slot.enc{background:#fffaf0;border-color:#f0cf86}.files{border-top:1px solid var(--line);flex-direction:column;gap:10px;padding-top:14px;display:flex}.files .filters{flex-wrap:wrap;gap:10px}.upload{background:#f8fbfa;border:1.5px dashed #b9ccca;border-radius:10px;flex-direction:column;gap:10px;padding:12px;display:flex}.fgroup{flex-direction:column;gap:6px;display:flex}.fdate{color:var(--teal-dark);border-bottom:2px solid var(--teal-soft);padding-bottom:2px;font-size:13px;font-weight:800}.frow{flex-wrap:wrap;align-items:center;gap:10px;padding:6px 0;display:flex}.frow .fname{overflow-wrap:anywhere;flex-direction:column;flex:200px;min-width:0;display:flex}.chips{flex-wrap:wrap;align-items:center;gap:6px;min-height:32px;display:flex}.chip-x{background:var(--teal-soft);border:1.5px solid var(--teal);color:var(--teal-dark);border-radius:999px;align-items:center;gap:6px;padding:4px 4px 4px 12px;font-size:13px;font-weight:700;display:inline-flex}.chip-x button{width:28px;height:28px;color:var(--teal-dark);background:0 0;border:0;border-radius:50%;font-size:13px}.chip-x button:hover{background:#fff}.tag-nocpf{color:#8a5a00;vertical-align:middle;background:#fff3d6;border-radius:999px;margin-left:8px;padding:1px 7px;font-size:11px;font-weight:600;display:inline-block}.errbox{color:#7a1f19;background:#fdecea;border:1px solid #f0b4b0;border-radius:10px;gap:3px;padding:10px 12px;font-size:14px;display:grid}.hist{border:1px solid var(--line);border-radius:10px;flex:none;align-content:start;gap:8px;min-height:140px;max-height:min(320px,45vh);padding:10px;display:grid;overflow-y:auto}.hist .hrow{border-bottom:1px dashed var(--line);padding-bottom:6px}.hist .hrow:last-child{border-bottom:0;padding-bottom:0}.hist .hchg{padding-left:10px;font-size:13px}.slotpick{flex-wrap:wrap;gap:8px;display:flex}.slotpick button{border:1px solid var(--line);font:inherit;cursor:pointer;background:#fff;border-radius:8px;padding:8px 12px;font-weight:600}.slotpick button.on{background:var(--teal);color:#fff;border-color:#0000}.seg{border:1px solid var(--line);border-radius:8px;display:inline-flex;overflow:hidden}.seg button{font:inherit;cursor:pointer;background:#fff;border:0;padding:9px 14px;font-weight:700}.seg button.on{background:var(--side);color:#fff}.chips .btn.sm{font-family:ui-monospace,monospace}.upd{flex-direction:column;gap:18px;max-width:760px;display:flex}.upd .drop{border:2px dashed var(--teal);background:#e6f4f2;border-radius:14px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:18px;display:flex}.upd .warn{color:#5c3d00;background:#fff7e6;border:1px solid #f0cf86;border-radius:12px;padding:12px 14px;font-size:14px}.upd .bar{background:#e6f4f2;border-radius:7px;height:14px;overflow:hidden}.upd .bar>div{background:var(--teal);border-radius:7px;height:100%;transition:width .4s}.upd .st{border-bottom:1px dashed var(--line);align-items:flex-start;gap:12px;padding:10px 0;display:flex}.upd .st:last-child{border-bottom:0}.upd .dot{color:#fff;background:#fff;border:2px solid #b9ccca;border-radius:50%;flex:none;justify-content:center;align-items:center;width:26px;height:26px;font-size:14px;font-weight:800;display:inline-flex}.upd .dot.ok{background:#1e8a3c;border-color:#1e8a3c}.upd .dot.fail{background:#c62828;border-color:#c62828}.upd .dot.run{border-color:var(--teal);border-top-color:#0000;animation:1s linear infinite updspin}@keyframes updspin{to{transform:rotate(360deg)}}.upd .banner{color:#fff;border-radius:14px;padding:18px 20px}.upd .banner.ok{background:#1e8a3c}.upd .banner.bad{background:#c62828}.upd .tag{color:#fff;border-radius:6px;padding:2px 8px;font-size:11px;font-weight:800}.upd .tag.ok{background:#1e8a3c}.upd .tag.bad{background:#c62828}.rlist tr.late{background:#fdecea}.rlist td{vertical-align:middle}
