/* OSVERA — folha única de tokens e casco (redesenho 10/11/2026, Etapa 1).
   Carregada por ÚLTIMO. Cores, fontes, raios e espaços vêm daqui; o CSS antigo usa estas variáveis. */

@font-face{font-family:"Inter";src:url("/fonts/inter.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Raleway";src:url("/fonts/raleway.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

/* ---------- Tokens: modo claro (padrão) ---------- */
html:root,html[data-theme]:root{
 --font:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
 --display:"Raleway","Inter",ui-sans-serif,system-ui,sans-serif;
 --fs-11:11px;--fs-12:12px;--fs-14:14px;--fs-16:16px;--fs-20:20px;--fs-24:24px;--fs-26:26px;--fs-32:32px;
 --r-sm:8px;--r-md:14px;--r-full:999px;
 --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:20px;--s6:24px;--s8:32px;
 --bg:#F3F6F9;--surface:#FFFFFF;--surface-2:#EEF3F7;--line:#E2E9EF;
 --text:#0F2B3D;--muted:#5D7385;--faint:#9AACBA;
 --accent:#0E4D6E;--accent-ink:#FFFFFF;--accent-text:#0E4D6E;--accent-soft:#E3EEF6;--sky:#8EC3E3;
 --ok:#1F8A5B;--ok-soft:#E3F3EB;--warn:#B76E16;--warn-soft:#FBEFDF;--bad:#C8383D;--bad-soft:#FBE5E6;--neutral-soft:#EDF1F4;
 --shadow:0 1px 2px rgba(15,43,61,.04),0 4px 16px rgba(15,43,61,.04);
 --mark-a:#0E4D6E;--mark-b:#6FB0DA;
 /* nomes antigos → tokens (o CSS anterior continua funcionando, já na paleta nova) */
 --panel:var(--surface);--surface-soft:var(--surface-2);--ink:var(--text);--text-soft:var(--muted);--border:var(--line);
 --brand:var(--accent);--brand-2:var(--accent);--brand-soft:var(--accent-soft);
 --ui-blue:var(--accent);--ui-blue-hover:color-mix(in srgb,var(--accent) 86%,#000);--ui-danger:var(--bad);--ui-focus:color-mix(in srgb,var(--accent) 35%,transparent);
 --blue:var(--accent);--navy:var(--accent);--teal:var(--accent);--danger:var(--bad);
 --shadow-card:var(--shadow);--radius:var(--r-md);--radius-md:var(--r-md);--radius-lg:var(--r-md);
 color-scheme:only light;
}
/* ---------- Tokens: modo escuro ---------- */
html[data-theme="dark"]:root{
 --bg:#0A1620;--surface:#0F2130;--surface-2:#15293A;--line:#1D3446;
 --text:#E6EFF5;--muted:#8FA6B8;--faint:#5C7487;
 --accent:#4E9FD0;--accent-ink:#04192A;--accent-text:#7DBDE4;--accent-soft:rgba(78,159,208,.14);--sky:#4E9FD0;
 --ok:#3DBE86;--ok-soft:rgba(61,190,134,.13);--warn:#E39A45;--warn-soft:rgba(227,154,69,.13);--bad:#EF6A6E;--bad-soft:rgba(239,106,110,.13);--neutral-soft:rgba(143,166,184,.12);
 --shadow:none;
 --mark-a:#2E7FB0;--mark-b:#8EC9EC;
 color-scheme:only dark;
}

/* ---------- Base ---------- */
html body.osv{font-family:var(--font);background:var(--bg)!important;color:var(--text)!important;-webkit-font-smoothing:antialiased;font-feature-settings:normal}
body.osv :is(button,input,select,textarea){font-family:inherit}
body.osv svg.i{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* ---------- Logo ---------- */
.osv-logo{display:inline-flex;align-items:center;gap:12px;font-family:var(--display);font-weight:400;letter-spacing:.08em;font-size:19px;line-height:1;color:var(--accent-text)!important;text-decoration:none!important;white-space:nowrap}
html[data-theme="dark"] .osv-logo{color:var(--text)!important}
.osv-mark{width:24px;height:24px;border-radius:8px;background:linear-gradient(135deg,var(--mark-a),var(--mark-b));position:relative;transform:rotate(30deg);flex:none}
.osv-mark::after{content:"";position:absolute;inset:6px;border:2px solid rgba(255,255,255,.92);border-radius:4px}

/* ---------- Casco ---------- */
html body.osv{display:block!important;margin:0;min-height:100vh;grid-template-columns:none!important}
body.osv .osv-main{min-width:0;display:flex;flex-direction:column;min-height:100vh}
body.osv .osv-top{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:var(--s2);height:56px;padding:0 var(--s4);padding-top:env(safe-area-inset-top);box-sizing:content-box;background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);margin:0}
body.osv .osv-top-brand{flex:1;display:flex;align-items:center;min-width:0}
body.osv .osv-top-title{flex:1;min-width:0;font-size:var(--fs-16);font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.osv.osv-detail .osv-top-brand{display:none}
body.osv .osv-top-actions{display:flex;align-items:center;gap:4px;margin-left:auto}
body.osv .osv-icon-btn{position:relative;display:grid!important;place-items:center;width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border:0!important;border-radius:var(--r-sm)!important;background:transparent!important;color:var(--muted)!important;box-shadow:none!important;cursor:pointer;text-decoration:none;font-size:16px;line-height:1;flex:none;margin:0!important}
body.osv .osv-icon-btn:hover{background:var(--surface-2)!important;color:var(--text)!important}
body.osv .osv-icon-btn svg{width:18px;height:18px}
body.osv .notification-bell .notification-badge{position:absolute!important;top:7px!important;right:7px!important;left:auto!important;width:8px!important;height:8px!important;min-width:0!important;padding:0!important;border-radius:50%!important;background:var(--accent)!important;border:2px solid var(--bg)!important;font-size:0!important;color:transparent!important;box-shadow:none!important}
body.osv .notification-bell .notification-badge[hidden]{display:none!important}
body.osv .osv-top-avatar{display:grid;place-items:center;width:36px;height:36px;text-decoration:none}
body.osv .osv-avatar{width:30px;height:30px;border-radius:50%;background:var(--accent-soft);color:var(--accent-text);display:grid;place-items:center;font-size:var(--fs-12);font-weight:600;flex:none}
body.osv #install-osvera:not([hidden]){height:32px;padding:0 12px;border-radius:var(--r-sm);border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:var(--fs-12);font-weight:500}

body.osv main.osv-content{flex:1;width:100%;max-width:1040px!important;margin:0 auto!important;padding:var(--s5) var(--s4) calc(96px + env(safe-area-inset-bottom))!important;box-sizing:border-box;background:transparent!important;min-width:0;align-self:auto!important}
body.osv .osv-page-head{display:flex;align-items:center;gap:var(--s3);margin:0 0 var(--s5)}
body.osv .osv-page-title{font-family:var(--display)!important;font-size:var(--fs-26)!important;font-weight:500!important;line-height:1.2!important;letter-spacing:0!important;color:var(--accent-text)!important;font-feature-settings:"lnum";margin:0!important}
html[data-theme="dark"] body.osv .osv-page-title{color:var(--text)!important}
body.osv .osv-notice{margin:0 0 var(--s4);padding:10px var(--s4);border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);font-size:var(--fs-14)}
body.osv .osv-notice a{color:var(--accent-text);font-weight:500;text-decoration:none}

/* Menu lateral (computador) / gaveta "Mais" (celular) */
body.osv .osv-side{position:fixed;z-index:60;top:0;bottom:0;left:0;width:min(320px,86vw);display:flex;flex-direction:column;background:var(--surface);border-right:1px solid var(--line);padding:var(--s4) var(--s3) calc(var(--s3) + env(safe-area-inset-bottom));box-sizing:border-box;transform:translateX(-102%);transition:transform .2s ease;overflow:hidden}
body.osv.nav-open .osv-side{transform:none;box-shadow:0 10px 40px rgba(4,25,42,.25)}
body.osv .osv-scrim{position:fixed;inset:0;z-index:55;background:rgba(4,25,42,.38);opacity:0;pointer-events:none;transition:opacity .2s}
body.osv.nav-open .osv-scrim{opacity:1;pointer-events:auto}
body.osv .osv-side-head{display:flex;align-items:center;justify-content:space-between;padding:var(--s2) var(--s2) var(--s5)}
body.osv .osv-side-scroll{flex:1;overflow:auto;margin:0 calc(var(--s3) * -1);padding:0 var(--s3);display:block!important;scrollbar-width:thin}
body.osv .osv-nav-group{margin-bottom:var(--s4)}
body.osv .osv-nav-title{font-family:var(--font)!important;font-size:var(--fs-11)!important;font-weight:500!important;color:var(--faint)!important;text-transform:uppercase;letter-spacing:.08em!important;padding:0 var(--s2) var(--s1)!important;margin:0!important;line-height:1.6!important}
body.osv .osv-nav-item{display:flex!important;align-items:center;gap:10px;width:100%;min-height:36px;padding:0 var(--s2)!important;border:0!important;border-radius:var(--r-sm)!important;background:transparent!important;color:var(--muted)!important;font-size:var(--fs-14)!important;font-weight:400!important;text-decoration:none!important;text-align:left;cursor:pointer;box-shadow:none!important;box-sizing:border-box;margin:0!important;line-height:1.3}
body.osv .osv-nav-item:hover{background:var(--surface-2)!important;color:var(--text)!important}
body.osv .osv-nav-item.on{background:var(--accent-soft)!important;color:var(--accent-text)!important;font-weight:500!important}
body.osv .osv-nav-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.osv .osv-count{margin-left:auto;font-size:var(--fs-12);font-weight:500;color:var(--accent-text);background:none;padding:0;min-width:0;font-feature-settings:"tnum"}
body.osv .osv-count[hidden]{display:none}
body.osv .osv-nav-item.locked{opacity:.55;cursor:default}
body.osv .osv-nav-item.locked:hover{background:transparent!important;color:var(--muted)!important}
body.osv .osv-lock{margin-left:auto;display:flex;color:var(--faint)}
body.osv .osv-lock svg.i{width:13px;height:13px}
body.osv .osv-nav-sub{display:flex;flex-direction:column;margin:2px 0 4px 26px;border-left:1px solid var(--line);padding-left:var(--s2)}
body.osv .osv-nav-sub[hidden]{display:none}
body.osv .osv-nav-subitem{display:flex;align-items:center;min-height:32px;padding:0 var(--s2);border-radius:var(--r-sm);color:var(--muted)!important;font-size:13px;text-decoration:none!important}
body.osv .osv-nav-subitem:hover{background:var(--surface-2);color:var(--text)!important}
body.osv .osv-nav-subitem.on{color:var(--accent-text)!important;font-weight:500}
body.osv .osv-side-foot{border-top:1px solid var(--line);padding-top:var(--s3);display:flex;flex-direction:column;gap:2px}
body.osv .osv-who{display:flex;align-items:center;gap:var(--s2);min-height:44px;padding:0 var(--s2);border-radius:var(--r-sm);color:var(--text)!important;text-decoration:none!important}
body.osv a.osv-who:hover{background:var(--surface-2)}
body.osv .osv-who-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
body.osv .osv-who-text b{font-weight:500;font-size:var(--fs-14);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.osv .osv-who-text small{color:var(--muted);font-size:var(--fs-12);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.osv .osv-who-chev{color:var(--faint)}
body.osv .osv-logout{margin:0}
body.osv .osv-side-action{display:flex!important;align-items:center;gap:10px;width:100%;min-height:36px;padding:0 var(--s2)!important;border:0!important;border-radius:var(--r-sm)!important;background:transparent!important;color:var(--muted)!important;font-size:var(--fs-14)!important;font-weight:400!important;text-decoration:none!important;cursor:pointer;box-shadow:none!important}
body.osv .osv-side-action:hover{background:var(--surface-2)!important;color:var(--text)!important}

/* Barra inferior (celular) */
body.osv .osv-bottom{position:fixed;z-index:50;left:0;right:0;bottom:0;display:flex;height:64px;padding-bottom:env(safe-area-inset-bottom);box-sizing:content-box;background:var(--surface);border-top:1px solid var(--line)}
body.osv .osv-bottom>a,body.osv .osv-bottom>button{position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--faint)!important;font-family:var(--font);font-size:var(--fs-11)!important;font-weight:500!important;line-height:1.2;text-decoration:none!important;cursor:pointer;min-height:44px!important;height:auto!important;width:auto!important}
body.osv .osv-bottom>a span,body.osv .osv-bottom>button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
body.osv .osv-bottom svg.i{width:20px;height:20px}
body.osv .osv-bottom>.on{color:var(--accent-text)!important}
html[data-theme="dark"] body.osv .osv-bottom>.on{color:var(--accent-text)!important}
body.osv .osv-dot-count{position:absolute;top:9px;left:calc(50% + 6px);width:8px;height:8px;border-radius:50%;background:var(--accent);border:2px solid var(--surface);font-size:0!important;color:transparent!important;overflow:hidden;padding:0}
body.osv .osv-dot-count[hidden]{display:none}

/* Aviso rápido (itens com cadeado) */
body.osv .osv-toast{position:fixed;left:50%;bottom:calc(80px + env(safe-area-inset-bottom));transform:translateX(-50%) translateY(16px);opacity:0;background:var(--text);color:var(--bg);padding:10px 16px;border-radius:var(--r-full);font-size:var(--fs-14);transition:.2s;z-index:80;pointer-events:none;white-space:nowrap}
body.osv .osv-toast.show{opacity:1;transform:translateX(-50%)}

/* Computador (≥ 900px): menu lateral fixo de 248px, sem barra inferior */
@media (min-width:900px){
 body.osv{padding-left:248px!important}
 body.osv .osv-side{width:248px;transform:none!important;box-shadow:none!important;transition:none}
 body.osv .osv-side-close,body.osv .osv-scrim,body.osv .osv-bottom,body.osv .osv-top-brand,body.osv .osv-top-avatar{display:none!important}
 body.osv .osv-top{padding:0 var(--s8)}
 body.osv.osv-detail .osv-top-title,body.osv .osv-back{display:none!important}
 body.osv main.osv-content{padding:var(--s8)!important}
 body.osv .osv-toast{bottom:32px}
}
@media (max-width:899px){
 body.osv .osv-side-close{display:grid}
 body.osv .osv-page-head{margin-bottom:var(--s4)}
}

/* Escolha de tema no perfil: Claro / Escuro / Igual ao celular */
body.osv .osv-theme-pick{display:inline-flex!important;gap:4px;padding:4px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface-2);flex-wrap:wrap}
body.osv .osv-theme-pick button{display:inline-flex!important;width:auto!important;height:36px!important;min-height:36px!important;padding:0 14px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--muted)!important;font-size:var(--fs-14)!important;font-weight:500!important;box-shadow:none!important;place-items:center;align-items:center}
body.osv .osv-theme-pick button[aria-pressed="true"]{background:var(--surface)!important;color:var(--accent-text)!important;box-shadow:var(--shadow)!important}
html[data-theme="dark"] body.osv .osv-theme-pick button[aria-pressed="true"]{background:var(--accent-soft)!important}

/* Botão primário: cor principal com a tinta certa (branca no claro, escura no escuro) */
html[data-theme] body.osv :is(.ui-primary,.primary-btn,button.primary,a.primary,.button.primary,.btn-primary){background:var(--accent)!important;border-color:var(--accent)!important;color:var(--accent-ink)!important}

/* "hidden" sempre vence o display dos botões do casco */
html body.osv :is(.osv-icon-btn,.osv-top-title,.osv-nav-sub,.osv-count,.osv-dot-count)[hidden]{display:none!important}
/* Botões do casco não herdam fundo/cor de regras antigas de botão */
html[data-theme] body.osv .osv-top .osv-icon-btn{background:transparent!important;color:var(--muted)!important;border:0!important;box-shadow:none!important}
html[data-theme] body.osv .osv-top .osv-icon-btn:hover{background:var(--surface-2)!important;color:var(--text)!important}
html[data-theme] body.osv nav.osv-bottom>:is(a,button){background:transparent!important;color:var(--faint)!important;border:0!important;box-shadow:none!important}
html[data-theme] body.osv nav.osv-bottom>:is(a,button).on{color:var(--accent-text)!important}

/* Páginas que já trazem o próprio título (Projetos): título do casco some; o delas fica no padrão */
body.osv.osv-own-heading .osv-page-head{display:none}
html[data-theme] body.osv .process-content{padding:0!important;margin:0!important;max-width:none!important;background:transparent!important;min-height:0!important}
html[data-theme] body.osv .process-content>.heading{margin:0 0 var(--s5)!important;padding:0!important}
html[data-theme] body.osv .process-content>.heading h1{font-family:var(--display)!important;font-size:var(--fs-26)!important;font-weight:500!important;line-height:1.2!important;letter-spacing:0!important;color:var(--accent-text)!important;font-feature-settings:"lnum";margin:0!important}
html[data-theme="dark"] body.osv .process-content>.heading h1{color:var(--text)!important}

/* Projetos dentro do casco único (antes tinham casco próprio) */
body.osv .process-content{display:block}
body.osv .osv-subnav{display:flex;gap:var(--s5);border-bottom:1px solid var(--line);margin:calc(var(--s2) * -1) 0 var(--s5);overflow-x:auto;scrollbar-width:none}
body.osv .osv-subnav::-webkit-scrollbar{display:none}
body.osv .osv-subnav a{display:flex;align-items:center;height:40px;color:var(--muted)!important;font-size:var(--fs-14);font-weight:500;white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-1px;text-decoration:none!important}
body.osv .osv-subnav a:hover{color:var(--text)!important}
body.osv .osv-subnav a.on{color:var(--text)!important;border-color:var(--accent)}
body.osv .osv-context{font-size:var(--fs-12);color:var(--muted);margin:calc(var(--s4) * -1) 0 var(--s3)}
/* Título próprio das telas de Projetos (inclusive as antigas) no padrão de título de página */
html[data-theme] body.osv main.osv-content .process-content h1:first-of-type{font-family:var(--display)!important;font-size:var(--fs-26)!important;font-weight:500!important;line-height:1.2!important;letter-spacing:0!important;color:var(--accent-text)!important;font-feature-settings:"lnum"}
html[data-theme="dark"] body.osv main.osv-content .process-content h1:first-of-type{color:var(--text)!important}
html[data-theme] body.osv .process-content>.osv-subnav{margin:calc(var(--s2) * -1) 0 var(--s5)}
html[data-theme] body.osv nav.osv-subnav{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:var(--s5)!important;padding:0!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;position:static!important;width:auto!important;height:auto!important;overflow-x:auto!important}
html[data-theme] body.osv nav.osv-subnav>a{display:flex!important;width:auto!important;flex:none!important;height:40px!important;min-height:40px!important;padding:0!important;margin:0 0 -1px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--muted)!important;font-size:var(--fs-14)!important;font-weight:500!important;align-items:center}
html[data-theme] body.osv nav.osv-subnav>a.on{color:var(--text)!important;border-bottom-color:var(--accent)!important}
/* Recolher o menu lateral (computador): fica só com os ícones */
body.osv .osv-collapse{display:none!important}
@media (min-width:900px){
 html[data-theme] body.osv .osv-collapse{display:grid!important;font-size:15px!important}
 body.osv.sidebar-collapsed{padding-left:72px!important}
 body.osv.sidebar-collapsed .osv-side{width:72px;padding-left:var(--s2);padding-right:var(--s2)}
 body.osv.sidebar-collapsed .osv-side-head{flex-direction:column;gap:var(--s3);padding:var(--s2) 0 var(--s4)}
 body.osv.sidebar-collapsed :is(.osv-word,.osv-nav-title,.osv-nav-label,.osv-count,.osv-lock,.osv-nav-sub,.osv-who-text,.osv-who-chev){display:none!important}
 body.osv.sidebar-collapsed .osv-side-scroll{margin:0;padding:0}
 body.osv.sidebar-collapsed :is(.osv-nav-item,.osv-side-action,.osv-who){justify-content:center;padding:0!important;min-height:40px}
 body.osv.sidebar-collapsed .osv-nav-group{margin-bottom:var(--s3);padding-top:var(--s3);border-top:1px solid var(--line)}
 body.osv.sidebar-collapsed .osv-nav-group:first-child{border-top:0;padding-top:0}
 body.osv.sidebar-collapsed .osv-side-action{font-size:0!important;gap:0}
}
html[data-theme] body.osv.sidebar-collapsed .osv-page-head{display:flex!important}html[data-theme] body.osv.sidebar-collapsed .osv-page-title{display:block!important}
/* Grupos do menu que abrem e fecham */
html[data-theme] body.osv details.osv-fold>summary.osv-nav-title{display:flex!important;align-items:center;gap:6px;list-style:none;cursor:pointer;min-height:32px;border-radius:var(--r-sm);user-select:none}
body.osv details.osv-fold>summary::-webkit-details-marker{display:none}
body.osv details.osv-fold>summary:hover{color:var(--muted)!important;background:var(--surface-2)}
body.osv .osv-fold-chev{width:13px!important;height:13px!important;margin-left:auto;transform:rotate(90deg);transition:transform .15s}
body.osv details.osv-fold:not([open])>summary .osv-fold-chev{transform:none}
body.osv details.osv-fold:not([open]){margin-bottom:var(--s1)}
@media (min-width:900px){body.osv.sidebar-collapsed details.osv-fold>summary{display:none!important}}
@media (min-width:900px){html[data-theme] body.osv .osv-collapse{width:40px!important;height:40px!important;min-height:40px!important;font-size:18px!important;color:var(--muted)!important;border:1px solid var(--line)!important;background:var(--surface)!important}}
@media (min-width:900px){html[data-theme] body.osv.sidebar-collapsed details.osv-fold>summary.osv-nav-title{display:none!important}}
html[data-theme] body.osv .osv-profile-logout{margin:var(--s4) 0}
html[data-theme] body.osv .osv-profile-logout button{width:100%;min-height:44px;color:var(--bad)!important;border:1px solid var(--line)!important;background:var(--surface)!important;border-radius:var(--r-sm)!important;font-weight:500}
@media (min-width:900px){html[data-theme] body.osv .osv-profile-logout button{width:auto;padding:0 20px}}
/* Botão Sair na barra inferior do técnico */
body.osv .osv-bottom>form.osv-bottom-logout{flex:1 1 0;min-width:0;display:flex;margin:0}
html[data-theme] body.osv .osv-bottom>form.osv-bottom-logout>button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--faint)!important;font-size:var(--fs-11)!important;font-weight:500!important;min-height:44px!important;height:auto!important;width:100%!important;cursor:pointer}
/* Aviso da assinatura: uma linha discreta */
html[data-theme] body.osv .osv-notice{padding:0;border:0;background:transparent;margin:calc(var(--s3) * -1) 0 var(--s4);font-size:var(--fs-12)}
html[data-theme] body.osv .osv-notice a{color:var(--muted)!important;font-weight:400}
html[data-theme] body.osv .osv-notice a:hover{color:var(--accent-text)!important;text-decoration:underline}
/* Instalar: só ícone no topo */
html[data-theme] body.osv #install-osvera:not([hidden]){display:grid!important;width:36px!important;height:36px!important;padding:0!important;border:0!important;background:transparent!important;color:var(--muted)!important}
/* Técnico no computador igual ao celular: sem menu lateral, barra Início · OS · Cronograma · Sair embaixo
   e seta voltar + título nas telas de detalhe. O gestor continua com o menu lateral. */
@media (min-width:900px){
 html body.osv.osv-techbar.osv-techbar{padding-left:0!important}
 html body.osv.osv-techbar .osv-side,html body.osv.osv-techbar .osv-scrim,html body.osv.osv-techbar .osv-collapse{display:none!important}
 html body.osv.osv-techbar .osv-bottom{display:flex!important;justify-content:center}
 html body.osv.osv-techbar .osv-bottom>*{flex:0 1 160px!important}
 html body.osv.osv-techbar .osv-top-avatar{display:grid!important}
 html body.osv.osv-techbar:not(.osv-detail) .osv-top-brand{display:flex!important}
 html body.osv.osv-techbar.osv-detail .osv-top-title,html body.osv.osv-techbar .osv-back:not([hidden]){display:grid!important}
 html body.osv.osv-techbar.osv-detail .osv-top-title{display:block!important}
 html body.osv.osv-techbar main.osv-content{padding:var(--s8) var(--s8) calc(104px + env(safe-area-inset-bottom))!important}
 html body.osv.osv-techbar .osv-toast{bottom:calc(80px + env(safe-area-inset-bottom))}
}
/* Lista de OS do técnico: cartão fino (número · data discreta / loja). Toca e abre.
   As outras colunas continuam na página (escondidas) para Pesquisar/Cliente/Status seguirem funcionando. */
html[data-theme] body.osv section.order-cards{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
html[data-theme] body.osv section.order-cards .table-wrap{overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important}
html[data-theme] body.osv section.order-cards table{display:block!important;width:100%!important;border:0!important;background:transparent!important;min-width:0!important}
html[data-theme] body.osv section.order-cards thead{display:none!important}
html[data-theme] body.osv section.order-cards tbody{display:flex!important;flex-direction:column;gap:var(--s2)}
html[data-theme] body.osv section.order-cards tr.order-list-row{position:relative;display:grid!important;grid-template-columns:1fr auto;grid-template-areas:"os data" "loja loja";align-items:center;column-gap:var(--s3);row-gap:2px;padding:12px 16px!important;margin:0!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:var(--r-md,14px)!important;box-shadow:none!important;min-height:0!important}
html[data-theme] body.osv section.order-cards tr.order-list-row:hover{border-color:var(--accent)!important}
html[data-theme] body.osv section.order-cards tr.order-list-row>td{display:none!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;min-height:0!important}
html[data-theme] body.osv section.order-cards tr.order-list-row>td::before{content:none!important;display:none!important}
html[data-theme] body.osv section.order-cards tr.order-list-row>td[data-label="OS"]{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px;grid-area:os;position:static!important}
html[data-theme] body.osv section.order-cards tr.order-list-row>td[data-label="OS"]>small{display:none!important}
html[data-theme] body.osv section.order-cards td[data-label="OS"] a.table-link{position:static!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-height:0!important;color:var(--accent-text)!important;font-family:var(--display);font-feature-settings:"lnum";font-size:var(--fs-16)!important;font-weight:600!important;text-decoration:none!important}
html[data-theme] body.osv section.order-cards td[data-label="OS"] a.table-link::after{content:"";position:absolute;inset:0;border-radius:inherit}
html[data-theme] body.osv section.order-cards td[data-label="OS"] a.order-unread-notice{position:relative;z-index:1;font-size:var(--fs-12)!important}
html[data-theme] body.osv section.order-cards tr.order-list-row>td[data-label="Unidade"]{display:block!important;grid-area:loja;font-size:15px!important;font-weight:500!important;color:var(--text)!important;line-height:1.35;white-space:normal}
html[data-theme] body.osv section.order-cards tr.order-list-row>td[data-label="Unidade"] small{display:block;font-size:var(--fs-12)!important;font-weight:400;color:var(--muted)!important}
html[data-theme] body.osv section.order-cards tr.order-list-row>td[data-label="Agenda"]{display:block!important;grid-area:data;font-size:var(--fs-12)!important;color:var(--faint)!important;white-space:nowrap;text-align:right}
html[data-theme] body.osv section.order-cards tr.order-list-row.list-filter-hidden{display:none!important}
html[data-theme] body.osv section.order-cards td.table-empty{display:block!important;padding:var(--s4)!important;color:var(--muted)!important}
@media (min-width:900px){html[data-theme] body.osv section.order-cards{max-width:720px;margin-left:auto!important;margin-right:auto!important}}

/* ================= Etapa 2: Início, OS (lista, detalhe, execução), Cronograma — só visual ================= */
/* Detalhe da OS: sem repetições. O código aparece uma vez (título); rótulos em caixa-alta acima dos títulos saem. */
html[data-theme] body.osv main.osv-content:has(.order-detail-head) .section-kicker{display:none!important}
html[data-theme] body.osv .order-detail-head h2{font-size:var(--fs-20)!important;line-height:1.3!important}
/* Celular e técnico: o título já está na barra de cima com a seta voltar */
@media (max-width:899px){
 html[data-theme] body.osv.osv-detail .osv-page-head{display:none!important}
 html[data-theme] body.osv .order-head-actions>a.ghost-link:last-child{display:none!important}
}
html[data-theme] body.osv.osv-techbar.osv-detail .osv-page-head{display:none!important}
html[data-theme] body.osv.osv-techbar .order-head-actions>a.ghost-link:last-child{display:none!important}
/* Informações da OS: um bloco só, com divisórias (antes, 7 cartões soltos) */
html[data-theme] body.osv section.order-summary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:1px!important;background:var(--line)!important;border:1px solid var(--line)!important;border-radius:var(--r-md)!important;overflow:hidden;padding:0!important;box-shadow:var(--shadow)!important;margin:0 0 var(--s4)!important}
@media (min-width:900px){html[data-theme] body.osv section.order-summary{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
html[data-theme] body.osv section.order-summary>div{background:var(--surface)!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:12px 16px!important;margin:0!important;min-height:0!important;display:flex!important;flex-direction:column;gap:2px}
html[data-theme] body.osv section.order-summary>div>span{font-size:var(--fs-12)!important;color:var(--muted)!important;font-weight:400!important;text-transform:none!important;letter-spacing:0!important}
html[data-theme] body.osv section.order-summary>div>b{font-size:var(--fs-14)!important;font-weight:500!important;color:var(--text)!important}
html[data-theme] body.osv section.order-summary>div>small{font-size:var(--fs-12)!important;color:var(--warn)!important}
html[data-theme] body.osv section.order-summary .status-edit-link{align-self:flex-start;margin-top:4px;font-size:var(--fs-12)!important;min-height:28px!important;padding:0 10px!important}
html[data-theme] body.osv section.order-summary:has(>div:nth-child(7):last-child)>div:last-child{grid-column:span 2}
@media (min-width:900px){html[data-theme] body.osv section.order-summary:has(>div:nth-child(7):last-child)>div:last-child{grid-column:span 2}}
/* Histórico: linhas legíveis */
html[data-theme] body.osv .history-line{display:grid!important;grid-template-columns:1fr auto;gap:2px var(--s3);padding:10px 0!important;border-bottom:1px solid var(--line)}
html[data-theme] body.osv .history-line:last-child{border-bottom:0}
html[data-theme] body.osv .history-line>b{grid-column:1;grid-row:1;font-size:var(--fs-14)!important;font-weight:500!important;color:var(--text)!important}
html[data-theme] body.osv .history-line>span{grid-column:1;grid-row:2;font-size:var(--fs-12)!important;color:var(--muted)!important}
html[data-theme] body.osv .history-line>time{grid-column:2;grid-row:1/3;align-self:center;font-size:var(--fs-12)!important;color:var(--faint)!important;white-space:nowrap}
/* Nada abaixo de 12px nas telas da Etapa 2 */
html[data-theme] body.osv main.osv-content :is(small,.field-help,th,dt,dd,.mini-empty,.list-filter-count,.status-summary-card small,.tech-step-l){font-size:max(12px,1em)!important}
html[data-theme] body.osv main.osv-content th{font-size:var(--fs-12)!important}
html[data-theme] body.osv main.osv-content :is(.field-help,small){font-size:var(--fs-12)!important}

/* Passos da execução (técnico): trilha de passos mais limpa */
html[data-theme] body.osv nav.tech-steps-nav{display:flex!important;gap:var(--s2)!important;overflow-x:auto;scrollbar-width:none;padding:0 0 var(--s3)!important;margin:0 0 var(--s4)!important;border:0!important;border-bottom:1px solid var(--line)!important;background:transparent!important}
html[data-theme] body.osv nav.tech-steps-nav::-webkit-scrollbar{display:none}
html[data-theme] body.osv nav.tech-steps-nav>a{flex:0 0 auto;display:inline-flex!important;align-items:center;gap:6px;min-height:36px!important;padding:0 12px 0 6px!important;border:1px solid var(--line)!important;border-radius:var(--r-full)!important;background:var(--surface)!important;color:var(--muted)!important;font-size:var(--fs-14)!important;font-weight:500!important;text-decoration:none!important;box-shadow:none!important}
html[data-theme] body.osv nav.tech-steps-nav>a .tech-step-n{display:grid!important;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--surface-2)!important;color:var(--muted)!important;font-size:var(--fs-12)!important;font-weight:600}
html[data-theme] body.osv nav.tech-steps-nav>a.is-done .tech-step-n{background:var(--ok-soft)!important;color:var(--ok)!important}
html[data-theme] body.osv nav.tech-steps-nav>a[aria-current]{border-color:var(--accent)!important;background:var(--accent-soft)!important;color:var(--accent-text)!important}
html[data-theme] body.osv nav.tech-steps-nav>a[aria-current] .tech-step-n{background:var(--accent)!important;color:var(--accent-ink)!important}
html[data-theme] body.osv .tech-steps-bar{display:flex!important;gap:var(--s3);justify-content:space-between;align-items:center;margin-top:var(--s4)!important;padding-top:var(--s4)!important;border-top:1px solid var(--line)!important}
html[data-theme] body.osv .tech-steps-bar>.primary{margin-left:auto;min-height:44px!important;padding:0 20px!important}
html[data-theme] body.osv .tech-steps-finish .primary,html[data-theme] body.osv .tech-steps-finish button{width:100%;min-height:48px!important;font-size:var(--fs-16)!important}

/* Lista de OS do gestor no celular: 3 linhas por OS, sem rótulos (código · tipo + status / loja / cliente · responsável · data) */
@media (max-width:899px){
 html[data-theme] body.osv section.panel:not(.order-cards) tr.order-list-row{position:relative;display:flex!important;flex-wrap:wrap;align-items:center;column-gap:6px;row-gap:2px;padding:12px 12px 12px 44px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;min-height:0!important}
 html[data-theme] body.osv section.panel:not(.order-cards) tr.order-list-row>td{display:block!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;min-height:0!important;width:auto!important;font-size:var(--fs-12)!important;color:var(--muted)!important}
 html[data-theme] body.osv section.panel:not(.order-cards) tr.order-list-row>td::before{content:none!important;display:none!important}
 html[data-theme] body.osv section.panel:not(.order-cards) tr.order-list-row>td.bulk-select-cell{position:absolute!important;left:12px;top:14px}
 html[data-theme] body.osv section.panel:not(.order-cards) tr.order-list-row>td[data-label="OS"]{order:1;flex:1 1 0;min-width:0;display:flex!important;flex-wrap:wrap;align-items:center;gap:6px}
 html[data-theme] body.osv section.panel:not(.order-cards) td[data-label="OS"] a.table-link{padding:0!important;border:0!important;background:transparent!important;min-height:0!important;font-family:var(--display);font-feature-settings:"lnum";font-size:var(--fs-16)!important;font-weight:600!important;color:var(--accent-text)!important}
 html[data-theme] body.osv section.panel:not(.order-cards) td[data-label="OS"]>small{font-size:var(--fs-12)!important;color:var(--muted)!important}
 html[data-theme] body.osv section.panel:not(.order-cards) td[data-label="OS"] a.order-unread-notice{flex-basis:100%;font-size:var(--fs-12)!important}
 html[data-theme] body.osv section.panel:not(.order-cards) tr.order-list-row>td[data-label="Status"]{order:2;flex:0 0 auto;display:flex!important;flex-direction:column;align-items:flex-end}
 html[data-theme] body.osv section.panel:not(.order-cards) td[data-label="Status"] select{min-height:36px!important;height:36px!important;padding:0 28px 0 10px!important;font-size:var(--fs-12)!important;border-radius:var(--r-full)!important;width:auto!important}
 html[data-theme] body.osv section.panel:not(.order-cards) tr.order-list-row>td[data-label="Unidade"]{order:3;flex:0 0 100%;font-size:15px!important;font-weight:500!important;color:var(--text)!important}
 html[data-theme] body.osv section.panel:not(.order-cards) tr.order-list-row>td[data-label="Cliente"]{order:4}
 html[data-theme] body.osv section.panel:not(.order-cards) tr.order-list-row>td[data-label="Responsável"]{order:5}
 html[data-theme] body.osv section.panel:not(.order-cards) tr.order-list-row>td[data-label="Agenda"]{order:6}
 html[data-theme] body.osv section.panel:not(.order-cards) tr.order-list-row>td:is([data-label="Responsável"],[data-label="Agenda"])::before{content:"· "!important;display:inline!important;position:static!important;color:var(--faint)}
 html[data-theme] body.osv section.panel:not(.order-cards):has(tr.order-list-row) .table-wrap{padding:0!important}
 html[data-theme] body.osv section.panel:not(.order-cards) tr.order-list-row.list-filter-hidden{display:none!important}
}

/* Início do técnico: Manutenção preventiva / Chamados extras viram lista (não cortam no celular) */
html[data-theme] body.osv .dashboard-recent-panel thead{display:none!important}
html[data-theme] body.osv .dashboard-recent-panel :is(table,tbody){display:block!important;width:100%!important;min-width:0!important;border:0!important;background:transparent!important}
html[data-theme] body.osv .dashboard-recent-panel .table-wrap{overflow:visible!important;border:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}
html[data-theme] body.osv .dashboard-recent-panel tbody>tr{position:relative;display:grid!important;grid-template-columns:1fr auto;grid-template-areas:"os data" "loja status";align-items:center;gap:2px var(--s3);padding:12px 0!important;margin:0!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html[data-theme] body.osv .dashboard-recent-panel tbody>tr>td{display:block!important;padding:0!important;border:0!important;background:transparent!important;min-height:0!important;width:auto!important}
html[data-theme] body.osv .dashboard-recent-panel tbody>tr>td::before{content:none!important;display:none!important}
html[data-theme] body.osv .dashboard-recent-panel tbody>tr>td:nth-child(1){grid-area:os}
html[data-theme] body.osv .dashboard-recent-panel tbody>tr>td:nth-child(1) a{font-family:var(--display);font-feature-settings:"lnum";font-size:var(--fs-16)!important;font-weight:600!important;color:var(--accent-text)!important;text-decoration:none!important;padding:0!important;border:0!important;background:transparent!important;min-height:0!important}
html[data-theme] body.osv .dashboard-recent-panel tbody>tr>td:nth-child(1) a::after{content:"";position:absolute;inset:0}
html[data-theme] body.osv .dashboard-recent-panel tbody>tr>td:nth-child(2){grid-area:loja;font-size:var(--fs-14)!important;color:var(--text)!important;min-width:0}
html[data-theme] body.osv .dashboard-recent-panel tbody>tr>td:nth-child(3){grid-area:status;justify-self:end;font-size:var(--fs-12)!important;color:var(--muted)!important;background:var(--surface-2)!important;border-radius:var(--r-full)!important;padding:2px 10px!important;white-space:nowrap}
html[data-theme] body.osv .dashboard-recent-panel tbody>tr>td:nth-child(4){grid-area:data;justify-self:end;font-size:var(--fs-12)!important;color:var(--faint)!important;white-space:nowrap}
html[data-theme] body.osv .dashboard-recent-panel tbody>tr.list-filter-hidden{display:none!important}
/* Saudação do técnico: sem frase de efeito e sem o nome da empresa repetido */
html[data-theme] body.osv.osv-techbar .welcome :is(.section-kicker,p){display:none!important}
html[data-theme] body.osv.osv-techbar a.metric>small{display:none!important}
/* Etapa 2 — letras mínimas de 12px (Cronograma, menus da lista de OS, Início) */
html[data-theme] body.osv main.osv-content :is(.cronogram-send-status,.cronogram-view-meta,.cronogram-view-meta a,.month-base-open b,.cal-head span,.cal-day-number,.cal-event b,.action-popover a,.board-tab,.column-filter-menu strong,.order-unread-notice,.panel-head>a){font-size:var(--fs-12)!important}
html[data-theme] body.osv main.osv-content .action-popover b{font-size:var(--fs-12)!important;color:var(--muted)!important}
html[data-theme] body.osv main.osv-content .cal-day-count{font-size:11px!important;min-width:18px;text-align:center}
html[data-theme] body.osv main.osv-content .cal-event{line-height:1.35!important}

/* ================= Etapa 3: demais telas — tirar títulos repetidos e frases explicativas ================= */
/* Bloco "rótulo + título" logo abaixo do título da página repete o título (Nova OS/Criar OS, Criar OS por conversa, Estoque por loja) */
html[data-theme] body.osv main.osv-content:has(> .osv-page-head) > section.page-actions:not(.order-detail-head):has(> div > .section-kicker) > div > :is(.section-kicker,h2),
html[data-theme] body.osv main.osv-content:has(> .osv-page-head) header.oc-head > div > :is(.section-kicker,h2,p),
html[data-theme] body.osv main.osv-content:has(> .osv-page-head) .stock-page-heading > div > :is(.section-kicker,h2,p),
html[data-theme] body.osv main.osv-content:has(> .osv-page-head) .process-content > section > h2:first-child,
html[data-theme] body.osv main.osv-content:has(> .osv-page-head) .process-content > section > h2:first-child + p{display:none!important}
/* Frases explicativas debaixo do título (sem informação nova) */
html[data-theme] body.osv .process-content > .heading > div > h1 + p,
html[data-theme] body.osv header.approval-heading > div > p,
html[data-theme] body.osv main.osv-content > section.page-actions > div > p.field-help:only-child,
html[data-theme] body.osv main.osv-content > section.page-actions.compact-actions > p.field-help{display:none!important}
/* Central de Orçamentos: o título da tela é o h2; o rótulo "GESTÃO DE PROJETOS" sai */
html[data-theme] body.osv header.approval-heading .section-kicker{display:none!important}
html[data-theme] body.osv header.approval-heading h2{font-family:var(--display)!important;font-size:var(--fs-26)!important;font-weight:500!important;color:var(--accent-text)!important;letter-spacing:0!important;font-feature-settings:"lnum"}
html[data-theme="dark"] body.osv header.approval-heading h2{color:var(--text)!important}
/* Rótulos em caixa-alta acima de títulos de painéis: saem em todas as telas (a informação está no título) */
html[data-theme] body.osv main.osv-content .panel .panel-head .section-kicker{display:none!important}
/* Etapa 3 — letra mínima de 12px */
html[data-theme] body.osv main.osv-content :is(.split .eyebrow,.split .pill,.tilefacts span,.tech-map-empty-overlay b,.tech-map-empty-overlay span,details.client-edit-details>summary,.client-edit-drawer h4,.client-edit-drawer b,details.unit-add>summary,.stock-option-title,.attachment-drop-hint,.upload-file-name,details.user-actions>summary,details.profile-photo-edit>summary,p.review-help,.session-row .status,details.privacy-box>summary,.privacy-box p,.privacy-box a,.notification-text time,a>span){font-size:max(12px,1em)!important}
html[data-theme] body.osv main.osv-content :is(details.client-edit-details>summary,details.unit-add>summary,details.user-actions>summary,details.profile-photo-edit>summary,details.privacy-box>summary,.stock-option-title,.upload-file-name,.tech-map-empty-overlay span,.privacy-box p,.privacy-box a){font-size:var(--fs-12)!important}
/* "← Voltar…" dentro da tela some onde a seta do topo aparece */
@media (max-width:899px){html[data-theme] body.osv.osv-detail main.osv-content a.osv-dup-back{display:none!important}}
html[data-theme] body.osv.osv-techbar.osv-detail main.osv-content a.osv-dup-back{display:none!important}
/* Login: sem o rótulo repetido; letras de no mínimo 12px */
html[data-theme] body.login-body .section-kicker{display:none!important}
html[data-theme] body.login-body :is(.login-options label,.login-options a,.login-foot a){font-size:var(--fs-12)!important}
/* Quadro do projeto: letras mínimas de 12px */
html[data-theme] body.osv main.osv-content :is(.actions .pill,.colhead p,.colhead .count,a.card p,a.card .next,.card .bottom span){font-size:var(--fs-12)!important}
/* Notificações: texto da linha em até 2 linhas inteiras (não corta pela metade) */
html[data-theme] body.osv .notification-text p{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:none!important;height:auto!important;line-height:1.4!important;font-size:var(--fs-12)!important}
html[data-theme] body.osv .notification-text time{font-size:var(--fs-12)!important;color:var(--faint)!important}

/* ===== Ajustes 11/11 (pedido do Filipe) ===== */
/* Títulos e números em Inter (a Raleway ficou só no logo) */
html:root,html[data-theme]:root,html[data-theme="dark"]:root{--display:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.osv-logo{font-family:"Raleway","Inter",ui-sans-serif,system-ui,sans-serif!important}
html[data-theme] body.osv :is(.osv-page-title,.process-content>.heading h1,main.osv-content .process-content h1:first-of-type,header.approval-heading h2){font-size:24px!important;font-weight:600!important;letter-spacing:-.01em!important}
/* Detalhe da OS do gestor em consulta: o aviso do topo já diz "use Editar OS"; o bloco "Somente consulta" repetia */
html[data-theme] body.osv section.status-panel.is-consult{display:none!important}
/* Usuários no celular: lista (nome e perfil / acesso / status), sem tabela apertada */
@media (max-width:899px){
 html[data-theme] body.osv main.osv-content .users-table-wrap thead,html[data-theme] body.osv main.osv-content table.users-table thead{display:none!important}
}
@media (max-width:899px){
 html[data-theme] body.osv .users-list thead{display:none!important}
 html[data-theme] body.osv .users-list :is(table,tbody){display:block!important;width:100%!important;min-width:0!important}
 html[data-theme] body.osv .users-list .table-wrap{overflow:visible!important;border:0!important;padding:0!important;background:transparent!important}
 html[data-theme] body.osv .users-list tbody>tr{display:grid!important;grid-template-columns:1fr auto;grid-template-areas:"nome perfil" "acesso status" "regioes opcoes";gap:2px var(--s3);align-items:center;padding:12px 0!important;border:0!important;border-top:1px solid var(--line)!important;background:transparent!important;border-radius:0!important;box-shadow:none!important}
 html[data-theme] body.osv .users-list tbody>tr>td{display:block!important;padding:0!important;border:0!important;background:transparent!important;min-height:0!important;width:auto!important;font-size:var(--fs-12)!important;color:var(--muted)!important;min-width:0;overflow-wrap:anywhere}
 html[data-theme] body.osv .users-list tbody>tr>td::before{content:none!important;display:none!important}
 html[data-theme] body.osv .users-list tbody>tr>td:nth-child(1){grid-area:nome;font-size:15px!important;font-weight:500!important;color:var(--text)!important}
 html[data-theme] body.osv .users-list tbody>tr>td:nth-child(2){grid-area:acesso}
 html[data-theme] body.osv .users-list tbody>tr>td:nth-child(3){grid-area:perfil;justify-self:end;color:var(--text)!important}
 html[data-theme] body.osv .users-list tbody>tr>td:nth-child(4){grid-area:status;justify-self:end}
 html[data-theme] body.osv .users-list tbody>tr>td:nth-child(5){grid-area:regioes}
 html[data-theme] body.osv .users-list tbody>tr>td:nth-child(6){grid-area:opcoes;justify-self:end}
 html[data-theme] body.osv .users-list tbody>tr.list-filter-hidden{display:none!important}
}
/* Letras do menu e textos secundários mais vivos (pedido do Filipe, 11/11) */
html:root,html[data-theme]:root{--muted:#4E6577;--faint:#7A8FA0}
html[data-theme="dark"]:root{--muted:#A6B9C8;--faint:#7F97AA}
html[data-theme] body.osv .osv-nav-title,html[data-theme] body.osv details.osv-fold>summary.osv-nav-title{color:var(--muted)!important;font-size:var(--fs-12)!important;font-weight:600!important}
html[data-theme] body.osv .osv-nav-item:not(.on),html[data-theme] body.osv .osv-side-action{color:color-mix(in srgb,var(--text) 80%,var(--muted))!important}
html[data-theme] body.osv .osv-nav-item .osv-nav-label{font-weight:500}
/* Regiões: nome em cima, ações embaixo (não espreme o nome no celular) */
html[data-theme] body.osv .region-list-row{display:flex!important;flex-wrap:wrap;align-items:center;gap:var(--s2)!important;padding:12px 0!important;border-bottom:1px solid var(--line)}
html[data-theme] body.osv .region-list-row:last-child{border-bottom:0}
html[data-theme] body.osv .region-list-row>b{flex:1 1 220px;min-width:0;font-size:15px;font-weight:500;color:var(--text)}
html[data-theme] body.osv .region-list-row>form.region-delete{margin:0;display:inline-flex}
html[data-theme] body.osv .region-list-row .danger-text{color:var(--bad)!important}
@media (max-width:899px){html[data-theme] body.osv .region-list-row>b{flex-basis:100%}}
/* Envio automático de fotos: barra de progresso */
html[data-theme] body.osv progress.upload-progress{display:block;width:100%;height:6px;margin:var(--s2) 0 0;border:0;border-radius:var(--r-full);overflow:hidden;background:var(--surface-2);accent-color:var(--accent);-webkit-appearance:none;appearance:none}
html[data-theme] body.osv progress.upload-progress[hidden]{display:none}
html[data-theme] body.osv progress.upload-progress::-webkit-progress-bar{background:var(--surface-2)}
html[data-theme] body.osv progress.upload-progress::-webkit-progress-value{background:var(--accent);border-radius:var(--r-full)}
html[data-theme] body.osv progress.upload-progress::-moz-progress-bar{background:var(--accent)}
html[data-theme] body.osv .order-file-row a{color:var(--accent-text)!important;text-decoration:none!important;overflow-wrap:anywhere}

/* ===== Listas de arquivos (11/11): foto em miniatura, outros como ícone do tipo; nome só no título. src/lib/file-tiles.mjs ===== */
html[data-theme] body .osv-files{display:flex!important;flex-wrap:wrap;gap:10px;margin:10px 0!important;padding:0!important;border:0!important}
html[data-theme] body .osv-files:empty{display:none!important}
html[data-theme] body .osv-file{position:relative;width:84px;height:84px;flex:0 0 auto;margin:0}
html[data-theme] body .osv-files a.osv-file-open{display:flex!important;align-items:center;justify-content:center;width:100%;height:100%;min-height:0!important;padding:0!important;margin:0!important;border:1px solid var(--line)!important;border-radius:var(--r-sm)!important;background:var(--surface-2)!important;color:var(--muted)!important;text-decoration:none!important;overflow:hidden;box-shadow:none!important}
html[data-theme] body .osv-files a.osv-file-open:hover{border-color:var(--accent)!important}
html[data-theme] body .osv-files a.osv-file-open:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html[data-theme] body .osv-file img{display:block;width:100%;height:100%;object-fit:cover;border:0;border-radius:0;max-width:none;max-height:none}
.osv-file-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;height:100%}
.osv-file-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;color:var(--muted,#5D7385)}
.osv-file-icon b{font:600 12px/1 var(--font,system-ui);letter-spacing:.04em;color:var(--text,#0F2B3D)}
.osv-file-icon[data-kind="pdf"] svg{color:var(--bad,#C8383D)}
.osv-file-icon:is([data-kind="xls"],[data-kind="csv"]) svg{color:var(--ok,#1F8A5B)}
.osv-file-icon[data-kind="dwg"] svg{color:var(--accent,#0E4D6E)}
html[data-theme] body .osv-file form{position:absolute!important;top:-9px;right:-9px;width:30px;height:30px;margin:0!important;padding:0!important;display:block!important;border:0!important;background:none!important;box-shadow:none!important}
html[data-theme] body .osv-file .file-remove,html[data-theme] body main .osv-file .file-remove.ui-control[data-ui-prepared]{position:relative;display:grid!important;place-items:center;width:30px!important;min-width:30px!important;height:30px!important;min-height:0!important;padding:0!important;margin:0!important;border:1px solid var(--line)!important;border-radius:var(--r-full)!important;background:var(--surface)!important;color:var(--muted)!important;font-size:16px!important;line-height:1!important;box-shadow:var(--shadow);cursor:pointer}
html[data-theme] body .osv-file .file-remove::after{content:"";position:absolute;inset:-7px}
html[data-theme] body main .osv-file .file-remove svg{width:16px;height:16px}
html[data-theme] body .osv-file .file-remove:hover{color:var(--bad)!important;border-color:var(--bad)!important}
html[data-theme] body .demand-file-links.osv-files{gap:8px;margin:6px 0!important}
html[data-theme] body .demand-file-links .osv-file{width:64px;height:64px}
html[data-theme] body .demand-file-links .osv-file-icon svg{width:26px;height:26px}
@media(max-width:620px){html[data-theme] body .osv-file{width:76px;height:76px}}
dialog.fv .fv-other .osv-file-icon svg{width:64px;height:64px}
dialog.fv .fv-other .osv-file-icon b{font-size:16px}
.osv-file.is-photo:not(.is-missing) .osv-file-icon{display:none}

/* ===== Módulo 2 — Materiais da OS (src/lib/order-materials-page.mjs, public/material-pick.js) ===== */
html[data-theme] body #sec-materiais .material-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:10px 0;border-bottom:1px solid var(--line)}
html[data-theme] body #sec-materiais .material-line>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere}
html[data-theme] body #sec-materiais .material-line small{font-size:12px;color:var(--muted)}
html[data-theme] body #sec-materiais .material-line .material-pending{color:var(--warn)}
html[data-theme] body #sec-materiais .material-line>b{white-space:nowrap}
html[data-theme] body #sec-materiais .material-line>form{margin:0;padding:0;display:block;border:0;background:none}
html[data-theme] body #sec-materiais .material-line .file-remove,html[data-theme] body main #sec-materiais .material-line .file-remove.ui-control[data-ui-prepared]{position:relative;display:grid!important;place-items:center;width:30px!important;min-width:30px!important;height:30px!important;min-height:0!important;padding:0!important;margin:0!important;border:1px solid var(--line)!important;border-radius:var(--r-full)!important;background:var(--surface)!important;color:var(--muted)!important;font-size:16px!important;line-height:1!important}
html[data-theme] body #sec-materiais .material-line .file-remove::after{content:"";position:absolute;inset:-7px}
html[data-theme] body #sec-materiais .material-line .file-remove:hover{color:var(--bad)!important;border-color:var(--bad)!important}
html[data-theme] body #sec-materiais .material-review{flex-basis:100%;margin:4px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface-2)}
html[data-theme] body #sec-materiais .material-review>summary{cursor:pointer;font-weight:600;color:var(--accent-text);min-height:32px;display:flex;align-items:center}
html[data-theme] body #sec-materiais .material-review-form{display:grid;gap:10px;margin:10px 0;padding:0;border:0;background:none}
html[data-theme] body #sec-materiais .material-review-form+.material-review-form{padding-top:12px;border-top:1px solid var(--line)}
html[data-theme] body #sec-materiais .material-review fieldset{border:0;margin:0;padding:0;display:grid;gap:6px}
html[data-theme] body #sec-materiais .material-review legend{font-size:13px;font-weight:600;margin-bottom:4px}
html[data-theme] body #sec-materiais .material-radio{display:flex;align-items:center;gap:8px;font-weight:400}
html[data-theme] body #sec-materiais .material-radio input{width:auto;min-height:0}
html[data-theme] body #sec-materiais .material-pick,html[data-theme] body #sec-materiais .material-new-form{display:grid;gap:10px;margin:14px 0 0;padding:0;border:0;background:none}
html[data-theme] body #sec-materiais .material-results{display:grid;gap:6px;max-height:320px;overflow:auto}
html[data-theme] body #sec-materiais .material-results:not(:has(.material-option:not([hidden]))):not(:has(.material-none:not([hidden]))){display:none}
html[data-theme] body #sec-materiais .material-option{display:flex!important;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:44px;padding:8px 12px!important;text-align:left;border:1px solid var(--line)!important;border-radius:var(--r-sm)!important;background:var(--surface)!important;color:var(--text)!important;cursor:pointer}
html[data-theme] body #sec-materiais .material-option[hidden]{display:none!important}
html[data-theme] body #sec-materiais .material-option:hover{border-color:var(--accent)!important}
html[data-theme] body #sec-materiais .material-option b{font-weight:600;font-size:14px}
html[data-theme] body #sec-materiais .material-option small{font-size:12px;color:var(--muted)}
html[data-theme] body #sec-materiais .material-low{color:var(--bad)}
html[data-theme] body #sec-materiais .material-none{margin:0;font-size:13px;color:var(--muted)}
html[data-theme] body #sec-materiais .material-chosen{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:10px 12px;border:1px solid var(--accent);border-radius:var(--r-sm);background:var(--accent-soft)}
html[data-theme] body #sec-materiais .material-chosen[hidden]{display:none}
html[data-theme] body #sec-materiais .material-chosen b{flex-basis:100%}
html[data-theme] body #sec-materiais .material-chosen small{flex:1;font-size:12px;color:var(--muted)}
html[data-theme] body #sec-materiais .material-qty{display:flex;align-items:flex-end;gap:10px}
html[data-theme] body #sec-materiais .material-qty label{flex:1}
html[data-theme] body #sec-materiais .material-new{margin-top:12px}
html[data-theme] body #sec-materiais .material-new>summary{cursor:pointer;font-weight:600;color:var(--accent-text);min-height:44px;display:flex;align-items:center}
html[data-theme] body .stock-pending{margin-bottom:16px}
html[data-theme] body .stock-pending h3{margin:0 0 8px}
html[data-theme] body .stock-pending-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;padding:10px 0;border-top:1px solid var(--line);color:var(--text);text-decoration:none}
html[data-theme] body .stock-pending-row span{font-size:13px;color:var(--muted)}
html[data-theme] body #sec-materiais .material-line{font-size:14px}
html[data-theme] body #sec-materiais .material-line>b{font-size:14px;font-weight:600;color:var(--text)}
html[data-theme] body #sec-materiais .material-review>summary{font-size:14px}
html[data-theme] body #sec-materiais .material-review-form label{font-size:13px}

/* ===== Quadros (estilo Trello) + etiquetas + checklists — src/lib/work-board-pages.mjs ===== */
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html[data-theme] body .qb-hub-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:8px}
html[data-theme] body .qb-hub-head .qb-filter{margin-right:auto}
html[data-theme] body .qb-section{font-size:14px;font-weight:600;color:var(--muted);margin:20px 0 10px}
html[data-theme] body .qb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
html[data-theme] body .qb-grid[hidden],html[data-theme] body .qb-section[hidden],html[data-theme] body .qb-card[hidden]{display:none}
html[data-theme] body .qb-card{position:relative;display:flex;flex-direction:column;gap:4px;min-height:96px;padding:18px 14px 12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);color:var(--text);text-decoration:none;overflow:hidden;box-shadow:var(--shadow)}
html[data-theme] body .qb-card:hover{border-color:var(--bc)}
html[data-theme] body .qb-card-cover{position:absolute;inset:0 0 auto 0;height:6px;background:var(--bc)}
html[data-theme] body .qb-card b{font-size:15px;font-weight:600;overflow-wrap:anywhere}
html[data-theme] body .qb-card small{margin-top:auto;font-size:12px;color:var(--muted)}
html[data-theme] body .qb-card-tag{align-self:flex-start;max-width:100%;padding:2px 8px;border-radius:var(--r-full);background:var(--surface-2);color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme] body .qb-empty{display:grid;justify-items:start;gap:8px;margin-top:12px}
html[data-theme] body .qb-empty p{margin:0;color:var(--muted)}
html[data-theme] body .qb-none{color:var(--muted)}
/* filtro e trocar quadro (recolhidos) */
html[data-theme] body :is(.qb-filter,.qb-switch){position:relative}
html[data-theme] body :is(.qb-filter,.qb-switch)>summary{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);color:var(--text);font-size:14px;font-weight:500;cursor:pointer;list-style:none}
html[data-theme] body :is(.qb-filter,.qb-switch)>summary::-webkit-details-marker{display:none}
html[data-theme] body :is(.qb-filter,.qb-switch)>summary .i{width:16px;height:16px}
html[data-theme] body .qb-filter-body,html[data-theme] body .qb-switch-menu{position:absolute;z-index:40;top:calc(100% + 6px);left:0;display:grid;gap:8px;width:min(320px,86vw);padding:12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);box-shadow:0 8px 28px rgba(0,0,0,.18)}
html[data-theme] body .qb-switch-menu{gap:2px;max-height:70vh;overflow:auto}
html[data-theme] body .qb-switch-title{margin:8px 4px 2px;font-size:12px;font-weight:600;color:var(--muted)}
html[data-theme] body .qb-switch-item{display:flex;align-items:center;gap:8px;min-height:38px;padding:4px 8px;border-radius:var(--r-sm);color:var(--text);text-decoration:none;font-size:14px}
html[data-theme] body .qb-switch-item[hidden]{display:none}
html[data-theme] body .qb-switch-item span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme] body .qb-switch-item small{color:var(--muted);font-size:12px}
html[data-theme] body .qb-switch-item:hover,html[data-theme] body .qb-switch-item.is-current{background:var(--accent-soft)}
html[data-theme] body :is(.qb-switch-new,.qb-switch-all){display:block;padding:8px;font-size:14px;font-weight:600;color:var(--accent-text);text-decoration:none}
html[data-theme] body .qb-switch-new{margin-top:6px;border-top:1px solid var(--line)}
html[data-theme] body .qb-dot{flex:0 0 auto;width:10px;height:10px;border-radius:3px;background:var(--bc)}
/* janela novo quadro e formulários */
html[data-theme] body dialog.qb-dialog{width:min(480px,94vw);padding:0;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);color:var(--text)}
html[data-theme] body dialog.qb-dialog::backdrop{background:rgba(10,22,32,.45)}
html[data-theme] body .qb-form{display:grid;gap:12px;margin:0}
html[data-theme] body dialog.qb-dialog .qb-form{padding:20px}
html[data-theme] body .qb-form h3{margin:0;font-size:18px}
html[data-theme] body .qb-form label{display:grid;gap:6px;font-size:13px;font-weight:500;color:var(--text)}
html[data-theme] body .qb-form-actions{display:flex;justify-content:flex-end;gap:8px}
html[data-theme] body .qb-template{display:grid;gap:6px;border:0;margin:0;padding:0}
html[data-theme] body .qb-template label{display:flex;align-items:center;gap:8px;font-weight:400}
html[data-theme] body .qb-template legend,html[data-theme] body .qb-colors legend{font-size:13px;font-weight:500;margin-bottom:6px}
html[data-theme] body .qb-template input,html[data-theme] body .qb-colors input,html[data-theme] body .qb-label-opt input{width:auto;min-height:0}
html[data-theme] body .qb-optional>summary{cursor:pointer;font-size:14px;color:var(--accent-text);min-height:32px;display:flex;align-items:center;gap:6px}
html[data-theme] body .qb-optional[open]{display:grid;gap:10px}
html[data-theme] body .qb-colors{display:flex;flex-wrap:wrap;gap:8px;border:0;margin:0;padding:0}
html[data-theme] body .qb-colors legend{width:100%}
html[data-theme] body .qb-swatch{position:relative;display:block!important;width:30px;height:30px;cursor:pointer}
html[data-theme] body .qb-swatch input{position:absolute;opacity:0;inset:0}
html[data-theme] body .qb-swatch span{display:block;width:30px;height:30px;border-radius:50%;background:var(--sw);box-shadow:inset 0 0 0 2px rgba(255,255,255,.35)}
html[data-theme] body .qb-swatch input:checked+span{outline:3px solid var(--text);outline-offset:2px}
html[data-theme] body .qb-swatch input:focus-visible+span{outline:3px solid var(--accent);outline-offset:2px}
/* quadro livre (kanban) */
html[data-theme] body .qb-board-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px}
html[data-theme] body .qb-board-title{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
html[data-theme] body .qb-board-title h2{margin:0;font-size:20px;overflow-wrap:anywhere}
html[data-theme] body .qb-status{min-height:0;margin:0 0 6px;font-size:13px;color:var(--warn)}
html[data-theme] body .qb-status:empty{display:none}
html[data-theme] body .qb-board{display:flex;align-items:flex-start;gap:12px;overflow-x:auto;padding-bottom:16px;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
html[data-theme] body .qb-list{flex:0 0 280px;display:grid;gap:8px;padding:10px;border-radius:var(--r-md);background:var(--surface-2);scroll-snap-align:start}
@media(max-width:620px){html[data-theme] body .qb-list{flex-basis:84vw}}
html[data-theme] body .qb-list-head{display:flex;align-items:center;gap:6px;position:relative}
html[data-theme] body .qb-list-head h3{flex:1;margin:0;font-size:14px;font-weight:600;overflow-wrap:anywhere}
html[data-theme] body .qb-list-head small{font-size:12px;color:var(--muted)}
html[data-theme] body .qb-list-menu{position:relative}
html[data-theme] body .qb-list-menu>summary{list-style:none;cursor:pointer;padding:2px 8px;border-radius:var(--r-sm);font-size:18px;line-height:1;color:var(--muted)}
html[data-theme] body .qb-list-menu .action-popover{right:0;left:auto;width:240px}
html[data-theme] body .qb-cards{display:grid;gap:8px;min-height:12px}
html[data-theme] body .qb-tile{display:grid;gap:6px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);color:var(--text);text-decoration:none;box-shadow:var(--shadow);cursor:grab}
html[data-theme] body .qb-tile:hover{border-color:var(--accent)}
html[data-theme] body .qb-tile.is-dragging{opacity:.5}
html[data-theme] body .qb-tile b{font-size:14px;font-weight:500;overflow-wrap:anywhere}
html[data-theme] body .qb-tile-meta{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted)}
html[data-theme] body .qb-progress-chip{padding:1px 6px;border-radius:var(--r-sm);background:var(--surface-2)}
html[data-theme] body .qb-progress-chip.is-done{background:var(--ok-soft);color:var(--ok)}
html[data-theme] body :is(.qb-add-card,.qb-add-list)>summary{cursor:pointer;min-height:36px;display:flex;align-items:center;padding:0 6px;border-radius:var(--r-sm);font-size:14px;color:var(--muted)}
html[data-theme] body :is(.qb-add-card,.qb-add-list)>summary:hover{background:var(--surface);color:var(--text)}
html[data-theme] body .qb-list-new{background:transparent;border:1px dashed var(--line)}
/* etiquetas */
html[data-theme] body .qb-chips{display:flex;flex-wrap:wrap;gap:4px}
html[data-theme] body .qb-chip{display:inline-flex;align-items:center;min-height:20px;padding:1px 8px;border-radius:var(--r-full);background:var(--lc);color:#fff;font-size:12px;font-weight:600;line-height:1.3;text-shadow:0 1px 1px rgba(0,0,0,.18)}
html[data-theme] body .qb-label-pick{position:relative}
html[data-theme] body .qb-label-pick>summary{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-sm);font-size:13px;font-weight:500;cursor:pointer;list-style:none}
html[data-theme] body .qb-label-menu{position:absolute;z-index:30;top:calc(100% + 4px);right:0;display:grid;gap:6px;width:240px;padding:10px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);box-shadow:0 8px 28px rgba(0,0,0,.18)}
html[data-theme] body .qb-label-opt{display:flex;align-items:center;gap:8px;cursor:pointer}
html[data-theme] body .qb-label-menu a{font-size:13px;color:var(--accent-text)}
html[data-theme] body .qb-label-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-bottom:8px}
html[data-theme] body .qb-label-row>details{flex:1;min-width:200px}
html[data-theme] body .qb-label-row>details>summary{cursor:pointer;color:var(--accent-text);font-size:14px;text-align:right}
html[data-theme] body .qb-label-row>details[open]{display:grid;gap:10px;flex-basis:100%}
html[data-theme] body .qb-label-new>summary{cursor:pointer;font-weight:600;color:var(--accent-text)}
html[data-theme] body .qb-label-new[open] .qb-form{margin-top:12px}
/* cartão aberto */
html[data-theme] body .qb-card-page,html[data-theme] body .qb-labels{max-width:760px;display:grid;gap:14px}
html[data-theme] body .qb-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
html[data-theme] body .qb-save{font-size:13px;color:var(--muted)}
html[data-theme] body [data-save-error] .qb-save{color:var(--bad)}
html[data-theme] body .qb-card-title{font-size:20px;font-weight:600;padding:8px 10px}
html[data-theme] body .qb-card-meta{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
html[data-theme] body .qb-card-meta>label{display:grid;gap:4px;font-size:13px;font-weight:500}
html[data-theme] body .qb-text-label{display:grid;gap:6px;font-size:13px;font-weight:600}
html[data-theme] body .qb-text{min-height:120px;font-size:14px;line-height:1.5;resize:vertical}
html[data-theme] body .qb-checklists{display:grid;gap:12px}
html[data-theme] body :is(.qb-checklist,.note-group){display:grid;gap:6px;padding:12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
html[data-theme] body :is(.qb-checklist,.note-group)>header{display:flex;align-items:center;gap:6px}
html[data-theme] body :is(.qb-checklist-title,.note-group-title){flex:1;font-weight:600;font-size:14px;border:0!important;background:transparent!important;padding:4px 0!important;min-height:0!important;box-shadow:none!important}
html[data-theme] body .qb-progress{height:6px;border-radius:var(--r-full);background:var(--surface-2);overflow:hidden}
html[data-theme] body .qb-progress span{display:block;height:100%;background:var(--ok);border-radius:var(--r-full);transition:width .2s}
html[data-theme] body .qb-progress-text{font-size:12px;color:var(--muted)}
html[data-theme] body .qb-items{list-style:none;margin:0;padding:0;display:grid;gap:2px}
html[data-theme] body .qb-item{display:flex;align-items:center;gap:8px}
html[data-theme] body .qb-item input[type=checkbox]{width:18px;height:18px;min-height:0;flex:0 0 auto}
html[data-theme] body .qb-item-text{flex:1;border:0!important;background:transparent!important;padding:6px 0!important;min-height:0!important;box-shadow:none!important;font-size:14px}
html[data-theme] body :is(.qb-item.is-done .qb-item-text,.note-task.is-done [data-note-task-text]){text-decoration:line-through;color:var(--muted)}
html[data-theme] body .qb-item-new{font-size:14px}
html[data-theme] body .qb-x{display:grid;place-items:center;width:28px;min-width:28px;height:28px;min-height:0!important;padding:0!important;border:0!important;border-radius:var(--r-full);background:transparent!important;color:var(--muted)!important;font-size:18px;line-height:1;cursor:pointer}
html[data-theme] body .qb-x:hover{color:var(--bad)!important;background:var(--bad-soft)!important}
html[data-theme] body .qb-add-checklist,html[data-theme] body .note-group-add{justify-self:start}
html[data-theme] body .qb-card-archive{margin-top:10px}
/* quadro de manutenção: título e filtro no lugar das abas */
html[data-theme] body .demand-toolbar .qb-maint-title{margin:0;font-size:20px;flex:1;min-width:0}
html[data-theme] body .demand-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
html[data-theme] body .demand-column[hidden],html[data-theme] body .demand-card[hidden]{display:none!important}
/* Bloco de notas: texto em cima, checklists com progresso, etiquetas */
html[data-theme] body .note-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
html[data-theme] body .note-labels:empty{display:none}
html[data-theme] body .note-text{width:100%;min-height:72px;font-size:14px;line-height:1.5;resize:vertical}
html[data-theme] body .note-groups{display:grid;gap:10px}
html[data-theme] body .note-groups:empty{display:none}
html[data-theme] body .note-group .note-checklist{margin:0}
html[data-theme] body .note-group .note-compose{min-height:36px}
/* checklist: campos sem moldura e "×" pequeno (vence as regras gerais de campos e botões) */
html[data-theme] body main :is(input.qb-item-text,input.qb-checklist-title,input.note-group-title):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=x1]):not([type=x2]):not([type=x3]){border:0!important;border-bottom:1px solid transparent!important;background:transparent!important;box-shadow:none!important;min-height:0!important;padding:6px 2px!important;border-radius:0!important}
html[data-theme] body main :is(input.qb-item-text,input.qb-checklist-title,input.note-group-title):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=x1]):not([type=x2]):not([type=x3]):focus{border-bottom-color:var(--accent)!important;outline:none}
html[data-theme] body main .qb-x.ui-control[data-ui-prepared],html[data-theme] body main .qb-x{width:30px!important;min-width:30px!important;height:30px!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;color:var(--muted)!important}
html[data-theme] body main .qb-x.ui-control[data-ui-prepared]:hover{color:var(--bad)!important;background:var(--bad-soft)!important}
html[data-theme] body .demand-filter .qb-filter-body{width:min(560px,92vw)}
html[data-theme] body .demand-filter .list-filter-bar{margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;position:static!important}
html[data-theme] body .demand-filter .qb-filter-body{left:auto;right:0}
/* ===== Quadros rodada 2 (11/11): favoritos, recentes, cartão "Manutenção", cartões de loja compactos (estilo Trello) ===== */
html[data-theme] body .qb-card .qb-card-link{color:inherit;text-decoration:none}
html[data-theme] body .qb-card .qb-card-link::after{content:"";position:absolute;inset:0;border-radius:inherit}
html[data-theme] body .qb-card b{padding-right:26px}
html[data-theme] body .qb-card-group{background:var(--surface-2)}
html[data-theme] body .qb-star-form{margin:0;display:inline-flex}
html[data-theme] body .qb-card .qb-star-form{position:absolute;top:10px;right:8px;z-index:1}
html[data-theme] body .qb-star.qb-star{min-width:32px;min-height:32px;width:auto;height:auto;padding:0 6px!important;border:0!important;border-radius:var(--r-sm);background:transparent!important;color:var(--muted)!important;font-size:20px;line-height:1;cursor:pointer;box-shadow:none!important}
html[data-theme] body .qb-star.qb-star:hover{background:var(--surface-2)!important;color:var(--text)!important}
html[data-theme] body .qb-star.qb-star.is-on{color:#E2A400!important}
html[data-theme] body .qb-board-head .qb-star-form,html[data-theme] body .demand-toolbar .qb-star-form{align-self:center}
/* Quadro de manutenção: listas mais estreitas e cartões de loja baixos */
html[data-theme] body main .demand-board{gap:10px;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
html[data-theme] body main .demand-column{flex:0 0 224px!important;padding:8px!important;border-radius:var(--r-md)!important;scroll-snap-align:start}
html[data-theme] body main .demand-column-head{padding:4px 4px 8px!important;align-items:center}
html[data-theme] body main .demand-column-head b{font-size:14px!important;font-weight:600;color:var(--text)}
html[data-theme] body .demand-list-count{margin-left:4px;font-weight:500;color:var(--muted);font-size:12px}
html[data-theme] body main .demand-card-list{gap:6px;min-height:0}
html[data-theme] body main .demand-card{position:relative;padding:8px 10px!important;border-radius:var(--r-sm)!important;box-shadow:0 1px 0 color-mix(in srgb,var(--text) 12%,transparent)!important}
html[data-theme] body main .demand-card-title{display:flex;align-items:flex-start;gap:6px}
html[data-theme] body main .demand-card-title strong{font-size:14px!important;font-weight:500;line-height:1.35!important;color:var(--text);text-transform:none}
html[data-theme] body main .demand-card-footer{display:flex;align-items:center;min-height:0;margin-top:4px!important}
html[data-theme] body .demand-card-badges{display:inline-flex;align-items:center;gap:8px;min-height:20px}
html[data-theme] body .dc-badge{display:inline-flex;align-items:center;gap:3px;font-size:12px;color:var(--muted)}
html[data-theme] body .dc-badge .i{width:14px;height:14px}
html[data-theme] body .dc-badge.dc-pending{padding:1px 6px;border-radius:var(--r-sm);background:var(--warn-soft,var(--surface-2));color:var(--text)}
html[data-theme] body main .demand-card .demand-options{position:absolute;top:2px;right:2px;margin:0}
html[data-theme] body main .demand-card .demand-options summary{min-width:28px;min-height:28px;padding:0;display:grid;place-items:center;border-radius:var(--r-sm);color:var(--muted);line-height:1}
html[data-theme] body main .demand-card-title{padding-right:24px}
html[data-theme] body main .demand-card-footer:has(.demand-card-badges:empty){display:none!important}
html[data-theme] body main .demand-column-head .column-x{min-width:28px;min-height:28px;width:28px;height:28px;padding:0;font-size:16px;line-height:1}
@media(hover:hover){html[data-theme] body main .demand-card .demand-options:not([open]) summary{opacity:0}html[data-theme] body main .demand-card:is(:hover,:focus-within) .demand-options summary{opacity:1}}
@media(max-width:899px){
 html[data-theme] body main .demand-board{scroll-snap-type:x mandatory;padding-right:0}
 html[data-theme] body main .demand-column{flex:0 0 min(300px,84vw)!important}
}
/* ===== Módulo 3 — Projetos (11/11): orçamentos, aditivos, obra, sequência das etapas, versões ===== */
html[data-theme] body .pw-section{font-size:15px;font-weight:600;margin:22px 0 10px;color:var(--muted)}
html[data-theme] body .pw-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}
html[data-theme] body .pw-totals>div{display:grid;gap:4px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
html[data-theme] body .pw-totals span{font-size:12px;color:var(--muted)}
html[data-theme] body .pw-totals strong{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}
html[data-theme] body .pw-total-final{background:var(--surface-2)!important;border-color:var(--accent)!important}
html[data-theme] body .pw-quote{display:grid;gap:12px}
html[data-theme] body .pw-quote.is-approved{border-left:4px solid var(--ok)}
html[data-theme] body .pw-quote-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
html[data-theme] body .pw-quote-head h2{font-size:17px;margin:2px 0}
html[data-theme] body .pw-quote-head small{font-size:12px;color:var(--muted)}
html[data-theme] body .pw-quote-side{display:grid;justify-items:end;gap:6px}
html[data-theme] body .pw-money{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-theme] body .pw-notes{font-size:13px;white-space:pre-wrap}
html[data-theme] body .pw-quote-actions{display:flex;flex-wrap:wrap;gap:8px}
html[data-theme] body .pw-quote-actions form{margin:0}
html[data-theme] body .pw-addenda{border-top:1px solid var(--line);padding-top:10px;display:grid;gap:8px}
html[data-theme] body .pw-addenda h3{font-size:14px;font-weight:600}
html[data-theme] body .pw-addenda h3 small{font-weight:400;color:var(--muted);font-size:12px;margin-left:6px}
html[data-theme] body .pw-add{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
html[data-theme] body .pw-add:last-child{border-bottom:0}
html[data-theme] body .pw-add-main{display:grid;gap:4px;min-width:0}
html[data-theme] body .pw-add-main small{font-size:12px;color:var(--muted)}
html[data-theme] body .pw-add-side{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;max-width:55%}
html[data-theme] body .pw-add-side form{margin:0;display:flex;gap:6px}
html[data-theme] body .pw-inline input{min-width:0;width:150px}
html[data-theme] body .pw-neg{color:var(--ok)}
html[data-theme] body .pw-wait{display:inline-block;margin-top:6px;font-size:12px;color:var(--warn)}
html[data-theme] body .pw-seq{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
html[data-theme] body .pw-seq form{margin:0}
html[data-theme] body .pw-order{display:flex;gap:4px;align-items:center}
html[data-theme] body .pw-order form{margin:0}
html[data-theme] body .pw-order button{min-width:36px}
html[data-theme] body .pw-rev.is-old strong,html[data-theme] body li.pw-rev.is-old>.doc-row strong{color:var(--muted);font-weight:500}
html[data-theme] body .scope-standard{margin-top:16px}
/* Obra */
html[data-theme] body .pw-status{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:14px 16px;border-radius:var(--r-md);margin-bottom:8px}
html[data-theme] body .pw-status strong{font-size:16px}
html[data-theme] body .pw-status.is-ok{background:var(--ok-soft);color:var(--text)}
html[data-theme] body .pw-status.is-late{background:var(--bad-soft);color:var(--text)}
html[data-theme] body .pw-status.is-late strong{color:var(--bad)}
html[data-theme] body .pw-tl-scroll{overflow-x:auto;max-width:100%;padding-bottom:6px}
html[data-theme] body .pw-tl{position:relative;min-width:620px;display:grid;gap:6px;padding-top:4px}
html[data-theme] body .pw-tl-row{display:grid;grid-template-columns:130px 1fr;align-items:center;gap:10px;min-height:28px}
html[data-theme] body .pw-tl-name{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme] body .pw-tl-track{position:relative;height:24px;border-radius:6px;background:var(--surface-2)}
html[data-theme] body .pw-tl-months .pw-tl-track{background:none;height:18px}
html[data-theme] body .pw-tl-month{position:absolute;top:0;font-size:12px;color:var(--muted);white-space:nowrap;padding-left:3px;border-left:1px solid var(--line)}
html[data-theme] body .pw-bar{position:absolute;height:9px;border-radius:5px;min-width:4px}
html[data-theme] body .pw-bar.pw-planned{top:3px;background:color-mix(in srgb,var(--muted) 55%,transparent)}
html[data-theme] body .pw-bar.pw-actual{bottom:3px;background:var(--accent)}
html[data-theme] body .pw-bar.pw-actual.is-done{background:var(--ok)}
html[data-theme] body .pw-bar.pw-actual.is-late{background:var(--bad)}
html[data-theme] body .pw-bar.pw-actual.is-open{background-image:repeating-linear-gradient(45deg,transparent 0 4px,rgba(255,255,255,.35) 4px 8px)}
html[data-theme] body .pw-tl-today{position:absolute;top:0;bottom:0;left:calc(140px + (100% - 140px) * var(--x) / 100);width:0;border-left:2px dashed var(--bad);pointer-events:none}
html[data-theme] body .pw-tl-today span{position:absolute;top:-2px;left:4px;font-size:12px;color:var(--bad);background:var(--surface);padding:0 3px}
html[data-theme] body .pw-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:var(--muted);margin-top:8px}
html[data-theme] body .pw-legend span{display:inline-flex;align-items:center;gap:6px}
html[data-theme] body .pw-key{position:static;display:inline-block;width:18px;height:8px;border-radius:4px}
html[data-theme] body .pw-key.pw-planned{background:color-mix(in srgb,var(--muted) 55%,transparent)}
html[data-theme] body .pw-key.pw-actual.is-done{background:var(--ok)}
html[data-theme] body .pw-key.pw-actual.is-late{background:var(--bad)}
html[data-theme] body .pw-works{display:grid;gap:0}
html[data-theme] body .pw-work{display:grid;gap:6px;padding:12px 0;border-bottom:1px solid var(--line)}
html[data-theme] body .pw-work:last-child{border-bottom:0}
html[data-theme] body .pw-work-main{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
html[data-theme] body .pw-work-state{font-size:13px;color:var(--muted)}
html[data-theme] body .pw-work-state.is-late{color:var(--bad);font-weight:600}
html[data-theme] body .pw-work-state.is-done{color:var(--ok)}
html[data-theme] body .pw-dates{display:flex;flex-wrap:wrap;gap:6px 24px;margin:0;font-size:13px}
html[data-theme] body .pw-dates div{display:flex;gap:6px}
html[data-theme] body .pw-dates dt{color:var(--muted)}
html[data-theme] body .pw-dates dd{margin:0;font-variant-numeric:tabular-nums}
html[data-theme] body .pw-work-actions{display:flex;flex-wrap:wrap;gap:6px}
html[data-theme] body .pw-work-actions form{margin:0}
html[data-theme] body .pw-pending{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;border-radius:var(--r-sm);background:var(--warn-soft);font-size:13px}
html[data-theme] body .pw-pending form{margin:0}
@media(max-width:699px){
 html[data-theme] body .pw-totals{grid-template-columns:1fr}
 html[data-theme] body .pw-quote-head,html[data-theme] body .pw-add{flex-direction:column}
 html[data-theme] body .pw-quote-side{justify-items:start}
 html[data-theme] body .pw-add-side{max-width:none;justify-content:flex-start}
 html[data-theme] body .pw-tl-row{grid-template-columns:96px 1fr}
 html[data-theme] body .pw-tl-today{left:calc(106px + (100% - 106px) * var(--x) / 100)}
}
/* ===== Módulo 4 — Portal da Construtora (11/11): casco de visitante igual ao do técnico ===== */
html body.osv.osv-guest{padding-left:0!important}
html body.osv.osv-guest .osv-bottom-form{flex:0 1 160px;display:flex;margin:0}
html body.osv.osv-guest .osv-bottom-form>button{flex:1;height:100%;line-height:1.2!important;font-size:11px!important;font-weight:500;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0!important;background:none!important;box-shadow:none!important;color:var(--muted);font:inherit;font-size:12px;padding:0!important;min-height:0;cursor:pointer}

html[data-theme] body .pw-gate{max-width:420px;margin:24px auto;display:grid;gap:8px;text-align:center}
html[data-theme] body .pw-gate h1{font-size:22px}
html[data-theme] body .pw-gate-form{display:grid;gap:12px;margin-top:12px}
html[data-theme] body .pw-gate-form input{font-size:28px;letter-spacing:.5em;text-align:center;padding:10px;font-variant-numeric:tabular-nums}
html[data-theme] body .pw-gate-error{color:var(--bad);font-size:14px}
html[data-theme] body .pw-code{font-size:40px;font-weight:700;letter-spacing:.2em;text-align:center;padding:16px;border-radius:var(--r-md);background:var(--surface-2);font-variant-numeric:tabular-nums}
html[data-theme] body .pw-files{display:grid}
html[data-theme] body .pw-file-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
html[data-theme] body .pw-file-row:last-child{border-bottom:0}
html[data-theme] body .pw-file-row>div:first-child{display:grid;gap:2px;min-width:0}
html[data-theme] body .pw-file-row small{font-size:12px;color:var(--muted)}
html[data-theme] body .pw-validity{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin-top:12px}
html[data-theme] body .pw-builder-pend{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
html[data-theme] body .pw-builder-pend a{text-decoration:underline}
/* ===== Envio de arquivos (11/11): miniaturas com bolinha girando, como no WhatsApp ===== */
html[data-theme] body .osv-up-tiles{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
html[data-theme] body .osv-up-tiles:empty{display:none}
html[data-theme] body .osv-up-tile{position:relative;width:64px;height:64px;border-radius:var(--r-sm);overflow:hidden;background:var(--surface-2);border:1px solid var(--line);display:grid;place-items:center}
html[data-theme] body .osv-up-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
html[data-theme] body .osv-up-tile b{font-size:12px;color:var(--muted)}
html[data-theme] body .osv-up-tile.is-busy img{filter:brightness(.6)}
html[data-theme] body .osv-up-ring{position:relative;z-index:1;width:28px;height:28px;border-radius:50%;border:3px solid rgba(255,255,255,.35);border-top-color:#fff;animation:osv-spin .8s linear infinite;box-shadow:0 0 0 1px rgba(0,0,0,.15)}
html[data-theme] body .osv-up-tile:not(.is-busy) .osv-up-ring{animation:none;border:0;box-shadow:none;display:grid;place-items:center;background:var(--ok);color:#fff;width:24px;height:24px;position:absolute;right:4px;bottom:4px}
html[data-theme] body .osv-up-tile.is-done .osv-up-ring::after{content:"✓";font-size:14px;font-weight:700}
html[data-theme] body .osv-up-tile.is-error .osv-up-ring{background:var(--bad)}
html[data-theme] body .osv-up-tile.is-error .osv-up-ring::after{content:"!";font-size:14px;font-weight:700}
@keyframes osv-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){html[data-theme] body .osv-up-ring{animation-duration:2.4s}}
/* Álbuns de fotos da obra (11/11) */
html[data-theme] body .pw-albums{display:grid;gap:10px}
html[data-theme] body .pw-album{border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
html[data-theme] body .pw-album>summary{display:flex;align-items:center;gap:12px;padding:10px;cursor:pointer;list-style:none}
html[data-theme] body .pw-album>summary::-webkit-details-marker{display:none}
html[data-theme] body .pw-album>summary::after{content:"›";margin-left:auto;font-size:22px;color:var(--muted);transition:transform .15s}
html[data-theme] body .pw-album[open]>summary::after{transform:rotate(90deg)}
html[data-theme] body .pw-album-cover{width:56px;height:56px;flex:0 0 56px;pointer-events:none}
html[data-theme] body .pw-album-cover .osv-file{width:56px;height:56px}
html[data-theme] body .pw-album-text{display:grid;gap:2px;min-width:0}
html[data-theme] body .pw-album-text small{font-size:12px;color:var(--muted)}
html[data-theme] body .pw-album>.osv-files{padding:0 10px 10px}

/* ======================================================================
   12/11/2026 — pedido do Filipe ("telas pequenas no PC, parece celular")
   Notebook/computador com layout próprio: conteúdo usa a largura da tela,
   letras um pouco maiores em monitor grande. Celular continua como estava.
   ====================================================================== */
@media (min-width:1200px){
 body.osv main.osv-content{max-width:1680px!important;padding:var(--s6) 40px 48px!important}
 body.osv .osv-top{height:48px}
 body.osv .osv-page-head{margin-bottom:var(--s4)}
 html[data-theme] body.osv section.order-cards{max-width:none}
 /* Início: Novidades e Pendências lado a lado */
 body.osv main.osv-content:has(> .summary-kpis){display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:0 var(--s5);align-items:start}
 body.osv main.osv-content:has(> .summary-kpis)>*{grid-column:1/-1}
 body.osv main.osv-content:has(> .summary-kpis)>.summary-panel{grid-column:auto;margin-top:0!important}
 /* Quadros: mais colunas aproveitando a largura */
 html[data-theme] body .qb-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
}
@media (min-width:1500px){
 html:root,html[data-theme]:root{--fs-12:13px;--fs-14:15px;--fs-16:17px;--fs-20:21px;--fs-24:25px;--fs-26:28px}
 html body.osv{font-size:15px}
 body.osv{padding-left:264px!important}
 body.osv .osv-side{width:264px}
 body.osv .osv-nav-item{min-height:38px}
 body.osv :is(input,select,textarea){font-size:15px}
 body.osv table{font-size:15px}
}

/* Configurações em grupos (lista no estilo do celular, duas colunas no notebook) */
body.osv .settings-back{margin:0 0 var(--s4)}
body.osv .settings-home{display:grid;gap:var(--s5);max-width:980px}
body.osv .settings-group h3{margin:0 0 var(--s2) var(--s1);font-size:var(--fs-12)!important;font-weight:600!important;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)!important}
body.osv .settings-rows{display:grid;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden}
body.osv a.settings-row{display:flex;align-items:center;gap:var(--s3);min-height:60px;padding:10px var(--s4);color:var(--text)!important;text-decoration:none!important;border-top:1px solid var(--line)}
body.osv a.settings-row:first-child{border-top:0}
body.osv a.settings-row:hover{background:var(--surface-2)}
body.osv .settings-row-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--accent-soft);color:var(--accent-text);flex:none}
body.osv .settings-row-icon svg{width:18px;height:18px}
body.osv .settings-row-text{display:grid;gap:1px;min-width:0;flex:1}
body.osv .settings-row-text b{font-weight:500;font-size:var(--fs-14)}
body.osv .settings-row-text small{color:var(--muted);font-size:var(--fs-12)}
body.osv .settings-row-chev{color:var(--faint)}
@media (min-width:1200px){
 body.osv .settings-home{grid-template-columns:1fr 1fr;align-items:start;max-width:1200px}
}

/* Quadros: quem vê o quadro (privado / compartilhado) */
html[data-theme] body .qb-who{white-space:nowrap}
html[data-theme] body .qb-share-btn{display:inline-flex;align-items:center;gap:6px;max-width:320px}
html[data-theme] body .qb-share-btn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-theme] body .qb-share-btn[disabled]{opacity:1;cursor:default}
html[data-theme] body .qb-share-list{display:grid;gap:2px;max-height:50vh;overflow:auto;margin:var(--s2) 0}
html[data-theme] body label.qb-share-opt{display:flex!important;align-items:center;gap:10px;padding:8px;border-radius:var(--r-sm);cursor:pointer;font-weight:400}
html[data-theme] body label.qb-share-opt:hover{background:var(--surface-2)}
html[data-theme] body label.qb-share-opt input{width:18px;height:18px;margin:0}

/* Cronograma (12/11): barra única de filtros + menus enxutos; cartões do calendário mais limpos */
html[data-theme] body.osv:not(#_) .cronogram-toolbar .toolbar-buttons{display:flex;align-items:center;gap:8px}
html[data-theme] body.osv:not(#_) .cronogram-send-menu>summary{display:inline-flex!important;align-items:center;gap:8px;height:40px;padding:0 14px!important;border:1px solid var(--line)!important;border-radius:var(--r-sm)!important;background:var(--surface)!important;color:var(--text)!important;font-weight:500!important;list-style:none}
html[data-theme] body.osv:not(#_) .cronogram-send-menu>summary::-webkit-details-marker{display:none}
html[data-theme] body.osv:not(#_) .cronogram-sent-dot{width:8px;height:8px;border-radius:50%;background:var(--warn);flex:none}
html[data-theme] body.osv:not(#_) .cronogram-sent-dot.is-sent{background:var(--ok)}
html[data-theme] body.osv:not(#_) .cronogram-actions-menu>summary{width:40px;height:40px;display:grid!important;place-items:center;padding:0!important}
html[data-theme] body.osv:not(#_) .cronogram-actions-menu>summary svg{width:18px;height:18px}
html[data-theme] body.osv:not(#_) .cronogram-filter-bar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px 12px;margin:var(--s3) 0 var(--s4);padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md)}
html[data-theme] body.osv:not(#_) .cronogram-view-switch{display:inline-flex;gap:2px;padding:3px;background:var(--surface-2);border-radius:var(--r-sm);align-self:center}
html[data-theme] body.osv:not(#_) .cronogram-view-switch a{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:6px;color:var(--muted);text-decoration:none;font-weight:500;font-size:var(--fs-14)}
html[data-theme] body.osv:not(#_) .cronogram-view-switch a[aria-current]{background:var(--surface);color:var(--accent-text);box-shadow:var(--shadow)}
html[data-theme="dark"] body.osv .cronogram-view-switch a[aria-current]{background:var(--accent-soft)}
html[data-theme] body.osv:not(#_) .cronogram-filter-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:0}
html[data-theme] body.osv:not(#_) label.cronogram-pick{display:grid!important;gap:2px;margin:0;font-size:11px;font-weight:500;color:var(--muted);text-transform:none}
html[data-theme] body.osv:not(#_) label.cronogram-pick select{height:36px!important;min-height:36px!important;min-width:150px;max-width:260px;padding:0 30px 0 10px!important;font-size:var(--fs-14)!important}
html[data-theme] body.osv:not(#_) .cronogram-clear{align-self:center;font-size:var(--fs-12)}
html[data-theme] body.osv:not(#_) .cronogram-filter-bar .cronogram-view-meta{margin-left:auto;align-self:center;color:var(--muted);font-size:var(--fs-12)}
html[data-theme] body.osv:not(#_) .cronogram-filter-bar .month-base-trigger{align-self:center;margin:0}
html[data-theme] body.osv:not(#_) .calendar-selection{margin:0 0 var(--s3)}
/* Caixinha de seleção só aparece quando "Organizar lojas" está aberto; o × só ao passar o mouse (no celular fica visível) */
html[data-theme] body.osv:not(:has(.calendar-selection[open])) .cronogram-regional-calendar .calendar-select{display:none!important}
@media (hover:hover){
 html[data-theme] body.osv:not(#_) .cronogram-regional-calendar .calendar-remove-form{opacity:0;transition:opacity .15s}
 html[data-theme] body.osv:not(#_) .cronogram-regional-calendar .cal-event-wrap:hover .calendar-remove-form,html[data-theme] body.osv:not(#_) .cronogram-regional-calendar .cal-event-wrap:focus-within .calendar-remove-form{opacity:1}
}
html[data-theme] body.osv:not(#_) main .cronogram-regional-calendar .cal-event b{-webkit-line-clamp:2!important;line-clamp:2}
@media (min-width:1200px){
 html[data-theme] body.osv:not(#_) main .cronogram-regional-calendar .cal-event b{font-size:12px!important}
 html[data-theme] body.osv:not(#_) main .cronogram-regional-calendar .cal-event small{font-size:11px!important}
}
@media (max-width:700px){
 html[data-theme] body.osv:not(#_) .cronogram-filter-bar{padding:8px}
 html[data-theme] body.osv:not(#_) .cronogram-filter-form{display:grid;grid-template-columns:1fr 1fr;width:100%}
 html[data-theme] body.osv:not(#_) label.cronogram-pick select{min-width:0;max-width:none;width:100%}
 html[data-theme] body.osv:not(#_) .cronogram-filter-bar .cronogram-view-meta{margin-left:0}
}

/* Arrastar para ordenar (Obra e Etapas, 12/11) */
html[data-theme] body.osv .drag-grip{display:inline-grid;place-items:center;width:24px;height:32px;margin-right:6px;border-radius:6px;color:var(--faint);font-size:14px;letter-spacing:-2px;cursor:grab;touch-action:none;user-select:none;flex:none}
html[data-theme] body.osv .drag-grip:hover{background:var(--surface-2);color:var(--muted)}
html[data-theme] body.osv [data-sort-item]{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
html[data-theme] body.osv [data-sort-item] :is(input,textarea){-webkit-user-select:text;user-select:text}
html[data-theme] body.osv [data-sort-item].is-sorting{box-shadow:0 12px 32px rgba(4,25,42,.22)!important;background:var(--surface)!important;border-radius:var(--r-md);opacity:.96;cursor:grabbing}
html[data-theme] body.osv .sort-placeholder{border:2px dashed color-mix(in srgb,var(--accent) 45%,var(--line));border-radius:var(--r-md);background:var(--accent-soft);margin:6px 0;list-style:none}
html[data-theme] body.osv [data-sort-list].is-saving{opacity:.6;pointer-events:none}
html[data-theme] body.osv .pw-work-main{align-items:center}
html[data-theme] body.osv .pw-work-main>strong{flex:1;min-width:0}

/* Bloco de notas (12/11: "cards grandes, muito feio") — cartões compactos estilo bloco de notas, em colunas */
html[data-theme] body.osv:not(#_) .notes-grid{display:block!important;columns:300px auto;column-gap:16px}
html[data-theme] body.osv:not(#_) .notes-grid>.note-card{break-inside:avoid;margin:0 0 16px!important;padding:12px 14px!important;display:grid;gap:6px;border-radius:var(--r-md)!important}
html[data-theme] body.osv:not(#_) .note-card-head{display:flex;align-items:center;gap:4px}
html[data-theme] body.osv:not(#_) main input.note-title{flex:1;height:34px!important;min-height:34px!important;padding:0 4px!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:var(--fs-16)!important;font-weight:600!important}
html[data-theme] body.osv:not(#_) main input.note-title:focus{background:var(--surface-2)!important}
html[data-theme] body.osv:not(#_) .note-options>summary{width:30px;height:30px;min-height:30px!important;display:grid;place-items:center;padding:0!important}
html[data-theme] body.osv:not(#_) .note-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:0}
html[data-theme] body.osv:not(#_) label.note-date{display:inline-flex!important;align-items:center;gap:0;margin:0;font-size:0!important;color:transparent}
html[data-theme] body.osv:not(#_) label.note-date input{height:28px!important;min-height:28px!important;width:auto!important;padding:0 8px!important;font-size:var(--fs-12)!important;color:var(--muted)!important;border:1px solid var(--line)!important;border-radius:var(--r-full)!important;background:var(--surface-2)!important}
html[data-theme] body.osv:not(#_) .note-label-pick>summary{height:28px!important;min-height:28px!important;padding:0 10px!important;font-size:var(--fs-12)!important;border-radius:var(--r-full)!important;display:inline-flex;align-items:center}
html[data-theme] body.osv:not(#_) main textarea.note-body{min-height:44px!important;height:auto;padding:4px!important;border:0!important;background:transparent!important;box-shadow:none!important;resize:vertical;field-sizing:content;max-height:320px}
html[data-theme] body.osv:not(#_) main textarea.note-body:focus{background:var(--surface-2)!important}
html[data-theme] body.osv:not(#_) .note-card .note-group{padding:8px 0 0!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html[data-theme] body.osv:not(#_) .note-card .note-group-title{height:28px!important;min-height:28px!important;border:0!important;background:transparent!important;padding:0 4px!important;font-weight:600!important;font-size:var(--fs-14)!important}
html[data-theme] body.osv:not(#_) .note-card .qb-progress{height:4px!important;margin:2px 0}
html[data-theme] body.osv:not(#_) .note-card .note-checklist{gap:0!important;margin:4px 0!important}
html[data-theme] body.osv:not(#_) .note-card .qb-item,html[data-theme] body.osv:not(#_) .note-card .note-task-line{min-height:32px;padding:0!important;gap:6px!important}
html[data-theme] body.osv:not(#_) .note-card :is(.note-task-line input[type=text],[data-note-task-text]){height:30px!important;min-height:30px!important;padding:0 4px!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:var(--fs-14)!important}
html[data-theme] body.osv:not(#_) .note-card :is(.note-task-line input[type=text],[data-note-task-text]):focus{background:var(--surface-2)!important}
html[data-theme] body.osv:not(#_) .note-card textarea.note-compose{min-height:32px!important;height:32px;padding:4px 6px!important;font-size:var(--fs-14)!important;border-style:dashed!important;background:transparent!important;resize:none}
html[data-theme] body.osv:not(#_) .note-card .note-group-add{height:30px!important;min-height:30px!important;padding:0 8px!important;border:0!important;background:transparent!important;color:var(--accent-text)!important;font-size:var(--fs-12)!important;justify-self:start;box-shadow:none!important}
html[data-theme] body.osv:not(#_) .note-card .note-footer{font-size:11px;color:var(--faint);min-height:0}
html[data-theme] body.osv:not(#_) .note-card .note-group>header{display:flex;align-items:center;gap:6px}
html[data-theme] body.osv:not(#_) .note-card .note-group>header button{width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border:0!important;background:transparent!important;color:var(--faint)!important;box-shadow:none!important}
html[data-theme] body.osv:not(#_) .note-card .note-item-menu>summary{width:28px;height:28px;min-height:28px!important;padding:0!important;display:grid;place-items:center}
html[data-theme] body.osv:not(#_) .note-card .note-task{min-height:32px;padding:0!important}
html[data-theme] body.osv:not(#_) .note-card .note-task-line input[type=checkbox]{width:18px!important;height:18px!important;margin:0 2px!important}
@media(max-width:600px){html[data-theme] body.osv .notes-grid{columns:1}}
/* Cronograma: barra de filtros numa linha só no notebook */
html[data-theme] body.osv:not(#_) .cronogram-filter-bar{align-items:center}
html[data-theme] body.osv:not(#_) .cronogram-filter-bar .month-base-trigger{order:9}
html[data-theme] body.osv:not(#_) .cronogram-filter-bar .cronogram-view-meta{order:8}
html[data-theme] body.osv:not(#_) label.cronogram-pick{grid-template-columns:auto;}
html[data-theme] body.osv:not(#_) label.cronogram-pick select[name=region]{width:230px!important;min-width:0!important;max-width:230px!important}
html[data-theme] body.osv:not(#_) label.cronogram-pick select:not([name=region]){width:160px!important;min-width:0!important;max-width:160px!important}
html[data-theme] body.osv:not(#_) label.cronogram-pick{width:auto!important;flex:none!important}
html[data-theme] body.osv:not(#_) .cronogram-filter-bar .month-base-open{min-height:36px!important;padding:0 12px!important;border:1px solid var(--line)!important;border-radius:var(--r-sm)!important;background:var(--surface)!important}
html[data-theme] body.osv:not(#_) details.calendar-selection>summary{display:inline-flex;align-items:center;height:32px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-full);font-size:var(--fs-12);color:var(--muted);cursor:pointer;list-style:none}
/* Cronograma no celular (12/11): filtros em 2 colunas, botões numa linha */
@media (max-width:700px){
 html[data-theme] body.osv:not(#_) label.cronogram-pick,html[data-theme] body.osv:not(#_) label.cronogram-pick select[name],html[data-theme] body.osv:not(#_) label.cronogram-pick select{width:100%!important;max-width:none!important;min-width:0!important}
 html[data-theme] body.osv:not(#_) .cronogram-filter-bar .month-base-trigger{order:0}
 html[data-theme] body.osv:not(#_) .cronogram-toolbar .toolbar-buttons{display:grid!important;grid-template-columns:1fr 1fr auto;gap:8px;width:100%}
 html[data-theme] body.osv:not(#_) .cronogram-toolbar .toolbar-buttons>*{width:100%!important;min-width:0}
 html[data-theme] body.osv:not(#_) .cronogram-send-menu>summary{justify-content:center;width:100%;padding:0 8px!important}
 html[data-theme] body.osv:not(#_) .cronogram-toolbar .toolbar-buttons>.cronogram-actions-menu{width:44px!important}
}
html[data-theme] body .qb-who{display:inline-flex;align-items:center;gap:4px}
html[data-theme] body .qb-who svg,html[data-theme] body .qb-share-btn svg{width:14px;height:14px}
@media (max-width:700px){
 html[data-theme] body.osv:not(#_) .cronogram-send-extra{display:none}
 html[data-theme] body.osv:not(#_) .cronogram-toolbar .toolbar-buttons{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}
}

/* Nova etiqueta direto no menu Etiquetas (12/11) */
html[data-theme] body.osv:not(#_) .qb-label-create{border-top:1px solid var(--line);margin-top:6px;padding-top:6px;display:grid;gap:6px}
html[data-theme] body.osv:not(#_) .qb-label-create-open{justify-self:start;height:30px!important;min-height:30px!important;padding:0 6px!important;border:0!important;background:transparent!important;color:var(--accent-text)!important;font-weight:600!important;font-size:var(--fs-14)!important;box-shadow:none!important}
html[data-theme] body.osv:not(#_) .qb-label-create-form{display:grid;gap:8px}
html[data-theme] body.osv:not(#_) .qb-label-create-form[hidden]{display:none}
html[data-theme] body.osv:not(#_) .qb-label-create-form input{height:34px!important;min-height:34px!important;font-size:var(--fs-14)!important}
html[data-theme] body.osv:not(#_) .qb-label-create-colors{display:grid;grid-template-columns:repeat(6,28px);gap:6px}
html[data-theme] body.osv:not(#_) .qb-label-create-colors button{width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border:0!important;border-radius:50%!important;background:var(--sw)!important;box-shadow:none!important;cursor:pointer}
html[data-theme] body.osv:not(#_) .qb-label-create-colors button[aria-checked="true"]{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--sw)!important}
html[data-theme] body.osv:not(#_) .qb-label-create-actions{display:flex;justify-content:flex-end;gap:6px}
html[data-theme] body.osv:not(#_) .qb-label-create-actions button{height:32px!important;min-height:32px!important;padding:0 12px!important;font-size:var(--fs-14)!important}
html[data-theme] body.osv:not(#_) .qb-label-create-save{background:var(--accent)!important;color:var(--accent-ink)!important;border-color:var(--accent)!important}
html[data-theme] body.osv:not(#_) .qb-label-create small{color:var(--bad);font-size:var(--fs-12)}
html[data-theme] body.osv:not(#_) .qb-label-menu{min-width:240px}
html[data-theme] body.osv:not(#_) .qb-label-pick{position:relative}
html[data-theme] body.osv:not(#_) .qb-label-pick>.qb-label-menu{left:0!important;right:auto!important;max-width:min(320px,calc(100vw - 32px))}

/* Engrenagem do Cronograma (12/11): todos os itens lisos, só o nome, mesmo tamanho */
html[data-theme] body.osv:not(#_) .cronogram-actions-popover{display:grid;gap:0;padding:6px!important;min-width:240px}
html[data-theme] body.osv:not(#_) .cronogram-actions-popover form{margin:0;padding:0;border:0;background:transparent}
html[data-theme] body.osv:not(#_) .cronogram-actions-popover>a,html[data-theme] body.osv:not(#_) .cronogram-actions-popover>form>button,html[data-theme] body.osv:not(#_) .cronogram-actions-popover>details>summary{display:flex!important;align-items:center;width:100%;min-height:38px!important;height:auto!important;padding:0 12px!important;border:0!important;border-radius:var(--r-sm)!important;background:transparent!important;box-shadow:none!important;color:var(--text)!important;font-size:var(--fs-14)!important;font-weight:400!important;text-align:left;text-decoration:none!important;cursor:pointer;list-style:none}
html[data-theme] body.osv:not(#_) .cronogram-actions-popover>a:hover,html[data-theme] body.osv:not(#_) .cronogram-actions-popover>form>button:hover,html[data-theme] body.osv:not(#_) .cronogram-actions-popover>details>summary:hover{background:var(--surface-2)!important}
html[data-theme] body.osv:not(#_) .cronogram-actions-popover>details>summary::-webkit-details-marker{display:none}
html[data-theme] body.osv:not(#_) .cronogram-actions-popover>details>summary::after{content:"›";margin-left:auto;color:var(--faint);transition:transform .15s}
html[data-theme] body.osv:not(#_) .cronogram-actions-popover>details[open]>summary::after{transform:rotate(90deg)}
html[data-theme] body.osv:not(#_) .cronogram-actions-popover>details{border:0!important;padding:0!important;margin:0!important;background:transparent!important}
html[data-theme] body.osv:not(#_) .cronogram-actions-popover>details>form{display:grid;gap:8px;padding:6px 12px 10px!important}
html[data-theme] body.osv:not(#_) .cronogram-actions-popover .action-divider{height:1px;margin:6px 4px;background:var(--line)}

/* Configurações (12/11): menu lateral com os grupos; clicou, abre as opções ao lado */
body.osv .settings-home{display:grid!important;grid-template-columns:220px minmax(0,1fr);gap:var(--s5);align-items:start;max-width:1100px!important}
body.osv .settings-side{display:grid;gap:2px;position:sticky;top:72px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md)}
html[data-theme] body.osv:not(#_) .settings-side button{display:flex!important;align-items:center;justify-content:flex-start!important;outline:none;gap:10px;width:100%;height:42px!important;min-height:42px!important;padding:0 12px!important;border:0!important;border-radius:var(--r-sm)!important;background:transparent!important;box-shadow:none!important;color:var(--muted)!important;font-size:var(--fs-14)!important;font-weight:500!important;text-align:left;cursor:pointer}
html[data-theme] body.osv:not(#_) .settings-side button:hover{background:var(--surface-2)!important;color:var(--text)!important}
html[data-theme] body.osv:not(#_) .settings-side button[aria-selected="true"]{background:var(--accent-soft)!important;color:var(--accent-text)!important}
html[data-theme] body.osv:not(#_) .settings-side button svg{width:18px;height:18px}
body.osv .settings-panels .settings-group[hidden]{display:none}
body.osv .settings-panels .settings-group>h3{font-size:var(--fs-20)!important;text-transform:none!important;letter-spacing:0!important;color:var(--text)!important;font-weight:500!important;margin:0 0 var(--s3)!important}
@media (max-width:760px){
 body.osv .settings-home{grid-template-columns:1fr}
 body.osv .settings-side{position:static;display:flex;overflow-x:auto;gap:4px;scrollbar-width:none}
 html[data-theme] body.osv:not(#_) .settings-side button{width:auto;flex:none;white-space:nowrap}
 html[data-theme] body.osv:not(#_) .settings-side button svg{display:none}
 body.osv .settings-panels .settings-group>h3{display:none}
}
html[data-theme] body.osv:not(#_) .settings-side button:focus-visible{box-shadow:0 0 0 2px var(--accent)!important}
html[data-theme] body.osv:not(#_) .settings-side button[aria-selected="false"]:not(:hover){background:transparent!important}
html[data-theme] body.osv:not(#_) .cronogram-actions-popover>details>summary::before{display:none!important;content:none!important}
html[data-theme] body.osv:not(#_) .settings-side button{transition:none!important}
html[data-theme] body.osv:not(#_) .cronogram-actions-popover>a,html[data-theme] body.osv:not(#_) .cronogram-actions-popover>form>button,html[data-theme] body.osv:not(#_) .cronogram-actions-popover>details>summary{justify-content:flex-start!important;text-align:left!important}
html[data-theme] body.osv:not(#_) .cronogram-actions-popover{justify-items:stretch!important;align-items:stretch!important;text-align:left!important}
html[data-theme] body.osv:not(#_) .cronogram-actions-popover>*{width:100%!important;margin:0!important;justify-self:stretch!important}
html[data-theme] body.osv:not(#_) .cronogram-actions-popover>form>button{width:100%!important}
html[data-theme] body.osv:not(#_) .cronogram-actions-popover>a,html[data-theme] body.osv:not(#_) .cronogram-actions-popover>form>button,html[data-theme] body.osv:not(#_) .cronogram-actions-popover>details>summary{flex-direction:row!important;align-items:center!important}
html[data-theme] body.osv:not(#_) .cronogram-send-extra{margin-left:-8px}

/* Técnicos da empresa no cadastro do fornecedor (12/11) */
html[data-theme] body.osv:not(#_) fieldset.supplier-techs{border:1px solid var(--line);border-radius:var(--r-md);padding:12px 14px;display:flex;flex-wrap:wrap;gap:8px;margin:0}
html[data-theme] body.osv:not(#_) fieldset.supplier-techs legend{padding:0 6px;font-weight:600;font-size:var(--fs-14);color:var(--text)}
html[data-theme] body.osv:not(#_) fieldset.supplier-techs .field-help{flex-basis:100%;margin:0 0 4px}
html[data-theme] body.osv:not(#_) label.supplier-tech{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:8px;width:auto!important;margin:0!important;padding:6px 12px!important;border:1px solid var(--line);border-radius:var(--r-full);background:var(--surface);font-size:var(--fs-14)!important;font-weight:400!important;color:var(--text)!important;cursor:pointer}
html[data-theme] body.osv:not(#_) label.supplier-tech:has(input:checked){border-color:var(--accent);background:var(--accent-soft);color:var(--accent-text)!important}
html[data-theme] body.osv:not(#_) label.supplier-tech input{width:16px!important;height:16px!important;min-height:0!important;margin:0!important}
/* 13/11: botão ☰ no lugar do texto "Opções" (html.mjs optionsIcons) */
html[data-theme] body.osv:not(#_) summary.options-trigger{display:inline-grid!important;place-items:center;width:40px!important;min-width:0!important;height:40px!important;min-height:40px!important;padding:0!important;list-style:none;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface);color:var(--text);cursor:pointer;font-size:0}
html[data-theme] body.osv:not(#_) summary.options-trigger::-webkit-details-marker{display:none}
html[data-theme] body.osv:not(#_) summary.options-trigger::after,html[data-theme] body.osv:not(#_) summary.options-trigger::before{content:none}
html[data-theme] body.osv:not(#_) summary.options-trigger .i{width:20px;height:20px;stroke-width:1.7}
html[data-theme] body.osv:not(#_) summary.options-trigger:hover,html[data-theme] body.osv:not(#_) details[open]>summary.options-trigger{border-color:var(--brand);color:var(--brand)}
html[data-theme] body.osv:not(#_) :is(td,.user-actions,.phase-doc,.prs-model-card) summary.options-trigger{width:34px!important;height:34px!important;min-height:34px!important}
html[data-theme] body.osv:not(#_) :is(td,.user-actions,.phase-doc,.prs-model-card) summary.options-trigger .i{width:17px;height:17px}
/* 13/11: barra de filtros da lista de OS (mesmo visual da do Cronograma) */
html[data-theme] body.osv:not(#_) .order-filter-bar{margin-top:0}
html[data-theme] body.osv:not(#_) details.order-options-menu>.action-popover{left:0;right:auto}
/* 13/11 (Filipe): itens dos menus ☰ em LISTA (sem borda de cartão) */
html[data-theme] body.osv:not(#_) main .action-popover{gap:0!important;padding:6px!important;min-width:220px!important}
html[data-theme] body.osv:not(#_) main .action-popover>:is(a,button.action-popover-button){display:flex!important;align-items:center;width:100%!important;min-height:42px!important;margin:0!important;padding:10px 12px!important;border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;color:var(--text)!important;font-size:var(--fs-14,14px)!important;font-weight:500!important;text-align:left!important;justify-content:flex-start!important;text-decoration:none!important}
html[data-theme] body.osv:not(#_) main .action-popover>:is(a,button.action-popover-button):hover,html[data-theme] body.osv:not(#_) main .action-popover>a[aria-current="page"]{background:var(--surface-2,var(--surface-soft))!important;color:var(--brand)!important}
html[data-theme] body.osv:not(#_) main .action-popover>a[aria-current="page"]{font-weight:600!important}
html[data-theme] body.osv:not(#_) main .action-popover>a.option-create{color:var(--brand)!important;font-weight:600!important}
html[data-theme] body.osv:not(#_) main .action-popover>.action-divider{height:1px;margin:6px 4px!important;background:var(--line)}
html[data-theme] body.osv:not(#_) main .action-popover>b{display:block;margin:8px 12px 4px!important;font-size:11px!important;letter-spacing:.06em;text-transform:uppercase}
/* 13/11 parte 2 (Filipe) ------------------------------------------------ */
/* Configurações: conteúdo começa alinhado com o menu lateral (o título repetia o item marcado) */
@media (min-width:761px){body.osv:not(#_) .settings-panels .settings-group>h3{display:none}}
/* Anexar = clipe + texto discreto (arraste ou cole) */
html[data-theme] body.osv:not(#_) .upload-picker-row{display:flex;align-items:center;gap:0;margin:0}
html[data-theme] body.osv:not(#_) label.upload-picker.upload-clip{position:relative;display:flex!important;flex-direction:row!important;align-items:center;gap:10px;width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:4px 10px 4px 4px!important;border:1px dashed transparent!important;border-radius:var(--r-md)!important;background:transparent!important;box-shadow:none!important;cursor:pointer;color:var(--muted)!important;font-weight:400!important}
html[data-theme] body.osv:not(#_) label.upload-clip>svg.i{flex:none;width:38px;height:38px;padding:9px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--text);stroke-width:1.7}
html[data-theme] body.osv:not(#_) label.upload-clip:hover>svg.i{border-color:var(--brand);color:var(--brand)}
html[data-theme] body.osv:not(#_) label.upload-clip:is(.is-dragging,:hover){border-color:var(--line)!important}
html[data-theme] body.osv:not(#_) label.upload-clip.is-dragging{border-color:var(--brand)!important;background:var(--accent-soft)!important}
html[data-theme] body.osv:not(#_) label.upload-clip input.upload-input{position:absolute!important;inset:0;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer;margin:0!important;padding:0!important}
html[data-theme] body.osv:not(#_) label.upload-clip .upload-file-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--fs-13,13px);color:var(--muted)}
html[data-theme] body.osv:not(#_) label.upload-clip .attachment-drop-hint{display:none!important}
html[data-theme] body.osv:not(#_) .upload-picker-row>.upload-file-name{display:none}
/* Cronograma › Arquivos */
html[data-theme] body.osv:not(#_) .cronogram-files-panel{display:grid;gap:10px;padding:14px 16px!important}
html[data-theme] body.osv:not(#_) .cronogram-files-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
html[data-theme] body.osv:not(#_) .cronogram-files-head h3{margin:0!important;font-size:var(--fs-16,16px)!important}
html[data-theme] body.osv:not(#_) .cronogram-files-head h3 small{margin-left:8px;font-weight:400;font-size:var(--fs-13,13px);color:var(--muted)}
html[data-theme] body.osv:not(#_) .cronogram-files-template{font-size:var(--fs-13,13px);color:var(--muted);white-space:nowrap}
html[data-theme] body.osv:not(#_) .cronogram-files-panel .upload-form{margin:0!important;padding:0!important;border:0!important;background:transparent!important}
html[data-theme] body.osv:not(#_) .cronogram-files-list{border-top:1px solid var(--line);padding-top:8px}
html[data-theme] body.osv:not(#_) .cronogram-files-list .region-import-history{margin:0;padding:0;list-style:none;display:grid;gap:2px}
html[data-theme] body.osv:not(#_) .cronogram-files-list .region-import-history li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:6px 4px;font-size:var(--fs-13,13px)}
html[data-theme] body.osv:not(#_) .cronogram-files-list .region-import-history li span{color:var(--muted)}
html[data-theme] body.osv:not(#_) .cronogram-files-older>summary{cursor:pointer;padding:6px 4px;font-size:var(--fs-12,12px);color:var(--muted);list-style:none}
html[data-theme] body.osv:not(#_) .cronogram-files-older>summary::-webkit-details-marker{display:none}
html[data-theme] body.osv:not(#_) .cronogram-files-older>summary::before{content:"›";display:inline-block;margin-right:6px;transition:transform .15s}
html[data-theme] body.osv:not(#_) .cronogram-files-older[open]>summary::before{transform:rotate(90deg)}
html[data-theme] body.osv:not(#_) .cronogram-files-empty{margin:0;color:var(--muted);font-size:var(--fs-13,13px)}
/* Cronograma: mês e setas na mesma linha, centralizados */
html[data-theme] body.osv:not(#_) .cronogram-month-nav{display:flex!important;align-items:center!important;gap:6px!important}
html[data-theme] body.osv:not(#_) .cronogram-month-form,html[data-theme] body.osv:not(#_) .cronogram-month-form label{display:flex!important;align-items:center!important;margin:0!important;padding:0!important;min-height:36px!important;height:36px}
html[data-theme] body.osv:not(#_) .cronogram-month-caption{line-height:36px!important;font-size:20px!important}
html[data-theme] body.osv:not(#_) .cronogram-month-nav nav{display:flex!important;align-items:center;gap:4px;margin:0!important}
html[data-theme] body.osv:not(#_) .cronogram-month-nav nav a{display:inline-grid!important;place-items:center;width:32px!important;height:32px!important;padding:0!important;border:1px solid var(--line);border-radius:50%!important;font-size:18px!important;line-height:1!important;color:var(--text)!important}
html[data-theme] body.osv:not(#_) .cronogram-month-nav nav a:hover{border-color:var(--brand);color:var(--brand)!important}
html[data-theme] body.osv:not(#_) .cronogram-simple-toolbar{align-items:center!important}
/* Submenus dentro dos menus (ex.: "Gerar OS em lote ›") também em lista, sem borda */
html[data-theme] body.osv:not(#_) main .action-popover>details>summary{display:flex;align-items:center;min-height:42px;padding:10px 12px!important;border:0!important;border-radius:8px;background:transparent!important;color:var(--text)!important;font-size:var(--fs-14,14px)!important;font-weight:500!important;cursor:pointer}
html[data-theme] body.osv:not(#_) main .action-popover>details>summary:hover{background:var(--surface-2,var(--surface-soft))!important}
html[data-theme] body.osv:not(#_) main .action-popover .cronogram-repeat-action,html[data-theme] body.osv:not(#_) main .action-popover>form>button:not(.primary){border:0!important;background:transparent!important;box-shadow:none!important;text-align:left!important;justify-content:flex-start!important;color:var(--text)!important;font-size:var(--fs-14,14px)!important;font-weight:500!important;padding:10px 12px!important;width:100%;min-height:42px;border-radius:8px!important}
html[data-theme] body.osv:not(#_) main .action-popover .cronogram-repeat-action:hover,html[data-theme] body.osv:not(#_) main .action-popover>form>button:not(.primary):hover{background:var(--surface-2,var(--surface-soft))!important}
html[data-theme] body.osv:not(#_) main .action-popover .upload-form{padding:0 4px!important}
html[data-theme] body.osv:not(#_) label[data-pdf-date-options][hidden]{display:none!important}
html[data-theme] body.osv:not(#_) label.upload-picker.upload-clip{justify-content:flex-start!important;text-align:left!important}
html[data-theme] body.osv:not(#_) .upload-picker-row{justify-content:flex-start!important}
html[data-theme] body.osv:not(#_) .cronogram-filter-bar .cronogram-pick select{width:auto!important;min-width:130px!important;max-width:210px!important}
html[data-theme] body.osv:not(#_) label.upload-clip .upload-file-name{align-self:center!important;margin:0!important;line-height:1.35!important}
/* 13/11: pergunta "Ficou alguma pendência ou problema?" na conclusão (técnico) */
html[data-theme] body.osv:not(#_) .tech-finish-form{display:grid;gap:14px}
html[data-theme] body.osv:not(#_) fieldset.tech-finish-problem{display:grid;gap:12px;margin:0;padding:14px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
html[data-theme] body.osv:not(#_) fieldset.tech-finish-problem legend{padding:0 6px;font-weight:600;color:var(--text)}
html[data-theme] body.osv:not(#_) .tech-finish-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html[data-theme] body.osv:not(#_) .tech-finish-choice label{display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:8px;min-height:48px;margin:0!important;border:1px solid var(--line);border-radius:var(--r-md);font-weight:600;cursor:pointer}
html[data-theme] body.osv:not(#_) .tech-finish-choice label:has(input:checked){border-color:var(--brand);background:var(--accent-soft);color:var(--accent-text)}
html[data-theme] body.osv:not(#_) .tech-finish-choice input{width:18px!important;height:18px!important;min-height:0!important;margin:0!important}
html[data-theme] body.osv:not(#_) .tech-finish-detail{display:grid;gap:10px}
html[data-theme] body.osv:not(#_) .tech-finish-detail[hidden]{display:none!important}
html[data-theme] body.osv:not(#_) .tech-finish-photo{justify-self:start}
html[data-theme] body.osv:not(#_) .summary-problem-actions{display:flex;flex-wrap:wrap;gap:8px;padding:0 12px 10px 34px}
html[data-theme] body.osv:not(#_) .summary-problem-actions form{margin:0}
html[data-theme] body.osv:not(#_) .summary-problem-actions button{min-height:34px;padding:6px 12px;border:1px solid var(--line)!important;border-radius:999px!important;background:var(--surface)!important;color:var(--text)!important;font-size:var(--fs-13,13px)!important;font-weight:500!important}
/* 13/11: assinatura e comentário salvam sozinhos */
html[data-theme] body.osv:not(#_) .signature-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px}
html[data-theme] body.osv:not(#_) .signature-actions p{margin:0}
html[data-theme] body.osv:not(#_) form.is-saved .signature-canvas{outline:2px solid var(--brand);outline-offset:2px}
html[data-theme] body.osv:not(#_) form.comment-form [data-comment-status]{margin:4px 0 0;min-height:1em}
