:root{--g:#007a4d;--gd:#005f3c;--gl:#e8fff5;--ink:#17352b;--muted:#64756e;--line:#d9e6e0;--shadow:0 10px 30px rgba(0,75,48,.09)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:linear-gradient(180deg,#f2fbf7 0%,#f8fbff 48%,#f4faf7 100%);color:var(--ink);font-family:Inter,Segoe UI,Arial,sans-serif}
a{text-decoration:none;color:inherit}

.top{background:linear-gradient(135deg,#005d3b 0%,#008c59 52%,#16b979 100%);box-shadow:0 8px 28px rgba(0,93,59,.18);color:#fff}
.nav{max-width:1180px;margin:auto;padding:15px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:12px;font-weight:800}
.brand-logo{width:72px;height:72px;object-fit:contain;display:block;border:3px solid #fff;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(0,0,0,.16)}
.navlinks{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.navlinks a{padding:9px 11px;border-radius:10px;font-size:13px;font-weight:700;transition:.2s;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.navlinks a:hover{background:rgba(255,255,255,.22);transform:translateY(-1px)}
.hero{max-width:1180px;margin:auto;padding:42px 20px 46px}
.kicker{display:inline-block;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.1);border-radius:999px;padding:8px 12px;font-size:12px;font-weight:800;letter-spacing:.4px}
.hero h1{font-size:clamp(34px,5vw,58px);line-height:1.02;margin:15px 0}
.hero p{font-size:17px;line-height:1.65;color:#e7fff4;max-width:700px}

.container{max-width:1180px;margin:-25px auto 60px;padding:0 20px;position:relative}
.single-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}
.single-nav button{border:1px solid var(--line);background:#fff;color:#245744;border-radius:10px;padding:10px 13px;font-weight:800;cursor:pointer}
.single-nav button.active{background:#008d58;color:#fff;border-color:#008d58}
.view{display:none}
.view.active{display:block}

.section-title{font-size:22px;font-weight:750;margin:24px 0 12px}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.card{background:linear-gradient(145deg,#fff,#f7fffb);border:1px solid #d3eee2;border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(0,105,68,.07);transition:.18s;cursor:pointer}
.card:hover{border-color:#65c99f;box-shadow:0 12px 30px rgba(0,105,68,.13);transform:translateY(-4px)}
.card h3{margin:0 0 7px}
.card p{color:var(--muted);font-size:14px;line-height:1.5;margin:0}
.icon{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,#e7fff4,#d6f7e9);border:1px solid #bce8d4;box-shadow:0 4px 12px rgba(0,141,88,.09);color:#008d58;display:grid;place-items:center;font-size:20px;margin-bottom:11px}
.card .icon[aria-label="Uniformes"],.card .icon[aria-label="Conserto"]{font-size:0;background-repeat:no-repeat;background-position:center;background-size:27px 27px,100% 100%}
.card .icon[aria-label="Uniformes"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23008d58' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 10l8 6 8-6 12 8 6 7-9 8-4-5v25H19V28l-4 5-9-8 6-7 12-8z'/%3E%3Cpath d='M24 10c0 7 16 7 16 0'/%3E%3C/svg%3E"),linear-gradient(135deg,#e7fff4,#d6f7e9)}
.card .icon[aria-label="Conserto"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23008d58' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M38 11a13 13 0 0 0-2 16L15 48a6 6 0 0 0 9 9l21-21a13 13 0 0 0 8-23l-9 9-8-8 2-3z'/%3E%3Cpath d='M18 49l5 5'/%3E%3C/svg%3E"),linear-gradient(135deg,#e7fff4,#d6f7e9)}
.notice{margin:22px 0;background:linear-gradient(90deg,#effff8,#fffdf4);border-left:5px solid #12a96d;border-radius:13px;padding:15px 18px;box-shadow:0 5px 18px rgba(0,0,0,.04);line-height:1.5}
.notice b{color:var(--gd)}

.panel{background:#fff;border:1px solid #cfe8dd;border-radius:20px;padding:24px;box-shadow:0 12px 32px rgba(0,80,55,.08);margin:20px 0}
.panel h2{margin:0 0 5px;color:var(--gd)}
.sub{color:var(--muted);margin:0 0 20px}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}
.field{display:flex;flex-direction:column;gap:7px}
.full{grid-column:1/-1}
label{font-size:13px;font-weight:800}
input,select,textarea{border:1px solid #cbdcd4;border-radius:10px;background:#fbfdfc;padding:12px 13px;outline:none;width:100%;font:inherit;font-size:14px;color:inherit}
input:focus,select:focus,textarea:focus{border-color:var(--g);box-shadow:0 0 0 3px rgba(0,141,88,.1)}
textarea{min-height:100px;resize:vertical}
.field input[readonly]{background:#f1f7f4;font-weight:800;color:#006f47}
#cocalWrap{grid-column:1/-1}

.items{border:1px solid var(--line);border-radius:14px;overflow:auto;margin-top:20px}
table{border-collapse:collapse;width:100%;min-width:760px}
th,td{padding:10px;border-bottom:1px solid var(--line);font-size:13px;vertical-align:middle}
th{background:#edf5f1;color:#245744;text-align:left}
td input,td select{padding:8px}
.sheet-wrap{border:1px solid #b9cec4;border-radius:12px;overflow:auto;margin-top:20px;background:#fff}
.sheet{min-width:760px;width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}
.sheet th,.sheet td{border-right:1px solid #d7e2dd;border-bottom:1px solid #d7e2dd;padding:0;height:42px}
.sheet th{position:sticky;top:0;z-index:2;background:#dfeee8;color:#17352b;text-align:center;font-size:12px}
.sheet tbody tr:nth-child(even) td{background:#fbfdfc}
.sheet td input,.sheet td select{border:0;border-radius:0;background:transparent;padding:10px;width:100%;height:41px;box-shadow:none}
.sheet td input:focus,.sheet td select:focus{background:#f3fbf7;box-shadow:inset 0 0 0 2px var(--g)}
.sheet .qty{width:90px}.sheet .unit{width:110px}.sheet .resource{width:190px}.sheet .obs{width:210px}.sheet .remove{width:54px;text-align:center}
.sheet-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.sheet-tools .helper{background:#edf7f2;border-radius:8px;padding:7px 10px}
.uniform-extra-sheet{margin-top:22px}
.uniform-extra-sheet h3{margin:0 0 5px}
.uniform-extra-sheet .sub{margin-bottom:12px}
.uniform-extra-sheet table{min-width:0}
.uniform-extra-sheet td input{min-width:72px}

.actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:18px}
.btn{border:0;border-radius:10px;padding:12px 17px;font-weight:800;cursor:pointer;font:inherit;font-weight:800;font-size:14px}
.btn:disabled{opacity:.6;cursor:wait}
.btn.primary{background:linear-gradient(135deg,#007a4d,#10ad70);color:#fff;box-shadow:0 5px 14px rgba(0,122,77,.18)}
.btn.primary:hover{filter:brightness(1.05);transform:translateY(-1px)}
.btn.secondary{border:1px solid #cbe7da;background:#f2fbf7;color:#245744}
.btn.danger{background:#fff0f0;color:#a33f3f}
.success{display:none;margin-top:15px;padding:13px;border-radius:10px;background:#eaf8f1;color:#166744;font-weight:700}
.success.error{background:#fff0f0;color:#a33f3f}
.helper{font-size:12px;color:var(--muted)}
.pill{display:inline-block;background:var(--gl);color:var(--gd);padding:6px 9px;border-radius:999px;font-size:11px;font-weight:800}

.footer{background:#075f40;color:#fff}
.foot{max-width:1180px;margin:auto;padding:42px 20px}
.foot h3{margin-top:0}
.foot p{color:#e3fff2;line-height:1.65;margin:7px 0}
.copyright{border-top:1px solid rgba(255,255,255,.14);text-align:center;padding:14px 20px;color:#d7f5e8;font-size:12px}

.login-overlay{position:fixed;inset:0;background:rgba(7,42,30,.62);z-index:10001;display:none;align-items:center;justify-content:center;padding:20px}
.login-overlay.show{display:flex}
.login-card{position:relative;width:min(420px,100%);padding:30px;border-radius:20px;border:2px solid #bde8d4;background:linear-gradient(145deg,#fff,#f4fff9);box-shadow:0 25px 80px rgba(0,0,0,.25)}
.login-card h2{margin:8px 0}
.login-card p{color:var(--muted);line-height:1.5}
.login-card .field{margin-top:10px}
.login-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,#d9fff0,#e9f3ff);border:1px solid #bfe8d7;font-size:30px}
.login-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:28px;cursor:pointer;color:#60756c}
.login-error{display:none;color:#a33f3f;background:#fff0f0;border-radius:8px;padding:9px;margin-top:10px;font-size:13px}

.sup-overlay{position:fixed;inset:0;z-index:10000;display:none;overflow:auto;background:radial-gradient(circle at top right,#e5fff3 0,#f4fbf8 28%,#f7fbff 65%,#eef9f4 100%)}
.sup-overlay.show{display:block}
.sup-shell{max-width:1180px;margin:auto;padding:28px 20px 60px}
.sup-head{position:relative;overflow:hidden;display:flex;justify-content:space-between;gap:20px;align-items:center;border:1px solid #bfe5d5;border-radius:20px;padding:22px;background:linear-gradient(135deg,#fff 0%,#f2fff9 65%,#eef7ff 100%);box-shadow:0 15px 38px rgba(0,89,58,.12)}
.sup-head:after{content:"";position:absolute;right:-80px;top:-90px;width:220px;height:220px;border-radius:50%;background:rgba(18,185,120,.10);pointer-events:none}
.sup-head h2{margin:8px 0 4px;font-size:26px}
.sup-head p{margin:0;color:var(--muted)}
.sup-brand{display:flex;align-items:center;gap:14px;position:relative;z-index:1}
.sup-brand img{width:76px;height:76px;object-fit:contain;background:#fff;border:3px solid #007a4d;border-radius:16px;padding:4px;box-shadow:0 6px 18px rgba(0,80,55,.13)}
.sup-head-actions{display:flex;gap:8px;flex-wrap:wrap;position:relative;z-index:1}
.sup-badge{display:none;position:absolute;right:-6px;top:-8px;min-width:22px;height:22px;padding:2px 6px;border-radius:999px;background:#e53935;color:#fff;font-size:11px;font-weight:900;text-align:center;border:2px solid #fff}
.sup-badge.show{display:block}
.sup-head-actions .btn{position:relative}
.sup-notify{display:inline-flex;align-items:center;gap:8px;margin:16px 0 0;padding:10px 13px;border-radius:12px;background:#eef7ff;color:#23577a;font-weight:800;border:1px solid #cfe5f5;cursor:pointer}
.sup-notify.new{background:#fff4dc;color:#9a5a00;border-color:#f1d39a}
.sup-notify .bell{font-size:18px}
.sup-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:16px 0}
.sup-stat{position:relative;overflow:hidden;border:0;border-radius:16px;padding:18px;min-height:92px;color:#fff;text-align:left;font:inherit;cursor:pointer;box-shadow:0 10px 25px rgba(0,80,55,.10)}
.sup-stat:nth-child(1){background:linear-gradient(135deg,#007a4d,#13b979)}
.sup-stat:nth-child(2){background:linear-gradient(135deg,#4b78b8,#65a6ee)}
.sup-stat:nth-child(3){background:linear-gradient(135deg,#e49a20,#f6c04f)}
.sup-stat:nth-child(4){background:linear-gradient(135deg,#278d55,#4fbd77)}
.sup-stat.active{box-shadow:0 0 0 3px #fff,0 0 0 6px rgba(0,95,60,.45)}
.sup-stat b{font-size:28px;display:block}
.sup-stat span{font-size:12px;opacity:.92}
.sup-search{margin:0 0 15px}
.sup-search input{background:#fff}
.sup-orders{display:grid;gap:14px}
.sup-order{position:relative;overflow:hidden;border-radius:18px;padding:20px;box-shadow:0 10px 28px rgba(0,70,50,.08);transition:.18s;background:#fff}
.sup-order:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(0,70,50,.13)}
.sup-order.status-card-recebido{border-left:7px solid #5b7db1;background:linear-gradient(90deg,#f4f8ff,#fff)}
.sup-order.status-card-andamento{border-left:7px solid #efa92d;background:linear-gradient(90deg,#fffaf0,#fff)}
.sup-order.status-card-finalizado{border-left:7px solid #31a866;background:linear-gradient(90deg,#f2fff7,#fff)}
.sup-order h3{margin:10px 0 5px}
.sup-order-meta{color:var(--muted);font-size:13px;line-height:1.6}
.sup-order-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.sup-order-actions .btn{min-height:42px}
.sup-status-edit{display:flex;align-items:center;gap:8px;margin-top:10px;flex-wrap:wrap}
.sup-status-edit label{font-size:12px;color:var(--muted)}
.sup-status-edit select{width:auto;min-width:160px;padding:8px 10px;background:#fff}
.sup-empty{text-align:center;background:#fff;border:1px dashed #cbdcd4;border-radius:16px;padding:45px;color:var(--muted)}
.status-pill{display:inline-block;border-radius:999px;padding:7px 12px;font-size:11px;font-weight:800;letter-spacing:.3px}
.status-recebido{background:#e5efff;color:#315b91}
.status-andamento{background:#fff0c9;color:#946000}
.status-finalizado{background:#dff8e8;color:#176a39}
.status-novo{background:#e53935;color:#fff;margin-left:6px}
.download-print{background:#edf3f0;color:#245744}

.print-preview-overlay{position:fixed;inset:0;background:rgba(12,35,27,.55);z-index:10005;display:none;padding:24px}
.print-preview-overlay.show{display:flex;align-items:center;justify-content:center}
.print-preview{background:#fff;width:min(880px,100%);height:100%;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.25);overflow:hidden;display:flex;flex-direction:column}
.print-preview iframe{flex:1;width:100%;border:0;background:#fff}
.print-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:14px 20px;background:#f4f8f6;border-top:1px solid var(--line)}
.print-actions button{border:0;border-radius:9px;padding:11px 16px;font-weight:800;cursor:pointer;font-family:inherit}
.print-actions .close{background:#e9efec;color:#245744}
.print-actions .do-print{background:#008d58;color:#fff}
.print-actions .do-whatsapp{background:#25d366;color:#fff}

@media(max-width:900px){.cards{grid-template-columns:1fr 1fr}.sup-stats{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.sup-head{flex-direction:column;align-items:stretch}}
@media(max-width:580px){
.nav{align-items:flex-start}.navlinks{display:none}.hero{padding:38px 15px 50px}.container{padding:0 14px}
.cards{grid-template-columns:1fr}.grid{grid-template-columns:1fr}.full,#cocalWrap{grid-column:auto}.panel{padding:18px}.foot{padding:32px 15px}
.sup-brand img{width:62px;height:62px}.sup-head h2{font-size:21px}
.print-preview-overlay{padding:0}.print-preview{border-radius:0}.print-actions{padding:10px}.print-actions button{flex:1 1 45%}
}
