﻿.modal-enter { animation: fadeIn 0.18s ease-out forwards; }
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}
.thin-scroll::-webkit-scrollbar { height: 6px; width: 6px; }
.thin-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
#mobile-app-header { display: none; }
.app-sidebar { color: #0a235c; background: linear-gradient(180deg,#edf4ff 0%,#e7effb 56%,#e2ebf8 100%); border-right: 1px solid #cbd8eb; box-shadow: 14px 0 35px rgba(6,26,68,.08); }
.sidebar-brand-block { display: grid; gap: .4rem; padding: 1.15rem 1.35rem 1rem; background: transparent; border-bottom: 1px solid #cfdbed; }
.sidebar-brand-surface { display: flex; width: 11rem; min-height: 3rem; align-items: center; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.sidebar-brand-surface img { display: block; width: 100%; height: auto; }
.sidebar-brand-context { padding-left: .15rem; }
#sidebar-segmento { margin: 0; color: #49617f; font-size: .68rem; font-weight: 750; letter-spacing: .01em; }
.app-credit { position: absolute; z-index: 5; top: .48rem; left: 50%; display: inline-flex; align-items: center; gap: .25rem; transform: translateX(-50%); color: #94a3b8; font-size: .62rem; font-weight: 700; letter-spacing: .015em; white-space: nowrap; transition: color .15s ease; }
.app-credit span { color: #ef4444; font-size: .72rem; animation: appCreditHeart 2.2s ease-in-out infinite; }
.app-credit strong { color: #64748b; font-weight: 900; }
.app-credit:hover, .app-credit:hover strong { color: #2563eb; }
main.pdv-mode > div:first-of-type { display: none; }
main.pdv-mode #pdv-pecas { margin-top: 2.25rem; }
@keyframes appCreditHeart { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* Navegação lateral organizada por áreas */
.sidebar-nav { scrollbar-color: #a9bbd4 transparent; }
.sidebar-main-icon { display: grid; width: 1.75rem; height: 1.75rem; place-items: center; border-radius: .55rem; background: rgba(255,255,255,.13); }
.menu-group-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .65rem; border-radius: .65rem; color: #183a63; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; transition: .15s ease; }
.menu-group-toggle:hover { color: #061a44; background: rgba(255,255,255,.55); }
.menu-group-toggle > span { display: flex; align-items: center; gap: .5rem; }
.menu-group-toggle > span > i { color: #1557ff; font-size: .95rem; }
.menu-chevron { color: #55769d; font-size: .8rem; transition: transform .2s ease; }
.menu-group-alert{display:inline-flex;min-width:1.25rem;height:1.25rem;align-items:center;justify-content:center;margin-left:auto;padding:0 .3rem;border-radius:999px;color:#fff;font-size:.58rem;font-weight:950;line-height:1;box-shadow:0 0 0 3px rgba(239,68,68,.12);animation:menuGroupAlertPulse 2s ease-in-out infinite}.menu-group-alert.hidden{display:none}.menu-group-alert.is-commission{background:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.13)}.menu-group-alert.is-support{background:#ef4444}.menu-group-toggle:has(.menu-group-alert:not(.hidden)){background:rgba(255,255,255,.62);color:#061a44}@keyframes menuGroupAlertPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
.menu-group-toggle[aria-expanded="false"] .menu-chevron { transform: rotate(-90deg); }
.menu-group-panel { position: relative; display: grid; gap: .2rem; margin-top: .25rem; padding-left: .6rem; }
.menu-group-panel.hidden { display: none; }
.menu-group-panel::before { content: ''; position: absolute; top: .25rem; bottom: .25rem; left: .9rem; width: 1px; background: #a9bdd7; }
.menu-subitem { position: relative; display: flex; width: 100%; align-items: center; gap: .7rem; min-height: 2.55rem; padding: .58rem .75rem .58rem 1.25rem; border-radius: .65rem; color: #365675; font-size: .82rem; font-weight: 750; text-align: left; transition: .15s ease; }
.menu-subitem > i { width: 1.15rem; flex: 0 0 auto; color: #55769d; font-size: 1rem; }
.menu-subitem:hover { background: rgba(255,255,255,.68); color: #061a44; }
.menu-subitem:hover > i { color: #1557ff; }
.menu-subitem.bg-blue-600 { background: #d6e4ff !important; color: #0a235c !important; box-shadow: inset 3px 0 #1557ff; }
.menu-subitem.bg-blue-600 > i { color: #1557ff; }
.app-sidebar .menu-subitem.text-slate-400 { color: #365675 !important; }
.app-sidebar .menu-subitem.text-slate-400 > i { color: #55769d !important; }
.app-sidebar .sidebar-home.text-slate-400 { color: #294b70 !important; background: transparent !important; }
.app-sidebar .sidebar-home.text-slate-400 .sidebar-main-icon { color: #1557ff; background: #d6e3f6; }
.app-sidebar .sidebar-home.text-slate-400:hover { color: #061a44 !important; background: rgba(255,255,255,.62) !important; }
.sidebar-account-wrap { border-top: 1px solid #cfdbed; }
#box-conta-plano { background: rgba(255,255,255,.82) !important; border-color: #c4d3e8 !important; box-shadow: 0 8px 22px rgba(6,26,68,.07); }
#usuario-logado { color: #061a44 !important; }
#plano-logado { color: #49617f !important; }
.sidebar-logout { color: #294364; background: #dbe6f5; }
.sidebar-logout:hover { color: #061a44; background: #cbd9ed; }
.sidebar-plano-status { display: flex; align-items: center; gap: .4rem; margin-top: .7rem; padding: .48rem .58rem; border-radius: .55rem; background: #eff6ff; color: #1d4ed8; font-size: .64rem; font-weight: 850; line-height: 1.25; }
.sidebar-plano-status.hidden { display: none; }
.sidebar-plano-status.is-warning { background: #fff7ed; color: #c2410c; }
.sidebar-plano-status.is-expired { background: #fef2f2; color: #dc2626; }
#sidebar-btn-planos.is-expired { background: #dc2626 !important; }
#sidebar-btn-planos.is-expired:hover { background: #b91c1c !important; }

/* Página inicial — central visual de atalhos */
.inicio-hero { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.35rem 2rem; overflow: hidden; padding: 2rem 2rem 0; border-radius: 1.4rem; background: linear-gradient(125deg,#0f172a 0%,#172554 58%,#1d4ed8 140%); color: #fff; box-shadow: 0 18px 45px rgba(15,23,42,.15); }
.inicio-hero::after { content: ''; position: absolute; width: 18rem; height: 18rem; right: -6rem; top: -9rem; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 3rem rgba(255,255,255,.025),0 0 0 6rem rgba(255,255,255,.02); }
.inicio-hero > * { position: relative; z-index: 1; }
.inicio-eyebrow { display: inline-flex; align-items: center; gap: .4rem; color: #93c5fd; font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.inicio-hero h1 { margin-top: .5rem; font-size: clamp(1.65rem,3vw,2.35rem); line-height: 1.1; font-weight: 900; }
.inicio-hero p { max-width: 35rem; margin-top: .65rem; color: #cbd5e1; font-size: .9rem; }
.inicio-hero-action { display: inline-flex; min-height: 3rem; flex: 0 0 auto; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1rem; border-radius: .8rem; background: #fff; color: #1d4ed8; font-size: .82rem; font-weight: 900; box-shadow: 0 8px 25px rgba(0,0,0,.15); transition: .15s ease; }
.inicio-hero-action:hover { transform: translateY(-2px); }
.inicio-hero-copy { min-width: 0; flex: 1; }
.inicio-plano-faixa { display: flex; width: calc(100% + 4rem); min-height: 2.25rem; align-items: center; gap: .55rem; margin: 0 -2rem; padding: .45rem 2rem; border-top: 1px solid rgba(255,255,255,.12); background: rgba(3,10,30,.22); color: #dbeafe; }
.inicio-plano-faixa > span { display: grid; width: 1.5rem; height: 1.5rem; flex: 0 0 auto; place-items: center; border-radius: .45rem; background: rgba(147,197,253,.14); color: #bfdbfe; }
.inicio-plano-faixa strong { color: #fff; font-size: .7rem; font-weight: 900; }
.inicio-plano-faixa small { min-width: 0; flex: 1; color: #a9c3e8; font-size: .64rem; }
.inicio-plano-faixa button { display: inline-flex; align-items: center; gap: .3rem; padding: .38rem .55rem; border-radius: .5rem; background: rgba(255,255,255,.1); color: #fff; font-size: .62rem; font-weight: 900; }
.inicio-plano-faixa button:hover { background: rgba(255,255,255,.18); }
.inicio-plano-faixa.is-warning { border-top-color: rgba(251,191,36,.35); background: rgba(120,53,15,.38); }.inicio-plano-faixa.is-warning>span{background:rgba(251,191,36,.18);color:#fde68a}
.inicio-plano-faixa.is-expired { border-top-color: rgba(248,113,113,.45); background: rgba(127,29,29,.5); }.inicio-plano-faixa.is-expired>span{background:rgba(248,113,113,.2);color:#fecaca}.inicio-plano-faixa.is-expired button{background:#dc2626}.inicio-plano-faixa.is-expired button:hover{background:#b91c1c}
.inicio-status-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin-top: 1rem; }
.inicio-status-grid button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; min-width: 0; padding: .9rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; text-align: left; box-shadow: 0 4px 15px rgba(15,23,42,.035); transition: .15s ease; }
.inicio-status-grid button:hover { border-color: #bfdbfe; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,.08); }
.inicio-status-grid button > i { color: #94a3b8; }
.inicio-status-grid small { display: block; overflow: hidden; color: #64748b; font-size: .65rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.inicio-status-grid strong { display: block; margin-top: .05rem; color: #0f172a; font-size: 1.25rem; font-weight: 900; }
.inicio-status-icon { display: grid; width: 2.45rem; height: 2.45rem; place-items: center; border-radius: .75rem; font-size: 1.2rem; }.inicio-status-icon.is-blue{background:#eff6ff;color:#2563eb}.inicio-status-icon.is-violet{background:#f5f3ff;color:#7c3aed}.inicio-status-icon.is-emerald{background:#ecfdf5;color:#059669}.inicio-status-icon.is-amber{background:#fffbeb;color:#d97706}
.inicio-section-heading { display: flex; align-items: end; justify-content: space-between; margin: 2rem 0 1rem; }
.inicio-section-heading h2 { color: #0f172a; font-size: 1.15rem; font-weight: 900; }
.inicio-section-heading p { margin-top: .2rem; color: #64748b; font-size: .78rem; }
.inicio-tools-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.inicio-tool-card { --tool:#2563eb; --tool-bg:#eff6ff; position: relative; display: flex; min-height: 10.5rem; flex-direction: column; align-items: flex-start; overflow: hidden; padding: 1.2rem; border: 1px solid #e2e8f0; border-radius: 1.1rem; background: #fff; text-align: left; box-shadow: 0 5px 18px rgba(15,23,42,.04); transition: .18s ease; }
.inicio-tool-card::after { content: ''; position: absolute; width: 7rem; height: 7rem; right: -3.5rem; bottom: -3.5rem; border-radius: 50%; background: var(--tool-bg); transition: .18s ease; }
.inicio-tool-card:hover { border-color: color-mix(in srgb,var(--tool) 35%,white); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(15,23,42,.09); }
.inicio-tool-card:hover::after { transform: scale(1.25); }
.inicio-tool-icon { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: .85rem; background: var(--tool-bg); color: var(--tool); font-size: 1.45rem; }
.inicio-tool-copy { position: relative; z-index: 1; display: block; margin-top: .9rem; padding-right: 1rem; }.inicio-tool-copy strong{display:block;color:#0f172a;font-size:.95rem;font-weight:900}.inicio-tool-copy small{display:block;margin-top:.35rem;color:#64748b;font-size:.72rem;line-height:1.45}
.inicio-tool-arrow { position: absolute; z-index: 2; top: 1.2rem; right: 1.2rem; color: #94a3b8; font-size: 1.05rem; }
.inicio-tool-card.is-emerald{--tool:#059669;--tool-bg:#ecfdf5}.inicio-tool-card.is-cyan{--tool:#0891b2;--tool-bg:#ecfeff}.inicio-tool-card.is-violet{--tool:#7c3aed;--tool-bg:#f5f3ff}.inicio-tool-card.is-amber{--tool:#d97706;--tool-bg:#fffbeb}.inicio-tool-card.is-slate{--tool:#475569;--tool-bg:#f1f5f9}

/* Visão geral das ordens de serviço */
.os-overview-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
.os-overview-header>div>span { display: inline-flex; align-items: center; gap: .35rem; color: #2563eb; font-size: .66rem; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.os-overview-header h1 { margin-top: .32rem; color: #0f172a; font-size: 1.8rem; line-height: 1.15; font-weight: 950; }.os-overview-header p{margin-top:.3rem;color:#64748b;font-size:.82rem}
.os-overview-new { display: inline-flex; min-height: 2.8rem; flex: 0 0 auto; align-items: center; justify-content: center; gap: .45rem; padding: .7rem 1rem; border-radius: .75rem; background: #2563eb; color: #fff; font-size: .78rem; font-weight: 950; box-shadow: 0 8px 18px rgba(37,99,235,.2); }.os-overview-new:hover{background:#1d4ed8;transform:translateY(-1px)}
.os-overview-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin-bottom: 1rem; }
.os-overview-metrics button { --metric:#2563eb; --metric-bg:#eff6ff; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; gap: .05rem .65rem; min-width: 0; padding: .95rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; text-align: left; box-shadow: 0 5px 16px rgba(15,23,42,.035); transition: .18s ease; }.os-overview-metrics button:hover{border-color:color-mix(in srgb,var(--metric) 35%,white);transform:translateY(-2px);box-shadow:0 10px 25px rgba(15,23,42,.08)}
.os-overview-metrics button>span { grid-row: 1/4; display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: .78rem; background: var(--metric-bg); color: var(--metric); font-size: 1.25rem; }.os-overview-metrics small{overflow:hidden;color:#64748b;font-size:.62rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.os-overview-metrics strong{color:#0f172a;font-size:1.3rem;line-height:1.1;font-weight:950}.os-overview-metrics em{display:flex;align-items:center;gap:.25rem;color:var(--metric);font-size:.58rem;font-style:normal;font-weight:900}.os-overview-metrics .is-amber{--metric:#d97706;--metric-bg:#fffbeb}.os-overview-metrics .is-emerald{--metric:#059669;--metric-bg:#ecfdf5}.os-overview-metrics .is-violet{--metric:#7c3aed;--metric-bg:#f5f3ff}
.os-overview-workspace { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(17rem,.7fr); gap: 1rem; align-items: start; }
.os-overview-list-card,.os-overview-summary { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 1.1rem; background: #fff; box-shadow: 0 7px 25px rgba(15,23,42,.045); }
.os-overview-list-card>header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.2rem .9rem; }.os-overview-list-card>header span{color:#2563eb;font-size:.58rem;font-weight:950;letter-spacing:.1em}.os-overview-list-card>header h2{margin-top:.15rem;color:#0f172a;font-size:1.05rem;font-weight:950}.os-overview-list-card>header p{margin-top:.18rem;color:#64748b;font-size:.68rem}
.os-overview-search{position:relative;display:block;width:min(22rem,48%);flex:0 1 22rem}.os-overview-search>i{position:absolute;top:50%;left:.75rem;transform:translateY(-50%);color:#94a3b8;font-size:1rem}.os-overview-search input{width:100%;min-height:2.55rem;padding:.65rem .75rem .65rem 2.35rem;border:1px solid #cbd5e1;border-radius:.7rem;background:#f8fafc;color:#0f172a;font-size:.7rem;font-weight:700;outline:none}.os-overview-search input:focus{border-color:#60a5fa;background:#fff;box-shadow:0 0 0 3px rgba(59,130,246,.1)}
.os-overview-tabs { display: flex; gap: .35rem; overflow-x: auto; padding: 0 1.2rem .85rem; border-bottom: 1px solid #edf2f7; }.os-overview-tabs button{display:inline-flex;align-items:center;gap:.35rem;flex:0 0 auto;padding:.48rem .65rem;border-radius:.55rem;color:#64748b;font-size:.64rem;font-weight:900}.os-overview-tabs button:hover{background:#f1f5f9;color:#1e293b}.os-overview-tabs button.is-active{background:#0f172a;color:#fff}.os-overview-tabs b{display:grid;min-width:1.2rem;height:1.2rem;place-items:center;padding:0 .25rem;border-radius:999px;background:rgba(148,163,184,.16);font-size:.56rem}
.os-overview-list { max-height: 36rem; overflow-y: auto; padding: .45rem; }.os-overview-list>li+li{border-top:1px solid #edf2f7}.os-overview-row{display:grid;width:100%;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:.8rem;border-radius:.75rem;text-align:left;transition:.15s ease}.os-overview-row:hover{background:#f8fafc}.os-overview-row-icon{display:grid;width:2.4rem;height:2.4rem;place-items:center;border-radius:.7rem;background:#eff6ff;color:#2563eb;font-size:1.1rem}.os-overview-row-copy{min-width:0}.os-overview-row-copy>div{display:flex;align-items:center;gap:.45rem;min-width:0}.os-overview-row-copy strong{overflow:hidden;color:#0f172a;font-size:.78rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.os-overview-row-copy b{flex:0 0 auto;padding:.2rem .4rem;border-radius:999px;font-size:.52rem;font-weight:950}.os-overview-row-copy p{overflow:hidden;margin-top:.18rem;color:#64748b;font-size:.64rem;text-overflow:ellipsis;white-space:nowrap}.os-overview-row-meta{text-align:right}.os-overview-row-meta strong{display:block;color:#0f172a;font-size:.76rem;font-weight:950}.os-overview-row-meta small{display:block;margin-top:.18rem;color:#64748b;font-size:.58rem}.os-overview-empty{display:flex;min-height:13rem;flex-direction:column;align-items:center;justify-content:center;padding:2rem;color:#94a3b8;text-align:center}.os-overview-empty i{font-size:2rem}.os-overview-empty strong{margin-top:.5rem;color:#475569;font-size:.82rem}.os-overview-empty small{margin-top:.2rem;font-size:.64rem}
.os-overview-summary { padding: 1.1rem; }.os-overview-summary-title{display:flex;align-items:center;gap:.7rem;padding-bottom:.9rem;border-bottom:1px solid #edf2f7}.os-overview-summary-title>span{display:grid;width:2.5rem;height:2.5rem;place-items:center;border-radius:.75rem;background:#eff6ff;color:#2563eb;font-size:1.15rem}.os-overview-summary-title small{color:#64748b;font-size:.55rem;font-weight:950;letter-spacing:.08em}.os-overview-summary-title h2{margin-top:.12rem;color:#0f172a;font-size:.88rem;font-weight:950}.os-overview-progress{display:grid;gap:.1rem;padding:.75rem 0}.os-overview-progress>div{display:flex;align-items:center;justify-content:space-between;padding:.58rem .2rem;color:#475569;font-size:.67rem;font-weight:800}.os-overview-progress span{display:flex;align-items:center;gap:.45rem}.os-overview-progress i{color:#94a3b8;font-size:.9rem}.os-overview-progress strong{display:grid;min-width:1.65rem;height:1.65rem;place-items:center;border-radius:.5rem;background:#f1f5f9;color:#0f172a;font-size:.68rem;font-weight:950}
.os-overview-base{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;padding-top:.8rem;border-top:1px solid #edf2f7}.os-overview-base button{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.5rem;padding:.65rem;border-radius:.7rem;background:#f8fafc;text-align:left}.os-overview-base button:hover{background:#f1f5f9}.os-overview-base button>span{display:grid;width:1.9rem;height:1.9rem;place-items:center;border-radius:.55rem;background:#fff;color:#2563eb}.os-overview-base small,.os-overview-base strong{display:block}.os-overview-base small{color:#64748b;font-size:.52rem}.os-overview-base strong{color:#0f172a;font-size:.82rem;font-weight:950}.os-overview-base button>i{color:#94a3b8;font-size:.7rem}
.os-overview-quick{display:grid;width:100%;grid-template-columns:auto 1fr auto;align-items:center;gap:.65rem;margin-top:.8rem;padding:.75rem;border-radius:.75rem;background:#0f172a;color:#fff;text-align:left}.os-overview-quick>i:first-child{display:grid;width:2rem;height:2rem;place-items:center;border-radius:.55rem;background:#2563eb}.os-overview-quick strong,.os-overview-quick small{display:block}.os-overview-quick strong{font-size:.7rem;font-weight:950}.os-overview-quick small{margin-top:.1rem;color:#94a3b8;font-size:.55rem}.os-overview-quick:hover{background:#1e293b}

/* Central de configurações */
.config-hub-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
.config-hub-header > div > span { display: flex; align-items: center; gap: .4rem; color: #2563eb; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.config-hub-header h1 { margin-top: .35rem; color: #0f172a; font-size: 1.8rem; line-height: 1.15; font-weight: 900; }
.config-hub-header p { margin-top: .35rem; color: #64748b; font-size: .82rem; }
.config-hub-header > button { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.7rem; padding: .65rem .9rem; border: 1px solid #e2e8f0; border-radius: .75rem; background: #fff; color: #475569; font-size: .75rem; font-weight: 900; }
.config-hub-header > button:hover { border-color: #bfdbfe; color: #1d4ed8; }
.config-hub-nav { display: flex; gap: .35rem; margin-bottom: 1.25rem; padding: .35rem; overflow-x: auto; border: 1px solid #e2e8f0; border-radius: .9rem; background: #fff; box-shadow: 0 3px 12px rgba(15,23,42,.035); }
.config-hub-nav button { display: flex; min-height: 2.55rem; flex: 1 0 auto; align-items: center; justify-content: center; gap: .4rem; padding: .6rem .8rem; border-radius: .65rem; color: #64748b; font-size: .73rem; font-weight: 900; white-space: nowrap; transition: .15s ease; }
.config-hub-nav button:hover { background: #f8fafc; color: #1d4ed8; }
.config-hub-nav button.is-active { background: #eff6ff; color: #1d4ed8; box-shadow: inset 0 0 0 1px #bfdbfe; }
.config-overview-intro { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1.1rem 1.2rem; border: 1px solid #dbeafe; border-radius: 1rem; background: linear-gradient(100deg,#eff6ff,#fff); }
.config-overview-icon { display: grid; width: 3rem; height: 3rem; flex: 0 0 auto; place-items: center; border-radius: .9rem; background: #2563eb; color: #fff; font-size: 1.35rem; box-shadow: 0 7px 16px rgba(37,99,235,.22); }
.config-overview-intro h2 { color: #0f172a; font-size: 1.05rem; font-weight: 900; }.config-overview-intro p{margin-top:.2rem;color:#64748b;font-size:.76rem}
.config-category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.config-category-card { --config-color:#2563eb; --config-bg:#eff6ff; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1rem; min-height: 8.5rem; padding: 1.2rem; border: 1px solid #e2e8f0; border-radius: 1.1rem; background: #fff; text-align: left; box-shadow: 0 4px 15px rgba(15,23,42,.035); transition: .18s ease; }
.config-category-card:hover { border-color: color-mix(in srgb,var(--config-color) 35%,white); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(15,23,42,.08); }
.config-category-icon { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; border-radius: .95rem; background: var(--config-bg); color: var(--config-color); font-size: 1.55rem; }
.config-category-card strong { display: block; color: #0f172a; font-size: .95rem; font-weight: 900; }.config-category-card small{display:block;margin-top:.3rem;color:#64748b;font-size:.72rem;line-height:1.45}.config-category-card>i{color:#94a3b8;font-size:1.1rem}
.config-category-card.is-cyan{--config-color:#0891b2;--config-bg:#ecfeff}.config-category-card.is-emerald{--config-color:#059669;--config-bg:#ecfdf5}.config-category-card.is-violet{--config-color:#7c3aed;--config-bg:#f5f3ff}.config-category-card.is-amber{--config-color:#d97706;--config-bg:#fffbeb}
.config-help-strip { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; padding: .85rem 1rem; border-radius: .8rem; background: #f1f5f9; color: #475569; }.config-help-strip>i{font-size:1.2rem;color:#2563eb}.config-help-strip strong{font-size:.76rem}.config-help-strip p{margin-top:.1rem;font-size:.68rem;color:#64748b}
.config-panel-card { padding: 1.3rem; border: 1px solid #e2e8f0; border-radius: 1.1rem; background: #fff; box-shadow: 0 5px 18px rgba(15,23,42,.04); }
.config-panel-heading { display: flex; align-items: center; gap: .85rem; margin: -.1rem -.1rem 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid #e2e8f0; }
.config-panel-heading > button { display: grid; width: 2.55rem; height: 2.55rem; flex: 0 0 auto; place-items: center; border: 1px solid #e2e8f0; border-radius: .75rem; color: #64748b; }.config-panel-heading>button:hover{background:#f8fafc;color:#2563eb}
.config-panel-heading > span { display: grid; width: 2.75rem; height: 2.75rem; flex: 0 0 auto; place-items: center; border-radius: .8rem; background: #eff6ff; color: #2563eb; font-size: 1.3rem; }.config-panel-heading>span.is-cyan{background:#ecfeff;color:#0891b2}.config-panel-heading>span.is-emerald{background:#ecfdf5;color:#059669}
.config-panel-heading small { color: #2563eb; font-size: .62rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }.config-panel-heading h2{margin-top:.12rem;color:#0f172a;font-size:1.15rem;font-weight:900}.config-panel-heading p{margin-top:.15rem;color:#64748b;font-size:.72rem}
.config-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }.config-panel-footer p{color:#64748b;font-size:.72rem}.config-panel-footer button{display:flex;align-items:center;justify-content:center;gap:.45rem;min-height:2.8rem;padding:.7rem 1rem;border-radius:.75rem;background:#2563eb;color:#fff;font-size:.75rem;font-weight:900}.config-panel-footer button:hover{background:#1d4ed8}
.config-sound-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1rem; padding: 1.15rem; border: 1px solid #dbe5e1; border-radius: 1rem; background: linear-gradient(120deg,#f8fffc,#fff); }
.config-sound-icon { display: grid; width: 3.15rem; height: 3.15rem; place-items: center; border-radius: .9rem; background: #ecfdf5; color: #059669; font-size: 1.45rem; }
.config-sound-copy strong { display: block; color: #0f172a; font-size: .9rem; font-weight: 900; }.config-sound-copy p{margin-top:.25rem;color:#64748b;font-size:.72rem;line-height:1.45}.config-sound-copy small{display:flex;align-items:center;gap:.3rem;margin-top:.55rem;color:#64748b;font-size:.64rem}
.config-sound-toggle { display: flex; min-width: 6.2rem; cursor: pointer; align-items: center; justify-content: center; gap: .55rem; padding: .65rem .75rem; border: 1px solid #e2e8f0; border-radius: .8rem; background: #fff; }.config-sound-toggle input{position:absolute;opacity:0;pointer-events:none}.config-sound-toggle>span{position:relative;width:2.5rem;height:1.4rem;flex:0 0 auto;border-radius:999px;background:#cbd5e1;transition:.2s}.config-sound-toggle>span:after{content:'';position:absolute;top:.2rem;left:.2rem;width:1rem;height:1rem;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.25);transition:.2s}.config-sound-toggle input:checked+span{background:#059669}.config-sound-toggle input:checked+span:after{transform:translateX(1.1rem)}.config-sound-toggle b{color:#475569;font-size:.68rem;font-weight:900}
@media(max-width:640px){.config-sound-card{grid-template-columns:auto minmax(0,1fr)}.config-sound-toggle{grid-column:1/-1;width:100%}}
.config-panel-heading>span.is-violet{background:#f5f3ff;color:#7c3aed}.finance-security-settings{display:grid;gap:.85rem}.finance-security-state{display:flex;align-items:center;gap:1rem;padding:1.15rem;border:1px solid #ddd6fe;border-radius:1rem;background:linear-gradient(120deg,#f5f3ff,#fff)}.finance-security-state>span{display:grid;width:3.25rem;height:3.25rem;flex:0 0 auto;place-items:center;border-radius:.9rem;background:#7c3aed;color:#fff;font-size:1.45rem;box-shadow:0 8px 18px rgba(124,58,237,.2)}.finance-security-state small{color:#7c3aed;font-size:.6rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.finance-security-state strong{display:block;margin-top:.15rem;color:#0f172a;font-size:.95rem;font-weight:900}.finance-security-state p{margin-top:.2rem;color:#64748b;font-size:.7rem;line-height:1.45}.finance-security-toggle{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:1rem;border:1px solid #e2e8f0;border-radius:.9rem;cursor:pointer}.finance-security-toggle input{position:absolute;opacity:0;pointer-events:none}.finance-security-toggle>span{position:relative;width:2.7rem;height:1.5rem;border-radius:999px;background:#cbd5e1;transition:.2s}.finance-security-toggle>span:after{content:'';position:absolute;top:.2rem;left:.2rem;width:1.1rem;height:1.1rem;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.25);transition:.2s}.finance-security-toggle input:checked+span{background:#7c3aed}.finance-security-toggle input:checked+span:after{transform:translateX(1.2rem)}.finance-security-toggle b{display:block;color:#0f172a;font-size:.78rem;font-weight:900}.finance-security-toggle small{display:block;margin-top:.15rem;color:#64748b;font-size:.65rem}.finance-security-toggle>strong{color:#7c3aed;font-size:.65rem;font-weight:900}.finance-security-actions{display:flex;flex-wrap:wrap;gap:.55rem}.finance-security-actions button{display:flex;min-height:2.7rem;align-items:center;justify-content:center;gap:.4rem;padding:.65rem .85rem;border-radius:.72rem;font-size:.72rem;font-weight:900}.finance-security-actions button.is-primary{background:#7c3aed;color:#fff}.finance-security-actions button.is-danger{border:1px solid #fecaca;background:#fff;color:#dc2626}.finance-security-actions button.hidden{display:none}.finance-security-modal{text-align:left}.finance-security-modal label span{display:block;margin:.7rem 0 -.2rem;color:#475569;font-size:.7rem;font-weight:900}.finance-security-modal .swal2-input{width:100%;margin:.5rem 0 0;text-align:center;letter-spacing:.25em}.finance-security-modal p{padding:.8rem;border-radius:.7rem;background:#fef2f2;color:#991b1b;font-size:.72rem;line-height:1.45}
@media(max-width:640px){.finance-security-toggle{grid-template-columns:auto minmax(0,1fr)}.finance-security-toggle>strong{grid-column:2}.finance-security-actions{display:grid}.finance-security-actions button{width:100%}}
.config-plan-back { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; padding: .65rem .75rem; border: 1px solid #e2e8f0; border-radius: .85rem; background: #fff; }.config-plan-back button{display:flex;align-items:center;gap:.4rem;padding:.55rem .7rem;border-right:1px solid #e2e8f0;color:#475569;font-size:.72rem;font-weight:900}.config-plan-back button:hover{color:#2563eb}.config-plan-back span{color:#0f172a;font-size:.8rem;font-weight:900}.config-plan-back p{margin-top:.1rem;color:#64748b;font-size:.66rem}

/* Histórico de vendas dentro do PDV */
.pdv-history-metric { display: flex; align-items: center; gap: .8rem; padding: 1rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; box-shadow: 0 4px 14px rgba(15,23,42,.035); }
.pdv-history-metric > span { display: grid; width: 2.75rem; height: 2.75rem; flex: 0 0 auto; place-items: center; border-radius: .8rem; font-size: 1.3rem; }.pdv-history-metric>span.is-blue{background:#eff6ff;color:#2563eb}.pdv-history-metric>span.is-emerald{background:#ecfdf5;color:#059669}.pdv-history-metric>span.is-violet{background:#f5f3ff;color:#7c3aed}
.pdv-history-metric small { display: block; color: #64748b; font-size: .64rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }.pdv-history-metric strong{display:block;margin-top:.18rem;color:#0f172a;font-size:1rem;font-weight:900}
.pdv-history-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .9rem; padding: 1rem; background: #fff; }
.pdv-history-row:hover { background: #f8fafc; }
.pdv-history-row-icon { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: .75rem; background: #eff6ff; color: #2563eb; font-size: 1.15rem; }
.pdv-history-row-copy { min-width: 0; }.pdv-history-row-copy p{color:#0f172a;font-size:.85rem;font-weight:900}.pdv-history-row-copy p span{color:#94a3b8;font-weight:600}.pdv-history-row-copy small{display:block;margin-top:.2rem;color:#64748b;font-size:.68rem;line-height:1.4}.pdv-history-row-copy em{display:block;overflow:hidden;margin-top:.25rem;color:#94a3b8;font-size:.66rem;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.pdv-history-row-actions { display: flex; min-width: 10rem; flex-direction: column; align-items: flex-end; }.pdv-history-row-actions strong{color:#047857;font-size:1.05rem;font-weight:900}.pdv-history-row-actions small{margin-top:.1rem;color:#b45309;font-size:.64rem;font-weight:800}.pdv-history-row-actions button{display:flex;align-items:center;justify-content:center;gap:.4rem;margin-top:.55rem;padding:.6rem .8rem;border-radius:.7rem;background:#0f172a;color:#fff;font-size:.7rem;font-weight:900}.pdv-history-row-actions button:hover{background:#1e293b}
.pdv-history-row-actions button.is-danger { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }.pdv-history-row-actions button.is-danger:hover { background:#fee2e2; }
.pdv-history-empty { display: flex; min-height: 16rem; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; color: #94a3b8; text-align: center; }.pdv-history-empty i{font-size:2.5rem}.pdv-history-empty strong{margin-top:.6rem;color:#475569;font-size:.9rem}.pdv-history-empty span{margin-top:.25rem;font-size:.7rem}
.catalog-admin-hero{display:flex;align-items:center;justify-content:space-between;gap:2rem;margin-bottom:1.25rem;padding:1.5rem;border-radius:1.25rem;background:linear-gradient(135deg,#0f172a,#312e81);color:#fff;box-shadow:0 18px 45px rgba(15,23,42,.18)}.catalog-admin-hero span{display:inline-flex;align-items:center;gap:.35rem;color:#c4b5fd;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.catalog-admin-hero h1{margin-top:.35rem;font-size:1.8rem;font-weight:950}.catalog-admin-hero p{margin-top:.35rem;color:#cbd5e1;font-size:.9rem}.catalog-admin-hero-icon{display:grid;width:4rem;height:4rem;flex:0 0 auto;place-items:center;border:1px solid rgba(255,255,255,.15);border-radius:1.1rem;background:rgba(255,255,255,.1);font-size:2rem}.catalog-admin-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:1rem}.catalog-admin-card,.catalog-admin-preview{padding:1.25rem;border:1px solid #e2e8f0;border-radius:1.15rem;background:#fff;box-shadow:0 8px 28px rgba(15,23,42,.05)}.catalog-admin-heading{display:flex;align-items:center;gap:.75rem;padding-bottom:1rem;border-bottom:1px solid #edf2f7}.catalog-admin-heading>span{display:grid;width:2.6rem;height:2.6rem;place-items:center;border-radius:.8rem;background:#ede9fe;color:#6d28d9;font-size:1.25rem}.catalog-admin-heading h2{color:#0f172a;font-weight:950}.catalog-admin-heading p{margin-top:.15rem;color:#64748b;font-size:.72rem}.catalog-toggle-row{display:flex;align-items:center;gap:.75rem;margin-top:1rem;padding:.9rem;border:1px solid #e2e8f0;border-radius:.85rem;cursor:pointer}.catalog-toggle-row>input{position:absolute;opacity:0}.catalog-toggle-ui{position:relative;width:2.5rem;height:1.4rem;flex:0 0 auto;border-radius:999px;background:#cbd5e1;transition:.2s}.catalog-toggle-ui:after{content:'';position:absolute;top:.2rem;left:.2rem;width:1rem;height:1rem;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.25);transition:.2s}.catalog-toggle-row>input:checked+.catalog-toggle-ui{background:#7c3aed}.catalog-toggle-row>input:checked+.catalog-toggle-ui:after{transform:translateX(1.1rem)}.catalog-toggle-row strong,.catalog-toggle-row small{display:block}.catalog-toggle-row strong{font-size:.8rem}.catalog-toggle-row small{margin-top:.15rem;color:#64748b;font-size:.65rem}.catalog-slug-field{display:block;margin-top:1rem}.catalog-slug-field>span{display:block;margin-bottom:.4rem;color:#334155;font-size:.72rem;font-weight:900}.catalog-slug-field>div{display:flex;align-items:center;overflow:hidden;border:1px solid #cbd5e1;border-radius:.8rem;background:#f8fafc}.catalog-slug-field b{padding:.8rem .15rem .8rem .8rem;color:#64748b;font-size:.78rem}.catalog-slug-field input{min-width:0;flex:1;padding:.8rem .8rem .8rem .1rem;background:transparent;color:#0f172a;font-size:.78rem;font-weight:900;outline:none}.catalog-slug-field>small{display:block;margin-top:.35rem;color:#94a3b8;font-size:.64rem}.catalog-link-actions{display:flex;gap:.5rem;margin-top:1rem}.catalog-link-actions button{display:flex;align-items:center;justify-content:center;gap:.35rem;flex:1;padding:.7rem;border-radius:.7rem;background:#f1f5f9;color:#334155;font-size:.72rem;font-weight:900}.catalog-save{display:flex;align-items:center;justify-content:center;gap:.45rem;width:100%;margin-top:1rem;padding:.85rem;border-radius:.8rem;background:#7c3aed;color:#fff;font-size:.8rem;font-weight:950}.catalog-save:hover{background:#6d28d9}.catalog-save:disabled{opacity:.6}.catalog-preview-browser{overflow:hidden;border:1px solid #cbd5e1;border-radius:1rem;background:#f8fafc;box-shadow:0 12px 28px rgba(15,23,42,.1)}.catalog-preview-bar{display:flex;align-items:center;gap:.3rem;padding:.55rem .7rem;background:#e2e8f0}.catalog-preview-bar i{width:.45rem;height:.45rem;border-radius:50%;background:#94a3b8}.catalog-preview-bar span{overflow:hidden;margin-left:.4rem;color:#64748b;font-size:.6rem;text-overflow:ellipsis;white-space:nowrap}.catalog-preview-store{padding:1rem;background:linear-gradient(#fff,#f8fafc)}.catalog-preview-brand{display:flex;align-items:center;gap:.65rem}.catalog-preview-brand>span{display:grid;width:2.3rem;height:2.3rem;place-items:center;overflow:hidden;border-radius:.7rem;background:#0f172a;color:#fff}.catalog-preview-brand img{width:100%;height:100%;object-fit:contain;background:#fff}.catalog-preview-brand strong,.catalog-preview-brand small{display:block}.catalog-preview-brand strong{font-size:.75rem}.catalog-preview-brand small{color:#94a3b8;font-size:.55rem}.catalog-preview-products{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;margin-top:1rem}.catalog-preview-products article{padding:.6rem;border:1px solid #e2e8f0;border-radius:.7rem;background:#fff}.catalog-preview-products i{display:grid;height:3.5rem;place-items:center;border-radius:.5rem;background:#f1f5f9;color:#94a3b8;font-size:1.4rem}.catalog-preview-products b,.catalog-preview-products span{display:block;margin-top:.4rem;font-size:.58rem}.catalog-preview-products span{color:#059669;font-weight:900}.catalog-admin-stats{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:1rem}.catalog-admin-stats div{padding:.8rem;border-radius:.75rem;background:#f8fafc}.catalog-admin-stats span,.catalog-admin-stats small{display:block}.catalog-admin-stats span{color:#0f172a;font-size:1rem;font-weight:950}.catalog-admin-stats span.is-online{color:#059669}.catalog-admin-stats small{color:#64748b;font-size:.62rem}.catalog-admin-preview>p{margin-top:.8rem;color:#64748b;font-size:.68rem;line-height:1.5}
.pdv-date-filter { display: grid; grid-template-columns: minmax(12rem,.8fr) minmax(22rem,1.2fr); gap: .8rem 1rem; align-items: end; padding: 1rem; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.pdv-date-filter-title { display: flex; align-items: center; gap: .7rem; }.pdv-date-filter-title>span{display:grid;width:2.5rem;height:2.5rem;flex:0 0 auto;place-items:center;border-radius:.75rem;background:#dbeafe;color:#2563eb;font-size:1.15rem}.pdv-date-filter-title strong{display:block;color:#0f172a;font-size:.8rem;font-weight:900}.pdv-date-filter-title small{display:block;margin-top:.15rem;color:#64748b;font-size:.66rem}
.pdv-date-fields { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: .55rem; }.pdv-date-fields>i{padding-bottom:.85rem;color:#94a3b8}.pdv-date-fields label>span{display:block;margin-bottom:.35rem;color:#475569;font-size:.62rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.pdv-date-fields input{width:100%;min-height:2.8rem;padding:.65rem .75rem;border:1px solid #cbd5e1;border-radius:.75rem;background:#fff;color:#0f172a;font-size:.78rem;font-weight:800;outline:none}.pdv-date-fields input:focus{border-color:#60a5fa;box-shadow:0 0 0 3px #dbeafe}
.pdv-date-shortcuts { grid-column: 1 / -1; display: flex; gap: .45rem; flex-wrap: wrap; }.pdv-date-shortcuts button{min-height:2.35rem;padding:.5rem .75rem;border:1px solid #dbe3ef;border-radius:999px;background:#fff;color:#475569;font-size:.68rem;font-weight:900}.pdv-date-shortcuts button:hover{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.pdv-date-shortcuts button.is-clear{margin-left:auto;color:#dc2626}.pdv-date-shortcuts button.is-clear:hover{border-color:#fecaca;background:#fef2f2;color:#b91c1c}
.pdv-history-day { display: flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-top: 1px solid #dbeafe; border-bottom: 1px solid #dbeafe; background: #eff6ff; color: #1e40af; font-size: .68rem; font-weight: 900; }
.fin-comissoes-scroll {
    max-height: min(71.25rem, 70vh);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.fin-comissao-item {
    min-height: 4.75rem;
}

/* Comissões — painel financeiro premium */
#fin-page-comissoes { --commission-blue: #2563eb; --commission-ink: #0f172a; --commission-muted: #64748b; }
.commission-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: .5rem 0 .25rem; }
.commission-eyebrow { display: block; color: #2563eb; font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.commission-header h2 { margin-top: .25rem; color: #0f172a; font-size: 1.75rem; line-height: 1.15; font-weight: 900; }
.commission-header p { margin-top: .35rem; color: #64748b; font-size: .875rem; }
.commission-filters { display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(11rem, .75fr); gap: .75rem; min-width: min(100%, 30rem); }
.commission-filters label > span, .commission-payment-actions label span, .commission-field > span, .commission-config-grid label > span, .commission-config-grid legend { display: block; margin-bottom: .4rem; color: #475569; font-size: .68rem; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.commission-filters label > div { position: relative; }
.commission-filters select, .commission-filters input { width: 100%; min-height: 2.85rem; padding: .65rem .8rem .65rem 2.5rem; border: 1px solid #dbe3ef; border-radius: .75rem; background: #fff; color: #0f172a; font-size: .85rem; font-weight: 800; outline: none; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.commission-filters label > div > i { position: absolute; top: 50%; left: .85rem; transform: translateY(-50%); color: #2563eb; font-size: 1.1rem; pointer-events: none; }
.commission-filters select:focus, .commission-filters input:focus, .commission-field input:focus, .commission-field select:focus, .commission-config-grid select:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px #dbeafe; }
.commission-employee-alert { display: inline-flex; align-items: center; margin-top: .4rem; padding: .22rem .55rem; border-radius: 999px; background: #fff7ed; color: #c2410c; font-size: .67rem; font-weight: 900; }
.commission-nav-alert { min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; align-items: center; justify-content: center; border: 2px solid #0f172a; border-radius: 999px; background: #f97316; color: #fff; font-size: .62rem; font-weight: 900; box-shadow: 0 0 0 3px rgba(249,115,22,.15); }.commission-nav-alert:not(.hidden) { display: inline-flex; animation: commissionAlertPulse 2s infinite; }.commission-tab-alert { min-width: 1.1rem; height: 1.1rem; margin-left: .25rem; padding: 0 .25rem; align-items: center; justify-content: center; border-radius: 999px; background: #f97316; color: #fff; font-size: .58rem; }.commission-tab-alert:not(.hidden) { display: inline-flex; }.commission-mobile-alert { position: absolute; top: .65rem; right: .65rem; min-width: 1.3rem; height: 1.3rem; padding: 0 .25rem; align-items: center; justify-content: center; border-radius: 999px; background: #f97316; color: #fff; font-size: .6rem; font-weight: 900; }.commission-mobile-alert:not(.hidden) { display: inline-flex; }
@keyframes commissionAlertPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(249,115,22,.12); } 50% { box-shadow: 0 0 0 7px rgba(249,115,22,0); } }
.commission-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .75rem; }
.commission-metric { position: relative; min-height: 7.7rem; padding: 1.05rem; overflow: hidden; border: 1px solid #e7edf5; border-radius: 1rem; background: #fff; box-shadow: 0 4px 16px rgba(15,23,42,.035); }
.commission-metric::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #3b82f6; }
.commission-metric > span, .commission-metric div > span { color: #64748b; font-size: .68rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.commission-metric > strong { display: block; margin-top: .55rem; color: #0f172a; font-size: 1.35rem; font-weight: 900; }
.commission-metric > small { display: block; margin-top: .5rem; color: #94a3b8; font-size: .7rem; line-height: 1.35; }
.commission-metric-paid::before { background: #10b981; }.commission-metric-paid > strong { color: #047857; }
.commission-metric-open::before { background: #f59e0b; }.commission-metric-open > strong { color: #b45309; }
.commission-goal b { color: #2563eb; font-size: .73rem; }.commission-progress { height: .38rem; margin-top: .65rem; overflow: hidden; border-radius: 999px; background: #e2e8f0; }.commission-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2563eb,#60a5fa); }
.commission-payment-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border: 1px solid #e7edf5; border-radius: 1rem; background: #fff; box-shadow: 0 4px 16px rgba(15,23,42,.025); }
.commission-payment-copy { display: flex; align-items: center; gap: .75rem; min-width: 15rem; }.commission-payment-copy strong { display: block; color: #0f172a; font-size: .82rem; }.commission-payment-copy p { margin-top: .15rem; color: #64748b; font-size: .7rem; }
.commission-status { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: .26rem .55rem; border-radius: 999px; font-size: .62rem; font-weight: 900; white-space: nowrap; }.commission-status.is-paid { background: #ecfdf5; color: #047857; }.commission-status.is-open { background: #fff7ed; color: #c2410c; }
.commission-payment-actions { display: flex; align-items: flex-end; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }.commission-payment-actions label input { min-height: 2.35rem; padding: .5rem .65rem; border: 1px solid #dbe3ef; border-radius: .65rem; background: #fff; font-size: .75rem; font-weight: 800; }.commission-payment-actions button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.35rem; padding: .55rem .75rem; border-radius: .65rem; font-size: .72rem; font-weight: 900; transition: .15s ease; }.commission-primary-success { background: #059669; color: #fff; }.commission-primary-success:hover { background: #047857; }.commission-secondary { border: 1px solid #dbe3ef; background: #fff; color: #334155; }.commission-secondary:hover { background: #f8fafc; }
.commission-tabs { display: flex; gap: .25rem; width: fit-content; max-width: 100%; padding: .3rem; overflow-x: auto; border: 1px solid #e7edf5; border-radius: .85rem; background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.025); }.commission-tabs .comissao-area-tab { border-radius: .6rem; }
.commission-main-grid { display: grid; grid-template-columns: minmax(17rem,.85fr) minmax(0,2fr); gap: 1rem; align-items: start; }
.commission-form-card, .commission-list-card, .commission-config-card { border: 1px solid #e7edf5; border-radius: 1rem; background: #fff; box-shadow: 0 5px 20px rgba(15,23,42,.035); }
.commission-form-card { padding: 1.15rem; }.commission-list-card { padding: 1.1rem; min-width: 0; }.commission-config-card { max-width: 62rem; padding: 1.35rem; }
.commission-card-heading { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.15rem; }.commission-card-icon { display: grid; width: 2.35rem; height: 2.35rem; flex: 0 0 auto; place-items: center; border-radius: .75rem; background: #eff6ff; color: #2563eb; font-size: 1.15rem; }.commission-card-heading p, .commission-list-heading p { color: #2563eb; font-size: .63rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }.commission-card-heading h3, .commission-list-heading h3 { margin-top: .15rem; color: #0f172a; font-size: .98rem; font-weight: 900; }.commission-card-heading div > span { display: block; margin-top: .2rem; color: #64748b; font-size: .7rem; }
.commission-field { display: block; margin-bottom: .85rem; }.commission-field input, .commission-field select, .commission-config-grid select { width: 100%; min-height: 2.75rem; padding: .7rem .8rem; border: 1px solid #dbe3ef; border-radius: .7rem; background: #fff; color: #0f172a; font-size: .82rem; outline: none; }.commission-field small, .commission-config-grid small { display: block; margin-top: .35rem; color: #94a3b8; font-size: .67rem; line-height: 1.35; }.commission-money-input { display: flex; align-items: center; overflow: hidden; border: 1px solid #dbe3ef; border-radius: .7rem; }.commission-money-input:focus-within { border-color: #60a5fa; box-shadow: 0 0 0 3px #dbeafe; }.commission-money-input b { padding-left: .75rem; color: #64748b; font-size: .75rem; }.commission-money-input input { border: 0; box-shadow: none !important; }
.commission-inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }.commission-preview { margin: -.25rem 0 .85rem; padding: .6rem .7rem; border-radius: .6rem; background: #ecfdf5; color: #047857; font-size: .73rem; font-weight: 900; }.commission-submit { display: flex; align-items: center; justify-content: center; gap: .45rem; width: 100%; min-height: 2.8rem; border-radius: .72rem; background: #2563eb; color: #fff; font-size: .82rem; font-weight: 900; box-shadow: 0 8px 18px rgba(37,99,235,.18); }.commission-submit:hover { background: #1d4ed8; transform: translateY(-1px); }.commission-submit:disabled { cursor: wait; transform: none; }
.commission-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .15rem .15rem .9rem; border-bottom: 1px solid #edf2f7; }.commission-list-heading > span { color: #94a3b8; font-size: .68rem; font-weight: 800; }.commission-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: .9rem; align-items: center; padding: .95rem .2rem; border-bottom: 1px solid #edf2f7; }.commission-row:last-child { border-bottom: 0; }.commission-row-main { display: flex; align-items: center; gap: .7rem; min-width: 0; }.commission-row-icon { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: .65rem; background: #f1f5f9; color: #475569; }.commission-row-title { overflow: hidden; color: #0f172a; font-size: .82rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }.commission-row-meta { margin-top: .2rem; color: #64748b; font-size: .67rem; }.commission-row-context { display: flex; align-items: flex-start; gap: .25rem; margin-top: .3rem; color: #1e40af; font-size: .68rem; font-weight: 750; line-height: 1.35; }.commission-row-context i { margin-top: .05rem; flex: 0 0 auto; }.commission-row-detail { margin-top: .15rem; color: #94a3b8; font-size: .65rem; }.commission-row-value { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }.commission-row-value strong { color: #0f172a; font-size: .86rem; font-weight: 900; white-space: nowrap; }
.commission-actions { position: relative; }.commission-actions summary { display: grid; width: 2rem; height: 2rem; cursor: pointer; list-style: none; place-items: center; border-radius: .6rem; color: #64748b; }.commission-actions summary::-webkit-details-marker { display: none; }.commission-actions summary:hover { background: #f1f5f9; }.commission-actions > div { position: absolute; z-index: 20; top: calc(100% + .3rem); right: 0; width: 11.5rem; padding: .3rem; border: 1px solid #e2e8f0; border-radius: .7rem; background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.14); }.commission-actions button { display: flex; align-items: center; gap: .45rem; width: 100%; padding: .55rem .6rem; border-radius: .5rem; color: #334155; font-size: .7rem; font-weight: 800; text-align: left; }.commission-actions button:hover { background: #f8fafc; }.commission-actions button.is-danger { color: #dc2626; }.commission-empty { display: flex; min-height: 14rem; flex-direction: column; align-items: center; justify-content: center; color: #94a3b8; text-align: center; }.commission-empty i { font-size: 2.4rem; }.commission-empty strong { margin-top: .5rem; color: #475569; font-size: .85rem; }.commission-empty span { margin-top: .2rem; font-size: .7rem; }
.commission-rates { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.15rem; padding: .75rem; border-radius: .75rem; background: #f8fafc; }.commission-rates span { padding: .35rem .6rem; border-radius: .5rem; background: #fff; color: #475569; font-size: .72rem; }.commission-rates span b { color: #2563eb; }.commission-rates small { flex: 1 0 100%; color: #64748b; font-size: .68rem; }.commission-config-grid { display: grid; grid-template-columns: minmax(13rem,.65fr) minmax(0,1.35fr); gap: 1rem; }.commission-config-grid fieldset { min-width: 0; }.commission-checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }.commission-checkbox-grid label input { position: absolute; opacity: 0; pointer-events: none; }.commission-checkbox-grid label span { display: flex; align-items: center; gap: .45rem; padding: .7rem; cursor: pointer; border: 1px solid #e2e8f0; border-radius: .65rem; color: #475569; font-size: .72rem; font-weight: 800; transition: .15s ease; }.commission-checkbox-grid label input:checked + span { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }.commission-switch { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; padding: .8rem; border: 1px solid #e7edf5; border-radius: .75rem; cursor: pointer; }.commission-switch > input { position: absolute; opacity: 0; }.commission-switch > span { position: relative; width: 2.2rem; height: 1.25rem; flex: 0 0 auto; border-radius: 999px; background: #cbd5e1; transition: .2s; }.commission-switch > span::after { content: ''; position: absolute; top: .15rem; left: .15rem; width: .95rem; height: .95rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.25); transition: .2s; }.commission-switch > input:checked + span { background: #2563eb; }.commission-switch > input:checked + span::after { transform: translateX(.95rem); }.commission-switch b { display: block; color: #0f172a; font-size: .76rem; }.commission-switch small { display: block; margin-top: .15rem; color: #64748b; font-size: .67rem; }.commission-config-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #edf2f7; }.commission-config-footer p { color: #64748b; font-size: .68rem; }.commission-config-footer button { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-radius: .7rem; background: #2563eb; color: #fff; font-size: .75rem; font-weight: 900; }
.employee-config-modal { text-align: left; }.employee-config-intro { margin: -.4rem 0 .7rem; color: #64748b; font-size: .78rem; }.employee-config-modal label > span { display: block; margin: .55rem 0 -.3rem; color: #475569; font-size: .72rem; font-weight: 900; }.employee-config-modal label > span small { font-weight: 500; }.employee-config-modal label > small { display: block; margin-top: .25rem; color: #64748b; font-size: .65rem; }.employee-config-modal .swal2-input,.employee-config-modal .swal2-select { width: 100%; margin: .5rem 0 0; }.employee-config-modal .swal2-select { height: 2.75rem; padding: 0 .75rem; border: 1px solid #d9d9d9; border-radius: .3rem; background: #fff; color: #334155; }.employee-rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }.employee-rate-grid label > small { display: block; margin-top: .25rem; color: #94a3b8; font-size: .62rem; }.employee-rate-note { margin-top: .8rem; padding: .6rem; border-radius: .6rem; background: #eff6ff; color: #1d4ed8; font-size: .7rem; font-weight: 800; }.swal-field { display: block; text-align: left; }.swal-field > span { display: block; margin: .55rem 0 -.3rem; color: #475569; font-size: .72rem; font-weight: 900; }.swal-field .swal2-input { width: 100%; margin: .5rem 0 0; }
@media (max-width: 1100px) and (min-width: 768px) { .commission-header { align-items: stretch; flex-direction: column; }.commission-summary { grid-template-columns: 1fr 1fr; }.commission-payment-bar { align-items: stretch; flex-direction: column; }.commission-payment-actions { justify-content: flex-start; }.commission-main-grid { grid-template-columns: minmax(16rem,.8fr) minmax(0,1.2fr); } }
@media (max-width: 1100px) and (min-width: 768px) { .inicio-status-grid { grid-template-columns: 1fr 1fr; }.inicio-tools-grid { grid-template-columns: 1fr 1fr; } }
.nova-os-scroll {
    max-height: min(34rem, 58vh);
    overflow-y: auto;
    overscroll-behavior: contain;
}
#financas-conteudo {
    display: none !important;
}
#financas-conteudo.financeiro-liberado {
    display: block !important;
}
.fin-page {
    display: none !important;
}
.fin-page.fin-page-ativa {
    display: block !important;
}
#fin-page-metas.fin-page-ativa {
    display: grid !important;
}

/* Experiência mobile: fluxo vertical, áreas de toque confortáveis e modais em tela cheia. */
@media (max-width: 767px) {
    .catalog-admin-hero{padding:1.1rem}.catalog-admin-hero h1{font-size:1.45rem}.catalog-admin-hero-icon{display:none}.catalog-admin-grid{grid-template-columns:1fr}.catalog-link-actions{flex-direction:column}.catalog-preview-products{grid-template-columns:1fr 1fr}
    html, body { width: 100%; min-height: 100%; overflow-x: hidden; }
    body { height: 100dvh !important; min-height: 100dvh; }
    body > main { height: 100dvh !important; min-height: 0; overflow-y: auto !important; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)) !important; }
    body > main > div { padding: 1rem 0.75rem 1.5rem !important; max-width: 100%; }
    .app-credit { display: none; }
    main.pdv-mode #pdv-pecas { margin-top: 0; }
    .secao { width: 100%; min-width: 0; }
    .secao h1 { font-size: 1.5rem; line-height: 1.2; }
    .secao h2, .secao h3, .secao p, .secao span { overflow-wrap: anywhere; }
    .secao input, .secao select, .secao textarea,
    [id^="modal-"] input, [id^="modal-"] select, [id^="modal-"] textarea { min-width: 0; max-width: 100%; font-size: 16px !important; }
    .secao button, [id^="modal-"] button { min-height: 44px; touch-action: manipulation; }
    .secao button { max-width: 100%; }
    .secao [class*="min-w-"] { min-width: 0 !important; }
    .secao .flex { min-width: 0; }
    .secao li.flex { flex-wrap: wrap; align-items: flex-start; }
    .secao table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .secao .nova-os-scroll, .secao .fin-comissoes-scroll,
    .secao [class*="max-h-"][class*="overflow-y-auto"] { max-height: none !important; overflow-y: visible !important; overscroll-behavior: auto; }
    .nova-os-scroll { max-height: none; overflow-y: visible; }
    .fin-comissoes-scroll { max-height: none; overflow-y: visible; }
    #financas-conteudo > div:first-child, .comissao-area-tab { overflow-x: auto; white-space: nowrap; }
    #fin-comissao-resumo { grid-template-columns: 1fr 1fr !important; }
    #fin-comissao-resumo > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
    #clientes > div:first-child > div:last-child { flex-wrap: wrap; }
    #clientes > div:first-child > div:last-child > button { flex: 1 0 100%; justify-content: center; }
    .inicio-hero { align-items: stretch; flex-direction: column; gap: 1.25rem; padding: 1.35rem; border-radius: 1.15rem; }
    .inicio-hero-action { width: 100%; }
    .inicio-status-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .inicio-status-grid button { grid-template-columns: auto 1fr; padding: .75rem; }
    .inicio-status-grid button > i { display: none; }
    .inicio-status-icon { width: 2.15rem; height: 2.15rem; }
    .inicio-tools-grid { grid-template-columns: 1fr; gap: .7rem; }
    .inicio-tool-card { min-height: 0; flex-direction: row; align-items: center; gap: .8rem; padding: 1rem; }
    .inicio-tool-copy { margin-top: 0; padding-right: 1.2rem; }
    .inicio-tool-arrow { top: 50%; right: .8rem; transform: translateY(-50%); }
    .inicio-section-heading { margin-top: 1.5rem; }
    .config-hub-header { align-items: stretch; flex-direction: column; gap: .8rem; }
    .config-hub-header > button { width: 100%; }
    .config-hub-nav { justify-content: flex-start; margin-right: -.75rem; border-radius: .8rem 0 0 .8rem; }
    .config-hub-nav button { flex: 0 0 auto; }
    .config-category-grid { grid-template-columns: 1fr; gap: .65rem; }
    .config-category-card { min-height: 0; gap: .75rem; padding: .9rem; }
    .config-category-icon { width: 2.75rem; height: 2.75rem; }
    .config-overview-intro { align-items: flex-start; padding: 1rem; }
    .config-panel-card { padding: 1rem; }
    .config-panel-heading { align-items: flex-start; flex-wrap: wrap; }
    .config-panel-heading > div { flex: 1 0 calc(100% - 7rem); }
    .config-panel-footer { align-items: stretch; flex-direction: column; }
    .config-panel-footer button { width: 100%; }
    .config-plan-back { align-items: stretch; flex-direction: column; }
    .config-plan-back button { justify-content: flex-start; border-right: 0; border-bottom: 1px solid #e2e8f0; }
    .pdv-history-row { grid-template-columns: auto minmax(0,1fr); align-items: flex-start; gap: .7rem; padding: .85rem; }
    .pdv-history-row-actions { grid-column: 1 / -1; width: 100%; min-width: 0; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; padding-top: .7rem; border-top: 1px solid #e2e8f0; }
    .pdv-history-row-actions strong { margin-right: auto; }
    .pdv-history-row-actions small { width: 100%; order: 3; text-align: right; }
    .pdv-history-row-actions button { margin-top: 0; }
    .pdv-history-row-copy em { white-space: normal; }

    #mobile-bottom-nav { height: calc(4.5rem + env(safe-area-inset-bottom)); padding: .35rem .4rem max(.35rem, env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(15, 23, 42, .10); }
    #mobile-bottom-nav .mobile-aba { flex: 1 1 0; min-width: 0; min-height: 3.6rem; border-radius: .75rem; gap: .1rem; }
    #mobile-bottom-nav .mobile-aba span { font-size: .62rem; line-height: 1; font-weight: 800; }
    #mobile-bottom-nav .mobile-aba.text-blue-600 { background: #eff6ff; }

    #mobile-menu-sheet { align-items: flex-end; padding: 0; }
    #mobile-menu-sheet > div { width: 100%; border-radius: 1.5rem 1.5rem 0 0; padding-bottom: max(1rem, env(safe-area-inset-bottom)); animation: mobileSheetIn .18s ease-out; }

    body > [id^="modal-"]:not(#mobile-menu-sheet) { align-items: flex-start !important; justify-content: stretch !important; padding: 0 !important; height: 100dvh; overflow: hidden; }
    body > [id^="modal-"]:not(#mobile-menu-sheet) > div { width: 100% !important; max-width: none !important; height: 100dvh !important; max-height: 100dvh !important; margin: 0 !important; border-radius: 0 !important; overflow-y: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
    body > [id^="modal-"]:not(#mobile-menu-sheet) > div > div.sticky:first-child { padding: .85rem 1rem !important; border-radius: 0 !important; }
    body > [id^="modal-"]:not(#mobile-menu-sheet) > div > div:not(.sticky) { padding-left: 1rem; padding-right: 1rem; }
    body > [id^="modal-"]:not(#mobile-menu-sheet) [class*="max-h-"][class*="overflow-y-auto"] { max-height: none !important; overflow-y: visible !important; }
    #modal-os > div > div:last-child { position: sticky; bottom: 0; z-index: 15; display: grid; grid-template-columns: 1fr 1fr; padding: .75rem !important; padding-bottom: max(.75rem, env(safe-area-inset-bottom)) !important; box-shadow: 0 -8px 20px rgba(15, 23, 42, .10); }
    #modal-os > div > div:last-child button { width: 100%; margin: 0 !important; padding-left: .6rem; padding-right: .6rem; font-size: .75rem; }
    #modal-os > div > div:last-child button:last-child { grid-column: 1 / -1; }
    #pdv-pecas section.min-h-\[480px\] { min-height: 0 !important; }
    #painel-itens-peca .grid-cols-3 { grid-template-columns: 1fr !important; }
    #modal-cliente > div > div:first-child { flex-direction: column; align-items: stretch; }
    #modal-cliente > div > div:first-child > div:last-child { display: grid; grid-template-columns: 1fr 1fr auto; width: 100%; }
    #modal-cliente > div > div:first-child > div:last-child button { justify-content: center; font-size: .75rem; }
    #modal-cliente > div > div:first-child > div:last-child button:last-child { width: 44px; }
    #modal-etiqueta [class*="grid-cols-"], #modal-encerramento .pay-btn { min-width: 0; }
    .swal2-popup { width: calc(100% - 1.25rem) !important; max-width: 30rem; padding: 1.15rem !important; }
    .commission-header { align-items: stretch; flex-direction: column; gap: 1rem; }.commission-filters { grid-template-columns: 1fr; min-width: 0; }.commission-summary { grid-template-columns: 1fr 1fr; }.commission-metric { min-height: 7rem; padding: .85rem; }.commission-metric > strong { font-size: 1.05rem; }.commission-payment-bar { align-items: stretch; flex-direction: column; }.commission-payment-actions { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; }.commission-payment-actions label { grid-column: 1 / -1; }.commission-payment-actions label input, .commission-payment-actions button { width: 100%; }.commission-main-grid { grid-template-columns: 1fr; }.commission-list-card { padding: .85rem; }.commission-row { grid-template-columns: minmax(0,1fr) auto; }.commission-row-main { align-items: flex-start; }.commission-row-value { grid-column: 1; align-items: flex-start; margin-left: 2.7rem; }.commission-actions { grid-column: 2; grid-row: 1 / span 2; }.commission-config-grid { grid-template-columns: 1fr; }.commission-checkbox-grid { grid-template-columns: 1fr; }.commission-config-footer { align-items: stretch; flex-direction: column; }.commission-config-footer button { justify-content: center; }.employee-rate-grid { grid-template-columns: 1fr; }
}

#sidebar-btn-planos[hidden], #mobile-btn-planos[hidden] { display: none !important; }

/* Minha Conta */
.account-hero { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1.35rem; overflow: hidden; border-radius: 1.25rem; background: linear-gradient(135deg,#0f172a,#172554 58%,#1d4ed8); color: #fff; box-shadow: 0 16px 35px rgba(15,23,42,.14); }
.account-avatar { display: grid; width: 4rem; height: 4rem; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 1.15rem; background: rgba(255,255,255,.12); font-size: 1.55rem; font-weight: 900; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.account-hero-copy { min-width: 0; flex: 1; }.account-hero-copy > span { display: flex; align-items: center; gap: .35rem; color: #93c5fd; font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.account-hero-copy h1 { margin-top: .2rem; font-size: 1.8rem; font-weight: 900; letter-spacing: -.025em; }.account-hero-copy p { margin-top: .15rem; color: #dbeafe; font-size: .84rem; }
.account-plan-badge { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .4rem; padding: .6rem .85rem; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.1); color: #dbeafe; font-size: .72rem; font-weight: 900; }.account-plan-badge.is-pro { border-color: rgba(251,191,36,.38); background: rgba(245,158,11,.16); color: #fde68a; }
.account-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(20rem,.75fr); gap: 1rem; align-items: start; }
.account-card { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 1.15rem; background: #fff; box-shadow: 0 6px 20px rgba(15,23,42,.045); }
.account-card-heading { display: flex; align-items: center; gap: .8rem; padding: 1.15rem 1.25rem; border-bottom: 1px solid #e2e8f0; }.account-card-heading > span { display: grid; width: 2.8rem; height: 2.8rem; flex: 0 0 auto; place-items: center; border-radius: .85rem; font-size: 1.3rem; }.account-card-heading > span.is-blue { background: #eff6ff; color: #2563eb; }.account-card-heading > span.is-violet { background: #f5f3ff; color: #7c3aed; }.account-card-heading h2 { color: #0f172a; font-size: 1rem; font-weight: 900; }.account-card-heading p { margin-top: .1rem; color: #64748b; font-size: .75rem; }
.account-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.25rem; }.account-password-fields { display: grid; gap: .85rem; padding: 1.25rem 1.25rem .85rem; }
.account-field { display: block; min-width: 0; }.account-field > span { display: block; margin-bottom: .35rem; color: #334155; font-size: .75rem; font-weight: 900; }.account-field input { width: 100%; min-height: 3rem; padding: .7rem .8rem; border: 1px solid #cbd5e1; border-radius: .75rem; background: #fff; color: #0f172a; outline: none; transition: .15s ease; }.account-field input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.13); }
.account-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-top: 1px solid #e2e8f0; background: #f8fafc; }.account-card-footer p { display: flex; align-items: center; gap: .35rem; color: #64748b; font-size: .7rem; }.account-card-footer button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem; padding: .65rem 1rem; border-radius: .75rem; background: #2563eb; color: #fff; font-size: .78rem; font-weight: 900; }.account-card-footer button:hover { background: #1d4ed8; }.account-card-footer button:disabled { cursor: wait; opacity: .65; }
.account-security-note { display: flex; gap: .65rem; margin: 0 1.25rem 1rem; padding: .8rem; border: 1px solid #ddd6fe; border-radius: .8rem; background: #f5f3ff; color: #5b21b6; }.account-security-note > i { margin-top: .1rem; font-size: 1.2rem; }.account-security-note strong { font-size: .75rem; }.account-security-note p { margin-top: .1rem; color: #7c3aed; font-size: .68rem; }.account-card-footer.is-password button { background: #6d28d9; }.account-card-footer.is-password button:hover { background: #5b21b6; }

/* NaOrdem Mobile — experiência dedicada sem alterar o desktop. */
@media (max-width: 767px) {
    :root { --mobile-blue: #2563eb; --mobile-ink: #0f172a; --mobile-line: #e2e8f0; --mobile-surface: #fff; }
    html { background: #eef3f9; }
    body { background: linear-gradient(180deg,#f8fbff 0,#eef3f9 18rem,#f1f5f9 100%) !important; color: var(--mobile-ink); }
    body > main { padding-bottom: calc(6.4rem + env(safe-area-inset-bottom)) !important; scroll-padding-top: 4.8rem; }
    body > main > div { padding: .9rem .75rem 1.75rem !important; }

    #mobile-app-header { position: sticky; z-index: 45; top: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .7rem; min-height: calc(4.15rem + env(safe-area-inset-top)); padding: max(.6rem,env(safe-area-inset-top)) .85rem .6rem; border-bottom: 1px solid rgba(226,232,240,.9); background: rgba(255,255,255,.92); box-shadow: 0 8px 24px rgba(15,23,42,.06); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
    .mobile-brand-logo { display: block; width: 7.15rem; height: auto; flex: 0 0 auto; }
    .mobile-header-copy { min-width: 0; }.mobile-header-copy span{display:block;color:#2563eb;font-size:.58rem;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.mobile-header-copy strong{display:block;overflow:hidden;margin-top:.05rem;color:#0f172a;font-size:.98rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
    #mobile-app-header > button { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border: 1px solid #dbe3ef; border-radius: .8rem; background: #f8fafc; color: #334155; font-size: 1.25rem; }
    main.pdv-mode > div:first-of-type { display: none !important; }

    .secao { animation: mobilePageIn .2s ease-out; }
    .secao > div:first-child:not(.inicio-hero):not(.config-hub-header) { border-radius: 1rem; }
    .secao h1 { font-size: 1.35rem !important; font-weight: 900 !important; letter-spacing: -.02em; }
    .secao h2 { line-height: 1.25; }
    .secao p { line-height: 1.45; }
    .secao input:not([type="checkbox"]):not([type="radio"]), .secao select, .secao textarea,
    [id^="modal-"] input:not([type="checkbox"]):not([type="radio"]), [id^="modal-"] select, [id^="modal-"] textarea { min-height: 3rem; border-radius: .8rem !important; }
    .secao textarea, [id^="modal-"] textarea { min-height: 6.5rem; resize: vertical; }
    .secao label { line-height: 1.3; }
    .secao button, [id^="modal-"] button { border-radius: .8rem; -webkit-tap-highlight-color: transparent; }
    .secao button:active, [id^="modal-"] button:active, #mobile-bottom-nav button:active { transform: scale(.98); }
    .secao .bg-white { box-shadow: 0 5px 18px rgba(15,23,42,.045); }

    /* Navegação inferior como dock de aplicativo */
    #mobile-bottom-nav { right: .65rem; bottom: max(.55rem,env(safe-area-inset-bottom)); left: .65rem; height: 4.45rem; padding: .35rem; overflow: hidden; border: 1px solid rgba(203,213,225,.85); border-radius: 1.25rem; background: rgba(255,255,255,.94); box-shadow: 0 16px 38px rgba(15,23,42,.18); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
    body.mobile-overlay-active #mobile-bottom-nav { visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(calc(100% + 1.5rem)); }
    #mobile-bottom-nav .mobile-aba { min-height: 3.7rem; border-radius: .9rem; transition: .16s ease; }
    #mobile-bottom-nav .mobile-aba i { font-size: 1.25rem; }
    #mobile-bottom-nav .mobile-aba span { margin-top: .12rem; font-size: .58rem; letter-spacing: -.01em; }
    #mobile-bottom-nav .mobile-aba.text-blue-600 { background: linear-gradient(180deg,#eff6ff,#dbeafe); color: #1d4ed8; box-shadow: inset 0 0 0 1px #bfdbfe; }

    /* Início e visão geral */
    .inicio-hero { padding: 1.2rem; background: linear-gradient(145deg,#0f172a,#172554 65%,#1d4ed8); box-shadow: 0 14px 30px rgba(15,23,42,.18); }
    .inicio-hero::after { width: 12rem; height: 12rem; right: -5rem; top: -6rem; }
    .inicio-hero h1 { font-size: 1.55rem !important; }
    .inicio-hero p { font-size: .78rem; }
    .inicio-hero-action { min-height: 3.15rem; }
    .inicio-status-grid { margin-top: .75rem; }
    .inicio-status-grid button { min-height: 4.5rem; border-radius: .95rem; box-shadow: 0 4px 14px rgba(15,23,42,.04); }
    .inicio-status-grid small { white-space: normal; }
    .inicio-section-heading h2 { font-size: 1.05rem; }
    .inicio-tool-card { border-radius: 1rem; box-shadow: 0 5px 16px rgba(15,23,42,.045); }
    #dashboard > .grid { gap: .6rem; }
    #dashboard > .grid > div { min-height: 5.6rem; padding: .85rem; border-radius: .95rem; }
    #dashboard > .grid > div p:first-child { font-size: .68rem; }
    #dashboard > .grid > div p:last-child { font-size: 1.35rem; }
    #dashboard .lg\:grid-cols-2 { gap: .75rem; }

    /* Nova OS em etapas claras */
    #nova-os form { display: flex; flex-direction: column; gap: .8rem; }
    #nova-os form > .grid { gap: .8rem; }
    #nova-os form > .grid > div, #nova-os form > .bg-white { padding: 1rem; border-radius: 1rem; }
    #nova-os .nova-os-scroll { padding-right: 0; }
    #nova-os #os-lista-clientes > li, #nova-os #os-lista-itens-cliente > li { margin-bottom: .5rem; border: 1px solid #e2e8f0; border-radius: .85rem; background: #fff; }
    #nova-os #os-btn-novo-item { width: 100%; }
    #nova-os #os-cadastro-rapido { padding: .9rem; }
    #nova-os form > .bg-white > .grid { grid-template-columns: 1fr !important; gap: .8rem; }
    #nova-os form > .bg-white > button:last-child { position: sticky; z-index: 12; bottom: calc(5.55rem + env(safe-area-inset-bottom)); box-shadow: 0 12px 28px rgba(37,99,235,.25); }

    /* Clientes e equipe */
    #clientes > div:first-child { margin-bottom: .8rem; }
    #clientes > div:first-child > div:last-child { display: grid; grid-template-columns: minmax(0,1fr) auto; width: 100%; gap: .5rem; }
    #clientes > div:first-child > div:last-child > button { width: auto; padding-inline: .9rem; }
    #form-novo-cliente { padding: 1rem; border-radius: 1rem; }
    #form-novo-cliente .border.bg-slate-50 { padding: .85rem; }
    #form-novo-cliente .border.bg-slate-50 > .flex { align-items: flex-start; }
    #form-novo-cliente .border.bg-slate-50 > .flex button { flex: 0 0 auto; }
    #lista-clientes > li, #lista-equipe > li, #lista-os > li { padding: .9rem !important; }
    #equipe > .grid { gap: .8rem; }
    #equipe > .grid > div { padding: 1rem; border-radius: 1rem; }
    #equipe .lg\:col-span-2 { padding: 0; }
    #equipe .rounded-xl.bg-blue-50 .grid-cols-2 { gap: .55rem; }

    /* Estoque em catálogo touch-first */
    #estoque > div:first-child { margin-bottom: .8rem; }
    #estoque > div:first-child > div:last-child { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    #estoque > div:first-child > div:last-child button { min-height: 4.15rem; padding: .7rem; font-size: .72rem; line-height: 1.2; }
    #cadastro-estoque > div:first-child { align-items: flex-start; padding: 1rem; }
    #cadastro-estoque > div:first-child h2 { font-size: 1.25rem; }
    #cadastro-estoque > div:first-child button { padding: .6rem .7rem; font-size: .72rem; }
    #cadastro-estoque > div:last-child { padding: 1rem; }
    #cadastro-estoque .md\:grid-cols-6, #div-est-detalhes-peca { grid-template-columns: 1fr !important; }
    #div-est-foto > div { align-items: flex-start; flex-wrap: wrap; }
    #div-est-foto > div > label { flex: 1 0 calc(100% - 3.25rem); min-height: 3rem; }
    #estoque-visao-listas > div:first-child button { width: 100%; }
    #estoque-visao-listas > .grid { gap: .75rem; }
    #lista-estoque-servicos > li, #lista-estoque-pecas > li { padding: .9rem !important; }
    #lista-estoque-pecas > li > div:last-child, #lista-estoque-servicos > li > div:last-child { width: 100%; justify-content: flex-end; padding-top: .55rem; border-top: 1px solid #f1f5f9; }

    /* Bancada e filtros */
    #lista-os > li { border-bottom: .45rem solid #f1f5f9; }

    /* Financeiro e comissões */
    #financas > div:first-child { padding: 1rem; }
    #financas-conteudo > div:first-child { display: flex; margin: 0 -.25rem; padding: .25rem; border-radius: .85rem; background: #f1f5f9; }
    #financas-conteudo > div:first-child button { flex: 0 0 auto; }
    .fin-page { min-width: 0; }
    .commission-header { padding-top: 0; }
    .commission-header h2 { font-size: 1.3rem; }
    .commission-summary { gap: .55rem; }
    .commission-metric { min-height: 6.5rem; border-radius: .9rem; }
    .commission-payment-actions { grid-template-columns: 1fr; }
    .commission-payment-actions label, .commission-payment-actions button { grid-column: 1; }
    .commission-tabs { width: 100%; }
    .commission-tabs button { flex: 0 0 auto; }
    .commission-form-card, .commission-list-card, .commission-config-card { border-radius: 1rem; }
    .commission-row { padding: .85rem .1rem; }
    #fin-page-metas.fin-page-ativa { grid-template-columns: 1fr !important; }

    /* Configurações e impressão */
    .account-hero { align-items: flex-start; padding: 1rem; border-radius: 1rem; }.account-avatar { width: 3.2rem; height: 3.2rem; border-radius: .9rem; font-size: 1.2rem; }.account-hero-copy h1 { font-size: 1.35rem !important; }.account-hero-copy p { font-size: .72rem; }.account-plan-badge { position: absolute; top: .8rem; right: .8rem; padding: .42rem .55rem; font-size: .58rem; }.account-hero { position: relative; padding-top: 3.2rem; }.account-grid { grid-template-columns: 1fr; gap: .75rem; }.account-card { border-radius: 1rem; }.account-card-heading { padding: 1rem; }.account-form-grid { grid-template-columns: 1fr; gap: .8rem; padding: 1rem; }.account-password-fields { padding: 1rem .95rem .8rem; }.account-security-note { margin: 0 .95rem .85rem; }.account-card-footer { align-items: stretch; flex-direction: column; padding: .85rem .95rem calc(.85rem + env(safe-area-inset-bottom)); }.account-card-footer button { width: 100%; min-height: 3.1rem; }.account-card-footer.is-password span { display: none; }
    .config-hub-header { margin-bottom: .8rem; }
    .config-hub-header > button { display: none; }
    .config-hub-nav { position: sticky; z-index: 20; top: calc(4.15rem + env(safe-area-inset-top)); margin: 0 -.75rem .8rem; padding: .45rem .75rem; border-width: 1px 0; border-radius: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
    .config-hub-nav button { min-height: 2.65rem; }
    .config-category-card { grid-template-columns: auto minmax(0,1fr) auto; }
    #impressoes > div:first-child { margin-bottom: .8rem; }
    #impressoes > div:first-child > div:last-child { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    #impressoes > div:first-child > div:last-child button { padding: .65rem; font-size: .7rem; }
    #impressoes .space-y-5 > section { border-radius: 1rem; }
    #impressoes .space-y-5 > section > div { padding: 1rem; }
    #impressoes .print-model-card { padding: .8rem; border-radius: .9rem; }
    #impressoes .print-model-card [class*="max-h-64"] { max-height: 12rem; }

    /* PDV: catálogo, carrinho e subpáginas */
    #pdv-pecas { padding-bottom: calc(5.4rem + env(safe-area-inset-bottom)); border: 0; border-radius: 0 !important; background: #f1f5f9; box-shadow: none; }
    #pdv-pecas > div { border: 0; border-radius: 0; box-shadow: none; }
    #pdv-pecas > div > div:first-child { align-items: stretch; padding: 1rem; border-radius: 0 0 1.1rem 1.1rem; }
    #pdv-pecas > div > div:first-child h2 { font-size: 1.35rem; }
    #pdv-pecas > div > div:first-child > div:last-child { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    #pdv-pecas > div > div:first-child label { grid-column: 1 / -1; }
    #pdv-pecas > div > div:first-child button { min-height: 3rem; padding: .65rem; font-size: .72rem; }
    #pdv-pecas > div > .p-4 { padding: .75rem; }
    #pdv-pecas > div > .p-4 > .grid { gap: .75rem; }
    #pdv-pecas section.bg-white { border-radius: 1rem; }
    #venda-resultados { max-height: none; }
    #venda-resultados > li { padding-block: .2rem; }
    #venda-carrinho > li { padding: .85rem !important; }
    #pdv-checkout, #pdv-historico-vendas, #selecao-cliente-venda { height: 100dvh; padding: 0 !important; background: #fff; backdrop-filter: none; }
    #pdv-checkout > div, #pdv-historico-vendas > div, #selecao-cliente-venda > div { width: 100%; max-width: none; height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; }
    #pdv-checkout > div > div:first-child, #pdv-historico-vendas > div > div:first-child, #selecao-cliente-venda > div > div:first-child { padding: max(.8rem,env(safe-area-inset-top)) .85rem .8rem; }
    #pdv-checkout > div > div:first-child p, #pdv-historico-vendas > div > div:first-child p, #selecao-cliente-venda > div > div:first-child p { display: none; }
    #pdv-checkout > div > div:first-child button, #pdv-historico-vendas > div > div:first-child button, #selecao-cliente-venda > div > div:first-child button { padding: .6rem .7rem; font-size: .68rem; }
    #pdv-checkout > div > div:nth-child(2) { padding: .75rem .75rem calc(6rem + env(safe-area-inset-bottom)) !important; gap: .75rem; }
    #pdv-checkout #btn-finalizar-venda { position: sticky; bottom: max(.75rem,env(safe-area-inset-bottom)); z-index: 12; min-height: 3.35rem; box-shadow: 0 12px 28px rgba(37,99,235,.28); }
    .pdv-history-metric { padding: .8rem; }
    .pdv-history-metric > span { width: 2.3rem; height: 2.3rem; }
    .pdv-date-filter { grid-template-columns: 1fr; gap: .75rem; padding: .85rem; }
    .pdv-date-fields { grid-template-columns: 1fr 1fr; gap: .55rem; }
    .pdv-date-fields > i { display: none; }
    .pdv-date-fields input { min-width: 0; min-height: 3rem; padding: .55rem; font-size: .72rem !important; }
    .pdv-date-shortcuts { display: grid; grid-template-columns: repeat(2,1fr); gap: .45rem; }
    .pdv-date-shortcuts button { min-height: 2.65rem; }
    .pdv-date-shortcuts button.is-clear { grid-column: 1 / -1; margin-left: 0; }
    .pdv-history-day { position: sticky; z-index: 4; top: 4.1rem; padding: .6rem .85rem; }

    /* Todos os modais como telas nativas */
    body > [id^="modal-"]:not(#mobile-menu-sheet) { background: #fff !important; backdrop-filter: none; }
    body > [id^="modal-"]:not(#mobile-menu-sheet) > div { background: #f8fafc; }
    body > [id^="modal-"]:not(#mobile-menu-sheet) > div > div.sticky:first-child { min-height: calc(4rem + env(safe-area-inset-top)); padding-top: max(.8rem,env(safe-area-inset-top)) !important; background: rgba(255,255,255,.96) !important; backdrop-filter: blur(14px); }
    body > [id^="modal-"]:not(#mobile-menu-sheet) > div > div.sticky:first-child h2 { font-size: 1.05rem; }
    body > [id^="modal-"]:not(#mobile-menu-sheet) > div > div.sticky:first-child p { font-size: .7rem; }
    #modal-os > div > div:nth-child(2), #modal-cliente > div > div:nth-child(2) { padding: .8rem !important; gap: .75rem; }
    #modal-os .bg-slate-50, #modal-cliente .bg-slate-50 { border-radius: .9rem; }
    #modal-itens-os > div > div:not(.sticky), #modal-etiqueta > div > div:not(.sticky), #modal-encerramento > div > div:not(.sticky), #modal-busca-estoque > div > div:not(.sticky) { padding: .85rem !important; }
    #modal-etiqueta .grid, #modal-encerramento .grid { gap: .6rem; }
    #modal-encerramento .pay-btn { min-height: 3.5rem; }
    #mobile-menu-sheet > div { max-height: 88dvh; overflow-y: auto; border-radius: 1.4rem 1.4rem 0 0; }
    #mobile-menu-sheet .grid-cols-2 button { min-height: 5.4rem; border: 1px solid #e2e8f0; }

    /* Tabelas e alertas nunca cortam conteúdo */
    .secao table { border-collapse: separate; border-spacing: 0; }
    .secao table th, .secao table td { min-width: 7rem; padding: .7rem !important; white-space: normal; }
    .secao table th:first-child, .secao table td:first-child { position: sticky; z-index: 2; left: 0; background: #fff; }
    .swal2-container { align-items: flex-end !important; padding: .6rem !important; }
    .swal2-popup { margin: 0 0 max(.4rem,env(safe-area-inset-bottom)); border-radius: 1.25rem !important; }
    .swal2-actions { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; gap: .5rem; }
    .swal2-actions button { width: 100%; margin: 0 !important; }
}

@media (max-width: 389px) {
    .inicio-status-grid, .commission-summary { grid-template-columns: 1fr; }
    #equipe .rounded-xl.bg-blue-50 .grid-cols-2 { grid-template-columns: 1fr; }
    #estoque > div:first-child > div:last-child { grid-template-columns: 1fr; }
    #estoque > div:first-child > div:last-child button:last-child { grid-column: 1; }
    #pdv-pecas > div > div:first-child > div:last-child { grid-template-columns: 1fr; }
    #pdv-pecas > div > div:first-child label { grid-column: 1; }
    #mobile-bottom-nav .mobile-aba span { font-size: .52rem; }
}

@keyframes mobilePageIn { from { opacity: .35; transform: translateY(.4rem); } to { opacity: 1; transform: none; } }
@keyframes mobileSheetIn {
    from { transform: translateY(100%); opacity: .7; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobile app shell: navegação, instalação e leitura touch-first. */
@media (max-width: 767px) {
    html.naordem-standalone #mobile-app-header { padding-top: max(.75rem,env(safe-area-inset-top)); }
    #mobile-connection-status { position: sticky; z-index: 44; top: calc(4.15rem + env(safe-area-inset-top)); align-items: center; justify-content: center; gap: .45rem; min-height: 2.6rem; padding: .55rem .8rem; color: #92400e; background: #fef3c7; border-bottom: 1px solid #fde68a; font-size: .78rem; font-weight: 850; }
    #mobile-connection-status:not(.hidden) { display: flex; }
    #mobile-install-card { width: 100%; min-height: 4.65rem; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .75rem; margin: .75rem 0; padding: .75rem .85rem; border: 1px solid #a7c7ff; border-radius: 1rem; color: #163b75; background: linear-gradient(135deg,#eff6ff,#fff); text-align: left; box-shadow: 0 6px 18px rgba(37,99,235,.08); }
    #mobile-install-card:not(.hidden) { display: grid; }
    #mobile-install-card > span:first-child { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border-radius: .8rem; color: #fff; background: #1557ff; font-size: 1.3rem; }
    #mobile-install-card strong,#mobile-install-card small { display: block; }
    #mobile-install-card strong { color: #0f2e64; font-size: .84rem; font-weight: 950; }
    #mobile-install-card small { margin-top: .16rem; color: #58739a; font-size: .7rem; line-height: 1.35; }
    #mobile-install-card > i { color: #1557ff; font-size: 1.15rem; }

    #mobile-bottom-nav { overflow: visible; }
    #mobile-bottom-nav .mobile-aba:nth-child(2) { position: relative; color: #fff !important; background: linear-gradient(145deg,#2563eb,#124dd8); box-shadow: 0 8px 18px rgba(37,99,235,.3); }
    #mobile-bottom-nav .mobile-aba:nth-child(2).text-blue-600 { background: linear-gradient(145deg,#174fcf,#0e3eaa); box-shadow: 0 8px 20px rgba(21,78,207,.38),inset 0 0 0 1px rgba(255,255,255,.2); }
    #mobile-bottom-nav .mobile-aba:nth-child(2) i,#mobile-bottom-nav .mobile-aba:nth-child(2) span { color: #fff; }

    #mobile-menu-sheet > div { max-height: 94dvh; padding: .7rem .85rem max(1rem,env(safe-area-inset-bottom)); }
    .mobile-menu-account { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .7rem; margin-bottom: .65rem; padding: .7rem; border: 1px solid #dbe5f2; border-radius: .9rem; background: #f8fbff; }
    .mobile-menu-account > span { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: .75rem; color: #fff; background: linear-gradient(145deg,#1557ff,#0f3fa5); font-weight: 950; }
    .mobile-menu-account strong,.mobile-menu-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mobile-menu-account strong { color: #0f172a; font-size: .82rem; }
    .mobile-menu-account small { margin-top: .1rem; color: #64748b; font-size: .68rem; }
    .mobile-menu-account > button { width: 2.45rem; min-height: 2.45rem; color: #47617e; background: #fff; }
    .mobile-menu-install { width: 100%; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: .7rem; margin-bottom: .7rem; padding: .7rem .8rem; border: 1px solid #bfdbfe; border-radius: .9rem; color: #1d4ed8; background: #eff6ff; text-align: left; }
    .mobile-menu-install:not(.hidden) { display: grid; }
    .mobile-menu-install > i { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: .7rem; color: #fff; background: #2563eb; font-size: 1.05rem; }
    .mobile-menu-install strong,.mobile-menu-install small { display: block; }
    .mobile-menu-install strong { font-size: .78rem; }.mobile-menu-install small { margin-top: .1rem; color: #52709c; font-size: .66rem; }
    .mobile-menu-section-title { margin: .8rem .15rem .35rem; color: #64748b; font-size: .65rem; font-weight: 950; letter-spacing: .07em; text-transform: uppercase; }
    #mobile-menu-sheet .mobile-menu-grid { gap: .45rem; }
    #mobile-menu-sheet .mobile-menu-grid > button { display: grid; min-height: 4.25rem; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: .55rem; padding: .65rem .7rem; border-color: #e2e8f0; }
    #mobile-menu-sheet .mobile-menu-grid > button > i { font-size: 1.3rem; }
    #mobile-menu-sheet .mobile-menu-grid > button > p { margin: 0; font-size: .72rem; line-height: 1.2; }

    /* Hierarquia mais legível e ações previsíveis em todas as áreas. */
    .secao > div:first-child h1 { margin-bottom: .15rem; }
    .secao > div:first-child p { font-size: .78rem; }
    .secao input:not([type="checkbox"]):not([type="radio"]),.secao select,.secao textarea { width: 100%; }
    .secao label,.secao label > span { font-size: .78rem; }
    .secao .text-xs { font-size: .75rem; }
    .secao .text-sm { font-size: .875rem; }
    .secao [class*="overflow-x-auto"] { scrollbar-width: none; scroll-snap-type: x proximity; }
    .secao [class*="overflow-x-auto"]::-webkit-scrollbar { display: none; }
    .team-performance-tabs,.team-performance-overview-tabs,.commission-tabs,.config-hub-nav { scroll-snap-type: x mandatory; }
    .team-performance-tabs button,.team-performance-overview-tabs button,.commission-tabs button,.config-hub-nav button { scroll-snap-align: start; }
    .team-performance-table-wrap { margin-inline: -.75rem; padding-inline: .75rem; }
    .team-performance-table { min-width: 43rem; }
    .team-performance-table-wrap { overflow: visible; }
    .team-performance-table { display: block; min-width: 0; }
    .team-performance-table thead { display: none; }
    .team-performance-table tbody { display: grid; gap: .7rem; }
    .team-performance-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; overflow: hidden; border: 1px solid #dce4ef; border-radius: .95rem; background: #fff; box-shadow: 0 5px 18px rgba(15,23,42,.045); }
    .team-performance-table td { display: flex; min-width: 0 !important; align-items: center; justify-content: space-between; gap: .65rem; padding: .68rem .8rem !important; border-top: 1px solid #edf1f6; font-size: .75rem; text-align: right; }
    .team-performance-table td::before { content: attr(data-label); flex: 0 0 auto; color: #64748b; font-size: .65rem; font-weight: 850; text-align: left; }
    .team-performance-table td:first-child { position: static; grid-column: 1/-1; justify-content: flex-start; border-top: 0; background: #f8fafc; text-align: left; }
    .team-performance-table td:first-child::before { display: none; }
    .team-performance-table td:last-child { grid-column: 1/-1; }
    .team-performance-table-progress { width: min(7rem,55%); }
    .team-metrics-table tr { grid-template-columns: 1fr 1fr; }
    .team-performance-table .team-performance-empty { display: block; grid-column: 1/-1; text-align: center; }
    .team-performance-table .team-performance-empty::before { display: none; }
    .team-performance-hero,.support-hero { border-radius: 1rem; }
    .team-performance-hero p,.support-hero p { font-size: .76rem; }
    .team-performance-card > header { padding: .9rem; }
    .team-performance-goal-profile { padding: .75rem; }
    .team-performance-goal-profile-head { align-items: center; flex-direction: row; }
    .team-performance-goal-profile-head > button { width: auto; min-width: 7.8rem; }
    .team-performance-goal-profile-metrics { grid-template-columns: 1fr 1fr; }
    .team-performance-goal-profile-metrics span { font-size: .62rem; }.team-performance-goal-profile-metrics strong { font-size: .75rem; }
    .support-layout { display: block; min-height: 0; border-radius: 1rem; }
    .support-sidebar { min-height: 20rem; border-right: 0; }
    .support-conversation { min-height: 28rem; border-top: 1px solid #e2e8f0; }
}

@media (max-width: 389px) {
    #mobile-menu-sheet .mobile-menu-grid { grid-template-columns: 1fr; }
    #mobile-menu-sheet .mobile-menu-grid > button { min-height: 3.75rem; }
    .team-performance-goal-profile-head { align-items: stretch; flex-direction: column; }
    .team-performance-goal-profile-head > button { width: 100%; }
}

.plan-locked-menu { opacity: .72; }.plan-menu-lock { margin-left: auto; color: #7c8da8; font-size: .8rem; }.menu-subitem .plan-menu-lock { margin-left: auto; }
.plan-subfeature-locked { position: relative; }
.plan-subfeature-locked > :not(.plan-inline-lock) { opacity: .48; pointer-events: none; }
.plan-inline-lock {
    width: 100%; margin: 0 0 12px; padding: 10px 12px; display: flex; align-items: center;
    gap: 8px; border: 1px solid #f3c84b; border-radius: 10px; background: #fff8dc;
    color: #795600; font: inherit; font-size: .82rem; font-weight: 700; text-align: left; cursor: pointer;
}
.plan-inline-lock:hover { background: #fff2bd; }
.planos-clean-shell { overflow: hidden; border: 1px solid #dbe3ef; border-radius: 1.25rem; background: #f8fafc; box-shadow: 0 14px 35px rgba(15,23,42,.07); }
.planos-clean-hero { display: grid; grid-template-columns: 1fr minmax(15rem,19rem); gap: 1.5rem; padding: 1.6rem; color: #fff; background: linear-gradient(135deg,#071633,#123477 62%,#2857c6); }.planos-clean-hero > div:first-child > span { color: #93c5fd; font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }.planos-clean-hero h2 { margin-top: .55rem; font-size: 1.55rem; font-weight: 900; }.planos-clean-hero > div:first-child p { max-width: 40rem; margin-top: .45rem; color: #cbd5e1; font-size: .82rem; }
.planos-current { padding: 1rem; border: 1px solid rgba(255,255,255,.12); border-radius: .9rem; background: rgba(255,255,255,.08); }.planos-current small { color: #bfdbfe; font-size: .62rem; font-weight: 900; text-transform: uppercase; }.planos-current strong { display: block; margin-top: .2rem; font-size: 1.05rem; }.planos-current p { margin-top: .25rem; color: #cbd5e1; font-size: .68rem; }.planos-current button { margin-top: .6rem; color: #bfdbfe; font-size: .68rem; font-weight: 800; }
.planos-cycle-switch { width: fit-content; margin: 1.1rem auto 0; padding: .25rem; border: 1px solid #dbe3ef; border-radius: .75rem; background: #fff; }.planos-cycle-switch button { padding: .55rem .85rem; border-radius: .55rem; color: #64748b; font-size: .72rem; font-weight: 900; }.planos-cycle-switch button span { margin-left: .25rem; color: #059669; font-size: .58rem; text-transform: uppercase; }.planos-cycle-switch button.is-active { color: #fff; background: #0f172a; }
.painel-planos-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; padding: 1.1rem; }.painel-plan-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 1.15rem; border: 1px solid #dbe3ef; border-radius: 1rem; background: #fff; }.painel-plan-card.is-current::after { content: "ATUAL"; position: absolute; top: .75rem; right: .75rem; padding: .2rem .42rem; border-radius: 999px; color: #1d4ed8; background: #dbeafe; font-size: .5rem; font-weight: 900; }.painel-plan-card.is-full { border-color: #c4b5fd; box-shadow: 0 10px 25px rgba(109,40,217,.08); }
.painel-plan-head { display: flex; align-items: center; gap: .7rem; padding-right: 2.2rem; }.painel-plan-head > span { display: grid; width: 2.55rem; height: 2.55rem; flex: 0 0 auto; place-items: center; border-radius: .8rem; color: #2563eb; background: #eff6ff; font-size: 1.25rem; }.is-vendas .painel-plan-head > span { color: #059669; background: #ecfdf5; }.is-full .painel-plan-head > span { color: #7c3aed; background: #f5f3ff; }.painel-plan-head small { color: #64748b; font-size: .56rem; font-weight: 900; text-transform: uppercase; }.painel-plan-head h3 { margin-top: .1rem; color: #0f172a; font-size: 1rem; font-weight: 900; }.painel-plan-description { min-height: 2.5rem; margin-top: .75rem; color: #64748b; font-size: .68rem; line-height: 1.45; }.painel-plan-price { margin-top: .8rem; }.painel-plan-price strong { color: #0f172a; font-size: 1.55rem; font-weight: 950; }.painel-plan-price span { color: #64748b; font-size: .7rem; font-weight: 800; }.painel-plan-saving { min-height: 1rem; color: #059669; font-size: .62rem; font-weight: 800; }.painel-plan-card ul { display: grid; gap: .45rem; margin: .9rem 0 1rem; padding-top: .8rem; border-top: 1px solid #eef2f7; }.painel-plan-card li { display: flex; gap: .4rem; color: #475569; font-size: .65rem; }.painel-plan-card li i { color: #10b981; font-size: .9rem; }.painel-plan-card > button { min-height: 2.7rem; margin-top: auto; border-radius: .7rem; color: #fff; background: #2563eb; font-size: .7rem; font-weight: 900; }.is-vendas > button { background: #059669; }.is-full > button { background: #6d28d9; }.plano-pending { margin: 0 1.1rem 1rem; padding: .9rem; border: 1px solid #a7f3d0; border-radius: .8rem; align-items: center; justify-content: space-between; gap: 1rem; background: #ecfdf5; }.plano-pending:not(.hidden) { display: flex; }.plano-pending strong { color: #065f46; font-size: .75rem; }.plano-pending p { color: #64748b; font-size: .65rem; }.plano-pending a { color: #047857; font-size: .7rem; font-weight: 900; }.planos-security { padding: 0 1rem 1.1rem; color: #64748b; text-align: center; font-size: .62rem; }
@media (max-width: 900px) { .painel-planos-grid { grid-template-columns: 1fr; }.painel-plan-description { min-height: 0; } }
@media (max-width: 640px) { .planos-clean-hero { grid-template-columns: 1fr; padding: 1.1rem; }.planos-clean-hero h2 { font-size: 1.25rem; }.painel-planos-grid { padding: .75rem; }.planos-cycle-switch { margin-top: .75rem; }.plano-pending { margin-inline: .75rem; flex-direction: column; align-items: flex-start; } }

/* Configuração de impressões com prévias fiéis */
.pdv-warranty-card { padding: 1rem; border: 1px solid #dbe3ef; border-radius: 1rem; background: #fff; }
.pdv-warranty-heading { display: flex; align-items: center; gap: .7rem; }
.pdv-warranty-heading > span { display: grid; width: 2.4rem; height: 2.4rem; flex: 0 0 auto; place-items: center; border-radius: .75rem; color: #2563eb; background: #eff6ff; font-size: 1.25rem; }
.pdv-warranty-heading h4 { color: #0f172a; font-size: .85rem; font-weight: 950; }
.pdv-warranty-heading p { margin-top: .08rem; color: #64748b; font-size: .64rem; }
.pdv-warranty-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; margin-top: .85rem; }
.pdv-warranty-options button { display: flex; min-width: 0; align-items: center; gap: .55rem; padding: .7rem; border: 1px solid #dbe3ef; border-radius: .75rem; color: #475569; background: #fff; text-align: left; transition: border-color .16s,background .16s,box-shadow .16s; }
.pdv-warranty-options button:hover { border-color: #93c5fd; background: #f8fbff; }
.pdv-warranty-options button.is-active { border-color: #2563eb; color: #1d4ed8; background: #eff6ff; box-shadow: 0 0 0 3px #dbeafe; }
.pdv-warranty-options button > i { flex: 0 0 auto; font-size: 1.15rem; }
.pdv-warranty-options button span,.pdv-warranty-options button strong,.pdv-warranty-options button small { display: block; min-width: 0; }
.pdv-warranty-options button strong { color: #0f172a; font-size: .68rem; font-weight: 900; }
.pdv-warranty-options button small { margin-top: .08rem; color: #64748b; font-size: .55rem; line-height: 1.25; }
.pdv-warranty-days { margin-top: .75rem; padding: .75rem; border: 1px solid #bfdbfe; border-radius: .75rem; background: #f8fbff; }
.pdv-warranty-days label > span { display: block; margin-bottom: .3rem; color: #334155; font-size: .64rem; font-weight: 900; }
.pdv-warranty-days input { width: 100%; min-height: 2.7rem; padding: .6rem .75rem; border: 1px solid #93c5fd; border-radius: .65rem; outline: none; background: #fff; font-weight: 800; }
.pdv-warranty-days input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.pdv-warranty-days > div { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.pdv-warranty-days > div button { padding: .35rem .55rem; border: 1px solid #bfdbfe; border-radius: .5rem; color: #1d4ed8; background: #fff; font-size: .58rem; font-weight: 900; }
.pdv-warranty-summary { margin-top: .65rem; color: #64748b; font-size: .62rem; font-weight: 700; }
@media (max-width: 640px) { .pdv-warranty-options { grid-template-columns: 1fr; }.pdv-warranty-options button { min-height: 3.3rem; } }

.print-settings-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1rem; }
.print-settings-heading > div:first-child > span { color: #7c3aed; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.print-settings-heading h1 { margin-top: .2rem; color: #0f172a; font-size: clamp(1.6rem,3vw,2.05rem); font-weight: 950; letter-spacing: -.035em; }
.print-settings-heading p { max-width: 48rem; margin-top: .35rem; color: #64748b; font-size: .8rem; line-height: 1.55; }
.print-heading-actions { display: flex; flex: 0 0 auto; gap: .55rem; }
.print-heading-actions button, .print-final-action button { display: inline-flex; min-height: 2.9rem; align-items: center; justify-content: center; gap: .45rem; padding: .65rem 1rem; border-radius: .8rem; font-size: .72rem; font-weight: 900; }
.print-back-button { border: 1px solid #cbd5e1; color: #334155; background: #fff; }
.print-save-button, .print-final-action button { color: #fff; background: linear-gradient(135deg,#7c3aed,#6d28d9); box-shadow: 0 10px 22px rgba(109,40,217,.18); }
.print-config-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; margin-bottom: 1rem; padding: .75rem; border: 1px solid #ddd6fe; border-radius: 1rem; background: linear-gradient(135deg,#faf5ff,#f5f3ff); }
.print-config-summary > div { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .6rem .7rem; border-radius: .7rem; background: rgba(255,255,255,.76); }
.print-config-summary i { color: #7c3aed; font-size: 1.25rem; }
.print-config-summary span { min-width: 0; }
.print-config-summary small, .print-config-summary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.print-config-summary small { color: #7c3aed; font-size: .55rem; font-weight: 900; text-transform: uppercase; }
.print-config-summary strong { margin-top: .08rem; color: #1e1b4b; font-size: .72rem; }
.print-settings-flow { display: grid; gap: 1rem; }
.print-step-card { overflow: hidden; border: 1px solid #dbe3ef; border-radius: 1.15rem; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.print-step-header { display: flex; align-items: flex-start; gap: .9rem; padding: 1.15rem 1.25rem; background: linear-gradient(135deg,#fff,#f8fafc); }
.print-step-number { display: grid; width: 2.35rem; height: 2.35rem; flex: 0 0 auto; place-items: center; border-radius: .75rem; color: #fff; background: #2563eb; font-size: 1rem; font-weight: 950; box-shadow: 0 8px 18px rgba(37,99,235,.2); }
.print-step-number.is-emerald { background: #059669; box-shadow: 0 8px 18px rgba(5,150,105,.2); }
.print-step-number.is-amber { background: #d97706; box-shadow: 0 8px 18px rgba(217,119,6,.18); }
.print-step-header small { color: #2563eb; font-size: .6rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.print-step-header h2 { margin-top: .12rem; color: #0f172a; font-size: 1.12rem; font-weight: 950; }
.print-step-header p { max-width: 52rem; margin-top: .2rem; color: #64748b; font-size: .7rem; line-height: 1.5; }
.print-model-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; padding: 0 1.15rem 1.15rem; }
.print-substep { padding: 0 0 1.15rem; }
.print-substep + .print-substep { padding-top: 1rem; border-top: 1px solid #eef2f7; }
.print-substep > h3 { display: flex; align-items: center; gap: .45rem; margin: 0 1.15rem .75rem; color: #334155; font-size: .72rem; font-weight: 900; }
.print-substep > h3 span { display: grid; width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 50%; color: #047857; background: #d1fae5; font-size: .58rem; }
.print-format-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; padding: 0 1.15rem; }
.print-document-option { display: flex; min-width: 0; flex-direction: column; padding: .8rem; overflow: hidden; border: 2px solid #dbe3ef; border-radius: 1rem; color: #0f172a; background: #fff; text-align: left; transition: border-color .18s, box-shadow .18s, transform .18s; }
.print-document-option:hover { border-color: #a78bfa; transform: translateY(-1px); }
.print-document-option.is-selected { border-color: #7c3aed; box-shadow: 0 0 0 4px #ede9fe, 0 12px 25px rgba(109,40,217,.1); }
.print-option-heading { display: flex; min-height: 3rem; align-items: flex-start; justify-content: space-between; gap: .7rem; padding: .1rem .15rem .7rem; }
.print-option-heading > span:first-child { min-width: 0; }
.print-option-heading strong, .print-option-heading small { display: block; }
.print-option-heading strong { font-size: .82rem; font-weight: 950; }
.print-option-heading small { margin-top: .18rem; color: #64748b; font-size: .62rem; line-height: 1.35; }
.print-option-heading .print-check { width: 1.65rem; height: 1.65rem; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: #7c3aed; font-size: .78rem; }
.print-option-heading .print-check.flex { display: grid; }
.print-paper-stage { display: grid; min-height: 25rem; flex: 1; place-items: center; padding: 1rem; overflow: hidden; border: 1px solid #dbe3ef; border-radius: .75rem; background: radial-gradient(circle at top,#fff,#eef2f7); }
.print-format-grid .print-paper-stage { min-height: 22rem; padding: .8rem; }
.print-data-note { display: flex; align-items: center; justify-content: center; gap: .3rem; padding-top: .55rem; color: #94a3b8; font-size: .55rem; font-weight: 700; text-align: center; }
.print-real-paper { --document-accent:#0ea5e9; --document-soft:#f0f9ff; display: block; width: min(17.2rem,100%); aspect-ratio: 1/1.414; padding: 1rem; color: #111827; background: #fff; box-shadow: 0 12px 28px rgba(15,23,42,.15); font-family: Arial,sans-serif; font-size: .35rem; line-height: 1.35; }
.print-real-paper.modelo-moderno { --document-accent:#4f46e5; --document-soft:#eef2ff; box-shadow: inset 0 .38rem #4f46e5,0 12px 28px rgba(15,23,42,.15); }
.print-real-paper.modelo-classico { --document-accent:#1f2937; --document-soft:#f3f4f6; border: 1px solid #9ca3af; font-family: Georgia,serif; }
.print-real-paper.modelo-compacto { --document-accent:#0284c7; --document-soft:#f0f9ff; padding: .75rem; font-size: .31rem; }
.mini-os-header, .mini-receipt-header { display: grid; grid-template-columns: 1fr 1.15fr; gap: .65rem; align-items: start; }
.mini-os-header > div, .mini-receipt-header > div { display: flex; flex-direction: column; gap: .12rem; }
.mini-os-header > div:last-child, .mini-receipt-header > div:last-child { text-align: right; }
.mini-os-header b, .mini-receipt-header b { color: var(--document-accent); font-size: .62rem; font-weight: 950; }
.mini-os-header strong, .mini-receipt-header strong { color: var(--document-accent); font-size: .56rem; }
.mini-os-header em { color: var(--document-accent); font-style: normal; font-weight: 900; }
.mini-os-accent, .mini-receipt-accent { height: .14rem; margin: .65rem 0 .55rem; background: var(--document-accent); }
.mini-os-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .42rem; }
.mini-os-cards section { display: flex; min-height: 3.3rem; flex-direction: column; gap: .14rem; padding: .42rem; border: 1px solid #d7dee8; border-radius: .18rem; }
.mini-os-cards section > b { padding-bottom: .18rem; border-bottom: 1px solid #d7dee8; font-size: .34rem; }
.mini-os-report { display: flex; flex-direction: column; gap: .18rem; margin-top: .45rem; padding: .38rem .45rem; border-left: .16rem solid var(--document-accent); background: var(--document-soft); }
.mini-os-table { margin-top: .5rem; }
.mini-os-table > div { display: grid; grid-template-columns: 1fr auto; gap: .3rem; padding: .3rem .35rem; border-bottom: 1px solid #e2e8f0; }
.mini-os-table > div:first-child { color: #fff; background: #111827; }
.mini-os-total { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; padding-top: .4rem; border-top: .14rem solid var(--document-accent); }
.mini-os-total strong { color: var(--document-accent); font-size: .46rem; }
.mini-os-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; text-align: center; }
.mini-os-signatures > span { padding-top: .22rem; border-top: 1px solid #64748b; font-weight: 700; }
.mini-os-signatures small { color: #64748b; font-weight: 400; }
.modelo-classico .mini-os-header b, .modelo-classico .mini-os-header strong { letter-spacing: .04em; }
.modelo-classico .mini-os-cards section { border-color: #9ca3af; border-radius: 0; }
.modelo-compacto .mini-os-report { margin-top: .3rem; }
.modelo-compacto .mini-os-signatures { margin-top: 1.1rem; }
.receipt-real-preview.modelo-verde { --document-accent:#059669; --document-soft:#ecfdf5; }
.receipt-real-preview.modelo-azul { --document-accent:#2563eb; --document-soft:#eff6ff; }
.receipt-real-preview.modelo-elegante { --document-accent:#9f1239; --document-soft:#fff1f2; }
.receipt-real-preview.modelo-monocromatico { --document-accent:#0f172a; --document-soft:#f1f5f9; }
.mini-receipt-header em { align-self: flex-end; margin-top: .15rem; padding: .16rem .22rem; border: 1px solid #111827; font-size: .28rem; font-style: normal; font-weight: 900; }
.mini-receipt-notice { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.mini-receipt-notice > span { padding: .48rem; border: 1px solid color-mix(in srgb,var(--document-accent) 30%,white); border-radius: .2rem; background: var(--document-soft); }
.mini-receipt-notice small, .mini-receipt-notice b { display: block; }
.mini-receipt-notice small { color: var(--document-accent); font-size: .27rem; font-weight: 900; }
.mini-receipt-notice b { margin-top: .12rem; }
.mini-receipt-table { margin-top: .55rem; }
.mini-receipt-table > div { display: grid; grid-template-columns: 1fr 2rem 3.2rem; gap: .2rem; padding: .32rem; border-bottom: 1px solid #e2e8f0; }
.mini-receipt-table > div:first-child { color: #fff; background: #0f172a; }
.mini-receipt-table > div > :not(:first-child) { text-align: right; }
.mini-receipt-bottom { display: grid; grid-template-columns: 1fr 5.5rem; gap: .5rem; margin-top: .6rem; }
.mini-receipt-bottom > span { padding: .45rem; border-left: .16rem solid var(--document-accent); background: #f8fafc; }
.mini-receipt-bottom > span b, .mini-receipt-bottom > span small { display: block; }
.mini-receipt-bottom > span small { margin-top: .15rem; }
.mini-receipt-bottom > strong { padding: .45rem; border: 1px solid #cbd5e1; text-align: right; }
.mini-receipt-bottom > strong b { color: var(--document-accent); font-size: .52rem; }
.receipt-real-preview > p { margin-top: 1.5rem; color: #64748b; text-align: center; }
.thermal-real-preview { display: flex; width: 8.8rem; min-height: 18rem; flex-direction: column; align-items: stretch; padding: .75rem .55rem; color: #000; background: #fff; box-shadow: 0 10px 25px rgba(15,23,42,.16); font-family: "Courier New",monospace; font-size: .38rem; line-height: 1.35; text-align: center; }
.thermal-real-preview.is-58 { width: 6.3rem; padding-inline: .42rem; font-size: .34rem; }
.thermal-real-preview > b { font-size: .58rem; }
.thermal-real-preview > strong { margin-top: .3rem; font-size: .46rem; }
.thermal-real-preview > em { margin: .3rem 0; padding: .2rem; border: 1px solid #000; font-size: .3rem; font-style: normal; font-weight: 900; }
.thermal-real-preview > i { width: 100%; margin: .4rem 0; border-top: 1px dashed #000; }
.thermal-real-preview > div { display: flex; justify-content: space-between; gap: .25rem; padding: .3rem 0; border-bottom: 1px dashed #000; text-align: left; }
.thermal-real-preview > div b { flex: 0 0 auto; }
.thermal-real-preview > small { margin-top: auto; padding-top: .75rem; font-weight: 700; }
.print-final-action { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border: 1px solid #ddd6fe; border-radius: 1rem; background: linear-gradient(135deg,#faf5ff,#f5f3ff); }
.print-final-action strong, .print-final-action span { display: block; }
.print-final-action strong { color: #4c1d95; font-size: .8rem; }
.print-final-action span { margin-top: .15rem; color: #7c3aed; font-size: .68rem; }
@media (max-width: 900px) { .print-model-grid { grid-template-columns: 1fr; }.print-config-summary { grid-template-columns: 1fr; }.print-format-grid { grid-template-columns: 1fr; }.print-format-grid .print-paper-stage { min-height: 20rem; } }
@media (max-width: 640px) { .print-settings-heading { align-items: stretch; flex-direction: column; }.print-heading-actions { display: grid; grid-template-columns: 1fr 1fr; }.print-step-header { padding: .9rem; }.print-model-grid,.print-format-grid { padding-inline: .75rem; }.print-paper-stage { min-height: 22rem; padding: .65rem; }.print-real-paper { width: min(15.5rem,100%); }.print-final-action { align-items: stretch; flex-direction: column; }.print-final-action button { width: 100%; } }

.label-batch-model-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .65rem; }
.label-batch-model-grid button { position: relative; min-height: 8.5rem; padding: .85rem; border: 1px solid #e2e8f0; border-radius: .85rem; color: #475569; background: #fff; text-align: left; transition: .16s ease; }
.label-batch-model-grid button:hover { border-color: #a78bfa; background: #faf5ff; }
.label-batch-model-grid button.is-active { border-color: #7c3aed; background: #f5f3ff; box-shadow: 0 0 0 3px #ede9fe; }
.label-batch-model-grid button.is-active::after { content: '✓'; position: absolute; top: .6rem; right: .6rem; display: grid; width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 50%; color: #fff; background: #7c3aed; font-size: .7rem; font-weight: 950; }
.label-batch-model-grid button > i { display: block; color: #7c3aed; font-size: 1.65rem; }
.label-batch-model-grid button strong,.label-batch-model-grid button small { display: block; }
.label-batch-model-grid button strong { margin-top: .55rem; color: #0f172a; font-size: .76rem; font-weight: 950; }
.label-batch-model-grid button small { margin-top: .25rem; color: #64748b; font-size: .63rem; line-height: 1.35; }
.label-batch-stock-option { display: flex; align-items: center; gap: .8rem; padding: .85rem; cursor: pointer; border: 1px solid #ddd6fe; border-radius: .85rem; background: #faf5ff; }
.label-batch-stock-option > input { position: absolute; opacity: 0; pointer-events: none; }
.label-batch-stock-option > span { display: grid; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; place-items: center; border-radius: .7rem; color: #7c3aed; background: #ede9fe; font-size: 1.2rem; }
.label-batch-stock-option > input:checked + span { color: #fff; background: #7c3aed; box-shadow: 0 0 0 4px #ede9fe; }
.label-batch-stock-option strong,.label-batch-stock-option small { display: block; }
.label-batch-stock-option strong { color: #1e1b4b; font-size: .74rem; line-height: 1.35; }
.label-batch-stock-option small { margin-top: .2rem; color: #6d28d9; font-size: .63rem; line-height: 1.35; }
.label-batch-preview-stage { display: grid; min-height: 20rem; place-items: center; padding: 2rem; overflow: hidden; background-color: #e2e8f0; background-image: linear-gradient(45deg,#cbd5e1 25%,transparent 25%),linear-gradient(-45deg,#cbd5e1 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#cbd5e1 75%),linear-gradient(-45deg,transparent 75%,#cbd5e1 75%); background-position: 0 0,0 8px,8px -8px,-8px 0; background-size: 16px 16px; }
.label-batch-preview { display: flex; width: min(22rem,100%); aspect-ratio: 1.9/1; flex-direction: column; justify-content: center; overflow: hidden; padding: 1rem; border: 1px solid #94a3b8; border-radius: .25rem; color: #000; background: #fff; box-shadow: 0 18px 38px rgba(15,23,42,.22); font-family: Arial,sans-serif; }
.label-batch-preview.is-compact { width: min(19rem,100%); aspect-ratio: 1.68/1; }
.label-batch-preview.is-economic { width: min(17rem,100%); aspect-ratio: 1.484/1; padding: .8rem; }
.label-batch-preview .lb-brand { display: flex; align-items: center; gap: .55rem; min-height: 2.2rem; }
.label-batch-preview .lb-brand img { width: 2.1rem; height: 2.1rem; object-fit: contain; }
.label-batch-preview .lb-brand span { overflow: hidden; font-size: .7rem; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.label-batch-preview .lb-name { overflow: hidden; margin-top: .3rem; font-size: .88rem; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.label-batch-preview .lb-price { color: #5b21b6; font-size: 1.25rem; font-weight: 950; }
.label-batch-preview .lb-barcode { flex: 1; min-height: 3rem; margin-top: .35rem; }
.label-batch-preview .lb-barcode svg { display: block; width: 100%; height: 100%; }
.label-batch-preview .lb-codes { display: flex; justify-content: space-between; gap: .5rem; margin-top: .25rem; overflow: hidden; font-size: .62rem; font-weight: 900; white-space: nowrap; }
.label-batch-preview.is-code-only .lb-barcode { min-height: 6rem; margin-top: 0; }
.label-batch-preview.is-code-only .lb-codes { justify-content: center; font-size: .75rem; }
.label-batch-preview.is-price .lb-headline { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; }
.label-batch-preview.is-price .lb-name { flex: 1; white-space: normal; }
.filtro-os { display: inline-flex; align-items: center; gap: .45rem; }
.filtro-os-contador { display: inline-flex; min-width: 1.35rem; height: 1.35rem; align-items: center; justify-content: center; padding: 0 .35rem; border-radius: 9999px; color: #0f172a; background: rgba(255,255,255,.9); box-shadow: 0 1px 2px rgba(15,23,42,.16); font-size: .68rem; font-weight: 900; line-height: 1; }
@media (max-width: 1100px) { .label-batch-model-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 640px) { .label-batch-model-grid { grid-template-columns: 1fr 1fr; }.label-batch-preview-stage { min-height: 15rem; padding: 1rem; } }

@media print {
    body * { visibility: hidden; }
    #area-impressao, #area-impressao * { visibility: visible; }
    #area-impressao {
        position: absolute;
        left: 0;
        top: 0;
        display: block !important;
        width: 100%;
        padding: 0;
        margin: 0;
        background: white;
        color: black;
        font-family: Arial, sans-serif;
    }
    nav, aside, button, .secao, #modal-os, #modal-cliente { display: none !important; }
}

/* Suporte interno */
.menu-group-alert.is-support{color:#713f12;background:#facc15;box-shadow:0 0 0 3px rgba(250,204,21,.2)}
.support-nav-alert,.support-mobile-alert{color:#713f12!important;background:#facc15!important;box-shadow:0 0 0 3px rgba(250,204,21,.2)!important}
.support-nav-alert.hidden,.support-mobile-alert.hidden{display:none!important}
.support-unread-count{position:absolute;right:.5rem;bottom:.5rem;display:inline-flex;min-width:1.3rem;height:1.3rem;align-items:center;justify-content:center;padding:0 .3rem;border:2px solid #fff;border-radius:999px;color:#713f12;background:#facc15;box-shadow:0 0 0 3px rgba(250,204,21,.18);font-size:.58rem;font-style:normal;font-weight:950;line-height:1;animation:menuGroupAlertPulse 2s ease-in-out infinite}
.support-layout{position:relative}
.support-nav-alert,.support-mobile-alert{display:inline-grid;min-width:1.35rem;height:1.35rem;place-items:center;padding:0 .35rem;border-radius:999px;color:#fff;background:#ef4444;font-size:.65rem;font-weight:950;line-height:1}.support-mobile-alert{position:absolute;top:.65rem;right:.65rem}
.support-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:2rem;overflow:hidden;margin-bottom:1rem;padding:1.65rem 1.8rem;border-radius:1.35rem;color:#fff;background:linear-gradient(125deg,#061a44 0%,#12397a 62%,#1557ff 100%);box-shadow:0 18px 42px rgba(6,26,68,.18)}.support-hero:after{content:"";position:absolute;right:-5rem;top:-9rem;width:20rem;height:20rem;border:1px solid rgba(255,255,255,.12);border-radius:50%;box-shadow:0 0 0 3.5rem rgba(255,255,255,.035)}.support-hero-copy{position:relative;z-index:1;max-width:42rem}.support-hero-copy>span{display:inline-flex;align-items:center;gap:.4rem;color:#9ec5ff;font-size:.7rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.support-hero-copy h1{margin:.35rem 0 0;font-size:1.9rem;font-weight:950;letter-spacing:-.03em}.support-hero-copy p{max-width:37rem;margin:.45rem 0 0;color:#d8e5ff;font-size:.82rem;line-height:1.55}.support-human-card{position:relative;z-index:1;display:flex;min-width:17rem;align-items:center;gap:.8rem;padding:.9rem 1rem;border:1px solid rgba(255,255,255,.16);border-radius:1rem;background:rgba(255,255,255,.1);backdrop-filter:blur(10px)}.support-agent-avatar{display:grid;width:2.8rem;height:2.8rem;flex:0 0 auto;place-items:center;border-radius:.85rem;color:#fff;background:linear-gradient(135deg,#38bdf8,#2563eb);font-size:1.35rem;box-shadow:0 7px 18px rgba(3,105,161,.28)}.support-human-card small,.support-human-card strong,.support-human-card p{display:block}.support-human-card small{color:#a8c8ff;font-size:.58rem;font-weight:900;text-transform:uppercase}.support-human-card strong{margin-top:.12rem;font-size:.8rem}.support-human-card p{display:flex;align-items:center;gap:.35rem;margin:.3rem 0 0;color:#d8e5ff;font-size:.58rem}.support-human-card p i,.support-chat-header p i{display:inline-block;width:.42rem;height:.42rem;border-radius:50%;background:#34d399;box-shadow:0 0 0 .2rem rgba(52,211,153,.15)}
.support-layout{display:grid;grid-template-columns:20.5rem minmax(0,1fr);min-height:36rem;overflow:hidden;border:1px solid #dbe4f0;border-radius:1.25rem;background:#fff;box-shadow:0 10px 32px rgba(15,23,42,.06)}.support-sidebar{display:flex;min-width:0;flex-direction:column;padding:1rem;border-right:1px solid #e2e8f0;background:#f8fafc}.support-new-button{display:flex;width:100%;align-items:center;justify-content:center;gap:.5rem;padding:.78rem 1rem;border-radius:.8rem;color:#fff;background:#1557ff;font-size:.75rem;font-weight:950;box-shadow:0 8px 20px rgba(21,87,255,.2)}.support-list-heading{display:flex;align-items:center;justify-content:space-between;padding:1.15rem .25rem .65rem}.support-list-heading strong,.support-list-heading small{display:block}.support-list-heading strong{color:#0f172a;font-size:.75rem}.support-list-heading small{margin-top:.15rem;color:#94a3b8;font-size:.6rem}.support-list-heading button{display:grid;width:2rem;height:2rem;place-items:center;border-radius:.6rem;color:#64748b;background:#fff}.support-ticket-list{display:grid;gap:.5rem;overflow-y:auto}.support-ticket{position:relative;display:flex;width:100%;align-items:flex-start;gap:.65rem;padding:.75rem;border:1px solid transparent;border-radius:.85rem;color:#334155;background:#fff;text-align:left;transition:.15s}.support-ticket:hover{border-color:#c7d7f1}.support-ticket.is-active{border-color:#93b4ff;background:#eef4ff;box-shadow:0 0 0 2px #dfeaff}.support-ticket-icon{display:grid;width:2.15rem;height:2.15rem;flex:0 0 auto;place-items:center;border-radius:.65rem;color:#2563eb;background:#eaf2ff;font-size:1rem}.support-ticket-copy{min-width:0;flex:1}.support-ticket-copy>span{display:flex;align-items:center;justify-content:space-between;gap:.4rem}.support-ticket-copy small,.support-ticket-copy time{color:#94a3b8;font-size:.52rem;font-style:normal}.support-ticket-copy strong,.support-ticket-copy em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.support-ticket-copy strong{margin-top:.25rem;color:#0f172a;font-size:.7rem}.support-ticket-copy em{margin-top:.18rem;color:#64748b;font-size:.58rem;font-style:normal}.support-ticket-copy .support-status{margin-top:.45rem}.support-unread-dot{position:absolute;right:.55rem;bottom:.55rem;width:.48rem;height:.48rem;border-radius:50%;background:#ef4444;box-shadow:0 0 0 .2rem #fee2e2}.support-list-empty{display:grid;place-items:center;padding:2rem 1rem;color:#94a3b8;text-align:center}.support-list-empty>i{font-size:1.8rem}.support-list-empty strong{margin-top:.55rem;color:#475569;font-size:.7rem}.support-list-empty span{margin-top:.25rem;font-size:.6rem;line-height:1.45}
.support-conversation{position:relative;display:flex;min-width:0;min-height:36rem;flex-direction:column;background:#fff}.support-empty{display:flex;max-width:28rem;margin:auto;align-items:center;flex-direction:column;padding:2rem;text-align:center}.support-empty>span{display:grid;width:4.5rem;height:4.5rem;place-items:center;border-radius:1.35rem;color:#2563eb;background:linear-gradient(145deg,#eaf2ff,#dbeafe);font-size:2.2rem}.support-empty h2{margin:1rem 0 .3rem;color:#0f172a;font-size:1.15rem;font-weight:950}.support-empty p{margin:0;color:#64748b;font-size:.72rem;line-height:1.55}.support-empty button{display:flex;align-items:center;gap:.45rem;margin-top:1rem;padding:.7rem 1rem;border-radius:.75rem;color:#fff;background:#1557ff;font-size:.7rem;font-weight:950}.support-new-panel{height:100%}.support-new-panel>header{display:flex;align-items:flex-start;gap:.8rem;padding:1.35rem;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#f8fbff,#eef4ff)}.support-new-panel>header button{display:grid;width:2.25rem;height:2.25rem;flex:0 0 auto;place-items:center;border-radius:.65rem;color:#334155;background:#fff;box-shadow:0 3px 10px rgba(15,23,42,.07)}.support-new-panel>header span{color:#2563eb;font-size:.6rem;font-weight:950;text-transform:uppercase}.support-new-panel>header h2{margin:.18rem 0 0;color:#0f172a;font-size:1.15rem;font-weight:950}.support-new-panel>header p{margin:.3rem 0 0;color:#64748b;font-size:.65rem}.support-new-form{padding:1.4rem}.support-form-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:.75rem}.support-new-form label>span{display:block;margin-bottom:.35rem;color:#475569;font-size:.62rem;font-weight:900}.support-new-form input,.support-new-form select,.support-new-form textarea,.support-reply-form textarea{width:100%;border:1px solid #cbd5e1;border-radius:.75rem;padding:.75rem;color:#0f172a;background:#fff;outline:0;font-size:.7rem}.support-new-form input:focus,.support-new-form select:focus,.support-new-form textarea:focus,.support-reply-form textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #dbeafe}.support-message-field{display:block;margin-top:1rem}.support-new-form textarea{resize:vertical;line-height:1.55}.support-message-field small{display:block;margin-top:.35rem;color:#94a3b8;font-size:.58rem}.support-submit{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:1rem;padding:.8rem 1.15rem;border-radius:.75rem;color:#fff;background:#1557ff;font-size:.72rem;font-weight:950}.support-submit:disabled{opacity:.65}
.support-chat{display:flex;min-height:36rem;flex:1;flex-direction:column}.support-chat-header{display:flex;min-height:5rem;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border-bottom:1px solid #e2e8f0;background:#fff}.support-chat-header>div:first-child{display:flex;min-width:0;align-items:center;gap:.7rem}.support-chat-back{display:none;width:2rem;height:2rem;place-items:center;border-radius:.6rem;color:#475569;background:#f1f5f9}.support-chat-header small{display:block;color:#2563eb;font-size:.52rem;font-weight:900;text-transform:uppercase}.support-chat-header h2{overflow:hidden;max-width:28rem;margin:.12rem 0 0;color:#0f172a;font-size:.85rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.support-chat-header p{display:flex;align-items:center;gap:.35rem;margin:.18rem 0 0;color:#64748b;font-size:.55rem}.support-chat-actions{display:flex;align-items:center;gap:.55rem}.support-status{display:inline-flex;width:max-content;align-items:center;padding:.3rem .5rem;border-radius:999px;font-size:.52rem;font-weight:950;font-style:normal}.support-status.is-amber{color:#a16207;background:#fef3c7}.support-status.is-blue{color:#1d4ed8;background:#dbeafe}.support-status.is-green{color:#047857;background:#d1fae5}.support-chat-actions button{display:flex;align-items:center;gap:.35rem;padding:.5rem .65rem;border:1px solid #dbe4f0;border-radius:.65rem;color:#475569;background:#fff;font-size:.58rem;font-weight:900}.support-messages{display:flex;min-height:22rem;flex:1;flex-direction:column;gap:.85rem;overflow-y:auto;padding:1.2rem;background:linear-gradient(180deg,#f8fafc,#f1f5f9)}.support-message{display:flex;max-width:82%;align-items:flex-end;gap:.5rem}.support-message.is-client{align-self:flex-end;flex-direction:row-reverse}.support-message-avatar{display:grid;width:1.8rem;height:1.8rem;flex:0 0 auto;place-items:center;border-radius:.55rem;color:#2563eb;background:#dbeafe;font-size:.85rem}.support-message.is-client .support-message-avatar{color:#475569;background:#e2e8f0}.support-message>div:last-child{padding:.65rem .75rem;border:1px solid #dbe4f0;border-radius:.8rem .8rem .8rem .2rem;background:#fff;box-shadow:0 3px 10px rgba(15,23,42,.04)}.support-message.is-client>div:last-child{color:#fff;border-color:#1557ff;border-radius:.8rem .8rem .2rem .8rem;background:#1557ff}.support-message header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.support-message header strong{font-size:.58rem}.support-message header time{color:#94a3b8;font-size:.48rem}.support-message.is-client header time{color:#bfdbfe}.support-message p{margin:.35rem 0 0;font-size:.68rem;line-height:1.5;word-break:break-word}.support-message small{display:flex;align-items:center;gap:.25rem;margin-top:.35rem;color:#2563eb;font-size:.48rem;font-weight:850}.support-reply-form{position:relative;display:flex;align-items:center;gap:.65rem;padding:.8rem 1rem 1.35rem;border-top:1px solid #e2e8f0;background:#fff}.support-reply-form textarea{min-height:2.7rem;max-height:8rem;resize:none}.support-reply-form>button{display:grid;width:2.7rem;height:2.7rem;flex:0 0 auto;place-items:center;border-radius:.75rem;color:#fff;background:#1557ff;font-size:1.1rem}.support-reply-form>small{position:absolute;left:1.1rem;bottom:.25rem;color:#94a3b8;font-size:.48rem}.support-reply-form.is-resolved>button{opacity:.4;pointer-events:none}
@media(max-width:900px){.support-layout{grid-template-columns:17rem minmax(0,1fr)}.support-form-grid{grid-template-columns:1fr}.support-human-card{display:none}}
@media(max-width:820px){.support-hero{padding:1.25rem}.support-hero-copy h1{font-size:1.5rem}.support-layout{display:block;min-height:35rem}.support-sidebar{min-height:35rem;border-right:0}.support-conversation{position:absolute;inset:0;z-index:3;min-height:35rem}.support-conversation:has(.support-empty:not(.hidden)){display:none}.support-chat-back{display:grid}.support-chat-actions .support-status{display:none}.support-chat{min-height:35rem}.support-message{max-width:92%}.support-new-form{padding:1rem}}

.inicio-support-shortcut { position:fixed;right:1.5rem;bottom:1.5rem;z-index:35;display:none;align-items:center;justify-content:center;gap:.6rem;min-height:3.25rem;padding:.8rem 1.1rem;border:1px solid #ffffff50;border-radius:999px;background:#1557ff;color:#fff;font-size:.85rem;font-weight:800;box-shadow:0 8px 24px #1557ff40;transition:background .15s,box-shadow .15s }
body:has(#inicio:not(.hidden)) .inicio-support-shortcut { display:inline-flex }
.inicio-support-shortcut:hover { background:#1046ce;box-shadow:0 10px 28px #1557ff55 }
.inicio-support-shortcut:focus-visible { outline:3px solid #93c5fd;outline-offset:4px }
.inicio-support-shortcut svg { flex-shrink:0 }
@media(max-width:767px) {
    .inicio-support-shortcut { right:1rem;bottom:calc(5.25rem + env(safe-area-inset-bottom));min-height:3rem;padding:.7rem 1rem }
}

.aff-update-dialog { width:min(34rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem);margin:auto;padding:0;border:1px solid #dce4ef;border-radius:1.3rem;background:#fff;color:#122849;box-shadow:0 24px 90px #061a4440;overflow-y:auto }
.aff-update-dialog::backdrop { background:#061a4480;backdrop-filter:blur(4px) }
.aff-update-dialog form { padding:1.6rem }
.aff-update-dialog header { display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem }
.aff-update-icon { display:grid;place-items:center;width:3rem;height:3rem;border-radius:1rem;background:#eaf2ff;color:#2563eb;font-size:1.6rem }
.aff-update-dialog header button { width:2.75rem;height:2.75rem;border-radius:.75rem;background:#f1f5f9;color:#475569;font-size:1.5rem }
.aff-update-dialog h2 { margin:.5rem 0;font-size:1.4rem;line-height:1.3;font-weight:900;letter-spacing:-.025em }
.aff-update-dialog p { font-size:.8rem;line-height:1.7;color:#64748b }
.aff-update-dialog ul { display:grid;gap:1rem;margin:1.4rem 0;list-style:none;padding:0 }
.aff-update-dialog li { display:flex;align-items:flex-start;gap:.8rem }
.aff-update-dialog li>i { flex-shrink:0;font-size:1.3rem;color:#2563eb }
.aff-update-dialog li b { display:block;margin-bottom:.2rem;font-size:.8rem }
.aff-update-dialog li span>span { display:block;font-size:.75rem;line-height:1.6;color:#64748b }
.aff-update-location { padding:.8rem;border-radius:.75rem;background:#eff6ff }
.aff-update-choice { display:flex;align-items:center;gap:.65rem;margin:1.3rem 0;font-size:.8rem;cursor:pointer;min-height:2.75rem }
.aff-update-choice input { width:1.15rem;height:1.15rem;accent-color:#2563eb }
.aff-update-confirm { width:100%;min-height:3rem }
.aff-update-dialog :is(button,input):focus-visible { outline:3px solid #93c5fd;outline-offset:3px }
@media screen {
    html[data-tema="escuro"] .aff-update-dialog { background:#102238;border-color:#29415e;color:#e2e8f0 }
    html[data-tema="escuro"] .aff-update-dialog p,html[data-tema="escuro"] .aff-update-dialog li span>span { color:#b9cbe0 }
    html[data-tema="escuro"] .aff-update-location,html[data-tema="escuro"] .aff-update-dialog header button { background:#15345b;color:#dbeafe }
}
@media(max-width:480px) { .aff-update-dialog form { padding:1.15rem }.aff-update-dialog h2 { font-size:1.2rem } }

/* Afiliações. Grades independentes das tabelas gerais de desempenho. */
.aff-workspace { display:grid;gap:1rem;min-width:0 }
.aff-toolbar { display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:.5rem .2rem }
.aff-eyebrow { display:block;font-size:.62rem;font-weight:900;letter-spacing:.09em;color:#2563eb }
.aff-toolbar h2 { margin:.35rem 0;font-size:1.4rem;font-weight:900;letter-spacing:-.035em;color:#122849 }
.aff-toolbar p,.aff-card header p { margin-top:.3rem;font-size:.75rem;color:#64748b;line-height:1.6 }
.aff-manager { flex:0 1 18rem;min-width:0 }
.aff-manager>span,.aff-detail-filter>span,.aff-settings-top>label>span { display:block;margin-bottom:.4rem;font-size:.68rem;font-weight:800;color:#475569 }
.aff-manager select,.aff-detail-filter select,.aff-settings input[type=number] { width:100%;min-height:2.9rem;border:1px solid #d8e2ef;border-radius:.8rem;padding:.65rem .85rem;background:#fff;color:#122849;font:inherit;font-size:.8rem }
.aff-button { display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:2.8rem;padding:.65rem 1rem;border-radius:.8rem;font-size:.75rem;font-weight:800 }
.aff-button-light { background:#fff;color:#174483;box-shadow:0 4px 16px #061a4410 }
.aff-overview-actions { display:flex;flex-wrap:wrap;gap:.5rem;flex-shrink:0 }
.aff-button-outline { border:1px solid #ffffff55;background:#ffffff10;color:#fff }
.aff-button-primary { background:#2563eb;color:#fff }
.aff-overview { padding:1.6rem 1.8rem;border:1px solid #164b83;border-radius:1.25rem;background:radial-gradient(ellipse at 95% 0%,#116c7e 0,transparent 60%),linear-gradient(120deg,#071c42,#123d76);color:#fff;box-shadow:0 12px 30px #0f2e6415 }
.aff-overview-top { display:flex;justify-content:space-between;align-items:center;gap:1rem }
.aff-overview .aff-eyebrow { color:#89e7d5 }
.aff-overview h3 { margin:.3rem 0;font-size:1.2rem;font-weight:900;overflow-wrap:anywhere }
.aff-overview-top p { font-size:.7rem;color:#c2d9f2;line-height:1.6 }
.aff-overview-main { display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.6rem 0 }
.aff-overview-main>div:first-child>span { font-size:.75rem;color:#c6dbf2 }
#team-affiliation-total { display:block;margin:.35rem 0;font-size:clamp(1.9rem,3.5vw,3rem);font-weight:900;letter-spacing:-.045em;overflow-wrap:anywhere }
#team-affiliation-progress { font-size:.75rem;color:#b6d6f3 }
.aff-goal-ring { display:grid;flex:0 0 auto;width:8.2rem;height:8.2rem;padding:.5rem;border-radius:50%;background:conic-gradient(#70e8cd var(--aff-progress,0%),#ffffff24 0) }
.aff-goal-ring>div { display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.2rem;border-radius:50%;background:#103a64;text-align:center }
.aff-goal-ring strong { font-size:1.4rem;font-weight:900 }.aff-goal-ring span { font-size:.58rem;color:#c2d9f2 }
.aff-split { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #ffffff26;padding-top:1rem;gap:1rem }
.aff-split span,.aff-split b { display:block }.aff-split span { font-size:.65rem;color:#c2d9f2 }.aff-split b { font-size:1rem;margin-top:.3rem;overflow-wrap:anywhere }
.aff-kpis { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem }
.aff-kpis article { position:relative;min-width:0;padding:1.1rem;border:1px solid #dce4ef;border-radius:1rem;background:#fff }
.aff-kpis article>i { display:grid;place-items:center;width:2rem;height:2rem;margin-bottom:.75rem;border-radius:.65rem;background:#eff6ff;color:#2563eb;font-size:1.15rem }
.aff-kpis article:nth-child(2)>i { background:#f5f3ff;color:#7c3aed }.aff-kpis article:nth-child(3)>i { background:#ecfdf5;color:#059669 }.aff-kpis article:nth-child(4)>i { background:#fff7ed;color:#c2410c }
.aff-kpis span,.aff-kpis strong,.aff-kpis small { display:block;overflow-wrap:anywhere }.aff-kpis span { font-size:.66rem;font-weight:800;color:#64748b }.aff-kpis strong { margin:.3rem 0;font-size:1.35rem;color:#122849;font-weight:900 }.aff-kpis small { font-size:.6rem;color:#64748b;line-height:1.5 }
.aff-card { min-width:0;border:1px solid #dce4ef;border-radius:1.1rem;background:#fff;overflow:hidden;box-shadow:0 6px 20px #0f172a04 }
.aff-card>header { display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.2rem 1.3rem;border-bottom:1px solid #edf1f6 }
.aff-card h3 { margin-top:.25rem;font-size:.95rem;font-weight:900;color:#122849 }.aff-card header p { font-size:.68rem }
.aff-charts { display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:1rem }
.aff-legend { display:flex;flex-wrap:wrap;gap:1rem;padding:1rem 1.3rem .3rem;font-size:.65rem;color:#64748b }.aff-legend span { display:flex;align-items:center;gap:.4rem }.aff-legend i { width:.5rem;height:.5rem;border-radius:50% }
.aff-evolution { padding:.3rem .7rem 1rem;min-width:0 }.aff-evolution svg { display:block;width:100%;height:auto }.aff-evolution text { font-size:11px;fill:#64748b;font-family:inherit }
.aff-contributions { display:grid;align-content:start;gap:1rem;padding:1.2rem;max-height:24rem;overflow-y:auto }
.aff-contribution { display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:1rem;row-gap:.4rem;width:100%;text-align:left }
.aff-contribution>span { display:flex;align-items:center;justify-content:space-between;gap:.5rem;grid-column:1/-1 }.aff-contribution b { font-size:.72rem;color:#334155;overflow-wrap:anywhere }.aff-contribution small { color:#64748b;font-size:.65rem }
.aff-contribution>div { height:.45rem;background:#eef2f7;border-radius:10px;align-self:center;overflow:hidden }.aff-contribution i { display:block;height:100%;background:linear-gradient(90deg,#2563eb,#38bdf8);border-radius:inherit }.aff-contribution strong { font-size:.68rem;color:#122849;white-space:nowrap }
.aff-badge { flex-shrink:0;padding:.4rem .7rem;border-radius:99px;background:#eff6ff;color:#2563eb;font-size:.65rem;font-weight:800 }
.aff-people { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem;padding:1.2rem }
.aff-person { min-width:0;padding:1rem;border:1px solid #dce4ef;border-radius:1rem;background:linear-gradient(155deg,#f8fbff,#fff 55%) }
.aff-person-heading { display:flex;align-items:center;gap:.7rem }.aff-person-heading>div { min-width:0 }.aff-avatar { display:grid;flex-shrink:0;place-items:center;width:2.5rem;height:2.5rem;border-radius:.8rem;background:#e1edff;color:#2459b1;font-size:.8rem;font-weight:900 }
.aff-person h4 { color:#122849;font-size:.8rem;font-weight:900;overflow-wrap:anywhere }.aff-person-heading div>span { display:block;margin-top:.2rem;font-size:.6rem;color:#64748b }
.aff-person-sales { display:block;margin:1rem 0 .15rem;color:#122849;font-size:1.4rem;font-weight:900;overflow-wrap:anywhere }.aff-person-sales-label { color:#64748b;font-size:.62rem }
.aff-person-metrics { display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin:1rem 0;padding:.8rem 0;border-block:1px solid #e8eef6 }.aff-person-metrics b,.aff-person-metrics span { display:block }.aff-person-metrics b { font-size:1.15rem;color:#255ba7 }.aff-person-metrics span { margin-top:.2rem;color:#64748b;font-size:.6rem }
.aff-person-goal span { display:block;min-height:1.8rem;color:#64748b;font-size:.6rem }.aff-person-goal>div { height:.3rem;border-radius:99px;background:#e2e8f0;overflow:hidden }.aff-person-goal i { display:block;height:100%;background:#14b8a6 }
.aff-person footer { display:flex;justify-content:space-between;gap:.3rem;margin-top:.8rem }.aff-person footer button { display:flex;align-items:center;justify-content:center;gap:.3rem;min-height:2.5rem;padding:.4rem .6rem;border:1px solid #dce4ef;border-radius:.65rem;background:#fff;color:#2563eb;font-size:.65rem;font-weight:800 }
.aff-detail-filter { width:14rem;max-width:100% }.aff-detail-filter select { font-size:.7rem }
.aff-detail-summary { padding:1rem 1.3rem;background:#f8fafc;color:#475569;font-size:.7rem;line-height:1.8 }
.aff-transactions { padding:0 1.3rem }.aff-transactions article { display:flex;align-items:center;gap:.8rem;padding:1rem 0;border-bottom:1px solid #edf1f6 }
.aff-transaction-date { display:grid;place-items:center;flex:0 0 2.5rem;padding:.4rem;border-radius:.7rem;background:#eff6ff;color:#2563eb }.aff-transaction-date b { font-size:1rem }.aff-transaction-date small { font-size:.58rem }
.aff-transaction-copy { flex:1;min-width:0 }.aff-transaction-copy b { font-size:.75rem;color:#122849;overflow-wrap:anywhere }.aff-transaction-copy span,.aff-transaction-copy p { display:block;font-size:.62rem;line-height:1.65;color:#64748b;overflow-wrap:anywhere }.aff-transaction-copy p { color:#475569 }
.aff-transaction-value { max-width:42%;text-align:right;overflow-wrap:anywhere }.aff-transaction-value strong { color:#047857;font-size:.8rem }.aff-transaction-value small { display:block;color:#64748b;font-size:.58rem;line-height:1.7;margin-top:.2rem }
.aff-pagination { display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:1rem 1.3rem;color:#64748b;font-size:.68rem }.aff-pagination>div { display:flex;gap:.5rem }.aff-pagination button { min-height:2.6rem;padding:.5rem .75rem;border:1px solid #dce4ef;border-radius:.65rem;color:#2563eb;font-size:.68rem }.aff-pagination button:disabled { opacity:.4;cursor:default }
.aff-settings summary { display:flex;align-items:center;gap:.8rem;cursor:pointer;list-style:none;padding:1.2rem 1.3rem;color:#122849 }.aff-settings summary::-webkit-details-marker { display:none }.aff-settings summary>span { display:flex;align-items:center;gap:.6rem;font-size:.8rem;font-weight:900 }.aff-settings summary>small { margin-left:auto;font-size:.62rem;color:#64748b }.aff-settings[open] summary { border-bottom:1px solid #e2e8f0 }
.aff-settings form { padding:1.3rem }.aff-settings fieldset { min-width:0 }.aff-settings fieldset:disabled { opacity:.65 }.aff-settings-top { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem;margin-bottom:1.5rem }
.aff-settings .aff-pdv { display:flex;align-items:center;gap:.7rem }.aff-pdv input,.aff-member-option input { width:1.15rem;height:1.15rem;flex-shrink:0;accent-color:#2563eb }.aff-settings-top .aff-pdv>span { margin:0 }.aff-pdv small { display:block;margin-top:.3rem;color:#64748b;font-size:.65rem;font-weight:400 }
.aff-settings h4 { font-weight:900;font-size:.85rem;color:#122849 }.aff-help { color:#64748b;font-size:.7rem;line-height:1.7;margin:.5rem 0 1rem }
.aff-member-options { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.65rem }.aff-member-option { display:flex;align-items:center;gap:.6rem;min-width:0;padding:.8rem;border:1px solid #dce4ef;border-radius:.8rem;cursor:pointer }.aff-member-option:has(input:checked) { border-color:#93b7f8;background:#eff6ff }.aff-member-option:has(input:disabled) { opacity:.6;cursor:default }.aff-member-option>span:last-child { min-width:0 }.aff-member-option b { display:block;font-size:.7rem;color:#122849;overflow-wrap:anywhere }.aff-member-option small { display:block;font-size:.6rem;color:#64748b;line-height:1.5;margin-top:.2rem }.aff-member-option .aff-avatar { width:2rem;height:2rem;font-size:.65rem }
.aff-save-row { display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1.2rem }.aff-save-row>span { font-size:.68rem;color:#64748b }
.aff-empty { padding:3rem 1.5rem;text-align:center;border:1px dashed #bbcee7;border-radius:1rem;background:#f8fbff;color:#64748b }.aff-empty>i,.aff-empty-inline>i { color:#60a5fa;font-size:2rem }.aff-empty h3 { margin:.7rem 0;font-weight:900;color:#122849 }.aff-empty p { font-size:.8rem;line-height:1.8 }
.aff-empty-inline { padding:2rem 1rem;text-align:center;color:#64748b;font-size:.75rem }.aff-empty-inline p { margin-top:.5rem }
#team-performance-page-afiliacoes :is(button,select,input):focus-visible,.aff-settings summary:focus-visible { outline:3px solid #93c5fd;outline-offset:3px }
@media screen {
    html[data-tema="escuro"] :is(.aff-card,.aff-kpis article,.aff-person,.aff-member-option,.aff-manager select,.aff-detail-filter select,.aff-settings input[type=number]) { background:#102238;border-color:#29415e;color:#e2e8f0 }
    html[data-tema="escuro"] :is(.aff-toolbar h2,.aff-card h3,.aff-person h4,.aff-person-sales,.aff-kpis strong,.aff-contribution b,.aff-contribution strong,.aff-person-metrics b,.aff-transaction-copy b,.aff-settings h4,.aff-member-option b,.aff-settings summary) { color:#e2e8f0 }
    html[data-tema="escuro"] :is(.aff-toolbar p,.aff-card header p,.aff-manager>span,.aff-detail-filter>span,.aff-settings-top>label>span,.aff-help,.aff-kpis span,.aff-kpis small,.aff-person-sales-label,.aff-person-heading div>span,.aff-person-metrics span,.aff-person-goal span,.aff-member-option small,.aff-save-row>span,.aff-transaction-copy span,.aff-transaction-copy p,.aff-transaction-value small) { color:#9db2cc }
    html[data-tema="escuro"] .aff-detail-summary,html[data-tema="escuro"] .aff-empty { background:#0c1b2f;color:#b9cbe0;border-color:#29415e }
    html[data-tema="escuro"] .aff-person footer button,html[data-tema="escuro"] .aff-pagination button { background:#132c48;border-color:#29415e;color:#93c5fd }
    html[data-tema="escuro"] .aff-member-option:has(input:checked) { background:#15345b;border-color:#3b82f6 }
    html[data-tema="escuro"] .aff-evolution text { fill:#b9cbe0 }
}
@media(max-width:1100px) {
    .aff-charts { grid-template-columns:1fr }.aff-kpis { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media(max-width:767px) {
    .aff-toolbar { align-items:stretch;flex-direction:column;gap:1rem }.aff-toolbar h2 { font-size:1.25rem }.aff-manager { flex:auto }
    .aff-overview { padding:1.2rem }.aff-overview-top { align-items:stretch;flex-direction:column }.aff-overview-top .aff-button { align-self:flex-start }.aff-overview-main { gap:.7rem;padding:1.5rem 0 }.aff-overview-main>div:first-child { min-width:0 }
    .aff-goal-ring { width:6rem;height:6rem;padding:.35rem }.aff-goal-ring strong { font-size:1.05rem }.aff-goal-ring span { font-size:.48rem }#team-affiliation-total { font-size:1.8rem }
    .aff-split { grid-template-columns:1fr;gap:.7rem }.aff-split>div { display:flex;align-items:center;justify-content:space-between;gap:1rem }.aff-split b { margin:0;font-size:.85rem }.aff-kpis { gap:.6rem }.aff-kpis article { padding:.9rem }.aff-kpis strong { font-size:1.1rem }
    .aff-card>header { align-items:flex-start;flex-wrap:wrap;padding:1rem }.aff-card header p { font-size:.7rem }.aff-card h3 { font-size:1rem }.aff-people { padding:.8rem;gap:.8rem }.aff-person footer button { min-height:2.8rem }
    .aff-detail-filter { width:100% }.aff-detail-summary { padding:.8rem 1rem }.aff-transactions { padding:0 1rem }.aff-transactions article { display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.65rem }.aff-transaction-value { grid-column:2;max-width:100%;text-align:left }.aff-transaction-copy b { font-size:.8rem }.aff-transaction-copy span,.aff-transaction-copy p { font-size:.7rem }
    .aff-pagination { padding:.8rem 1rem;flex-wrap:wrap }.aff-pagination button { min-height:2.8rem }.aff-settings summary { flex-wrap:wrap;padding:1rem }.aff-settings summary>small { flex-basis:100%;order:3;margin:0 }.aff-settings summary>i { margin-left:auto }
    .aff-settings form { padding:1rem }.aff-settings-top { grid-template-columns:1fr;gap:1rem }.aff-save-row { flex-direction:column;align-items:stretch }.aff-save-row button { min-height:3rem }
}

/* Metas e desempenho da equipe */
.team-performance-shell{display:grid;gap:1rem}.team-performance-hero{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;overflow:hidden;padding:1.6rem 1.75rem;border-radius:1.4rem;color:#fff;background:linear-gradient(120deg,#061a44 0%,#0b3476 55%,#0f8a6a 135%);box-shadow:0 18px 44px rgba(6,26,68,.18)}.team-performance-hero:after{content:"";position:absolute;right:-5rem;top:-10rem;width:22rem;height:22rem;border:1px solid rgba(255,255,255,.11);border-radius:50%;box-shadow:0 0 0 4rem rgba(255,255,255,.035)}.team-performance-hero>div{position:relative;z-index:1}.team-performance-eyebrow{display:inline-flex;align-items:center;gap:.4rem;color:#8ee9cf;font-size:.66rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.team-performance-hero h1{margin:.35rem 0 0;font-size:1.9rem;font-weight:950;letter-spacing:-.035em}.team-performance-hero p{max-width:43rem;margin:.45rem 0 0;color:#d9e8ff;font-size:.78rem;line-height:1.5}.team-performance-period{display:grid!important;grid-template-columns:1fr auto;min-width:20rem;gap:.45rem;align-items:end}.team-performance-period label{grid-column:1/-1;color:#b9d2ff;font-size:.6rem;font-weight:900;text-transform:uppercase}.team-performance-period input,.team-performance-period button{height:2.65rem;border-radius:.75rem;font-size:.7rem;font-weight:900}.team-performance-period input{padding:0 .8rem;color:#0f172a;background:#fff}.team-performance-period button{display:flex;align-items:center;gap:.4rem;padding:0 .9rem;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.12)}
.team-performance-tabs{display:flex;gap:.35rem;overflow-x:auto;padding:.35rem;border:1px solid #dce4ef;border-radius:.9rem;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.04)}.team-performance-tabs button{display:flex;align-items:center;justify-content:center;gap:.4rem;min-width:max-content;padding:.68rem 1rem;border-radius:.65rem;color:#64748b;font-size:.68rem;font-weight:950}.team-performance-tabs button.is-active{color:#fff;background:#0f2e64;box-shadow:0 5px 14px rgba(15,46,100,.18)}.team-performance-page{display:grid;gap:1rem}.team-performance-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem}.team-performance-metric{position:relative;overflow:hidden;padding:1rem;border:1px solid #e2e8f0;border-radius:1rem;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.04)}.team-performance-metric>i{position:absolute;right:.8rem;top:.8rem;display:grid;width:2rem;height:2rem;place-items:center;border-radius:.65rem;color:#2563eb;background:#eff6ff;font-size:1rem}.team-performance-metric span,.team-performance-metric strong,.team-performance-metric small{display:block}.team-performance-metric span{padding-right:2.2rem;color:#64748b;font-size:.58rem;font-weight:950;text-transform:uppercase}.team-performance-metric strong{margin-top:.45rem;color:#0f172a;font-size:1.2rem;font-weight:950}.team-performance-metric small{margin-top:.3rem;color:#94a3b8;font-size:.56rem}.team-performance-metric.is-goal>i{color:#047857;background:#ecfdf5}.team-performance-metric.is-goal strong{color:#047857}.team-performance-metric.is-bonus>i{color:#a16207;background:#fffbeb}.team-performance-metric.is-bonus strong{color:#b45309}.team-performance-progress{height:.34rem;margin-top:.55rem;overflow:hidden;border-radius:99px;background:#e2e8f0}.team-performance-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#10b981)}
.team-performance-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(17rem,.7fr);gap:1rem}.team-performance-card{overflow:hidden;border:1px solid #dce4ef;border-radius:1.1rem;background:#fff;box-shadow:0 6px 22px rgba(15,23,42,.05)}.team-performance-card>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;border-bottom:1px solid #edf1f6}.team-performance-card>header span{display:block;color:#2563eb;font-size:.56rem;font-weight:950;text-transform:uppercase;letter-spacing:.07em}.team-performance-card>header h2{margin:.18rem 0 0;color:#0f172a;font-size:.9rem;font-weight:950}.team-performance-card>header>i{display:grid;width:2.25rem;height:2.25rem;place-items:center;border-radius:.7rem;color:#2563eb;background:#eff6ff;font-size:1.15rem}.team-performance-card>header small{color:#94a3b8;font-size:.58rem}.team-performance-chip{padding:.28rem .5rem;border-radius:99px;color:#475569!important;background:#f1f5f9;font-size:.52rem!important}.team-performance-table-wrap{overflow:auto}.team-performance-table{width:100%;min-width:48rem;border-collapse:collapse}.team-performance-table th{padding:.65rem .8rem;color:#94a3b8;background:#f8fafc;font-size:.52rem;text-align:left;text-transform:uppercase}.team-performance-table td{padding:.72rem .8rem;border-top:1px solid #edf1f6;color:#475569;font-size:.65rem}.team-performance-table td strong{color:#0f172a}.team-performance-rank{display:flex;align-items:center;gap:.55rem}.team-performance-rank>span{display:grid;width:1.7rem;height:1.7rem;flex:0 0 auto;place-items:center;border-radius:.55rem;color:#1d4ed8;background:#dbeafe;font-weight:950}.team-performance-rank>span.is-top{color:#92400e;background:#fef3c7}.team-performance-table-progress{min-width:6rem}.team-performance-table-progress div{height:.3rem;overflow:hidden;border-radius:99px;background:#e2e8f0}.team-performance-table-progress i{display:block;height:100%;border-radius:inherit;background:#2563eb}.team-performance-table-progress small{display:block;margin-top:.25rem;color:#64748b;font-size:.52rem;font-weight:900}.team-performance-bonus-badge{display:inline-flex;padding:.28rem .45rem;border-radius:99px;color:#047857;background:#d1fae5;font-size:.55rem;font-weight:950}.team-performance-bonus-badge.is-empty{color:#94a3b8;background:#f1f5f9}.team-performance-empty{padding:2.5rem!important;color:#94a3b8!important;text-align:center}.team-performance-projection>div{display:grid;gap:.8rem;padding:1rem}.team-performance-projection-main{padding:1rem;border-radius:.9rem;color:#fff;background:linear-gradient(135deg,#123d82,#1557ff)}.team-performance-projection-main span,.team-performance-projection-main strong,.team-performance-projection-main small{display:block}.team-performance-projection-main span{color:#bfdbfe;font-size:.58rem;font-weight:900;text-transform:uppercase}.team-performance-projection-main strong{margin-top:.3rem;font-size:1.45rem;font-weight:950}.team-performance-projection-main small{margin-top:.25rem;color:#dbeafe;font-size:.56rem}.team-performance-projection-row{display:flex;justify-content:space-between;gap:1rem;padding:.65rem .1rem;border-bottom:1px solid #edf1f6;color:#64748b;font-size:.62rem}.team-performance-projection-row:last-child{border:0}.team-performance-projection-row b{color:#0f172a}.team-performance-daily-card>header{padding-bottom:.8rem}.team-performance-chart{display:flex;min-height:12rem;align-items:flex-end;gap:.45rem;overflow-x:auto;padding:1rem 1.1rem}.team-performance-chart-column{display:flex;min-width:2.25rem;height:9.5rem;align-items:center;justify-content:flex-end;gap:.3rem;flex-direction:column}.team-performance-chart-column b{color:#475569;font-size:.48rem;white-space:nowrap}.team-performance-chart-column i{display:block;width:1.4rem;min-height:.18rem;border-radius:.35rem .35rem .12rem .12rem;background:linear-gradient(180deg,#22c55e,#0f766e)}.team-performance-chart-column span{color:#94a3b8;font-size:.5rem;font-weight:900}
.team-performance-entry-grid{display:grid;grid-template-columns:minmax(18rem,.72fr) minmax(0,1.28fr);gap:1rem}.team-performance-form{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;padding:1rem}.team-performance-form label>span{display:block;margin-bottom:.35rem;color:#475569;font-size:.58rem;font-weight:950}.team-performance-form input,.team-performance-form select,.team-performance-form textarea{width:100%;border:1px solid #cbd5e1;border-radius:.7rem;padding:.72rem;color:#0f172a;background:#fff;font-size:.68rem;outline:0}.team-performance-form input:focus,.team-performance-form select:focus,.team-performance-form textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #dbeafe}.team-performance-form textarea{resize:vertical}.team-performance-form .is-full{grid-column:1/-1}.team-performance-net{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem;border:1px solid #a7f3d0;border-radius:.8rem;background:#ecfdf5}.team-performance-net span{color:#047857;font-size:.6rem;font-weight:900}.team-performance-net strong{color:#065f46;font-size:1rem;font-weight:950}.team-performance-form-actions{display:flex;justify-content:flex-end;gap:.5rem}.team-performance-form-actions button,.team-performance-save-bar button{display:flex;align-items:center;justify-content:center;gap:.4rem;padding:.75rem 1rem;border-radius:.72rem;font-size:.66rem;font-weight:950}.team-performance-form-actions .is-secondary{color:#475569;background:#f1f5f9}.team-performance-form-actions .is-primary,.team-performance-save-bar button{color:#fff;background:#1557ff;box-shadow:0 6px 16px rgba(21,87,255,.18)}.team-performance-search{display:flex;align-items:center;gap:.35rem;padding:.45rem .65rem;border:1px solid #dce4ef;border-radius:.65rem;color:#94a3b8}.team-performance-search input{width:13rem;outline:0;font-size:.6rem}.team-performance-entry-list{display:grid;gap:.6rem;max-height:38rem;overflow-y:auto;padding:1rem}.team-performance-entry{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.7rem;padding:.75rem;border:1px solid #e2e8f0;border-radius:.85rem;background:#fff}.team-performance-entry-date{display:grid;width:2.6rem;height:2.6rem;place-items:center;border-radius:.7rem;color:#1d4ed8;background:#eff6ff;text-align:center}.team-performance-entry-date b,.team-performance-entry-date small{display:block}.team-performance-entry-date b{font-size:.85rem}.team-performance-entry-date small{font-size:.46rem;text-transform:uppercase}.team-performance-entry-copy{min-width:0}.team-performance-entry-copy strong{display:block;color:#0f172a;font-size:.68rem}.team-performance-entry-copy p{overflow:hidden;margin:.22rem 0 0;color:#64748b;font-size:.56rem;text-overflow:ellipsis;white-space:nowrap}.team-performance-entry-copy small{display:block;margin-top:.3rem;color:#94a3b8;font-size:.5rem}.team-performance-entry-value{text-align:right}.team-performance-entry-value strong{display:block;color:#047857;font-size:.72rem}.team-performance-entry-value small{display:block;margin-top:.2rem;color:#94a3b8;font-size:.48rem}.team-performance-entry-actions{display:flex;gap:.25rem;margin-top:.4rem;justify-content:flex-end}.team-performance-entry-actions button{display:grid;width:1.7rem;height:1.7rem;place-items:center;border-radius:.5rem;color:#475569;background:#f1f5f9}.team-performance-entry-actions button.is-danger{color:#b91c1c;background:#fef2f2}
.team-performance-goals-grid{display:grid;grid-template-columns:minmax(18rem,.75fr) minmax(0,1.25fr);gap:1rem}.team-performance-suffix{display:flex}.team-performance-suffix input{border-radius:.7rem 0 0 .7rem}.team-performance-suffix b{display:grid;min-width:2.5rem;place-items:center;border:1px solid #cbd5e1;border-left:0;border-radius:0 .7rem .7rem 0;color:#475569;background:#f8fafc;font-size:.65rem}.team-performance-switch{display:flex!important;align-items:flex-start;gap:.65rem;padding:.8rem;border:1px solid #dbe4ef;border-radius:.8rem;cursor:pointer}.team-performance-switch>input{display:none}.team-performance-switch>span{position:relative;width:2.35rem;height:1.25rem;flex:0 0 auto;border-radius:99px;background:#cbd5e1}.team-performance-switch>span:after{content:"";position:absolute;left:.17rem;top:.17rem;width:.91rem;height:.91rem;border-radius:50%;background:#fff;transition:.18s}.team-performance-switch>input:checked+span{background:#10b981}.team-performance-switch>input:checked+span:after{transform:translateX(1.1rem)}.team-performance-switch div b,.team-performance-switch div small{display:block}.team-performance-switch div b{color:#0f172a;font-size:.62rem}.team-performance-switch div small{margin-top:.18rem;color:#64748b;font-size:.52rem}.team-performance-goal-list{display:grid;gap:.55rem;padding:1rem}.team-performance-goal-row{display:grid;grid-template-columns:minmax(8rem,1fr) 1fr 1fr .75fr;align-items:end;gap:.65rem;padding:.75rem;border:1px solid #e2e8f0;border-radius:.8rem;background:#f8fafc}.team-performance-goal-employee{display:flex;align-items:center;gap:.55rem;align-self:center}.team-performance-goal-employee span{display:grid;width:2rem;height:2rem;place-items:center;border-radius:.65rem;color:#1d4ed8;background:#dbeafe;font-size:.65rem;font-weight:950}.team-performance-goal-employee strong,.team-performance-goal-employee small{display:block}.team-performance-goal-employee strong{color:#0f172a;font-size:.65rem}.team-performance-goal-employee small{margin-top:.12rem;color:#94a3b8;font-size:.5rem}.team-performance-goal-row label>span{display:block;margin-bottom:.28rem;color:#64748b;font-size:.5rem;font-weight:900}.team-performance-goal-row input{width:100%;padding:.6rem;border:1px solid #cbd5e1;border-radius:.6rem;background:#fff;font-size:.62rem;outline:0}.team-performance-goal-preview{padding:.6rem;border-radius:.6rem;color:#047857;background:#ecfdf5;font-size:.55rem;font-weight:950;text-align:center}.team-performance-save-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;border:1px solid #bfdbfe;border-radius:1rem;background:#eff6ff}.team-performance-save-bar>div{display:flex;align-items:center;gap:.65rem}.team-performance-save-bar>div>i{color:#2563eb;font-size:1.3rem}.team-performance-save-bar p b,.team-performance-save-bar p span{display:block}.team-performance-save-bar p b{color:#1e3a8a;font-size:.65rem}.team-performance-save-bar p span{margin-top:.15rem;color:#3b5c92;font-size:.55rem}
@media(max-width:1100px){.team-performance-summary{grid-template-columns:repeat(3,1fr)}.team-performance-grid,.team-performance-goals-grid{grid-template-columns:1fr}.team-performance-entry-grid{grid-template-columns:minmax(18rem,.8fr) minmax(0,1.2fr)}}
@media(max-width:820px){.team-performance-hero{align-items:stretch;flex-direction:column;padding:1.2rem}.team-performance-hero h1{font-size:1.5rem}.team-performance-period{min-width:0}.team-performance-summary{grid-template-columns:1fr 1fr}.team-performance-entry-grid{grid-template-columns:1fr}.team-performance-goal-row{grid-template-columns:1fr 1fr}.team-performance-goal-employee{grid-column:1/-1}.team-performance-save-bar{align-items:stretch;flex-direction:column}.team-performance-save-bar button{width:100%}}
@media(max-width:520px){.team-performance-summary{grid-template-columns:1fr}.team-performance-form{grid-template-columns:1fr}.team-performance-form .is-full{grid-column:auto}.team-performance-search{display:none}.team-performance-entry{grid-template-columns:auto minmax(0,1fr)}.team-performance-entry-value{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;text-align:left}.team-performance-goal-row{grid-template-columns:1fr}.team-performance-goal-employee{grid-column:auto}.team-performance-period{grid-template-columns:1fr}.team-performance-period label,.team-performance-period button{grid-column:1}.team-performance-period button{width:100%;justify-content:center}}
.team-performance-portal-settings{margin-top:1rem}.team-performance-info-box{display:flex;align-items:flex-start;gap:.65rem;padding:.8rem;border:1px solid #bfdbfe;border-radius:.8rem;background:#eff6ff}.team-performance-info-box>i{color:#2563eb;font-size:1.2rem}.team-performance-info-box p b,.team-performance-info-box p span{display:block}.team-performance-info-box p b{color:#1e3a8a;font-size:.62rem}.team-performance-info-box p span{margin-top:.18rem;color:#3b5c92;font-size:.52rem;line-height:1.45}.employee-photo-picker{display:flex;align-items:center;gap:.75rem;padding:.7rem;border:1px dashed #93c5fd;border-radius:.8rem;background:#eff6ff;cursor:pointer}.employee-photo-picker>span,.employee-list-avatar{display:grid;width:3rem;height:3rem;flex:0 0 auto;place-items:center;overflow:hidden;border-radius:.85rem;color:#1d4ed8;background:#dbeafe;font-size:1.05rem;font-weight:950}.employee-photo-picker>span img,.employee-list-avatar img{width:100%;height:100%;object-fit:cover}.employee-photo-picker div b,.employee-photo-picker div small{display:block}.employee-photo-picker div b{color:#1e3a8a;font-size:.7rem}.employee-photo-picker div small{margin-top:.15rem;color:#64748b;font-size:.55rem}.employee-photo-modal{display:flex;align-items:center;flex-direction:column;gap:.8rem;padding:.5rem}.employee-photo-modal-preview{display:grid;width:7rem;height:7rem;place-items:center;overflow:hidden;border:4px solid #dbeafe;border-radius:2rem;color:#2563eb;background:#eff6ff;font-size:2.8rem}.employee-photo-modal-preview img{width:100%;height:100%;object-fit:cover}.employee-photo-modal>label:not(.employee-photo-remove){display:flex;align-items:center;gap:.45rem;padding:.7rem 1rem;border-radius:.75rem;color:#fff;background:#1557ff;font-size:.7rem;font-weight:950;cursor:pointer}.employee-photo-remove{display:flex;align-items:center;gap:.4rem;color:#b91c1c;font-size:.65rem;font-weight:850}.employee-photo-modal>small{max-width:20rem;color:#64748b;font-size:.58rem;line-height:1.5}

.team-performance-goal-row{grid-template-columns:repeat(3,minmax(0,1fr))}.team-performance-goal-employee,.team-performance-goal-preview{grid-column:1/-1}.team-performance-goal-preview{text-align:left}
@media(max-width:820px){.team-performance-goal-row{grid-template-columns:1fr 1fr}.team-performance-goal-employee,.team-performance-goal-preview{grid-column:1/-1}}
@media(max-width:520px){.team-performance-goal-row{grid-template-columns:1fr}.team-performance-goal-employee,.team-performance-goal-preview{grid-column:auto}}
.team-performance-employee-history-card>header{align-items:flex-end}.team-performance-employee-filter{display:grid;gap:.3rem;min-width:15rem}.team-performance-employee-filter span{color:#64748b;font-size:.55rem;font-weight:950;text-transform:uppercase}.team-performance-employee-filter select{width:100%;padding:.65rem .75rem;border:1px solid #cbd5e1;border-radius:.7rem;color:#0f172a;background:#fff;font-size:.65rem;font-weight:800;outline:0}.team-performance-employee-filter select:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #dbeafe}.team-performance-employee-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;padding:1rem 1rem 0}.team-performance-employee-summary article{padding:.85rem;border:1px solid #e2e8f0;border-radius:.85rem;background:#f8fafc}.team-performance-employee-summary span,.team-performance-employee-summary strong,.team-performance-employee-summary small{display:block}.team-performance-employee-summary span{color:#64748b;font-size:.54rem;font-weight:950;text-transform:uppercase}.team-performance-employee-summary strong{margin-top:.3rem;color:#0f172a;font-size:1rem;font-weight:950}.team-performance-employee-summary small{margin-top:.2rem;color:#94a3b8;font-size:.5rem}.team-performance-employee-entry-list{max-height:none}
@media(max-width:820px){.team-performance-employee-history-card>header{align-items:stretch;flex-direction:column}.team-performance-employee-filter{min-width:0;width:100%}.team-performance-employee-summary{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.team-performance-employee-summary{grid-template-columns:1fr}}

/* Painel analítico da visão geral */
.team-performance-overview-tabs{display:flex;width:max-content;max-width:100%;gap:.35rem;padding:.32rem;border:1px solid #dce4ef;border-radius:.95rem;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.04)}
.team-performance-overview-tabs button{display:flex;min-width:13rem;align-items:center;gap:.6rem;padding:.65rem .85rem;border-radius:.7rem;color:#64748b;text-align:left;transition:.18s ease}
.team-performance-overview-tabs button>i{display:grid;width:2rem;height:2rem;flex:0 0 auto;place-items:center;border-radius:.6rem;color:#1d4ed8;background:#eff6ff;font-size:1rem}
.team-performance-overview-tabs button span,.team-performance-overview-tabs button b,.team-performance-overview-tabs button small{display:block}.team-performance-overview-tabs button b{font-size:.65rem;font-weight:950}.team-performance-overview-tabs button small{margin-top:.12rem;color:#94a3b8;font-size:.5rem;font-weight:700}
.team-performance-overview-tabs button.is-active{color:#fff;background:#0f2e64;box-shadow:0 5px 14px rgba(15,46,100,.18)}.team-performance-overview-tabs button.is-active>i{color:#fff;background:rgba(255,255,255,.14)}.team-performance-overview-tabs button.is-active small{color:#bfdbfe}
.team-performance-overview-page{display:grid;gap:1rem}
.team-metrics-filter-card{display:grid;grid-template-columns:minmax(15rem,.85fr) minmax(18rem,1.15fr);gap:1rem;padding:1rem;border:1px solid #d9e3f0;border-radius:1.1rem;background:linear-gradient(135deg,#fff 0%,#f8fbff 68%,#effdf8 135%);box-shadow:0 8px 24px rgba(15,46,100,.05)}
.team-metrics-filter-heading{display:flex;grid-row:span 2;align-items:flex-start;gap:.7rem}.team-metrics-filter-heading>span{display:grid;width:2.65rem;height:2.65rem;flex:0 0 auto;place-items:center;border-radius:.8rem;color:#fff;background:linear-gradient(135deg,#1557ff,#0f8a6a);font-size:1.25rem;box-shadow:0 7px 16px rgba(21,87,255,.18)}.team-metrics-filter-heading small,.team-metrics-filter-heading h2,.team-metrics-filter-heading p{display:block}.team-metrics-filter-heading small{color:#2563eb;font-size:.52rem;font-weight:950;letter-spacing:.07em;text-transform:uppercase}.team-metrics-filter-heading h2{margin-top:.15rem;color:#0f172a;font-size:1rem;font-weight:950}.team-metrics-filter-heading p{max-width:24rem;margin-top:.25rem;color:#64748b;font-size:.57rem;line-height:1.45}
.team-metrics-presets{display:flex;justify-content:flex-end;gap:.3rem}.team-metrics-presets button{min-height:2.25rem;padding:.5rem .75rem;border:1px solid #d8e1ed;border-radius:.65rem;color:#475569;background:#fff;font-size:.58rem;font-weight:950}.team-metrics-presets button:hover{border-color:#93c5fd;color:#1d4ed8}.team-metrics-presets button.is-active{border-color:#1557ff;color:#fff;background:#1557ff;box-shadow:0 5px 12px rgba(21,87,255,.18)}
.team-metrics-fields{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:.55rem}.team-metrics-fields label>span{display:block;margin:0 0 .3rem;color:#64748b;font-size:.5rem;font-weight:950;text-transform:uppercase}.team-metrics-fields input,.team-metrics-fields select{width:100%;min-height:2.45rem;padding:.55rem .65rem;border:1px solid #cbd5e1;border-radius:.68rem;color:#0f172a;background:#fff;font-size:.62rem;font-weight:800;outline:0}.team-metrics-fields input:focus,.team-metrics-fields select:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #dbeafe}
.team-metrics-period-status{grid-column:1/-1;display:flex;align-items:center;gap:.4rem;padding:.55rem .7rem;border-radius:.65rem;color:#1e40af;background:#eff6ff;font-size:.57rem;font-weight:850}.team-metrics-period-status i{font-size:.9rem}.team-metrics-period-status small{margin-left:auto;color:#64748b;font-size:.5rem}
.team-metrics-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem}.team-metrics-kpi{position:relative;min-width:0;overflow:hidden;padding:.9rem 1rem;border:1px solid #e2e8f0;border-radius:1rem;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.035)}.team-metrics-kpi:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--metrics-accent,#2563eb)}.team-metrics-kpi>i{float:right;color:var(--metrics-accent,#2563eb);font-size:1.15rem}.team-metrics-kpi span,.team-metrics-kpi strong,.team-metrics-kpi small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-metrics-kpi span{color:#64748b;font-size:.52rem;font-weight:950;text-transform:uppercase}.team-metrics-kpi strong{margin-top:.35rem;color:#0f172a;font-size:1.2rem;font-weight:950;letter-spacing:-.03em}.team-metrics-kpi small{margin-top:.25rem;color:#94a3b8;font-size:.5rem}.team-metrics-kpi small.is-up{color:#047857}.team-metrics-kpi small.is-down{color:#b91c1c}
.team-metrics-chart-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(17rem,.5fr);gap:1rem}.team-metrics-chart-grid.is-secondary{grid-template-columns:minmax(0,1.25fr) minmax(18rem,.75fr)}
.team-metrics-evolution-chart{min-height:18rem;padding:.7rem 1rem 1rem}.team-metrics-svg-wrap{min-width:36rem;overflow:hidden}.team-metrics-svg-wrap svg{display:block;width:100%;height:15rem;overflow:visible}.team-metrics-grid-line{stroke:#e8eef5;stroke-width:1}.team-metrics-axis-label{fill:#94a3b8;font-size:8px;font-weight:700}.team-metrics-area{fill:url(#teamMetricsArea)}.team-metrics-line{fill:none;stroke:#1557ff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.team-metrics-point{fill:#fff;stroke:#1557ff;stroke-width:2}.team-metrics-evolution-scroll{overflow-x:auto;padding-top:.3rem}.team-metrics-chart-empty{display:grid;min-height:15rem;place-items:center;color:#94a3b8;font-size:.62rem;text-align:center}
.team-metrics-composition-card>div{display:grid;gap:1rem;padding:1.1rem}.team-metrics-donut{position:relative;width:10rem;height:10rem;margin:auto;border-radius:50%;background:conic-gradient(#2563eb 0 var(--metric-a),#7c3aed var(--metric-a) var(--metric-b),#0d9488 var(--metric-b) 100%)}.team-metrics-donut:after{content:"";position:absolute;inset:1.85rem;border-radius:50%;background:#fff}.team-metrics-donut-center{position:absolute;inset:0;z-index:1;display:grid;place-content:center;text-align:center}.team-metrics-donut-center strong,.team-metrics-donut-center small{display:block}.team-metrics-donut-center strong{color:#0f172a;font-size:1.25rem}.team-metrics-donut-center small{color:#94a3b8;font-size:.5rem}.team-metrics-legend{display:grid;gap:.5rem}.team-metrics-legend div{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.45rem;color:#64748b;font-size:.56rem}.team-metrics-legend i{width:.55rem;height:.55rem;border-radius:.2rem}.team-metrics-legend b{color:#0f172a}
.team-metrics-employee-chart{display:grid;gap:.7rem;padding:1rem}.team-metrics-employee-bar{display:grid;grid-template-columns:minmax(6rem,.7fr) minmax(9rem,1.3fr) auto;align-items:center;gap:.65rem}.team-metrics-employee-bar>span{overflow:hidden;color:#334155;font-size:.58rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.team-metrics-employee-bar>div{height:.5rem;overflow:hidden;border-radius:99px;background:#edf2f7}.team-metrics-employee-bar>div i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1557ff,#14b8a6)}.team-metrics-employee-bar>b{min-width:5rem;color:#0f172a;font-size:.56rem;text-align:right}
.team-metrics-insights-card>div{display:grid;gap:.55rem;padding:1rem}.team-metrics-insight{display:flex;align-items:flex-start;gap:.6rem;padding:.7rem;border:1px solid #e2e8f0;border-radius:.75rem;background:#f8fafc}.team-metrics-insight>i{display:grid;width:2rem;height:2rem;flex:0 0 auto;place-items:center;border-radius:.6rem;color:#1d4ed8;background:#dbeafe;font-size:.95rem}.team-metrics-insight b,.team-metrics-insight span{display:block}.team-metrics-insight b{color:#0f172a;font-size:.6rem}.team-metrics-insight span{margin-top:.16rem;color:#64748b;font-size:.52rem;line-height:1.4}
.team-metrics-table-card .team-performance-table-wrap{max-height:28rem}.team-metrics-table{min-width:72rem}.team-metrics-table td:first-child strong{white-space:nowrap}.team-metrics-participation{display:flex;align-items:center;gap:.4rem}.team-metrics-participation div{width:3rem;height:.3rem;overflow:hidden;border-radius:99px;background:#e2e8f0}.team-metrics-participation i{display:block;height:100%;border-radius:inherit;background:#1557ff}.team-metrics-participation small{font-size:.5rem;font-weight:900}
@media(max-width:1100px){.team-metrics-filter-card{grid-template-columns:1fr}.team-metrics-filter-heading{grid-row:auto}.team-metrics-presets{justify-content:flex-start}.team-metrics-kpis{grid-template-columns:1fr 1fr}.team-metrics-chart-grid,.team-metrics-chart-grid.is-secondary{grid-template-columns:1fr}}
@media(max-width:700px){.team-performance-overview-tabs{width:100%;overflow-x:auto}.team-performance-overview-tabs button{min-width:12rem;flex:1}.team-metrics-fields{grid-template-columns:1fr 1fr}.team-metrics-fields .is-employee{grid-column:1/-1}.team-metrics-presets{display:grid;grid-template-columns:1fr 1fr}.team-metrics-presets button{width:100%}.team-metrics-filter-heading p{max-width:none}}
@media(max-width:520px){.team-metrics-kpis{grid-template-columns:1fr}.team-metrics-fields{grid-template-columns:1fr}.team-metrics-fields .is-employee{grid-column:auto}.team-metrics-employee-bar{grid-template-columns:minmax(5rem,.8fr) minmax(6rem,1.2fr)}.team-metrics-employee-bar>b{grid-column:2;text-align:left}.team-metrics-period-status{align-items:flex-start;flex-wrap:wrap}.team-metrics-period-status small{width:100%;margin-left:1.3rem}}
/* Modelo de metas configurável */
.performance-model-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;padding:1.25rem}
.performance-model-settings label{display:block}
.performance-model-settings label.is-wide{grid-column:1/-1}
.performance-model-settings label>span{display:block;margin-bottom:.4rem;color:#334155;font-size:.75rem;font-weight:850}
.performance-model-settings input,.performance-model-settings select{width:100%;min-height:2.85rem;padding:.7rem .8rem;border:1px solid #cbd5e1;border-radius:.75rem;color:#0f172a;background:#fff;font-size:.8rem;outline:0;transition:.18s}
.performance-model-settings input:focus,.performance-model-settings select:focus{border-color:#2563eb;box-shadow:0 0 0 3px #dbeafe}
.performance-model-onboarding{text-align:left}.performance-model-onboarding p{margin:0 0 .9rem;color:#64748b;font-size:.78rem;line-height:1.55}.performance-model-options{display:grid;gap:.55rem}.performance-model-option{display:flex;align-items:flex-start;gap:.65rem;padding:.75rem;border:1px solid #dbe4ef;border-radius:.8rem;cursor:pointer}.performance-model-option:has(input:checked){border-color:#2563eb;background:#eff6ff}.performance-model-option input{margin-top:.15rem}.performance-model-option b,.performance-model-option small{display:block}.performance-model-option b{color:#0f172a;font-size:.72rem}.performance-model-option small{margin-top:.18rem;color:#64748b;font-size:.62rem;line-height:1.4}
@media(max-width:700px){.performance-model-settings{grid-template-columns:1fr}.performance-model-settings label.is-wide{grid-column:auto}}
/* Perfis e edição focada das metas individuais */
.team-performance-save-bar.is-sticky{position:sticky;top:.75rem;z-index:24;margin-bottom:1rem;box-shadow:0 12px 28px rgba(30,64,175,.14);backdrop-filter:blur(10px)}
.team-performance-goal-profile{display:grid;gap:.75rem;padding:.85rem;border:1px solid #dbe4ef;border-radius:.9rem;background:linear-gradient(135deg,#fff,#f8fafc)}
.team-performance-goal-profile-head{display:flex;align-items:center;justify-content:space-between;gap:.8rem}.team-performance-goal-profile-head>button{display:flex;min-height:2.25rem;align-items:center;justify-content:center;gap:.35rem;padding:0 .7rem;border:1px solid #bfdbfe;border-radius:.65rem;color:#1d4ed8;background:#eff6ff;font-size:.58rem;font-weight:950;white-space:nowrap}.team-performance-goal-profile-head>button:hover{color:#fff;background:#2563eb}.team-performance-goal-profile-head>button i{font-size:.9rem}
.team-performance-goal-profile .team-performance-goal-employee span{width:2.65rem;height:2.65rem;overflow:hidden;border-radius:.75rem}.team-performance-goal-profile .team-performance-goal-employee span img{width:100%;height:100%;object-fit:cover}.team-performance-goal-profile .team-performance-goal-employee strong{font-size:.72rem}.team-performance-goal-profile .team-performance-goal-employee small{font-size:.52rem;text-transform:capitalize}
.team-performance-goal-profile-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}.team-performance-goal-profile-metrics>div{min-width:0;padding:.6rem .65rem;border:1px solid #e2e8f0;border-radius:.65rem;background:#fff}.team-performance-goal-profile-metrics span,.team-performance-goal-profile-metrics strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-performance-goal-profile-metrics span{color:#64748b;font-size:.48rem;font-weight:900}.team-performance-goal-profile-metrics strong{margin-top:.2rem;color:#0f172a;font-size:.62rem;font-weight:950}
.employee-goal-modal{text-align:left}.employee-goal-modal-profile{display:flex;align-items:center;gap:.7rem;margin-bottom:1rem;padding:.75rem;border:1px solid #dbeafe;border-radius:.8rem;background:#eff6ff}.employee-goal-modal-profile>span{display:grid;width:3.25rem;height:3.25rem;place-items:center;overflow:hidden;border-radius:.85rem;color:#1d4ed8;background:#dbeafe;font-size:.75rem;font-weight:950}.employee-goal-modal-profile>span img{width:100%;height:100%;object-fit:cover}.employee-goal-modal-profile strong,.employee-goal-modal-profile small{display:block}.employee-goal-modal-profile strong{color:#0f172a;font-size:.8rem}.employee-goal-modal-profile small{margin-top:.15rem;color:#64748b;font-size:.62rem}.employee-goal-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.employee-goal-modal-grid label.is-full{grid-column:1/-1}.employee-goal-modal-grid label>span{display:block;margin-bottom:.3rem;color:#475569;font-size:.58rem;font-weight:950}.employee-goal-modal-grid input{width:100%;margin:0!important;padding:.72rem!important;border:1px solid #cbd5e1!important;border-radius:.68rem!important;background:#fff!important;font-size:.68rem!important;box-shadow:none!important}.employee-goal-modal-grid input:focus{border-color:#2563eb!important;box-shadow:0 0 0 3px #dbeafe!important}.employee-goal-modal-note{display:flex;align-items:center;gap:.4rem;margin:.85rem 0 0;padding:.65rem;border-radius:.65rem;color:#1e40af;background:#eff6ff;font-size:.58rem}
@media(max-width:820px){.team-performance-save-bar.is-sticky{top:.35rem}.team-performance-goal-profile-metrics{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.team-performance-goal-profile-head{align-items:stretch;flex-direction:column}.team-performance-goal-profile-head>button{width:100%}.employee-goal-modal-grid{grid-template-columns:1fr}.employee-goal-modal-grid label.is-full{grid-column:auto}}

/* Fotos da OS: visualização clara e ampliável em qualquer tela. */
.nova-os-camera-btn { display: none; }
.os-photo-open { position: relative; display: block; width: 100%; min-height: 9rem; overflow: hidden; border: 0; border-radius: 0; background: #e2e8f0; cursor: zoom-in; }
.os-photo-open img { display: block; width: 100%; height: 10rem; object-fit: cover; transition: transform .2s ease; }
.os-photo-open:hover img { transform: scale(1.025); }
.os-photo-open span { position: absolute; right: .55rem; bottom: .55rem; display: inline-flex; align-items: center; gap: .3rem; padding: .38rem .55rem; border-radius: .55rem; background: rgba(15,23,42,.82); color: #fff; font-size: .68rem; font-weight: 850; backdrop-filter: blur(8px); }
.os-photo-section { scroll-margin-top: 5rem; transition: box-shadow .2s ease, border-color .2s ease; }
.os-section-highlight { border-color: #38bdf8 !important; box-shadow: 0 0 0 4px rgba(56,189,248,.16) !important; }
.os-photo-viewer-card { display: flex; width: min(62rem,100%); max-height: calc(100dvh - 1.5rem); flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 1rem; background: #020617; color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.os-photo-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; }
.os-photo-viewer-head small,.os-photo-viewer-head strong { display: block; }.os-photo-viewer-head small { color: #7dd3fc; font-size: .68rem; font-weight: 900; text-transform: uppercase; }.os-photo-viewer-head strong { margin-top: .1rem; font-size: .95rem; }
.os-photo-viewer-head button { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: .8rem; background: rgba(255,255,255,.1); color: #fff; font-size: 1.25rem; }
.os-photo-viewer-card > img { width: 100%; min-height: 0; flex: 1; object-fit: contain; background: #000; }
.os-photo-viewer-card > p { min-height: 2.8rem; padding: .8rem 1rem; color: #cbd5e1; font-size: .78rem; }
.os-item-sections { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
.os-item-section { min-width: 0; border: 1px solid #dbe5f0; border-radius: 12px; background: #fff; }
.os-item-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid #e8edf4; background: #f8faff; border-radius: 12px 12px 0 0; }
.os-item-section-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.os-item-section-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border: 1px solid #dbeafe; border-radius: 10px; color: #2563eb; background: #eff6ff; font-size: 20px; }
.os-item-section-title h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: #0f172a; font-size: 15px; font-weight: 800; }
.os-item-section-title p { margin: 3px 0 0; color: #64748b; font-size: 12px; line-height: 1.4; }
.os-item-count { display: inline-grid; place-items: center; min-width: 22px; padding: 1px 6px; border-radius: 6px; background: #e8efff; color: #1d4ed8; font-size: 11px; font-weight: 700; }
.os-item-manage { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 7px 10px; border: 1px solid #bfdbfe; border-radius: 8px; color: #1d4ed8; background: #fff; font-size: 12px; font-weight: 700; }
.os-item-manage:hover { background: #eff6ff; border-color: #93c5fd; }
.os-item-summary { list-style: none; margin: 0; padding: 0 16px; }
.os-item-summary-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: 12px; align-items: start; padding: 16px 0; }
.os-item-summary-row + .os-item-summary-row { border-top: 1px solid #eef2f7; }
.os-item-summary-copy { min-width: 0; }
.os-item-description { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; color: #1e293b; font-size: 14px; line-height: 1.6; }
.os-item-summary-detail { margin: 5px 0 0; color: #64748b; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.os-item-summary-price { padding-top: 2px; color: #0f172a; white-space: nowrap; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.os-item-remove { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #94a3b8; font-size: 22px; line-height: 1; }
.os-item-remove:hover { background: #fff1f2; border-color: #fecdd3; color: #dc2626; }
.os-item-manage:focus-visible, .os-item-remove:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.os-item-section-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid #e8edf4; background: #fafbfd; border-radius: 0 0 12px 12px; color: #64748b; font-size: 12px; }
.os-item-section-total strong { color: #1d4ed8; font-size: 15px; font-variant-numeric: tabular-nums; }
.os-item-empty { padding: 18px 0; color: #64748b; font-size: 13px; }
.os-item-section-parts .os-item-section-heading { background: #fffcf5; }
.os-item-section-parts .os-item-section-icon { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.os-item-section-parts .os-item-count { color: #92400e; background: #fef3c7; }
.os-item-section-parts .os-item-manage { color: #92400e; border-color: #fcd68b; }
.os-item-section-parts .os-item-manage:hover { background: #fffbeb; }
.os-item-section-parts .os-item-section-total strong { color: #92400e; }
@media (max-width: 480px) {
    .os-item-section-heading { flex-wrap: wrap; padding: 12px; }
    .os-item-section-title p { display: none; }
    .os-item-section-icon { flex-basis: 30px; height: 30px; font-size: 18px; }
    .os-item-summary { padding: 0 12px; }
    .os-item-summary-row { grid-template-columns: minmax(0, 1fr) 32px; gap: 4px 8px; padding: 14px 0; }
    .os-item-summary-copy { grid-column: 1; grid-row: 1; }
    .os-item-remove { grid-column: 2; grid-row: 1; width: 32px; height: 32px; }
    .os-item-summary-price { grid-column: 1; grid-row: 2; margin-top: 4px; }
    .os-item-section-total { padding: 12px; }
}
html[data-tema="escuro"] .os-item-section { background: #18181b; border-color: #3f3f46; }
html[data-tema="escuro"] .os-item-section-heading, html[data-tema="escuro"] .os-item-section-total { background: #202023; border-color: #343438; }
html[data-tema="escuro"] .os-item-summary-row + .os-item-summary-row { border-color: #343438; }
html[data-tema="escuro"] :is(.os-item-section-title h3, .os-item-description, .os-item-summary-price) { color: #f4f4f5; }
html[data-tema="escuro"] :is(.os-item-section-title p, .os-item-summary-detail, .os-item-section-total, .os-item-empty) { color: #b4b4bc; }
html[data-tema="escuro"] .os-item-manage { background: #27272a; color: #bfdbfe; border-color: #45454d; }
html[data-tema="escuro"] .os-item-section-parts .os-item-manage, html[data-tema="escuro"] .os-item-section-parts .os-item-section-total strong { color: #fcd68b; }
html[data-tema="escuro"] .os-item-section-services .os-item-section-total strong { color: #93c5fd; }
.os-mobile-actions { display: none; }
.os-list-photo-badge { display: inline-flex; align-items: center; gap: .3rem; margin-top: .4rem; padding: .3rem .5rem; border-radius: 999px; background: #e0f2fe; color: #0369a1; font-size: .68rem; font-weight: 850; }

@media (max-width: 767px) {
    /* Controles consistentes e fáceis de tocar. */
    .nova-os-camera-btn { display: flex; }
    #nova-os .border-sky-200 > .flex { display: grid; grid-template-columns: 1fr 1fr; }
    #nova-os .border-sky-200 > .flex > div { grid-column: 1 / -1; }
    #nova-os .border-sky-200 > .flex > label { width: 100%; min-height: 3.2rem; padding: .7rem; text-align: center; }
    #nova-os-fotos-lista { grid-template-columns: 1fr 1fr; gap: .55rem; }
    #nova-os-fotos-lista > p { grid-column: 1 / -1; }
    .os-photo-open { min-height: 7.75rem; }
    .os-photo-open img { height: 8.5rem; }
    .os-photo-open span { right: .4rem; bottom: .4rem; font-size: .62rem; }
    .os-photo-card > div { padding: .65rem !important; }
    .os-photo-card > div input { min-height: 2.75rem !important; }

    #modal-os-fotos-atalho { position: sticky; z-index: 9; top: calc(4rem + env(safe-area-inset-top)); display: flex !important; width: calc(100% - 1.5rem); min-height: 4.2rem; align-items: center; gap: .65rem; margin: .7rem .75rem 0; padding: .65rem .75rem; border: 1px solid #dbeafe; border-radius: .9rem; background: #eff6ff; color: #1e40af; text-align: left; box-shadow: 0 6px 18px rgba(37,99,235,.09); }
    #modal-os-fotos-atalho.has-photos { border-color: #bae6fd; background: #f0f9ff; color: #075985; }
    .os-mobile-photo-icon { display: grid; width: 2.65rem; height: 2.65rem; flex: 0 0 auto; place-items: center; border-radius: .75rem; background: #2563eb; color: #fff; font-size: 1.2rem; }
    .os-mobile-photo-copy { min-width: 0; flex: 1; }.os-mobile-photo-copy strong,.os-mobile-photo-copy small { display: block; }.os-mobile-photo-copy strong { font-size: .78rem; font-weight: 900; }.os-mobile-photo-copy small { margin-top: .15rem; color: #475569; font-size: .68rem; line-height: 1.25; }
    .os-mobile-photo-thumbs { display: flex; flex: 0 0 auto; }.os-mobile-photo-thumbs img { width: 2.1rem; height: 2.1rem; margin-left: -.55rem; border: 2px solid #fff; border-radius: .6rem; object-fit: cover; box-shadow: 0 2px 5px rgba(15,23,42,.15); }.os-mobile-photo-thumbs img:first-child { margin-left: 0; }

    #modal-os-fotos-lista .grid { grid-template-columns: 1fr 1fr; gap: .55rem; }
    #modal-os-fotos-card > .flex:nth-child(2) { display: grid; grid-template-columns: 1fr 1fr; }
    #modal-os-fotos-card > .flex:nth-child(2) label { display: flex; min-height: 3.1rem; align-items: center; justify-content: center; padding: .55rem; text-align: center; }

    #modal-os .os-modal-footer { display: block; padding: .6rem .75rem !important; padding-bottom: max(.6rem,env(safe-area-inset-bottom)) !important; }
    #modal-os .os-desktop-action { display: none !important; }
    #modal-os .os-mobile-actions { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: .55rem; width: 100%; }
    #modal-os .os-mobile-actions > button { display: flex; min-height: 3.25rem; align-items: center; justify-content: center; gap: .4rem; font-size: .8rem; font-weight: 900; }
    #modal-os .os-mobile-more { border: 1px solid #cbd5e1; background: #fff; color: #334155; }
    #modal-os .os-mobile-save { background: #2563eb; color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.25); }
    #modal-os .os-mobile-actions-menu { position: absolute; right: 0; bottom: calc(100% + .7rem); left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .65rem; border: 1px solid #cbd5e1; border-radius: 1rem; background: #fff; box-shadow: 0 18px 45px rgba(15,23,42,.24); }
    #modal-os .os-mobile-actions-menu.hidden { display: none; }
    #modal-os .os-mobile-actions-menu button { display: flex; min-height: 3.4rem; align-items: center; justify-content: flex-start; gap: .55rem; padding: .65rem .75rem; border: 1px solid #e2e8f0; background: #f8fafc; color: #334155; font-size: .75rem; font-weight: 850; }
    #modal-os .os-mobile-actions-menu button i { font-size: 1.15rem; color: #2563eb; }
    #modal-os .os-mobile-actions-menu button.is-danger { color: #b91c1c; background: #fef2f2; }.os-mobile-actions-menu button.is-danger i { color: #dc2626 !important; }

    #mobile-menu-sheet .grid-cols-2 { gap: .55rem; }
    #mobile-menu-sheet .grid-cols-2 > button { min-height: 4.8rem; padding: .8rem; }
    #mobile-menu-sheet .grid-cols-2 > button p { margin-top: .35rem; font-size: .76rem; line-height: 1.2; }
    #foto-os-visualizador { padding: 0; }
    .os-photo-viewer-card { width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
    .os-photo-viewer-head { padding-top: max(.85rem,env(safe-area-inset-top)); }
    .os-photo-viewer-card > p { padding-bottom: max(.8rem,env(safe-area-inset-bottom)); }
}

@media (max-width: 370px) {
    #nova-os-fotos-lista, #modal-os-fotos-lista .grid { grid-template-columns: 1fr; }
    .os-mobile-photo-thumbs img:nth-child(n+2) { display: none; }
}

/* Deve permanecer no fim: converte relatórios densos em cartões apenas no celular. */
@media (max-width: 767px) {
    #mobile-menu-sheet .mobile-menu-grid > button { min-height: 4.25rem; padding: .65rem .7rem; }
    #mobile-menu-sheet .mobile-menu-grid > button > p { margin: 0; font-size: .72rem; }
    .team-performance-table-wrap { overflow: visible; }
    .team-performance-table,.team-metrics-table { display: block; width: 100%; min-width: 0; border-collapse: separate; }
    .team-performance-table thead { display: none; }
    .team-performance-table tbody { display: grid; gap: .7rem; }
    .team-performance-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; overflow: hidden; border: 1px solid #dce4ef; border-radius: .95rem; background: #fff; box-shadow: 0 5px 18px rgba(15,23,42,.045); }
    .team-performance-table td { position: static !important; display: flex; min-width: 0 !important; align-items: center; justify-content: space-between; gap: .65rem; padding: .68rem .8rem !important; border-top: 1px solid #edf1f6; background: #fff; font-size: .75rem; text-align: right; }
    .team-performance-table td::before { content: attr(data-label); flex: 0 0 auto; color: #64748b; font-size: .65rem; font-weight: 850; text-align: left; }
    .team-performance-table td:first-child { grid-column: 1/-1; justify-content: flex-start; border-top: 0; background: #f8fafc; text-align: left; }
    .team-performance-table td:first-child::before,.team-performance-table .team-performance-empty::before { display: none; }
    .team-performance-table td:last-child,.team-performance-table .team-performance-empty { grid-column: 1/-1; }
    .team-performance-table-progress { width: min(7rem,55%); }
}

@media (max-width: 389px) {
    .team-performance-table tr { grid-template-columns: 1fr; }
    .team-performance-table td,.team-performance-table td:last-child { grid-column: 1; }
    .team-performance-table td:first-child { grid-column: 1; }
}

/* Mobile 2.0 — estrutura de aplicativo, legibilidade e fluxos sem cortes. */
@media screen and (max-width: 767px) {
    :root { --mobile-header-height: 4rem; --mobile-nav-height: 4.75rem; }
    html, body { max-width: 100%; overflow-x: clip !important; }
    body { min-height: 100dvh; }
    body > main { width: 100%; height: 100dvh !important; padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)) !important; overflow-x: clip !important; }
    body > main > div { width: 100%; max-width: 100%; padding: .75rem .75rem 1.5rem !important; }
    .secao, .secao > *, .secao form, .secao form > *, .secao [class*="grid-cols-"] > * { min-width: 0; max-width: 100%; }
    .secao img, .secao video, .secao canvas, [id^="modal-"] img, [id^="modal-"] video { max-width: 100%; }

    /* Cabeçalho enxuto: marca, contexto atual e menu sempre no mesmo lugar. */
    #mobile-app-header { min-height: calc(var(--mobile-header-height) + env(safe-area-inset-top)); grid-template-columns: 6.35rem minmax(0,1fr) 2.75rem; gap: .55rem; padding: max(.55rem,env(safe-area-inset-top)) .75rem .55rem; }
    .mobile-brand-logo { width: 6.35rem; }
    .mobile-header-copy > span { display: none; }
    .mobile-header-copy strong { margin: 0; font-size: 1rem; line-height: 1.2; }
    #mobile-app-header > button { width: 2.75rem; height: 2.75rem; border-radius: .85rem; }

    /* Barra inferior estável e previsível, sem flutuar sobre os campos. */
    #mobile-bottom-nav { right: 0; bottom: 0; left: 0; height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); padding: .35rem .3rem max(.35rem,env(safe-area-inset-bottom)); overflow: hidden; border-width: 1px 0 0; border-radius: 0; background: rgba(255,255,255,.98); box-shadow: 0 -8px 26px rgba(15,23,42,.12); }
    #mobile-bottom-nav .mobile-aba { min-width: 0; min-height: 4rem; padding: .3rem .12rem; border-radius: .8rem; }
    #mobile-bottom-nav .mobile-aba:nth-child(2), #mobile-bottom-nav .mobile-aba:nth-child(2).text-blue-600 { background: transparent; box-shadow: none; color: #64748b !important; }
    #mobile-bottom-nav .mobile-aba:nth-child(2) i, #mobile-bottom-nav .mobile-aba:nth-child(2) span { color: inherit; }
    #mobile-bottom-nav .mobile-aba.text-blue-600, #mobile-bottom-nav .mobile-aba:nth-child(2).text-blue-600 { color: #1d4ed8 !important; background: #eff6ff; box-shadow: inset 0 0 0 1px #dbeafe; }
    #mobile-bottom-nav .mobile-aba i { font-size: 1.35rem; }
    #mobile-bottom-nav .mobile-aba span { margin-top: .1rem; font-size: .7rem; line-height: 1.1; font-weight: 850; }

    /* “Mais” vira uma tela de destinos: uma opção por linha e leitura imediata. */
    #mobile-menu-sheet { align-items: stretch; background: #f8fafc; }
    #mobile-menu-sheet > div { width: 100%; height: 100dvh; max-height: 100dvh; padding: max(.65rem,env(safe-area-inset-top)) .75rem max(1rem,env(safe-area-inset-bottom)); border-radius: 0; background: #f8fafc; }
    #mobile-menu-sheet > div > .flex:first-child { position: sticky; z-index: 5; top: calc(-1 * max(.65rem,env(safe-area-inset-top))); margin: 0 -.75rem .65rem; padding: max(.65rem,env(safe-area-inset-top)) .75rem .6rem; border-bottom: 1px solid #e2e8f0; background: rgba(255,255,255,.98); }
    #mobile-menu-sheet > div > .flex:first-child h2 { font-size: 1.15rem; }
    #mobile-menu-sheet > div > .flex:first-child p { font-size: .78rem; }
    #mobile-menu-sheet > div > .flex:first-child button { width: 2.75rem; min-height: 2.75rem; }
    .mobile-menu-account { min-height: 4rem; padding: .7rem .8rem; }
    .mobile-menu-account strong { font-size: .9rem; }.mobile-menu-account small { font-size: .75rem; }
    .mobile-menu-install { min-height: 3.75rem; }.mobile-menu-install strong { font-size: .875rem; }.mobile-menu-install small { font-size: .75rem; }
    .mobile-menu-section-title { margin: 1rem .15rem .4rem; font-size: .75rem; }
    #mobile-menu-sheet .mobile-menu-grid, #mobile-menu-sheet .grid-cols-2 { display: grid; grid-template-columns: 1fr !important; gap: .45rem; }
    #mobile-menu-sheet .mobile-menu-grid > button, #mobile-menu-sheet .grid-cols-2 > button { display: grid; width: 100%; min-height: 3.5rem; grid-template-columns: 2.5rem minmax(0,1fr) auto; align-items: center; gap: .65rem; padding: .55rem .7rem; border: 1px solid #e2e8f0; border-radius: .85rem; background: #fff; text-align: left; box-shadow: 0 2px 8px rgba(15,23,42,.035); }
    #mobile-menu-sheet .mobile-menu-grid > button > i { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: .7rem; background: #eff6ff; font-size: 1.25rem; }
    #mobile-menu-sheet .mobile-menu-grid > button > p, #mobile-menu-sheet .grid-cols-2 > button p { margin: 0; font-size: .875rem; line-height: 1.25; }
    #mobile-conta-acoes { display: grid; grid-template-columns: 1fr 1fr !important; gap: .5rem; }
    #mobile-conta-acoes button { min-height: 3rem; font-size: .82rem; }

    /* Tipografia e alvos de toque adequados para uso contínuo em campo. */
    .secao { font-size: .9375rem; }
    .secao h1 { font-size: 1.35rem !important; line-height: 1.2; }
    .secao h2 { font-size: 1.05rem; }
    .secao label, .secao label > span, .secao .text-sm { font-size: .875rem; }
    .secao .text-xs { font-size: .75rem; }
    .secao button, [id^="modal-"] button, .team-performance-tabs button, .team-performance-overview-tabs button, .team-portal-unified-tabs button, .commission-tabs button, .config-hub-nav button { min-height: 44px; }
    .secao input:not([type="checkbox"]):not([type="radio"]), .secao select, .secao textarea, [id^="modal-"] input:not([type="checkbox"]):not([type="radio"]), [id^="modal-"] select, [id^="modal-"] textarea { width: 100%; min-height: 3.15rem; padding: .75rem; font-size: 16px !important; }

    /* Cabeçalhos com ação: título em cima, ação clara logo abaixo. */
    #dashboard > .flex:first-child, #clientes-listagem > .flex:first-child, #estoque > .flex:first-child, #impressoes > .flex:first-child, #os-etapa-dados > .flex:first-child { align-items: stretch !important; flex-direction: column !important; gap: .75rem; margin-bottom: 1rem; }
    #dashboard > .flex:first-child > button, #estoque > .flex:first-child > div:last-child, #impressoes > .flex:first-child > button, #os-etapa-dados > .flex:first-child > button { width: 100%; justify-content: center; }
    #clientes-listagem > .flex:first-child > div:last-child { display: grid; width: 100%; grid-template-columns: minmax(0,1fr) auto; gap: .5rem; }
    .print-settings-heading { align-items: stretch; flex-direction: column; }
    .print-heading-actions { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
    .print-heading-actions button { width: 100%; }

    /* Formulários mudam de apresentação no telefone, em vez de apenas encolher. */
    .secao form [class*="grid-cols-"], #form-novo-cliente [class*="grid-cols-"], #equipe [class*="grid-cols-"], #estoque [class*="grid-cols-"], #configuracoes [class*="grid-cols-"], #conta [class*="grid-cols-"], #catalogo [class*="grid-cols-"] { grid-template-columns: minmax(0,1fr) !important; }
    .secao form [class*="col-span-"], #form-novo-cliente [class*="col-span-"] { grid-column: auto !important; }
    .secao form .justify-between, #form-novo-cliente .justify-between { flex-wrap: wrap; }
    .secao form .justify-between > button, #form-novo-cliente .justify-between > button { flex: 1 1 auto; }
    #form-novo-cliente > .flex:last-child, #form-novo-cliente .flex.flex-col.md\:flex-row { width: 100%; }
    #form-novo-cliente > .flex:last-child button { width: 100%; }

    /* Abertura de OS com passos curtos e uma tarefa por tela. */
    #nova-os > .grid.grid-cols-3 { position: sticky; z-index: 18; top: calc(var(--mobile-header-height) + env(safe-area-inset-top)); grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: .35rem; margin: 0 -.75rem .75rem; padding: .5rem .75rem; background: rgba(241,245,249,.97); backdrop-filter: blur(12px); }
    #nova-os > .grid.grid-cols-3 button { min-height: 3.25rem; padding: .45rem .55rem; text-align: center; }
    #nova-os > .grid.grid-cols-3 button span { font-size: .65rem; }
    #nova-os > .grid.grid-cols-3 button strong { margin-top: .05rem; font-size: .8rem; white-space: nowrap; }
    #nova-os form > .space-y-5, #nova-os #os-etapa-dados { gap: .75rem; }
    #nova-os form > .grid > div, #nova-os form > .bg-white, #nova-os #os-etapa-cliente, #nova-os #os-etapa-item, #nova-os #os-etapa-dados > .bg-white { padding: .9rem; border-radius: 1rem; }
    #nova-os #os-etapa-cliente > .flex:first-child { flex-wrap: wrap; }
    #nova-os #os-clientes-contador { order: -1; margin-left: auto; }
    #nova-os form > .bg-white > button:last-child { bottom: calc(var(--mobile-nav-height) + .55rem + env(safe-area-inset-bottom)); }
    #nova-os .border-sky-200 > .flex { grid-template-columns: 1fr !important; }
    #nova-os-fotos-lista { grid-template-columns: 1fr !important; }

    /* Listas e cartões substituem densidade de desktop. */
    #lista-clientes > li, #lista-equipe > li, #lista-os > li, #lista-estoque > li { padding: .9rem !important; }
    #lista-clientes > li .flex, #lista-equipe > li .flex, #lista-os > li .flex { min-width: 0; }
    .inicio-status-grid { grid-template-columns: 1fr 1fr !important; }
    .team-performance-summary, .team-metrics-kpis { grid-template-columns: 1fr 1fr !important; }
    .team-performance-goals-grid, .team-performance-main-grid, .team-metrics-chart-grid, .team-metrics-chart-grid.is-secondary { grid-template-columns: 1fr !important; }
    .team-performance-goal-profile-head { align-items: stretch; flex-direction: column; }
    .team-performance-goal-profile-head > button { width: 100%; min-height: 2.85rem; font-size: .8rem; }
    .team-performance-goal-profile-metrics { grid-template-columns: 1fr 1fr; }
    .team-performance-goal-profile-metrics span { font-size: .72rem; white-space: normal; }.team-performance-goal-profile-metrics strong { font-size: .82rem; white-space: normal; }
    .team-performance-tabs, .team-performance-overview-tabs, .team-portal-unified-tabs, .commission-tabs, .config-hub-nav { width: calc(100% + 1.5rem); max-width: none; margin-inline: -.75rem; padding-inline: .75rem; overflow-x: auto; border-radius: 0; }
    .team-performance-tabs button, .team-performance-overview-tabs button, .team-portal-unified-tabs button, .commission-tabs button, .config-hub-nav button { flex: 0 0 auto; padding: .65rem .85rem; font-size: .8rem; }
    .team-performance-save-bar.is-sticky { top: calc(var(--mobile-header-height) + env(safe-area-inset-top) + .4rem); align-items: stretch; flex-direction: column; gap: .65rem; padding: .8rem; }
    .team-performance-save-bar.is-sticky button { width: 100%; }

    /* Tabelas densas continuam roláveis, com pista visual em vez de conteúdo cortado. */
    .secao table:not(.team-performance-table):not(.team-metrics-table) { display: table; width: max-content; min-width: 100%; }
    .secao table:not(.team-performance-table):not(.team-metrics-table) th, .secao table:not(.team-performance-table):not(.team-metrics-table) td { min-width: 8rem; }
    .secao [class*="overflow-x-auto"] { max-width: 100%; overflow-x: auto !important; scrollbar-width: thin; scroll-snap-type: none; }
    .secao [class*="overflow-x-auto"]::-webkit-scrollbar { display: block; height: 5px; }
    .secao [class*="overflow-x-auto"]::-webkit-scrollbar-thumb { border-radius: 99px; background: #94a3b8; }

    /* Modais como telas: cabeçalho e ação permanecem alcançáveis. */
    body > [id^="modal-"]:not(#mobile-menu-sheet) > div { overscroll-behavior-y: contain; }
    body > [id^="modal-"]:not(#mobile-menu-sheet) > div > div.sticky:first-child { min-height: calc(var(--mobile-header-height) + env(safe-area-inset-top)); }
    #modal-os .os-mobile-actions-menu { grid-template-columns: 1fr; max-height: min(70dvh,30rem); overflow-y: auto; }
    #modal-os .os-mobile-actions-menu button { min-height: 3.25rem; font-size: .85rem; }
    .swal2-popup { max-height: calc(100dvh - .75rem); overflow-y: auto; }
    .employee-goal-modal-grid { grid-template-columns: 1fr; }
    .employee-goal-modal-grid label.is-full { grid-column: auto; }
    .employee-goal-modal-grid label > span { font-size: .8rem; }
    .employee-goal-modal-note { font-size: .75rem; }
}

@media screen and (max-width: 389px) {
    .inicio-status-grid, .team-performance-summary, .team-metrics-kpis, .team-performance-goal-profile-metrics { grid-template-columns: 1fr !important; }
    #mobile-bottom-nav .mobile-aba span { font-size: .65rem; }
    #mobile-conta-acoes { grid-template-columns: 1fr !important; }
}

/* Modal da OS no celular: cabeçalho, fotos e rodapé nunca se sobrepõem. */
@media screen and (max-width: 767px) {
    #modal-os > div > div.sticky:first-child {
        display: grid;
        min-height: 0;
        grid-template-columns: minmax(0,1fr) 2.75rem;
        align-items: start;
        gap: .65rem;
        padding: max(.75rem,env(safe-area-inset-top)) .75rem .75rem !important;
    }
    #modal-os > div > div.sticky:first-child > div { min-width: 0; }
    #modal-os > div > div.sticky:first-child > div > .flex {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: .45rem;
    }
    #modal-os > div > div.sticky:first-child h2 { min-height: 2rem; display: flex; align-items: center; }
    #modal-os-status-geral { width: 100%; min-height: 3rem; }
    #modal-os > div > div.sticky:first-child > div > p { margin-top: .45rem; font-size: .78rem; line-height: 1.35; }
    #modal-os > div > div.sticky:first-child > button { width: 2.75rem; height: 2.75rem; min-height: 2.75rem; padding: 0; }

    #modal-os-fotos-atalho {
        position: relative;
        z-index: 1;
        top: auto;
        width: calc(100% - 1.5rem);
        margin: .65rem .75rem 0;
    }
    #modal-os-fotos-atalho .os-mobile-photo-copy small { font-size: .75rem; }

    #modal-os > div > .os-modal-footer {
        position: sticky;
        z-index: 30;
        bottom: 0;
        display: block !important;
        width: 100%;
        grid-template-columns: none !important;
        padding: .6rem .75rem max(.6rem,env(safe-area-inset-bottom)) !important;
        background: rgba(248,250,252,.98);
    }
    #modal-os > div > .os-modal-footer .os-mobile-actions {
        display: grid !important;
        width: 100%;
        grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
        gap: .55rem;
    }
    #modal-os > div > .os-modal-footer .os-mobile-actions > button,
    #modal-os > div > .os-modal-footer .os-mobile-actions > button:last-child {
        width: 100%;
        min-width: 0;
        min-height: 3.25rem;
        grid-column: auto !important;
        margin: 0 !important;
    }
}

/* Instalação guiada e proteção estrutural da experiência mobile 3.0. */
@media screen and (max-width: 767px) {
    html,body { width: 100%; max-width: 100%; overscroll-behavior-x: none; }
    body > main,.secao,.secao > * { min-width: 0; max-width: 100%; }
    .secao :is(.grid,.flex) > * { min-width: 0; }
    .secao :is(img,video,canvas) { max-width: 100%; height: auto; }
    .secao :is(button,a,input,select,textarea) { touch-action: manipulation; }
    body.mobile-overlay-active { overflow: hidden !important; }

    #mobile-install-card {
        position: relative;
        display: block;
        min-height: 0;
        margin: .85rem 0 1rem;
        padding: 1rem;
        overflow: hidden;
        border: 1px solid #9fc1ff;
        border-radius: 1.15rem;
        color: #fff;
        background: linear-gradient(140deg,#071d4b 0%,#124bb5 68%,#2270f0 100%);
        box-shadow: 0 14px 30px rgba(20,73,174,.2);
    }
    #mobile-install-card:not(.hidden) { display: block; }
    #mobile-install-card.hidden { display: none; }
    #mobile-install-card::after {
        content: "";
        position: absolute;
        right: -3rem;
        bottom: -4rem;
        width: 9rem;
        height: 9rem;
        border-radius: 50%;
        background: rgba(255,255,255,.1);
        pointer-events: none;
    }
    .mobile-install-dismiss {
        position: absolute;
        z-index: 2;
        top: .6rem;
        right: .6rem;
        display: grid;
        width: 2.4rem;
        min-height: 2.4rem;
        place-items: center;
        border-radius: .75rem;
        color: #dbeafe;
        background: rgba(255,255,255,.1);
        font-size: 1.05rem;
    }
    .mobile-install-intro { display: grid; grid-template-columns: 2.8rem minmax(0,1fr); align-items: center; gap: .75rem; padding-right: 2.25rem; }
    .mobile-install-icon { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: .85rem; color: #1045a1; background: #fff; font-size: 1.35rem; box-shadow: 0 8px 18px rgba(2,14,43,.18); }
    #mobile-install-card .mobile-install-intro small,#mobile-install-card .mobile-install-intro strong { display: block; }
    #mobile-install-card .mobile-install-intro small { margin-top: 0; color: #bfdbfe; font-size: .7rem; font-weight: 900; letter-spacing: .04em; line-height: 1.2; text-transform: uppercase; }
    #mobile-install-card .mobile-install-intro strong { margin-top: .12rem; color: #fff; font-size: 1rem; line-height: 1.2; font-weight: 950; }
    #mobile-install-card > p { max-width: 29rem; margin: .8rem 0 0; color: #dbeafe; font-size: .82rem; line-height: 1.45; }
    .mobile-install-benefits { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
    .mobile-install-benefits span { display: inline-flex; min-height: 1.9rem; align-items: center; gap: .3rem; padding: .3rem .5rem; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #eff6ff; background: rgba(255,255,255,.1); font-size: .67rem; font-weight: 800; }
    .mobile-install-action { position: relative; z-index: 1; display: grid; width: 100%; min-height: 3.2rem; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .55rem; margin-top: .85rem; padding: .65rem .8rem; border-radius: .85rem; color: #0f3e92; background: #fff; font-size: .84rem; font-weight: 950; text-align: left; box-shadow: 0 8px 22px rgba(2,14,43,.18); }
    .mobile-install-action > i:last-child { font-size: 1rem; }

    #modal-install-app { position: fixed; z-index: 120; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgba(3,13,33,.68); backdrop-filter: blur(4px); }
    #modal-install-app.hidden { display: none; }
    .mobile-install-sheet { width: 100%; max-height: min(92dvh,46rem); overflow-y: auto; padding: .45rem .95rem max(1rem,env(safe-area-inset-bottom)); border-radius: 1.45rem 1.45rem 0 0; color: #0f172a; background: #fff; box-shadow: 0 -18px 50px rgba(2,14,43,.25); animation: mobileSheetIn .22s ease-out; }
    .mobile-install-sheet-handle { width: 2.7rem; height: .28rem; margin: .15rem auto .65rem; border-radius: 999px; background: #cbd5e1; }
    .mobile-install-sheet header { display: grid; grid-template-columns: 3rem minmax(0,1fr) 2.65rem; align-items: center; gap: .7rem; }
    .mobile-install-sheet header > span { display: grid; width: 3rem; height: 3rem; place-items: center; overflow: hidden; border-radius: .9rem; background: #0b327a; box-shadow: 0 8px 18px rgba(15,63,151,.2); }
    .mobile-install-sheet header img { width: 100%; height: 100%; object-fit: cover; }
    .mobile-install-sheet header small { display: block; color: #2563eb; font-size: .67rem; font-weight: 950; text-transform: uppercase; }
    .mobile-install-sheet header h2 { margin-top: .1rem; font-size: 1.05rem; line-height: 1.2; font-weight: 950; }
    .mobile-install-sheet header button { display: grid; width: 2.65rem; min-height: 2.65rem; place-items: center; border-radius: .8rem; color: #475569; background: #f1f5f9; font-size: 1.1rem; }
    .mobile-install-sheet-copy { margin: .85rem 0; color: #64748b; font-size: .82rem; line-height: 1.5; }
    .mobile-install-steps { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
    .mobile-install-steps li { display: grid; min-width: 0; grid-template-columns: 1.65rem 2.45rem minmax(0,1fr); align-items: center; gap: .55rem; padding: .7rem; border: 1px solid #e2e8f0; border-radius: .9rem; background: #f8fafc; }
    .mobile-install-steps li > b { display: grid; width: 1.65rem; height: 1.65rem; place-items: center; border-radius: 50%; color: #fff; background: #2563eb; font-size: .72rem; }
    .mobile-install-steps li > i { display: grid; width: 2.45rem; height: 2.45rem; place-items: center; border-radius: .75rem; color: #1d4ed8; background: #dbeafe; font-size: 1.15rem; }
    .mobile-install-steps strong,.mobile-install-steps small { display: block; }
    .mobile-install-steps strong { font-size: .8rem; line-height: 1.25; }
    .mobile-install-steps small { margin-top: .15rem; color: #64748b; font-size: .7rem; line-height: 1.35; }
    .mobile-install-sheet-actions { display: grid; gap: .5rem; margin-top: .85rem; }
    .mobile-install-sheet-actions button { min-height: 3.15rem; border-radius: .85rem; font-size: .82rem; font-weight: 950; }
    #install-guide-primary { display: flex; align-items: center; justify-content: center; gap: .45rem; color: #fff; background: #1557d6; box-shadow: 0 9px 22px rgba(21,87,214,.23); }
    #install-guide-primary.hidden { display: none; }
    .mobile-install-sheet-actions button:last-child { color: #475569; background: #f1f5f9; }
    .mobile-install-privacy { display: flex; align-items: flex-start; justify-content: center; gap: .35rem; margin-top: .7rem; color: #64748b; font-size: .66rem; line-height: 1.35; text-align: center; }
    .mobile-install-privacy i { flex: 0 0 auto; color: #059669; font-size: .9rem; }
}

/* Mobile 3.1: OS e encerramento funcionam como telas completas, sem camadas sobrepostas. */
@media screen and (max-width: 767px) {
    #foto-os-visualizador { position: fixed; z-index: 130; inset: 0; display: flex; }
    #foto-os-visualizador.hidden { display: none; }
    .os-filter-strip {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: .5rem !important;
        width: 100%;
        margin: 0 0 .85rem !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    .os-filter-strip .filtro-os { width: 100%; min-width: 0; min-height: 3rem; padding: .6rem .55rem; white-space: normal; line-height: 1.15; text-align: center; }
    .os-filter-strip .filtro-os[data-filtro="entregue"] { grid-column: 1 / -1; }

    #modal-os {
        position: fixed;
        z-index: 50;
        inset: 0;
        display: flex;
        align-items: stretch;
        justify-content: stretch;
        padding: 0 !important;
        background: #f8fafc !important;
    }
    #modal-os.hidden { display: none; }
    #modal-os > div {
        display: flex;
        width: 100%;
        max-width: none;
        height: 100dvh;
        max-height: none;
        min-height: 0;
        flex-direction: column;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    #modal-os .os-screen-header {
        position: relative !important;
        z-index: 20;
        display: grid;
        min-height: 0;
        flex: 0 0 auto;
        grid-template-columns: minmax(0,1fr) 2.75rem;
        align-items: start;
        gap: .65rem;
        padding: max(.7rem,env(safe-area-inset-top)) .75rem .7rem !important;
        border-radius: 0;
        background: #fff;
        box-shadow: 0 4px 16px rgba(15,23,42,.05);
    }
    #modal-os .os-screen-header-main { min-width: 0; }
    #modal-os .os-screen-header-main > .flex { display: grid; grid-template-columns: 1fr; gap: .45rem; }
    #modal-os .os-screen-header h2 { min-height: 0; font-size: 1.08rem; line-height: 1.2; }
    #modal-os #modal-os-status-geral { width: 100%; min-height: 2.9rem; margin: 0; }
    #modal-os .os-screen-header-main > p { display: block; overflow: hidden; margin-top: .4rem; font-size: .76rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
    #modal-os .os-screen-header > button { display: grid; width: 2.75rem; height: 2.75rem; min-height: 2.75rem; place-items: center; padding: 0; border-radius: .8rem; background: #f1f5f9; }
    #modal-os #modal-os-fotos-atalho {
        position: relative;
        z-index: 10;
        top: auto;
        width: auto;
        min-height: 3.7rem;
        flex: 0 0 auto;
        margin: .55rem .75rem 0;
        padding: .55rem .65rem;
        box-shadow: none;
    }
    #modal-os #modal-os-fotos-atalho .os-mobile-photo-icon { width: 2.35rem; height: 2.35rem; }
    #modal-os #modal-os-fotos-atalho .os-mobile-photo-copy strong { font-size: .82rem; }
    #modal-os #modal-os-fotos-atalho .os-mobile-photo-copy small { font-size: .72rem; }
    #modal-os .os-screen-scroll {
        display: block;
        min-height: 0;
        flex: 1 1 auto;
        overflow-x: hidden;
        overflow-y: auto;
        padding: .75rem .75rem 1rem !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }
    #modal-os .os-screen-scroll > div + div { margin-top: .75rem; }
    #modal-os #modal-os-fotos-lista .grid { grid-template-columns: minmax(0,1fr) !important; }
    #modal-os .os-photo-card { width: 100%; min-width: 0; }
    #modal-os .os-photo-card input { min-width: 0; }
    #modal-os > div > .os-modal-footer { position: relative; z-index: 30; bottom: auto; flex: 0 0 auto; padding-right: .4rem !important; padding-left: .4rem !important; border-radius: 0; box-shadow: 0 -8px 24px rgba(15,23,42,.1); }

    #modal-encerramento {
        position: fixed;
        z-index: 65;
        inset: 0;
        display: flex;
        align-items: stretch;
        justify-content: stretch;
        padding: 0 !important;
        background: #f8fafc !important;
    }
    #modal-encerramento.hidden { display: none; }
    #modal-encerramento .closeout-screen {
        display: flex;
        width: 100%;
        max-width: none;
        height: 100dvh;
        max-height: none;
        min-height: 0;
        flex-direction: column;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    #modal-encerramento .closeout-header {
        position: relative !important;
        z-index: 20;
        min-height: 0;
        flex: 0 0 auto;
        padding: max(.75rem,env(safe-area-inset-top)) .75rem .75rem !important;
        border-radius: 0;
        background: #fff;
        box-shadow: 0 4px 16px rgba(15,23,42,.05);
    }
    #modal-encerramento .closeout-header > div { min-width: 0; }
    #modal-encerramento .closeout-header h2 { font-size: 1.08rem; line-height: 1.2; }
    #modal-encerramento .closeout-header p { margin-top: .25rem; font-size: .73rem; line-height: 1.35; }
    #modal-encerramento .closeout-header > button { display: grid; width: 2.75rem; height: 2.75rem; min-height: 2.75rem; flex: 0 0 auto; place-items: center; padding: 0; border-radius: .8rem; background: #f1f5f9; }
    #modal-encerramento .closeout-scroll {
        display: block;
        min-height: 0;
        flex: 1 1 auto;
        overflow-x: hidden;
        overflow-y: auto;
        padding: .75rem .75rem 1rem !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }
    #modal-encerramento .closeout-scroll > div + div { margin-top: .75rem; }
    #modal-encerramento .closeout-scroll > div:first-child > .grid:first-child { grid-template-columns: 1fr 1fr; gap: .55rem; }
    #modal-encerramento .closeout-scroll > div:first-child > .grid:first-child > div { min-width: 0; padding: .75rem; }
    #modal-encerramento .closeout-scroll > div:first-child > .grid:first-child h3 { align-items: flex-start; font-size: .8rem; line-height: 1.25; }
    #modal-encerramento .closeout-scroll > div:first-child > .grid:first-child li { align-items: flex-start; flex-direction: column; padding: .6rem; font-size: .72rem; }
    #modal-encerramento .closeout-payment-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
    #modal-encerramento .closeout-payment-grid .pay-btn { display: flex; min-width: 0; min-height: 3.4rem; align-items: center; gap: .55rem; padding: .65rem .7rem; text-align: left; }
    #modal-encerramento .closeout-payment-grid .pay-btn[data-pay="combinado"] { grid-column: 1 / -1; }
    #modal-encerramento .closeout-payment-grid .pay-btn i { flex: 0 0 auto; font-size: 1.3rem; }
    #modal-encerramento .closeout-payment-grid .pay-btn p { min-width: 0; margin: 0; font-size: .82rem; line-height: 1.2; }
    #modal-encerramento #fechamento-combinado { padding: .75rem; }
    #modal-encerramento .closeout-desktop-submit { display: none !important; }
    #modal-encerramento .closeout-mobile-footer {
        display: grid !important;
        min-height: calc(4.75rem + env(safe-area-inset-bottom));
        flex: 0 0 auto;
        grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr);
        align-items: center;
        gap: .65rem;
        padding: .6rem .75rem max(.6rem,env(safe-area-inset-bottom));
        border-top: 1px solid #e2e8f0;
        background: rgba(255,255,255,.98);
        box-shadow: 0 -8px 24px rgba(15,23,42,.1);
    }
    #modal-encerramento .closeout-mobile-footer small,#modal-encerramento .closeout-mobile-footer strong { display: block; }
    #modal-encerramento .closeout-mobile-footer small { color: #64748b; font-size: .68rem; font-weight: 800; }
    #modal-encerramento .closeout-mobile-footer strong { overflow: hidden; margin-top: .1rem; color: #0f172a; font-size: 1rem; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
    #modal-encerramento .closeout-mobile-footer button { display: flex; min-width: 0; min-height: 3.3rem; align-items: center; justify-content: center; gap: .4rem; border-radius: .9rem; color: #fff; background: #16a34a; font-size: .85rem; font-weight: 950; box-shadow: 0 8px 20px rgba(22,163,74,.24); }
}

@media screen and (max-width: 370px) {
    #modal-encerramento .closeout-scroll > div:first-child > .grid:first-child { grid-template-columns: 1fr; }
    #modal-encerramento .closeout-mobile-footer { grid-template-columns: minmax(0,.68fr) minmax(0,1.32fr); }
}

@media (max-width: 1050px) {
    .os-overview-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .os-overview-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .inicio-hero { align-items: stretch; flex-direction: column; padding: 1.3rem 1.2rem 0; }
    .inicio-hero-action { width: 100%; }
    .inicio-plano-faixa { width: calc(100% + 2.4rem); flex-wrap: wrap; margin: 0 -1.2rem; padding: .55rem 1.2rem; }
    .inicio-plano-faixa small { flex-basis: calc(100% - 2.1rem); order: 3; margin-left: 2.05rem; }
    .inicio-plano-faixa button { margin-left: auto; }
    .os-overview-header { align-items: stretch; flex-direction: column; }.os-overview-header h1{font-size:1.5rem}.os-overview-new{width:100%}
    .os-overview-metrics { grid-template-columns: 1fr 1fr; gap: .55rem; }.os-overview-metrics button{padding:.75rem}.os-overview-metrics button>span{width:2.2rem;height:2.2rem}.os-overview-metrics em{display:none}
    .os-overview-list-card>header { align-items: stretch; flex-direction: column; }.os-overview-search{width:100%;flex-basis:auto}.os-overview-search input{min-height:2.8rem}
    .os-overview-row { grid-template-columns: auto minmax(0,1fr); }.os-overview-row-meta{grid-column:2;text-align:left}.os-overview-row-meta small{display:none}
    .os-overview-base { grid-template-columns: 1fr; }
}

/* Etapas de OS: manter o nome completo nos indicadores, inclusive no celular. */
.os-overview-metrics small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }
