@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Michroma&display=swap");
/* ── assets/css/styles.css ── */
/* LAG 3D Studio — estilos */
:root, :root[data-theme="dark"] {
  --bg: #07070a; --bg-2: #0b0b0f; --surface: #101015; --surface-2: #15151c; --surface-3: #1b1b23; --surface-4: #23232d;
  --line: #20202a; --line-2: #2b2b37; --text: #f5f5f7; --text-2: #c8c8d2; --muted: #8a8a98; --muted-2: #5a5a67;
  --green: #9be33a; --green-2: #7cc21c; --purple: #a855f7; --purple-2: #7c3aed; --purple-txt: #b98cff;
  --orange: #f97316; --red: #f04444; --blue: #4f8ff7; --cyan: #22d3ee; --yellow: #eab308; --pink: #ec4899;
  --art-bg1: #2a2a33; --art-bg2: #101014; --shadow: 0 20px 50px rgba(0,0,0,.55); --glass: rgba(10,10,14,.72);
  --radius: 14px; --sb-w: 256px; --tb-h: 72px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f3f6; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #f6f6f9; --surface-3: #efeff4; --surface-4: #e6e6ee;
  --line: #e7e7ee; --line-2: #dcdce5; --text: #15151b; --text-2: #3b3b46; --muted: #6c6c7a; --muted-2: #a2a2b0;
  --green: #5fa30f; --green-2: #4d8a07; --purple: #8b3dff; --purple-2: #6d28d9; --purple-txt: #7c3aed;
  --art-bg1: #f2f2f6; --art-bg2: #d9d9e2; --shadow: 0 20px 50px rgba(20,20,40,.14); --glass: rgba(255,255,255,.8);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
::selection { background: color-mix(in srgb, var(--purple) 40%, transparent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); } .t-red { color: var(--red) !important; } .t-green { color: var(--green) !important; } .t-purple { color: var(--purple-txt) !important; } .t-orange { color: var(--orange) !important; }
.ta-right { text-align: right; } .ta-center { text-align: center; }
.mr-auto { margin-right: auto !important; } .mt { margin-top: 16px; } .mt-sm { margin-top: 8px; } .mb { margin-bottom: 16px; }
.nowrap { white-space: nowrap; } .strong { font-weight: 650; } .small { font-size: 12px; }

/* ── sidebar ── */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sb-w); background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 40; }
.sb-logo { padding: 18px 20px 6px; }
.logo { display: flex; justify-content: center; }
.logo-img { display: block; height: 108px; width: auto; }
.sb-nav { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.sb-link { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 10px; color: var(--text-2); font-size: 15px; font-weight: 500; position: relative; transition: background .15s, color .15s; }
.sb-link:hover { background: var(--surface-2); color: var(--text); }
.sb-link span { flex: 1; }
.sb-chev { opacity: 0; transition: transform .2s, opacity .2s; display: flex; }
.sb-group:hover .sb-chev, .sb-group.open .sb-chev { opacity: .6; }
.sb-group.open .sb-chev { transform: rotate(180deg); }
.sb-group.active > .sb-link { background: linear-gradient(90deg, color-mix(in srgb, var(--green) 14%, transparent), color-mix(in srgb, var(--green) 3%, transparent)); color: var(--text); }
.sb-group.active > .sb-link::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); box-shadow: 0 0 12px var(--green); }
.sb-group.active > .sb-link .ic { color: var(--green); }
.sb-badge { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--purple-2); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.sb-badge.orange { background: var(--orange); }
.sb-sub { display: none; flex-direction: column; padding: 4px 0 8px 48px; gap: 1px; }
.sb-group.open .sb-sub { display: flex; }
.sb-sub a { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; position: relative; }
.sb-sub a::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 1px; background: var(--line-2); }
.sb-sub a:hover { color: var(--text); background: var(--surface-2); }
.sb-sub a.active { color: var(--green); font-weight: 600; }
.sb-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sb-scrim { display: none; }

/* ── main / topbar ── */
.main { margin-left: var(--sb-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--tb-h); display: flex; align-items: center; gap: 16px; padding: 0 28px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.icon-btn.sb-burger { display: none; }
.tb-search { position: relative; flex: 1; max-width: 540px; }
.tb-search-box { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); transition: border-color .15s; }
.tb-search-box:focus-within { border-color: var(--purple); }
.tb-search-box input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font-size: 14px; min-width: 0; }
.tb-search-box input::-webkit-search-cancel-button { display: none; }
.tb-search-box kbd { font: 11px Inter, sans-serif; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; }
.search-results { position: absolute; top: 50px; left: 0; right: 0; max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: none; }
.search-results.open { display: block; }
.sr-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px 4px; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
.sr-item:hover { background: var(--surface-2); }
.sr-item > span:not(.badge):not(.avatar) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sr-item small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-sep { width: 1px; height: 34px; background: var(--line-2); margin: 0 6px; }
.user-chip { display: flex; align-items: center; gap: 12px; background: none; border: 0; cursor: pointer; padding: 4px 6px; border-radius: 12px; }
.user-chip:hover { background: var(--surface-2); }
.user-chip .avatar { width: 42px !important; height: 42px !important; border: 2px solid var(--line-2); object-fit: cover; }
.tu-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.tu-text b { font-size: 15px; } .tu-text small { color: var(--muted); font-size: 12.5px; }
.bell { position: relative; }
.bell-dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--purple); border: 2px solid var(--bg-2); box-shadow: 0 0 8px var(--purple); }
.dropdown { position: relative; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: none; z-index: 50; }
.dd-menu.open { display: block; animation: pop .14s ease-out; }
.dd-menu > a, .dd-menu > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; border: 0; background: none; cursor: pointer; text-align: left; font-size: 13.5px; }
.dd-menu > a:hover, .dd-menu > button:hover { background: var(--surface-2); }
.bell-menu { width: 380px; }
.dd-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 10px; }
.dd-alert { align-items: flex-start !important; }
.dd-alert > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.dd-alert small { color: var(--muted); } .dd-alert em { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }
.dd-empty { padding: 18px; text-align: center; color: var(--muted); }
.ai { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.ai.red { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); }
.ai.orange { background: color-mix(in srgb, var(--orange) 15%, transparent); color: var(--orange); }
.ai.green { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.ai.blue { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.ai.purple { background: color-mix(in srgb, var(--purple) 15%, transparent); color: var(--purple-txt); }
.view { padding: 26px 28px 40px; flex: 1; min-width: 0; }
.page { display: flex; flex-direction: column; gap: 20px; }
.fade-in { animation: fade .22s ease-out; } .fade-in.no-anim { animation: none; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── botões ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s, opacity .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: #fff; box-shadow: 0 6px 18px -8px var(--purple); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-green { background: var(--green); color: #0b0f04; }
.btn-secondary { background: var(--surface-3); border-color: var(--line-2); color: var(--text); }
.btn-secondary:hover { background: var(--surface-4); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--red); }
.btn-danger-ghost:hover { background: color-mix(in srgb, var(--red) 12%, transparent); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; flex: none; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.lg { width: 44px; height: 44px; border-radius: 12px; }
.icon-btn:disabled { opacity: .35; pointer-events: none; }
.link { color: var(--purple-txt); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.link:hover { color: var(--purple); }

/* ── estrutura ── */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; } .crumb span { opacity: .5; margin: 0 4px; }
.page-header h1 { font-size: 26px; font-weight: 750; }
.page-header p { color: var(--muted); margin-top: 4px; }
.ph-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; display: flex; flex-direction: column; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 0; min-height: 44px; flex-wrap: wrap; }
.card-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.card-title h3 { font-size: 15px; font-weight: 650; }
.ct-icon { display: flex; }
.card-title .count { font-size: 12px; color: var(--muted); background: var(--surface-3); border-radius: 10px; padding: 1px 8px; }
.card-tools { display: flex; align-items: center; gap: 8px; }
.card-body { padding: 14px 16px 16px; flex: 1; min-width: 0; }
.card-body.flush { padding: 10px 0 0; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.g-auto-sm { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.sec-title { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 8px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── KPI ── */
.kpi { position: relative; display: flex; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 122px; transition: border-color .15s; }
a.kpi:hover { border-color: var(--line-2); }
.kpi-icon { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.kpi-green .kpi-icon { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.kpi-purple .kpi-icon { background: color-mix(in srgb, var(--purple) 18%, transparent); color: var(--purple-txt); }
.kpi-orange .kpi-icon { background: color-mix(in srgb, var(--orange) 15%, transparent); color: var(--orange); }
.kpi-red .kpi-icon { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); }
.kpi-blue .kpi-icon { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.kpi-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; z-index: 1; }
.kpi-label { color: var(--text-2); font-size: 14px; }
.kpi-value { font-size: 25px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
.kpi-delta { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; margin-top: 4px; }
.kpi-delta.pos { color: var(--green); } .kpi-delta.neg { color: var(--red); }
.kpi-foot { color: var(--muted); font-size: 12px; }
.kpi-spark { position: absolute; right: 14px; bottom: 16px; width: 42%; max-width: 120px; height: 44px; }
.spark { width: 100%; height: 100%; display: block; overflow: visible; }
.spark-bars { display: flex; align-items: flex-end; gap: 5px; height: 100%; justify-content: flex-end; }
.spark-bars i { width: 9px; border-radius: 3px; background: var(--surface-4); }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.stat-label { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 4px; }
.stat-value { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-sub { font-size: 12px; color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }

/* ── badges / misc ── */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.bdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.badge-purple { background: color-mix(in srgb, var(--purple) 16%, transparent); color: var(--purple-txt); }
.badge-orange { background: color-mix(in srgb, var(--orange) 15%, transparent); color: var(--orange); }
.badge-red { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); }
.badge-blue { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.badge-cyan { background: color-mix(in srgb, var(--cyan) 14%, transparent); color: var(--cyan); }
.badge-yellow { background: color-mix(in srgb, var(--yellow) 15%, transparent); color: var(--yellow); }
.badge-gray { background: var(--surface-3); color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.swatch { display: inline-block; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); vertical-align: middle; flex: none; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; object-fit: cover; }
.progress { height: 6px; border-radius: 6px; background: var(--surface-4); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 6px; transition: width .4s; }
.progress-lg { height: 11px; } .progress-sm { height: 5px; } .progress-xs { height: 4px; }
.progress-lg > span { background: linear-gradient(90deg, var(--green-2), var(--green)) !important; box-shadow: 0 0 12px color-mix(in srgb, var(--green) 50%, transparent); }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 36px 16px; color: var(--muted); }
.empty .ic { opacity: .6; }
.tabs { display: inline-flex; gap: 3px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-4); color: var(--text); }
.tab-count { font-size: 11px; background: var(--surface); border-radius: 8px; padding: 0 6px; color: var(--muted); }
.search-field { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); min-width: 220px; }
.search-field:focus-within { border-color: var(--purple); }
.search-field input { border: 0; background: none; outline: 0; color: var(--text); flex: 1; min-width: 0; font-size: 13.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chip-stat { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); color: var(--muted); min-width: 0; }
.chip-stat b { display: block; color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip-stat small { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* ── tabelas ── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table tr.clickable { cursor: pointer; }
.table tfoot td { font-weight: 700; border-top: 1px solid var(--line-2); border-bottom: 0; }
.table .ta-right { text-align: right; } .table .ta-center { text-align: center; }
.card-body.flush .table th:first-child, .card-body.flush .table td:first-child { padding-left: 16px; }
.card-body.flush .table th:last-child, .card-body.flush .table td:last-child { padding-right: 16px; }
.cell-prod { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-prod span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-sub { display: block; font-size: 12px; color: var(--muted); }
.row-actions { display: inline-flex; gap: 2px; justify-content: flex-end; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); }
.pager > div { display: flex; align-items: center; gap: 6px; }

/* ── formulários ── */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field small { color: var(--muted); font-size: 11.5px; }
.req { color: var(--red); font-style: normal; }
.input { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13.5px; outline: 0; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; min-height: 70px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8a98' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 22%, transparent); }
.input.invalid { border-color: var(--red); }
.input[readonly] { opacity: .7; }
.input-sm { height: 32px; font-size: 12.5px; }
.input-affix { display: flex; align-items: stretch; }
.input-affix > span { display: grid; place-items: center; padding: 0 11px; background: var(--surface-3); border: 1px solid var(--line-2); border-right: 0; border-radius: 10px 0 0 10px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.input-affix .input { border-radius: 0 10px 10px 0; min-width: 0; }
.input-affix.suffix > span:last-child { border-right: 1px solid var(--line-2); border-left: 0; border-radius: 0 10px 10px 0; }
.input-affix.suffix .input { border-radius: 10px 0 0 10px; }
.input-affix.suffix > span:first-child + .input { border-radius: 0; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--purple); margin: 0; }
.check em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: 4px; }
.form-section { display: flex; align-items: center; gap: 8px; padding-top: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 14px; }
.form-section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.color-input { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); }
.color-input input { width: 30px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; }
.color-input span { font-family: ui-monospace, monospace; font-size: 12.5px; color: var(--muted); }
.image-input { display: flex; align-items: center; gap: 14px; }
.ii-preview { width: 84px; height: 84px; border-radius: 12px; border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--muted); overflow: hidden; background: var(--surface-2); flex: none; }
.ii-preview img { width: 100%; height: 100%; object-fit: cover; }
.ii-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-select { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-opt input { display: none; }
.chip-opt span { display: inline-block; padding: 6px 11px; border-radius: 16px; border: 1px solid var(--line-2); font-size: 12.5px; cursor: pointer; color: var(--muted); }
.chip-opt input:checked + span { background: color-mix(in srgb, var(--purple) 18%, transparent); border-color: var(--purple); color: var(--text); }

/* ── modal / toast ── */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .15s; }
.modal-backdrop.open { opacity: 1; }
.modal { width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); transform: translateY(8px) scale(.985); transition: transform .18s; }
.modal-backdrop.open .modal { transform: none; }
.modal-sm { max-width: 440px; } .modal-md { max-width: 620px; } .modal-lg { max-width: 860px; } .modal-xl { max-width: 1120px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modal-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.confirm-msg { color: var(--text-2); line-height: 1.55; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 420px; padding: 12px 14px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13.5px; transform: translateY(10px); opacity: 0; transition: all .22s; }
.toast.show { transform: none; opacity: 1; }
.toast-success .ic { color: var(--green); } .toast-danger .ic { color: var(--red); } .toast-warning .ic { color: var(--orange); } .toast-info .ic { color: var(--blue); }

/* ── gráficos ── */
.chart-bars, .chart-line { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; height: var(--h); }
.cb-y { display: flex; flex-direction: column; justify-content: space-between; height: calc(100% - 24px); font-size: 11px; color: var(--muted); text-align: right; }
.cb-y span { height: 0; display: flex; align-items: center; justify-content: flex-end; white-space: nowrap; }
.cb-plot, .lc-plot { position: relative; min-width: 0; }
.cb-grid { position: absolute; left: 0; right: 0; top: 0; bottom: 24px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.cb-grid i { height: 0; border-top: 1px dashed var(--line-2); }
.cb-cols { position: absolute; inset: 0; display: flex; gap: 6px; }
.cb-col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; position: relative; }
.cb-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 0; }
.cb-bar { flex: 0 1 26px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: var(--c); transition: filter .15s; }
.cb-bar.grad { background: linear-gradient(180deg, var(--c), var(--c2, color-mix(in srgb, var(--c) 45%, transparent))); }
.cb-bar:hover, .cb-stack:hover { filter: brightness(1.25); }
.cb-stack { width: min(30px, 70%); height: 100%; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 2px 2px; overflow: hidden; }
.cb-stack i { display: block; width: 100%; }
.cb-x { height: 24px; line-height: 24px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cb-val { position: absolute; top: -2px; font-size: 10.5px; color: var(--muted); }
.lc-area { position: absolute; left: 0; right: 0; top: 0; bottom: 24px; }
.lc-area svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lc-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid var(--surface); pointer-events: none; }
.lc-hit { position: absolute; top: 0; bottom: 0; }
.lc-hit:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.lc-x { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; }
.lc-x span { position: absolute; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); line-height: 24px; white-space: nowrap; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { position: relative; flex: none; }
.donut svg { width: 100%; height: 100%; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donut-center strong { font-size: 18px; } .donut-center span { font-size: 11px; color: var(--muted); }
.donut-legend { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 8px; }
.dl-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; font-size: 13px; }
.dl-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-row em { font-style: normal; color: var(--muted); font-size: 12px; min-width: 36px; text-align: right; }
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hb-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.hb-label { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.hb-row[data-action] { cursor: pointer; }

/* ── ilustrações ── */
.art { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, var(--art-bg1), var(--art-bg2)); flex: none; }
.art svg, .art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.art-xs { width: 36px; height: 36px; border-radius: 8px; }
.art-sm { width: 58px; height: 58px; }
.art-md { width: 84px; height: 84px; }
.art-lg { width: 104px; height: 104px; border-radius: 14px; }
.printer-art { aspect-ratio: auto; background: radial-gradient(80% 60% at 50% 100%, rgba(132,204,22,.22), transparent 70%), linear-gradient(180deg, #18181d, #0c0c0f); border-radius: 12px; }
.spool-art { display: inline-block; flex: none; }
.spool-art svg { width: 100%; height: 100%; display: block; }

/* ── kanban ── */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 4px; align-items: start; }
.kb-col { background: var(--surface-2); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 12px; display: flex; flex-direction: column; min-height: 120px; transition: background .15s, outline-color .15s; outline: 2px dashed transparent; outline-offset: -2px; }
.kb-col[data-col="fila"], .kb-col[data-col="todo"], .kb-col[data-col="ideia"] { border-top-color: var(--line-2); }
.kb-col.over { outline-color: var(--purple); background: color-mix(in srgb, var(--purple) 6%, var(--surface-2)); }
.kb-head { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px 6px; font-weight: 650; font-size: 13.5px; }
.kb-head b { font-size: 12.5px; color: var(--text-2); }
.kb-list { display: flex; flex-direction: column; gap: 7px; padding: 6px 8px 10px; flex: 1; }
.kb-item { cursor: grab; border-radius: 9px; }
.kb-item.dragging { opacity: .4; }
.kb-empty { border: 1px dashed var(--line-2); border-radius: 9px; padding: 14px; text-align: center; color: var(--muted-2); font-size: 12px; }
.kb-more { display: block; text-align: center; padding: 8px; border-radius: 9px; background: var(--surface-3); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.kb-more:hover { background: var(--surface-4); }
.kb-add { border: 0; background: none; color: var(--muted); font-size: 12.5px; padding: 6px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 6px; justify-content: center; }
.kb-add:hover { background: var(--surface-3); color: var(--text); }
.kanban.compact { grid-auto-columns: minmax(170px, 1fr); }
.kanban.compact .kb-list { gap: 6px; }
.job-card { display: flex; align-items: center; gap: 9px; padding: 7px 6px 7px 7px; border-radius: 9px; background: var(--surface-3); border: 1px solid var(--line-2); min-width: 0; transition: border-color .15s; }
.job-card:hover { border-color: var(--muted-2); }
.job-card.printing { border-color: color-mix(in srgb, var(--purple) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--purple) 25%, transparent), 0 0 18px -6px var(--purple); }
.jc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jc-text b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-text span { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.jc-text em { font-style: normal; }
.jc-prog { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.jc-prog .progress { flex: 1; }
.jc-prog em { font-size: 10.5px; color: var(--muted); font-style: normal; }
.jc-more { width: 26px; height: 26px; }
.prio { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); display: inline-block; }

/* ── painel de impressora ── */
.printer-panel { display: grid; grid-template-columns: minmax(120px, 150px) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.printer-panel .printer-art { height: 100%; min-height: 190px; }
.pp-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pp-info h4 { font-size: 16px; font-weight: 650; }
.pp-info h4 small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 4px; }
.pp-status { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 13px; font-weight: 600; }
.printer-panel.idle .pp-status { color: var(--muted); }
.pp-prog { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 4px; }
.pp-prog strong { font-size: 26px; font-weight: 750; }
.pp-prog span { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.pp-prog small { color: var(--muted); font-size: 11.5px; }
.pp-job { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; margin-top: 4px; }
.pp-job:hover { border-color: var(--muted-2); }
.pp-job b { display: block; font-size: 14px; }
.pp-job span { font-size: 12.5px; color: var(--muted); }
.pp-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pp-next { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.pp-next > span { font-size: 12px; color: var(--muted); }

/* ── modais de domínio ── */
.job-modal { display: flex; flex-direction: column; gap: 16px; }
.jm-head { display: flex; gap: 16px; align-items: center; }
.jm-head h3 { font-size: 19px; margin: 6px 0 2px; }
.jm-head p { font-size: 13px; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.jm-head a { color: var(--purple-txt); }
.job-live { padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.jl-top, .jl-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.jl-top b { font-size: 20px; color: var(--text); }
.order-info { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.order-info > div { display: flex; align-items: center; gap: 12px; }
.order-info > div b { display: block; }
.order-info > div span { font-size: 12.5px; color: var(--muted); }
.order-info dl { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 24px; margin: 0; }
.order-info dt { font-size: 11.5px; color: var(--muted); }
.order-info dd { margin: 2px 0 0; font-weight: 600; font-size: 13px; }
.totals { margin: 12px 0 0 auto; max-width: 340px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.totals > div { display: flex; justify-content: space-between; gap: 20px; }
.totals .grand { font-size: 16px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.totals .sub { color: var(--muted); font-size: 12.5px; }
.order-jobs { display: flex; flex-direction: column; gap: 6px; }
.oj { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); cursor: pointer; font-size: 13px; }
.oj:hover { background: var(--surface-3); }
.oj span:not(.badge) { flex: 1; }
.oj em { font-style: normal; color: var(--muted); }
.obs { color: var(--text-2); background: var(--surface-2); padding: 10px 12px; border-radius: 10px; }
.om-status { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.om-status label:first-child { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.om-status select { width: auto; min-width: 170px; }

/* ── calendário ── */
.calendar { display: flex; flex-direction: column; gap: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cal-head .legend { margin: 0; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav h3 { font-size: 17px; min-width: 160px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cal-dow { padding: 8px; font-size: 12px; color: var(--muted); font-weight: 600; text-align: center; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cal-cell { min-height: 108px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; cursor: pointer; min-width: 0; transition: background .12s; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell:hover { background: var(--surface-2); }
.cal-cell.out { opacity: .4; }
.cal-n { font-size: 12.5px; font-weight: 600; color: var(--text-2); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-cell.today .cal-n { background: var(--green); color: #0b0f04; }
.cal-evs { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-ev { text-align: left; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--text); font-size: 11.5px; padding: 3px 6px; border-radius: 5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev:hover { background: color-mix(in srgb, var(--c) 26%, transparent); }
.cal-ev b { font-weight: 700; }
.cal-more { font-size: 11px; color: var(--muted); padding-left: 4px; }

/* ── dashboard ── */
.dash-hero { position: relative; min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -6px 0 -4px; }
.dh-text { position: relative; z-index: 1; }
.dh-date { color: var(--muted); font-size: 13.5px; }
.dh-text h1 { font-size: 34px; font-weight: 800; letter-spacing: -.025em; margin: 6px 0 6px; }
.dh-text p { color: var(--text-2); font-size: 16px; }
.dh-slogan { position: relative; z-index: 1; margin-right: 32%; letter-spacing: .38em; font-size: 13px; line-height: 1.75; color: var(--text); font-weight: 500; }
.dh-slogan::after { content: ""; display: block; width: 120px; height: 3px; border-radius: 2px; margin-top: 12px; background: linear-gradient(90deg, var(--purple), var(--purple) 50%, var(--green)); }
.dh-deco { position: absolute; top: -26px; right: -28px; width: 46%; height: 168px; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.dh-deco .waves { width: 100%; height: 100%; }
.dh-cubes { position: absolute; left: 52%; top: -22px; width: 200px; height: 150px; opacity: .35; pointer-events: none; }
.dash-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.62fr); }
.dash-row3 { grid-template-columns: minmax(0, 1.18fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, .92fr); }
.carousel-nav { display: flex; gap: 2px; align-items: center; font-size: 12px; color: var(--muted); }
.fil-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 12px; }
.fil-list { display: flex; flex-direction: column; gap: 14px; }
.fil-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.fil-row .fr-name { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil-row .fr-kg { text-align: right; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.fil-row .fr-kg small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.fil-row .fr-kg .ic { color: var(--orange); margin-left: 3px; vertical-align: -3px; }
.insight { border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 14px; font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.insight h5 { margin: 0 0 10px; font-size: 13px; display: flex; align-items: center; gap: 7px; color: var(--green); font-weight: 650; }
.insight b { color: var(--purple-txt); }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.feat { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.feat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feat .art { border-radius: 0; width: 100%; aspect-ratio: 1 / 1.05; }
.feat span { font-size: 11px; padding: 7px 8px 0; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat b { font-size: 13px; padding: 2px 8px 8px; color: var(--green); }
.alert-list { display: flex; flex-direction: column; gap: 8px; }
.alert-item { display: flex; gap: 12px; padding: 10px 12px; border-radius: 11px; background: color-mix(in srgb, var(--tone) 8%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--tone) 18%, transparent); align-items: flex-start; transition: border-color .15s; }
.alert-item:hover { border-color: color-mix(in srgb, var(--tone) 45%, transparent); }
.alert-item > .ic { color: var(--tone); margin-top: 2px; }
.alert-item .al-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; color: var(--text-2); }
.alert-item .al-text b { color: var(--tone); font-size: 13px; font-weight: 650; }
.alert-item em { font-style: normal; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.tone-danger { --tone: var(--red); } .tone-warning { --tone: var(--orange); } .tone-success { --tone: var(--green); } .tone-info { --tone: var(--blue); }
.select-sm { height: 30px; font-size: 12px; padding: 0 28px 0 10px; width: auto; border-radius: 8px; }

/* ── responsivo ── */
@media (max-width: 1500px) { .dash-row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dh-slogan { margin-right: 36%; } }
@media (max-width: 1240px) {
  .dash-kpis, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-row2, .g-2-1, .g-1-2 { grid-template-columns: minmax(0, 1fr); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dh-slogan { display: none; }
}
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s; box-shadow: var(--shadow); }
  body.sb-open .sidebar { transform: none; }
  body.sb-open .sb-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 35; }
  .main { margin-left: 0; }
  .icon-btn.sb-burger { display: inline-grid; }
  .topbar { padding: 0 16px; gap: 10px; }
  .tu-text, .tb-search-box kbd { display: none; }
  .view { padding: 18px 16px 32px; }
  .dash-row3, .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .order-info dl { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 640px) {
  .dash-kpis, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .dh-text h1 { font-size: 26px; }
  .dh-deco { width: 70%; opacity: .5; }
  .form-grid, .form-grid.g-3 { grid-template-columns: minmax(0, 1fr); }
  .printer-panel { grid-template-columns: minmax(0, 1fr); }
  .printer-panel .printer-art { min-height: 160px; max-width: 200px; }
  .fil-wrap { grid-template-columns: minmax(0, 1fr); }
  .pp-chips { grid-template-columns: minmax(0, 1fr); }
  .bell-menu { width: calc(100vw - 32px); right: -60px; }
  .tb-sep { display: none; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; }
  .cal-cell { min-height: 64px; padding: 3px; }
  .cal-ev { font-size: 0; height: 6px; padding: 0; border-left-width: 0; background: var(--c); }
  .page-header h1 { font-size: 22px; }
  .table { font-size: 12.5px; }
}
@media print {
  .sidebar, .topbar, .ph-actions, .toolbar, .no-print { display: none !important; }
  .main { margin: 0; } .view { padding: 0; }
  body { background: #fff; color: #000; }
  .card { border-color: #ddd; break-inside: avoid; }
}
@media (max-height: 960px) and (min-width: 961px) {
  .sb-link { padding: 9px 14px; }
}

/* ajustes finos */
.kpi-spark { position: static; align-self: flex-end; margin-left: auto; width: 38%; max-width: 120px; height: 46px; flex: none; }
.kpi-main { flex: 1 1 auto; }
.kanban.compact .kb-list { padding: 4px 6px 8px; }
.kanban.compact .job-card { gap: 7px; padding: 6px 2px 6px 6px; }
.kanban.compact .art-xs { width: 32px; height: 32px; }
.jc-text b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.jc-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.jc-more { width: 22px; height: 26px; border-radius: 6px; }
.pp-chips { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.chip-stat { padding: 7px 9px; gap: 7px; }
.chip-stat b { font-size: 12.5px; }
.chip-stat small { white-space: normal; line-height: 1.2; }
.kpi-spark { position: absolute; right: 14px; bottom: 16px; width: 34%; max-width: 104px; height: 42px; margin: 0; }
.kpi-foot { white-space: nowrap; }
.dash-row3 { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .95fr); }
.dash-row3 .card-title h3 { font-size: 14px; }
.card-title h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select-sm { font-size: 11.5px; }
.pp-chips { grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); }
.chip-stat .ic { width: 15px; height: 15px; }
.fil-wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
@media (max-width: 1500px) { .dash-row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .dash-row3 { grid-template-columns: minmax(0, 1fr); } }
.main { min-width: 0; overflow-x: clip; }
.tb-search { min-width: 0; }
.tb-search-box { min-width: 0; }
@media (max-width: 640px) {
  .dh-deco { right: 0; }
  .topbar { gap: 6px; padding: 0 12px; }
  .tb-actions { gap: 2px; }
  .icon-btn.lg { width: 38px; height: 38px; }
  .user-chip { padding: 2px; gap: 4px; }
  .user-chip > .ic { display: none; }
  .user-chip .avatar { width: 36px !important; height: 36px !important; }
}
.badge-pink { background: color-mix(in srgb, var(--pink) 15%, transparent); color: var(--pink); }
:root[data-theme="light"] .swatch { border-color: var(--line-2); }
@media print { .fade-in { animation: none !important; } :root { color-scheme: light; } }
.kpi-delta.zero { color: var(--muted); font-weight: 600; }

/* ── acesso (tela de entrada) ── */
html.booting .sidebar, html.booting .main, html.auth-locked .sidebar, html.auth-locked .main, html.auth-locked .sb-scrim { display: none; }
.dd-who { padding: 6px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.dd-who small { color: var(--muted); font-size: 11.5px; }
.dd-who b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* indicador de sincronização no topo */
.sync-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); font: 600 12px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.sync-pill[hidden] { display: none; }
.sync-pill.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.sync-pill.busy { color: var(--purple-txt); } .sync-pill.busy .ic { animation: sync-spin 1s linear infinite; }
.sync-pill.warn { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 35%, transparent); }
.sync-pill.err { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
@keyframes sync-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .sync-pill span { display: none; } .sync-pill { padding: 0 9px; } }
/* impressoras ao vivo (ponte Bambu Lab) */
.lv-strip { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line)); background: color-mix(in srgb, var(--green) 6%, var(--surface-2)); display: flex; flex-direction: column; gap: 8px; }
.lv-strip.off { border-color: var(--line-2); background: var(--surface-2); opacity: .8; }
.lv-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.lv-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 10.5px; letter-spacing: .12em; color: var(--green); }
.lv-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: lv-pulse 1.4s ease-in-out infinite; }
.lv-strip.off .lv-badge { color: var(--muted); }
@keyframes lv-pulse { 50% { opacity: .35; } }
.lv-file { color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-when { margin-left: auto; font-style: normal; color: var(--muted); font-size: 11px; }
.lv-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.lv-chip { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 6px 8px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.lv-chip > .ic, .lv-chip > .swatch { grid-row: 1 / 3; }
.lv-chip b { color: var(--text); font-size: 12.5px; white-space: nowrap; } .lv-chip b em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 11px; }
.lv-chip small { font-size: 10.5px; }
.lv-err { display: flex; gap: 6px; align-items: center; color: var(--red); font-size: 12px; }
.lv-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.lv-note .btn { margin-left: auto; }
.lv-wrap { display: flex; flex-direction: column; }

/* ── menu lateral: favoritos e personalização ── */
.sb-sec { display: flex; align-items: center; gap: 6px; padding: 6px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sb-favs { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.sb-fav { position: relative; display: flex; align-items: center; gap: 4px; border-radius: 10px; }
.sb-fav-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-size: 14px; }
.sb-fav-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-fav-link .ic { color: var(--muted); }
.sb-fav-link:hover { background: var(--surface-2); color: var(--text); }
.sb-fav-link.active { color: var(--green); font-weight: 600; background: color-mix(in srgb, var(--green) 10%, transparent); }
.sb-fav-link.active .ic { color: var(--green); }
.sb-hint { margin: 2px 14px 4px; font-size: 12px; color: var(--muted); }
.sb-item { position: relative; }
.sb-item > a { padding-right: 32px !important; }
.sb-star { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; background: none; border-radius: 7px; display: grid; place-items: center; color: var(--muted-2); cursor: pointer; opacity: 0; transition: opacity .15s, color .15s, background .15s; }
.sb-fav .sb-star { position: static; transform: none; flex: none; }
.sb-item:hover .sb-star, .sb-fav:hover .sb-star, .sb-star:focus-visible, .sb-star.on, .sb-nav.is-editing .sb-star { opacity: 1; }
.sb-star:hover { color: var(--yellow); background: var(--surface-3); }
.sb-star.on { color: var(--yellow); }
.sb-star.on svg { fill: currentColor; }
@media (hover: none) { .sb-item:hover .sb-star:not(.on), .sb-fav:hover .sb-star:not(.on) { opacity: 0; } .sb-nav.is-editing .sb-star { opacity: 1; } }
.sb-group { position: relative; border-radius: 10px; }
.sb-move { display: flex; gap: 3px; flex: none; }
.sb-group > .sb-move { position: absolute; right: 8px; top: 9px; }
.sb-move button { width: 26px; height: 26px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); border-radius: 7px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.sb-move button:hover:not(:disabled) { background: var(--surface-3); color: var(--text); border-color: var(--purple); }
.sb-move button:disabled { opacity: .3; cursor: default; }
.sb-grip { display: flex; flex: none; color: var(--muted-2); cursor: grab; margin-right: -6px; }
.sb-fav .sb-grip { margin: 0 -4px 0 4px; }
.sb-nav.is-editing .sb-link { gap: 10px; }
.sb-nav.is-editing .sb-link span, .sb-nav.is-editing .sb-fav-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-nav.is-editing .sb-fav-link { padding: 8px 6px 8px 8px; gap: 10px; }
.sb-nav.is-editing .sb-group > .sb-link { padding-right: 76px; outline: 1px dashed var(--line-2); outline-offset: -1px; }
.sb-nav.is-editing .sb-group > .sb-link .sb-chev { display: none; }
.sb-nav.is-editing .sb-group.active > .sb-link::before { display: none; }
.sb-nav.is-editing .sb-fav { outline: 1px dashed var(--line-2); outline-offset: -1px; }
.sb-nav .drag-over { box-shadow: 0 -3px 0 var(--purple); }
.sb-nav .sb-dragging { opacity: .4; }
.sb-edit-tip { display: flex; gap: 8px; margin: 0 2px 8px; padding: 9px 11px; border-radius: 10px; background: color-mix(in srgb, var(--purple) 12%, transparent); color: var(--text-2); font-size: 12px; line-height: 1.45; }
.sb-edit-tip .ic { flex: none; margin-top: 2px; color: var(--purple-txt); }
.sb-custom { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.sb-custom-btn { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; border-radius: 10px; cursor: pointer; text-align: left; }
.sb-custom-btn:hover { background: var(--surface-2); color: var(--text); }
.sb-custom-btn.primary { justify-content: center; background: var(--purple-2); color: #fff; font-weight: 600; }
.sb-custom-btn.primary:hover { background: var(--purple); }

/* indicadores compactos no celular: 2 por linha, ícone no canto (sobra tela para a impressora ao vivo) */
@media (max-width: 640px) {
  .dash-kpis, .g-4:has(> .kpi) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { min-height: 0; padding: 12px 12px 11px; gap: 0; border-radius: 12px; }
  .kpi-icon { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 8px; }
  .kpi-icon svg { width: 15px; height: 15px; }
  .kpi-main { gap: 1px; }
  .kpi-label { font-size: 12px; line-height: 1.25; padding-right: 30px; min-height: 30px; }
  .kpi-value { font-size: 19px; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
  .kpi-delta { font-size: 11.5px; margin-top: 1px; }
  .kpi-delta svg { width: 13px; height: 13px; }
  .kpi-foot { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kpi-spark { display: none; }
}

/* janelas no celular: flutuam no meio da tela e cabem na área visível do navegador
   (100dvh desconta as barras do Safari); cabeçalho e botões fixos, o meio rola */
@media (max-width: 640px) {
  .modal-backdrop { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); align-items: center; }
  .modal { border-radius: 18px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .modal-head, .modal-foot { flex: none; }
  .modal-head { padding: 14px 16px 10px; }
  .modal-body { flex: 1 1 auto; min-height: 0; padding: 14px 16px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .modal-foot { padding: 10px 16px; gap: 8px; }
}

/* dica dos gráficos (ui.tip): aparece na hora no mouse e ao tocar */
.chart-tip { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; opacity: 0; transition: opacity .08s; display: flex; flex-direction: column; gap: 4px; min-width: 120px; max-width: min(280px, calc(100vw - 16px)); padding: 9px 11px; border-radius: 11px; background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 12.5px; line-height: 1.35; }
.chart-tip.on { opacity: 1; }
.chart-tip b { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: none; }
.chart-tip span { display: flex; align-items: center; gap: 7px; }
.chart-tip span i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chart-tip em { font-style: normal; font-weight: 700; margin-left: auto; padding-left: 12px; white-space: nowrap; }
.chart-tip small { font-size: inherit; color: var(--text-2); }
.chart-tip span > em:first-child { margin-left: 0; padding-left: 0; font-weight: 500; white-space: normal; }
[data-tip] { -webkit-tap-highlight-color: transparent; }
.cb-bar.tip-on, .cb-stack.tip-on, .fc-bar.tip-on { filter: brightness(1.3); }
.lc-hit.tip-on { background: color-mix(in srgb, var(--text) 5%, transparent); }
.lc-hit.tip-on::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--muted-2); }
.lc-dot { transition: width .1s, height .1s; }
.lc-dot.on { width: 11px; height: 11px; }
.donut circle[data-tip].tip-on { filter: brightness(1.25); }
.cb-denso .cb-x { overflow: visible; max-width: none; text-overflow: clip; }

/* aviso quando uma parte do sistema não carregou (o resto segue funcionando) */
.aviso-falha { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 150; display: flex; align-items: center; gap: 10px; max-width: min(640px, calc(100vw - 24px)); padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--orange) 45%, transparent); box-shadow: var(--shadow); font-size: 13px; color: var(--text-2); }
.aviso-falha > svg { color: var(--orange); flex: none; }
.aviso-falha > span { flex: 1; }

/* ── assets/css/pages/dashboard.css ── */
/* estilos do módulo dashboard */
.dp-printers { display: flex; flex-direction: column; gap: 8px; }
.dp-printer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .15s; }
.dp-printer:hover { border-color: var(--line-2); }
.dp-name { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.dp-name small { flex-basis: 100%; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 16px; }
.dp-prog { display: flex; flex-direction: column; gap: 4px; }
.dp-prog em { font-style: normal; font-size: 11.5px; color: var(--muted); text-align: right; }
.dp-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dp-stages .stat-value small { font-size: 12px; font-weight: 500; }
.alert-row { padding: 14px 16px; align-items: center; }
.alert-row .al-text { font-size: 13px; }
.alert-row .al-text b { font-size: 14px; }
.alert-row .al-text em { margin-top: 2px; }
.al-actions { display: flex; gap: 6px; flex: none; }
.alert-row.dismissed { opacity: .55; }
@media (max-width: 640px) { .dp-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } .alert-row { flex-wrap: wrap; } .al-actions { width: 100%; justify-content: flex-end; } }
.dash-row3 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .95fr); }
.dash-row3 .card-head { flex-wrap: nowrap; }
.dash-row3 .card-tools { flex: none; }
@media (max-width: 1500px) { .dash-row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .dash-row3 { grid-template-columns: minmax(0, 1fr); } }
.dh-ctx { margin-top: 6px; font-size: 13.5px; color: var(--muted); max-width: 640px; }

/* Painel personalizado (Personalizar painel) */
.dash-flex { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); align-items: start; }
.dash-w { min-width: 0; display: flex; flex-direction: column; }
.dash-w > .card { flex: 1; }
.dash-w-fluxo { grid-column: 1 / -1; }
@media (min-width: 1240px) { .dash-w-impressora { grid-column: span 1; } }
.dash-edit { display: flex; justify-content: center; margin-top: 16px; }
.pnl-dica { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.pnl-lista { display: flex; flex-direction: column; gap: 6px; }
.pnl-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); font-size: 13.5px; }
.pnl-item > svg { color: var(--muted); flex: none; }
.pnl-item.off { opacity: .55; }
.pnl-nome { flex: 1; min-width: 0; }
.pnl-move { display: inline-flex; gap: 2px; flex: none; }
.pnl-move button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; padding: 0; }
.pnl-move button:hover:not(:disabled) { background: var(--surface-4); color: var(--text); }
.pnl-move button:disabled { opacity: .3; cursor: default; }
.pnl-sw { position: relative; flex: none; cursor: pointer; }
.pnl-sw input { position: absolute; opacity: 0; pointer-events: none; }
.pnl-sw span { display: block; width: 38px; height: 22px; border-radius: 12px; background: var(--surface-4); transition: background .15s; position: relative; }
.pnl-sw span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.pnl-sw input:checked + span { background: var(--green-2); }
.pnl-sw input:checked + span::after { transform: translateX(16px); }
.pnl-sw input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

/* saudação mais discreta no celular (texto menor e arte de fundo mais leve) */
@media (max-width: 640px) {
  .dash-hero { min-height: 0; margin: -4px 0 2px; }
  .dh-date { font-size: 12px; }
  .dh-text h1 { font-size: 21px; margin: 3px 0 4px; letter-spacing: -.015em; }
  .dh-text p { font-size: 13.5px; line-height: 1.4; }
  .dh-ctx { font-size: 12.5px; margin-top: 4px; }
  .dh-deco { top: -14px; right: -6px; width: 52%; height: 96px; opacity: .3; }
  .dh-cubes { left: auto; right: 4px; top: -16px; width: 110px; height: 84px; opacity: .18; }
}

/* ── assets/css/pages/pedidos.css ── */
/* estilos do módulo pedidos */

/* ── barra de filtros dentro do card ── */
.ped-tools { padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.ped-tools .search-field { min-width: 240px; }
.ped-tools-sum { font-size: 12.5px; color: var(--muted); }
.ped-tools-sum b { color: var(--text); }
.ped-sel { height: 38px; min-width: 150px; font-size: 13px; }

/* ── células de tabela ── */
.ped-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ped-prio { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); vertical-align: 2px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 18%, transparent); }
.ped-cli { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ped-cli > div { min-width: 0; }
.ped-cli b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; font-weight: 600; }
.ped-cli .cell-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.ped-ellipsis { display: block; max-width: 210px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.ped-chan { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 12px; white-space: nowrap; }
.ped-rt .row-actions { align-items: center; gap: 4px; }
.ped-rt .table td { white-space: normal; }

/* KPI dividido PF / PJ */
.ped-split { display: inline-flex; align-items: baseline; gap: 4px; }
.ped-split small { font-size: 12px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.ped-split i { font-style: normal; color: var(--muted-2); margin: 0 6px; font-weight: 400; }

/* ── menu flutuante de ações ── */
.ped-pop { position: fixed; z-index: 120; min-width: 210px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; animation: pop .14s ease-out; }
.ped-pop button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 13px; color: var(--text-2); }
.ped-pop button:hover { background: var(--surface-2); color: var(--text); }
.ped-pop button.t-red:hover { background: color-mix(in srgb, var(--red) 10%, transparent); }
.ped-pop hr { margin: 4px 2px; }

/* ── formulário de pedido ── */
.ped-form { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.ped-form-side { position: sticky; top: calc(var(--tb-h) + 16px); }
.ped-fgrid { margin-top: 16px; }
.ped-paid { justify-content: flex-end; }
.ped-paid .check { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--surface-2); }
.ped-note { align-items: center; }

/* combo de clientes */
.ped-combo { position: relative; }
.ped-combo-btn { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.ped-combo-btn:hover { border-color: var(--muted-2); }
.ped-combo.open .ped-combo-btn { border-color: var(--purple); box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 22%, transparent); }
.ped-combo-btn.invalid { border-color: var(--red); }
.ped-combo-btn > .ic:last-child { margin-left: auto; color: var(--muted); transition: transform .15s; }
.ped-combo.open .ped-combo-btn > .ic:last-child { transform: rotate(180deg); }
.ped-combo-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ped-combo-txt b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ped-combo-txt small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ped-combo-btn.is-empty .ped-combo-txt b { color: var(--text-2); }
.ped-combo-ph { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-4); color: var(--muted); flex: none; }
.ped-combo-pop { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; }
.ped-combo.open .ped-combo-pop { display: block; animation: pop .14s ease-out; }
.ped-combo-pop .search-field { min-width: 0; }
.ped-combo-list { max-height: 280px; overflow-y: auto; margin: 6px 0; display: flex; flex-direction: column; gap: 2px; }
.ped-combo-opt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; background: none; border-radius: 9px; cursor: pointer; text-align: left; color: var(--text); }
.ped-combo-opt:hover, .ped-combo-opt:focus-visible { background: var(--surface-2); outline: 0; }
.ped-combo-opt.sel { background: color-mix(in srgb, var(--purple) 12%, transparent); }
.ped-combo-opt > span:not(.badge):not(.avatar) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ped-combo-opt b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ped-combo-opt small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ped-combo-none { display: none; padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.ped-combo.none .ped-combo-none { display: block; }
.ped-combo-new { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border: 1px dashed var(--line-2); border-radius: 10px; background: none; color: var(--purple-txt); font-weight: 600; cursor: pointer; }
.ped-combo-new:hover { background: color-mix(in srgb, var(--purple) 8%, transparent); border-color: var(--purple); }

/* editor de itens */
.ped-items { display: flex; flex-direction: column; gap: 8px; }
.ped-it { display: grid; grid-template-columns: 40px minmax(0, 1.7fr) minmax(0, 1fr) 82px 124px 104px 36px; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ped-it-head { background: none; border: 0; padding: 0 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ped-it .input { height: 38px; background: var(--surface); }
.ped-it .input-affix > span { background: var(--surface-3); }
.ped-it-ph { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted-2); border: 1px dashed var(--line-2); }
.ped-it-novar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; color: var(--text-2); font-size: 13px; min-width: 0; }
.ped-it-novar > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ped-it-sub { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ped-it-sub small { display: none; }
.ped-it-sub b { font-weight: 700; }
.ped-it-qty .input { text-align: center; padding: 0 6px; }
.ped-items-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 24px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 12px; }
.ped-it-add { margin-top: 10px; width: 100%; height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px dashed var(--line-2); border-radius: 12px; background: none; color: var(--text-2); font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ped-it-add:hover { border-color: var(--green); color: var(--green); background: color-mix(in srgb, var(--green) 6%, transparent); }

/* resumo lateral */
.ped-sum-head { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--purple) 18%, var(--surface-2)), color-mix(in srgb, var(--green) 8%, var(--surface-2))); border: 1px solid var(--line-2); }
.ped-sum-head span { font-size: 12.5px; color: var(--text-2); }
.ped-sum-head strong { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ped-sum-head small { color: var(--muted); font-size: 12px; }
.ped-totals { max-width: none; margin: 14px 0 0; }
.ped-sum-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ped-sum-stats .stat-value { font-size: 16px; }
.ped-fils { display: flex; flex-direction: column; gap: 10px; }
.ped-fil { display: flex; gap: 10px; align-items: flex-start; }
.ped-fil .swatch { margin-top: 3px; }
.ped-fil-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ped-fil-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ped-fil-top b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ped-fil-top .badge { height: 20px; font-size: 11px; padding: 0 7px; }
.ped-fil small { font-size: 11.5px; color: var(--muted); }
.ped-sum-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ped-sum-actions .btn { width: 100%; justify-content: center; }

/* ── detalhe do cliente ── */
.ped-cd-head { display: flex; align-items: center; gap: 14px; }
.ped-cd-head h3 { font-size: 20px; margin-bottom: 6px; }
.ped-cd-head .row { gap: 6px; }
.ped-cd-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ped-cd-info > div { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.ped-cd-info > div > .ic { color: var(--muted); margin-top: 3px; }
.ped-cd-info span { display: flex; flex-direction: column; min-width: 0; }
.ped-cd-info small { font-size: 11.5px; color: var(--muted); }
.ped-cd-info b { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.ped-cd-stats { margin-top: 14px; }
.ped-hist { display: flex; flex-direction: column; gap: 6px; }
.ped-hist-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 110px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; text-align: left; color: var(--text); transition: border-color .15s, background .15s; }
.ped-hist-row:hover { border-color: var(--line-2); background: var(--surface-3); }
.ped-hist-it { display: flex; flex-direction: column; min-width: 0; }
.ped-hist-it > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.ped-hist-it small { color: var(--muted); font-size: 11.5px; }
.ped-hist-row strong { text-align: right; font-variant-numeric: tabular-nums; }

/* ── orçamento (modal) ── */
.ped-q-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 18px; align-items: start; }
.ped-q-bottom .totals { margin-top: 0; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.modal .ped-it .input { background: var(--surface); }
@media (min-width: 1361px) { .modal .ped-it:not(.ped-it-head), .modal .ped-it-head { grid-template-columns: 36px minmax(0, 2.2fr) minmax(0, 1fr) 68px 112px 96px 32px; gap: 8px; } }
.modal .ped-it-art .art-xs, .modal .ped-it-ph { width: 34px; height: 34px; }
.alert-item.ped-note[data-action] { cursor: pointer; margin-bottom: 14px; }

/* ── responsivo ── */
@media (max-width: 1360px) {
  .ped-form { grid-template-columns: minmax(0, 1fr) 320px; }
  .ped-it { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) 76px 116px 36px; }
  .ped-it-head { display: none; }
  .ped-it-art { grid-row: span 2; align-self: start; }
  .ped-it-prod { grid-column: 2 / 4; }
  .ped-it-var { grid-column: 2 / 3; grid-row: 2; }
  .ped-it-qty { grid-column: 4; grid-row: 1; }
  .ped-it-price { grid-column: 5; grid-row: 1; }
  .ped-it-del { grid-column: 6; grid-row: 1; }
  .ped-it-sub { grid-column: 3 / 7; grid-row: 2; display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; }
  .ped-it-sub small { display: inline; color: var(--muted); font-size: 11.5px; }
}
@media (max-width: 1100px) {
  .ped-form { grid-template-columns: minmax(0, 1fr); }
  .ped-form-side { position: static; }
}
@media (max-width: 860px) {
  .ped-q-bottom { grid-template-columns: minmax(0, 1fr); }
  .ped-cd-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ped-tools { padding: 4px 12px 12px; }
  .ped-tools .toolbar, .ped-tools .tb-left, .ped-tools .tb-right { width: 100%; }
  .ped-tools .tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .ped-tools .tabs::-webkit-scrollbar { display: none; }
  .ped-tools .tab { white-space: nowrap; }
  .ped-tools .search-field { min-width: 0; flex: 1 1 100%; }
  .ped-sel { flex: 1 1 0; min-width: 0; }
  /* tabelas viram cartões */
  .ped-rt .table thead { display: none; }
  .ped-rt .table, .ped-rt .table tbody, .ped-rt .table tr, .ped-rt .table td { display: block; width: 100%; }
  .ped-rt .table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .ped-rt .table tbody tr:hover td { background: none; }
  .ped-rt .table td { border: 0; padding: 3px 0 !important; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: right; min-height: 26px; }
  .ped-rt .table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; flex: none; }
  .ped-rt .table td:not([data-label])::before { content: none; }
  .ped-rt .table td:first-child { padding-bottom: 6px !important; }
  .ped-rt .table td:last-child { justify-content: flex-end; padding-top: 6px !important; }
  .ped-rt .table td > .cell-sub { display: none; }
  .ped-rt .ped-cli { flex-direction: row-reverse; text-align: right; }
  .ped-rt .ped-ellipsis { max-width: 62vw; }
  .ped-it { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 8px; }
  .ped-it-art { grid-row: auto; }
  .ped-it-prod { grid-column: 2 / 4; grid-row: 1; }
  .ped-it-del { grid-column: 4; grid-row: 1; }
  .ped-it-var { grid-column: 1 / 5; grid-row: 2; }
  .ped-it-qty { grid-column: 1 / 3; grid-row: 3; }
  .ped-it-price { grid-column: 3 / 5; grid-row: 3; }
  .ped-it-sub { grid-column: 1 / 5; grid-row: 4; }
  .ped-cd-info { grid-template-columns: minmax(0, 1fr); }
  .ped-hist-row { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .ped-hist-row .badge { display: none; }
}

/* bordas visíveis para bobinas claras no tema claro */
:root[data-theme="light"] .ped-it .swatch, :root[data-theme="light"] .ped-fil .swatch { border-color: var(--line-2); }

/* cores e materiais por item (bobinas do estoque) */
.ped-it-var.tem-cores { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ped-it-var.tem-cores > select, .ped-it-var.tem-cores > .ped-it-novar { flex: 1 1 auto; min-width: 0; }
.ped-cores-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; max-width: 100%; padding: 0 10px; border-radius: 10px; border: 1px dashed var(--line-2); background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; min-width: 0; }
.ped-cores-btn:hover { color: var(--text); border-color: var(--purple); }
.ped-cores-btn.on { flex: 1 1 auto; border-style: solid; color: var(--text-2); background: var(--surface-2); }
.ped-cores-btn > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ped-cores-sw { display: inline-flex; flex: none; }
.ped-cores-sw .swatch { margin-left: -4px; box-shadow: 0 0 0 2px var(--surface); border-radius: 50%; }
.ped-cores-sw .swatch:first-child { margin-left: 0; }
.ped-cores-dica { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ped-cores-lista { display: flex; flex-direction: column; gap: 6px; }
.ped-cor-op { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); cursor: pointer; font-size: 13.5px; }
.ped-cor-op:has(input:checked) { border-color: var(--purple); background: color-mix(in srgb, var(--purple) 10%, var(--surface-2)); }
.ped-cor-op input { width: 16px; height: 16px; margin: 0; accent-color: var(--purple); flex: none; }
.ped-cor-nome { flex: 1; min-width: 0; }
.ped-cor-op em { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* ── assets/css/pages/prepedidos.css ── */
/* Pré-pedidos + botão flutuante */

/* ── botão flutuante (verde, canto inferior direito) ── */
.pre-fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30; display: none; align-items: center; justify-content: center; gap: 8px; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--green-2)); color: #0b1400; box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--green) 70%, transparent), 0 4px 12px rgba(0,0,0,.35); cursor: pointer; transition: transform .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.pre-fab span { display: none; font-weight: 700; font-size: 14px; }
.pre-fab:hover { transform: translateY(-2px); }
.pre-fab:active { transform: scale(.94); }
.pre-fab:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 55%, transparent); outline-offset: 3px; }
body.fab-desktop .pre-fab { display: inline-flex; width: auto; height: 50px; padding: 0 20px 0 16px; border-radius: 26px; }
body.fab-desktop .pre-fab span { display: inline; }
.pre-fab.oculto, body.sb-open .pre-fab { display: none !important; }
@media (max-width: 960px) {
  /* no celular fica ancorado pelo topo, na altura da tela "pequena" (com as barras do navegador abertas):
     não some atrás da barra do Safari e não pula quando a barra encolhe ao rolar */
  .pre-fab, body.fab-desktop .pre-fab { display: inline-flex; width: 61px; height: 61px; padding: 0; border-radius: 50%; bottom: auto; top: calc(100vh - 61px - 26px); top: calc(100svh - 61px - 26px - env(safe-area-inset-bottom)); }
  .pre-fab svg { width: 27px; height: 27px; }
  body.fab-desktop .pre-fab span { display: none; }
  body:has(.pre-fab:not(.oculto)) .view { padding-bottom: 96px; }
  body:has(.pre-fab:not(.oculto)) .toasts { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .pre-fab-opt { display: none !important; }
}
@media print { .pre-fab { display: none !important; } }

/* ── chave "botão no computador" ── */
.pre-fab-opt { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; margin-right: 6px; }
.pre-fab-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pre-switch { position: relative; width: 34px; height: 20px; border-radius: 12px; background: var(--surface-4); transition: background .15s; flex: none; }
.pre-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.pre-fab-opt input:checked + .pre-switch { background: var(--green-2); }
.pre-fab-opt input:checked + .pre-switch::after { transform: translateX(14px); }
.pre-fab-opt input:focus-visible + .pre-switch { outline: 2px solid var(--green); outline-offset: 2px; }

/* ── filtros ── */
.pre-tools { padding: 12px 16px 14px; }
.pre-tools .toolbar { margin: 0; }
.pre-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pre-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.pre-chip b { font-weight: 650; color: var(--text-2); }
.pre-chip:hover { color: var(--text); border-color: var(--muted-2); }
.pre-chip.on { background: color-mix(in srgb, var(--pc, var(--purple)) 16%, transparent); border-color: var(--pc, var(--purple)); color: var(--text); }
.prio-urgente { --pc: var(--red); } .prio-alta { --pc: var(--orange); } .prio-media { --pc: var(--blue); } .prio-baixa { --pc: var(--muted); }

/* ── cartões ── */
.pre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin-top: 16px; }
.pre-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--pc, var(--line-2)); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s; }
.pre-card:hover { border-color: var(--line-2); border-left-color: var(--pc); transform: translateY(-1px); }
.pre-card:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.pre-card.is-convertido, .pre-card.is-descartado { opacity: .72; }
.pre-thumb { position: relative; height: 150px; background: var(--surface-3); }
.pre-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pre-thumb em { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 10px; background: rgba(0,0,0,.65); color: #fff; font-style: normal; font-size: 12px; font-weight: 600; }
.pre-card-body { display: flex; flex-direction: column; gap: 7px; padding: 13px 14px 14px; flex: 1; }
.pre-card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pre-when { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.pre-card h3 { margin: 2px 0 0; font-size: 15.5px; font-weight: 650; overflow-wrap: anywhere; }
.pre-desc { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.pre-meta { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.pre-card-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }

/* ── formulário ── */
.pre-form { display: flex; flex-direction: column; gap: 14px; }
.pre-form .field { margin: 0; }
.pre-form .muted { color: var(--muted); font-weight: 400; }
.pre-imgs { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px; border-radius: 12px; transition: background .15s; }
.pre-imgs.drag { background: color-mix(in srgb, var(--green) 12%, transparent); outline: 2px dashed var(--green); }
.pre-img, .pre-img-add { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; flex: none; }
.pre-img img { width: 100%; height: 100%; object-fit: cover; display: block; border: 1px solid var(--line-2); border-radius: 12px; }
.pre-img-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; padding: 0; }
.pre-img-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--line-2); color: var(--muted); font-size: 11.5px; text-align: center; cursor: pointer; background: var(--surface-2); }
.pre-img-add:hover { color: var(--text); border-color: var(--green); }
.pre-prio { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pre-prio-opt { height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pre-prio-opt:hover { color: var(--text); }
.pre-prio-opt.on { background: color-mix(in srgb, var(--pc) 18%, transparent); border-color: var(--pc); color: var(--text); }

/* ── detalhe ── */
.pre-view { display: flex; flex-direction: column; gap: 14px; }
.pre-view-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.pre-view-tags .muted { color: var(--muted); }
.pre-view-desc { margin: 0; font-size: 14.5px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.pre-view-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pre-view-img { padding: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--surface-3); aspect-ratio: 1; cursor: zoom-in; }
.pre-view-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pre-view-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.pre-view-dl dt { color: var(--muted); }
.pre-view-dl dd { margin: 0; overflow-wrap: anywhere; }
.pre-view-dl a { color: var(--purple-txt); display: inline-flex; align-items: center; gap: 5px; }
.pre-zoom { display: grid; place-items: center; }
.pre-zoom img { max-width: 100%; max-height: 75vh; border-radius: 10px; }

/* ── aviso no Novo pedido ── */
.pre-nota { --tone: var(--green); align-items: center; margin-bottom: 14px; }
.pre-nota .al-text { white-space: pre-line; }
.pre-nota-dica { margin-top: 4px; white-space: normal !important; }
.pre-nota-imgs { display: flex; gap: 6px; flex: none; }
.pre-nota-imgs button { width: 52px; height: 52px; padding: 0; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; cursor: zoom-in; background: var(--surface-3); }
.pre-nota-imgs img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 640px) {
  .pre-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pre-thumb { height: 170px; }
  .pre-tools { padding: 10px 12px 12px; }
  .pre-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding-right: 12px; }
  .pre-chip { flex: none; }
  .pre-img, .pre-img-add { width: 76px; height: 76px; }
  .pre-nota { flex-wrap: wrap; }
}

/* formulário rápido mais enxuto no celular */
@media (max-width: 640px) {
  .pre-form { gap: 11px; }
  .pre-form textarea { min-height: 0; }
  .pre-img, .pre-img-add { width: 64px; height: 64px; }
  .pre-img-add span { font-size: 10.5px; }
  .pre-prio-opt { height: 36px; font-size: 12.5px; }
  .pre-form .form-grid { gap: 11px; }
}

/* ── assets/css/pages/producao.css ── */
/* estilos do módulo producao */

/* ── comuns ── */
.pr-ord { color: var(--purple-txt); font-weight: 600; }
.pr-ord:hover { color: var(--purple); text-decoration: underline; }
.pr-plink:hover { color: var(--purple-txt); }
.pr-pos { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; flex: none; }
.pr-kpi-of { font-size: 15px; color: var(--muted); font-weight: 600; }

/* ── ao vivo ── */
.pr-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); animation: pr-pulse 1.8s infinite; vertical-align: middle; margin-right: 4px; }
@keyframes pr-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.pr-live-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 18px; align-items: start; }
.pr-live-main { min-width: 0; }
.pr-live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 18px; }
.pr-live-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pr-live-card { position: relative; overflow: hidden; }
.pr-live-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line-2); }
.pr-live-card.st-imprimindo::before { background: linear-gradient(90deg, var(--green-2), var(--green)); box-shadow: 0 0 12px var(--green); }
.pr-live-card.st-pausada::before, .pr-live-card.st-manutencao::before { background: var(--orange); }
.pr-live-card.st-offline::before { background: var(--red); }
.pr-live-card .card-tools { gap: 12px; }
.pr-live-card .printer-panel .printer-art { min-height: 220px; }
.pr-next-list { display: flex; flex-direction: column; gap: 7px; }
.pr-next-item { display: flex; align-items: center; gap: 8px; }
.pr-next-item .job-card { flex: 1; }
.pr-more { font-size: 12px; text-align: center; margin-top: 10px; }
.pr-done-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.pr-done-sum span { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.pr-done-sum b { font-size: 17px; color: var(--text); }
.pr-done-list { display: flex; flex-direction: column; gap: 4px; }
.pr-done { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 9px; }
.pr-done:hover { background: var(--surface-2); }
.pr-done-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pr-done-t b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-done-t small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── fila ── */
.pf-card .card-body { display: flex; flex-direction: column; gap: 12px; }
.pf-mat { min-width: 190px; }
.pf-card .search-field { min-width: 300px; }
.pf-hint { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.pf-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pf-head, .pf-row { display: grid; grid-template-columns: 18px 28px minmax(170px, 2.2fr) minmax(120px, 1.3fr) 48px minmax(98px, 1fr) minmax(108px, 1fr) minmax(86px, .9fr) 112px 196px; gap: 12px; align-items: center; padding: 10px 14px; }
.pf-head { background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding-top: 9px; padding-bottom: 9px; }
.pf-row { border-top: 1px solid var(--line); background: var(--surface); position: relative; transition: background .12s; }
.pf-row:hover { background: var(--surface-2); }
.pf-row.dragging { opacity: .45; }
.pf-row.drop-before { box-shadow: inset 0 3px 0 var(--purple); }
.pf-row.drop-after { box-shadow: inset 0 -3px 0 var(--purple); }
.pf-grip { color: var(--muted-2); cursor: grab; display: flex; }
.pf-row:hover .pf-grip { color: var(--muted); }
.pf-row > div { min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.pf-row > div > b { font-weight: 650; white-space: nowrap; }
.pf-row small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-row > div.pf-prod { flex-direction: row; align-items: center; gap: 10px; }
.pf-row .pf-prod .art-sm { width: 44px; height: 44px; }
.pf-prod-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-prod-t b { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-prod-t small { display: flex; align-items: center; gap: 5px; }
.pf-row > div.pf-qtd { flex-direction: row; align-items: baseline; gap: 3px; }
.pf-row > div.pf-qtd b { font-size: 15px; }
.pf-fil b { display: flex; align-items: center; gap: 7px; }
.pf-av { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pf-av.ok { background: var(--green); box-shadow: 0 0 8px color-mix(in srgb, var(--green) 60%, transparent); }
.pf-av.low { background: var(--orange); box-shadow: 0 0 8px color-mix(in srgb, var(--orange) 60%, transparent); }
.pf-av.none { background: var(--red); }
.pf-prio-sel { width: 100%; }
.pf-prio-sel.prio-alta { border-color: color-mix(in srgb, var(--orange) 55%, var(--line-2)); color: var(--orange); }
.pf-prio-sel.prio-urgente { border-color: color-mix(in srgb, var(--red) 60%, var(--line-2)); color: var(--red); }
.pf-row > div.pf-act { flex-direction: row; align-items: center; justify-content: flex-end; gap: 2px; }
.pf-act .btn { margin: 0 4px; }
.pf-act .icon-btn { width: 30px; height: 30px; }
.pf-del:hover { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.pf-nores { text-align: center; padding: 18px; }

/* ── kanban ── */
.pk-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pk-chip { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c); }
.pk-chip span { font-size: 13px; color: var(--text-2); font-weight: 600; }
.pk-chip b { grid-row: span 2; font-size: 26px; font-weight: 750; color: var(--text); }
.pk-chip small { font-size: 11.5px; color: var(--muted); }
.pk-help { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: color-mix(in srgb, var(--blue) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--blue) 22%, transparent); color: var(--text-2); font-size: 12.5px; line-height: 1.55; }
.pk-help .ic { color: var(--blue); margin-top: 1px; }
.pk-help b { color: var(--text); }
.pk-board .kanban { grid-auto-columns: minmax(260px, 1fr); gap: 14px; }
.pk-board .kb-col { min-height: calc(100vh - 380px); }
.pk-board .kb-list { gap: 8px; }
.pk-board .job-card { padding: 9px 6px 9px 9px; }
.pk-board .job-card .art-xs { width: 42px; height: 42px; }

/* ── histórico ── */
.ph-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ph-kpis .kpi-value { font-size: 23px; }

/* ── falhas ── */
.pfl-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.pfl-row2 { grid-template-columns: minmax(0, 2.3fr) minmax(280px, 1fr); align-items: start; }
.pfl-insight { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.pfl-insight h5 { margin: 0; }
.pfl-tip { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--green) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--green) 22%, transparent); color: var(--text); }
.pfl-obs { display: inline-block; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); vertical-align: middle; }

/* ── planejamento (gantt) ── */
.pp-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: stretch; }
.pg-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.pg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pg-legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-cur { background: repeating-linear-gradient(135deg, var(--purple) 0 3px, color-mix(in srgb, var(--purple) 55%, transparent) 3px 6px); }
.lg-risk { border: 2px solid var(--red); }
.lg-off { background: repeating-linear-gradient(135deg, var(--line-2) 0 2px, transparent 2px 5px); border: 1px solid var(--line-2); }
.lg-now { width: 2px !important; height: 12px !important; background: var(--green); border-radius: 1px !important; }
.pg-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px 6px; }
.pg { min-width: 940px; --lab: 150px; }
.pg-head { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.pg-corner { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; align-self: end; padding: 0 0 8px; }
.pg-scale { position: relative; height: 50px; }
.pg-days { position: absolute; left: 0; right: 0; top: 0; height: 24px; }
.pg-day { position: absolute; top: 0; height: 24px; display: flex; align-items: center; padding-left: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; border-left: 1px solid var(--line-2); }
.pg-day b { color: var(--text); font-weight: 650; margin-right: 4px; }
.pg-ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; }
.pg-tick { position: absolute; bottom: 5px; transform: translateX(-50%); font-size: 10.5px; color: var(--muted-2); }
.pg-body { position: relative; }
.pg-layer { position: absolute; left: var(--lab); right: 0; top: 0; bottom: 0; pointer-events: none; overflow: hidden; }
.pg-layer i { position: absolute; top: 0; bottom: 0; }
.pg-past { left: 0; background: color-mix(in srgb, var(--text) 3%, transparent); }
.pg-off { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted-2) 22%, transparent) 0 2px, transparent 2px 7px); pointer-events: auto; }
.pg-sep { width: 0; border-left: 1px solid var(--line-2); }
.pg-now { width: 0; border-left: 2px solid var(--green); box-shadow: 0 0 10px var(--green); z-index: 2; }
.pg-now span { position: absolute; top: 2px; left: 4px; font-size: 10px; font-weight: 700; color: var(--green); font-style: normal; background: var(--surface); padding: 0 4px; border-radius: 4px; }
.pg-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); border-bottom: 1px solid var(--line); min-height: 62px; }
.pg-row:last-child { border-bottom: 0; }
.pg-label { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 10px 8px 0; min-width: 0; }
.pg-label b { font-size: 13.5px; }
.pg-label:hover b { color: var(--purple-txt); }
.pg-label small { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pg-track { position: relative; z-index: 1; }
.pg-block { position: absolute; top: 9px; bottom: 9px; min-width: 6px; border: 0; padding: 4px 8px; border-radius: 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--h) 88%, #fff 12%), var(--h)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 16%, transparent), 0 4px 12px -6px rgba(0, 0, 0, .5); text-align: left; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; justify-content: center; font: inherit; transition: transform .12s, filter .12s; }
.pg-block:hover { filter: brightness(1.08); transform: translateY(-1px); z-index: 2; }
.pg-block b { font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.pg-block small { font-size: 10.5px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-block.cur { background: repeating-linear-gradient(135deg, var(--h) 0 8px, color-mix(in srgb, var(--h) 78%, #000 22%) 8px 16px); box-shadow: 0 0 0 2px var(--purple), 0 0 16px -4px var(--purple); }
.pg-block.cut { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.pg-block.risk { box-shadow: 0 0 0 2px var(--red), 0 0 14px -4px var(--red); }
.pg-row.dis .pg-label b { color: var(--muted); }
.pg-unav { position: absolute; inset: 12px 0; border-radius: 8px; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12px; color: var(--orange); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--orange) 14%, transparent) 0 6px, transparent 6px 12px); border: 1px dashed color-mix(in srgb, var(--orange) 45%, transparent); }
.pp-dc-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 11px 13px; border-radius: 11px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.pp-dc-note.good { background: color-mix(in srgb, var(--green) 8%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--green) 22%, transparent); }
.pp-dc-note.good .ic { color: var(--green); }
.pp-dc-note.bad { background: color-mix(in srgb, var(--red) 8%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--red) 25%, transparent); }
.pp-dc-note.bad .ic { color: var(--red); }
.pp-dc-note .ic { flex: none; margin-top: 1px; }

/* ── responsivo ── */
@media (max-width: 1500px) {
  .ph-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pfl-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfl-row > .card:last-child { grid-column: 1 / -1; }
  .pp-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1400px) {
  .pf-head { display: none; }
  .pf-row { grid-template-columns: 18px 28px minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); row-gap: 10px; }
  .pf-row > .pf-qtd { display: none; }
  .pf-row > .pf-prazo { grid-column: 3; }
  .pf-row > .pf-prio { grid-column: 4; }
  .pf-row > .pf-act { grid-column: 5 / -1; }
}
@media (max-width: 1240px) {
  .pr-live-layout { grid-template-columns: minmax(0, 1fr); }
  .pr-live-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfl-row2 { grid-template-columns: minmax(0, 1fr); }
  .pk-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .pr-live-side { grid-template-columns: minmax(0, 1fr); }
  .pfl-row { grid-template-columns: minmax(0, 1fr); }
  .ph-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-row { grid-template-columns: 18px 26px minmax(0, 1fr) minmax(0, 1fr); padding: 12px; }
  .pf-row > .pf-prod { grid-column: 3 / -1; }
  .pf-row > .pf-ord, .pf-row > .pf-time, .pf-row > .pf-prio { grid-column: 3; }
  .pf-row > .pf-fil, .pf-row > .pf-prazo { grid-column: 4; }
  .pf-row > .pf-act { grid-column: 3 / -1; justify-content: flex-start; }
  .pf-row > .pf-act .btn { margin-left: auto; }
  .pf-hint { display: none; }
}
@media (max-width: 640px) {
  .ph-kpis { grid-template-columns: minmax(0, 1fr); }
  .pk-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pk-chip { padding: 10px 12px; }
  .pk-chip b { font-size: 22px; }
  .pf-grip { display: none; }
  .pf-row { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr); column-gap: 10px; }
  .pf-row > .pf-prod { grid-column: 2 / -1; }
  .pf-row > .pf-ord, .pf-row > .pf-time, .pf-row > .pf-prio { grid-column: 2; }
  .pf-row > .pf-fil, .pf-row > .pf-prazo { grid-column: 3; }
  .pf-row > .pf-act { grid-column: 1 / -1; }
  .pf-card .search-field, .pf-mat { min-width: 0; width: 100%; }
  .pf-card .tb-left { width: 100%; }
  .pr-live-card .printer-panel .printer-art { min-height: 160px; }
  .page-header .search-field { min-width: 0; width: 100%; }
  .pk-board .kb-col { min-height: 200px; }
}
.pk-head-search, .ph-search { min-width: 280px; }
.pg-label, .pg-corner { position: sticky; left: 0; z-index: 3; background: var(--surface); }
@media (max-width: 640px) { .pg { --lab: 112px; min-width: 860px; } .pg-label small { white-space: normal; } }

/* ── assets/css/pages/impressoras.css ── */
/* estilos do módulo impressoras */
.imp-ord { color: var(--purple-txt); font-weight: 600; }
.imp-ord:hover { text-decoration: underline; }
.imp-plink:hover, .imp-fleet-name:hover b { color: var(--purple-txt); }
.imp-row { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
.imp-h-badge { vertical-align: middle; margin-left: 6px; position: relative; top: -3px; }

/* ── detalhe ── */
.imp-live { position: relative; overflow: hidden; }
.imp-live .printer-panel .printer-art { min-height: 240px; }
.imp-live-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.imp-live-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.imp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.imp-stats .stat-value { font-size: 17px; }
.imp-health { margin-top: 14px; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--tone) 7%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent); display: flex; flex-direction: column; gap: 10px; }
.imp-health.tone-green, .imp-hcard.tone-green { --tone: var(--green); }
.imp-health.tone-orange, .imp-hcard.tone-orange { --tone: var(--orange); }
.imp-health.tone-red, .imp-hcard.tone-red { --tone: var(--red); }
.ih-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.ih-top > span { display: inline-flex; align-items: center; gap: 7px; }
.ih-top .ic { color: var(--tone); }
.ih-top b { font-size: 18px; }
.ih-top small { font-size: 12px; color: var(--muted); font-weight: 500; }
.ih-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.imp-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; }
.imp-specs > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.imp-specs dt { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.imp-specs dd { margin: 0; font-size: 13px; font-weight: 600; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-specs code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-2); background: var(--surface-3); padding: 2px 6px; border-radius: 6px; }
.imp-obs { margin-top: 12px; font-size: 12.5px; }
.imp-mlist { display: flex; flex-direction: column; gap: 6px; }
.imp-mnt { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; text-align: left; transition: border-color .15s; }
.imp-mnt:hover { border-color: var(--line-2); }
.im-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.im-ic.green { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.im-ic.orange { background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--orange); }
.im-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.im-t b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-t small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.im-r small { font-size: 11.5px; color: var(--muted); }
.imp-more { margin-top: 10px; }

/* ── formulário ── */
.imp-form-row { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; }
.imp-form .card-body { padding: 20px; }
.imp-form-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.imp-side { position: sticky; top: calc(var(--tb-h) + 18px); }
.imp-side-art { display: flex; justify-content: center; }
.imp-side-art .printer-art { width: 180px; height: 196px; }
.imp-side-name { text-align: center; margin: 14px 0 16px; display: flex; flex-direction: column; gap: 2px; }
.imp-side-name b { font-size: 17px; }
.imp-side-name span { font-size: 12.5px; color: var(--muted); }
.imp-calc { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.imp-calc > div { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.imp-calc > div:last-child { border-bottom: 0; }
.imp-calc b { color: var(--text); }
.imp-calc .tot { background: color-mix(in srgb, var(--green) 8%, var(--surface-2)); }
.imp-calc .tot b { color: var(--green); font-size: 15px; }
.imp-side-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.imp-side-note .ic { flex: none; margin-top: 2px; }
.imp-side-note b { color: var(--text-2); }

/* ── manutenções ── */
.imp-health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.imp-hcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.imp-hcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tone); }
.ihc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ihc-head a { display: flex; flex-direction: column; min-width: 0; }
.ihc-head a:hover b { color: var(--purple-txt); }
.ihc-head small { font-size: 11.5px; color: var(--muted); }
.ihc-val { display: flex; align-items: baseline; gap: 8px; }
.ihc-val b { font-size: 24px; font-weight: 750; color: var(--tone); }
.ihc-val span { font-size: 12px; color: var(--muted); }
.ihc-foot { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.ihc-next { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-size: 12px; }
.ihc-actions { display: flex; gap: 6px; margin-top: 2px; }
.imp-user { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.imp-obs-cell { display: inline-block; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); vertical-align: middle; }

/* ── frota ── */
.imp-fleet-name { display: flex; align-items: center; gap: 10px; }
.imp-fleet-name span { display: flex; flex-direction: column; }
.imp-fleet-name small { font-size: 11.5px; color: var(--muted); }
.imp-mbar { display: flex; flex-direction: column; gap: 5px; min-width: 110px; font-size: 12.5px; }
.imp-util-note { font-size: 12px; margin-top: 14px; }

/* ── responsivo ── */
@media (max-width: 1240px) {
  .imp-row, .imp-form-row { grid-template-columns: minmax(0, 1fr); }
  .imp-side { position: static; }
}
@media (max-width: 640px) {
  .imp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .imp-specs { grid-template-columns: minmax(0, 1fr); }
  .imp-live .printer-panel .printer-art { min-height: 170px; }
  .imp-form .card-body { padding: 16px; }
  .imp-form-foot { flex-wrap: wrap; }
  .imp-h-badge { top: -2px; }
}

/* ── assets/css/pages/produtos.css ── */
/* estilos do módulo produtos */
.prd-sku { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.prd-cat { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: color-mix(in srgb, var(--c) 15%, transparent); color: color-mix(in srgb, var(--c) 78%, var(--text)); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.prd-cat.is-none { --c: var(--muted); }
.prd-sw { display: inline-flex; align-items: center; gap: 3px; }
.prd-sw .swatch { box-shadow: 0 0 0 1.5px var(--surface); }
.prd-sw em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 3px; }
.prd-kpi-name { display: block; font-size: 19px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.prd-sel { min-width: 180px; height: 38px; font-size: 13px; }
.prd-viewtoggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.prd-viewtoggle .icon-btn { width: 30px; height: 30px; border-radius: 7px; }
.prd-viewtoggle .icon-btn.active { background: var(--surface-4); color: var(--text); }
.prd-noresult { text-align: center; padding: 20px; }
.prd-tname { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.prd-ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.prd-row-off td { opacity: .55; }
.tabs .dot { width: 7px; height: 7px; }

/* ── catálogo ── */
.prd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 16px; }
.prd-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color .18s, transform .18s, box-shadow .18s; outline: none; }
.prd-card:hover, .prd-card:focus-visible { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(0,0,0,.6), 0 0 0 1px color-mix(in srgb, var(--purple) 25%, transparent); }
.prd-card-art { position: relative; }
.prd-card-art .art { width: 100%; aspect-ratio: 5 / 4; border-radius: 0; }
.prd-card-art .art svg { transition: transform .35s ease; }
.prd-card:hover .prd-card-art .art svg { transform: scale(1.06); }
.prd-card.is-off .prd-card-art .art, .prd-card.is-off .prd-card-body { opacity: .5; filter: grayscale(.6); }
.prd-flag, .prd-flags { position: absolute; left: 10px; top: 10px; }
.prd-flags { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; right: 52px; pointer-events: none; }
.prd-sold { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--glass); backdrop-filter: blur(6px); border: 1px solid var(--line-2); }
.prd-star { position: absolute; right: 9px; top: 9px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(6px); color: var(--muted); cursor: pointer; transition: color .15s, transform .15s, background .15s; }
.prd-star:hover { color: var(--yellow); transform: scale(1.08); }
.prd-star.on { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 45%, transparent); }
.prd-star.on svg { fill: currentColor; }
.prd-star.sm { position: static; width: 30px; height: 30px; background: transparent; border-color: transparent; }
.prd-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; min-width: 0; }
.prd-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.prd-card-top .prd-sku { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prd-card h4 { font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prd-card-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.prd-card-price b { font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.prd-mg { font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: color-mix(in srgb, currentColor 12%, transparent); }
.prd-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--line); }

/* ── formulário ── */
.prd-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.prd-form-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.prd-side { position: sticky; top: calc(var(--tb-h) + 18px); }
.prd-side .card { overflow: hidden; }
.prd-side-actions { padding: 0 16px 16px; }
.prd-full { width: 100%; }
.prd-time { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prd-look { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: start; }
.prd-preview { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.prd-prev-art { width: 100%; border-radius: 16px; border: 1px solid var(--line-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.02); }
.prd-prev-cap { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; justify-content: center; }
.prd-prev-vars { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.prd-prev-var { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; transition: transform .12s; }
.prd-prev-var:hover { transform: scale(1.15); }
.prd-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 40px; }
.prd-preset { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; transition: transform .12s, box-shadow .12s; }
.prd-preset:hover { transform: scale(1.15); box-shadow: 0 0 0 2px var(--purple); }
.prd-img .ii-preview { width: 72px; height: 72px; }
.prd-img > div:last-child { display: flex; flex-direction: column; gap: 6px; }
.prd-vars { display: flex; flex-direction: column; gap: 8px; }
.prd-var-head, .prd-var-row { display: grid; grid-template-columns: 24px minmax(0, 1.2fr) minmax(0, 1fr) 36px minmax(0, 1.1fr) minmax(0, 1fr) 34px; gap: 8px; align-items: center; }
.prd-var-head span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.prd-var-row { padding: 6px 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.prd-var-row .input { background: var(--surface); }
.prd-var-hex { width: 34px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--surface); }
.prd-var-hex input { width: 24px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; }
.prd-var-price > span { padding: 0 8px; border-radius: 8px 0 0 8px; }
.prd-var-price .input { border-radius: 0 8px 8px 0; }
.prd-var-del { width: 32px; height: 32px; color: var(--muted); }
.prd-var-del:hover { color: var(--red); }

/* painel lateral de custos */
.prd-side-prod { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.prd-side-prod > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prd-side-prod b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prd-side-price { font-size: 18px; font-weight: 750; color: var(--green); margin-top: 2px; }
.prd-side-sec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.prd-side-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.prd-side-h span { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.prd-side-h b { font-size: 18px; }
.prd-stack { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--surface-4); gap: 2px; margin-bottom: 10px; }
.prd-stack i { display: block; height: 100%; min-width: 0; transition: width .3s; }
.prd-cls { display: flex; flex-direction: column; gap: 7px; }
.prd-cl { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.prd-cl > span { display: flex; align-items: center; gap: 8px; color: var(--text-2); min-width: 0; flex-wrap: wrap; }
.prd-cl > span small { width: 100%; padding-left: 16px; margin-top: -3px; font-size: 11px; color: var(--muted); }
.prd-cl b { font-weight: 650; white-space: nowrap; }
.prd-cl-total { padding-top: 8px; margin-top: 2px; border-top: 1px dashed var(--line-2); font-size: 14px; }
.prd-cl-total b { font-size: 16px; }
.prd-res { display: flex; flex-direction: column; gap: 7px; }
.prd-sug { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 0; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--purple) 14%, var(--surface-2)), var(--surface-2)); border: 1px solid color-mix(in srgb, var(--purple) 28%, transparent); }
.prd-sug > div { display: flex; flex-direction: column; min-width: 0; }
.prd-sug span { font-size: 12px; color: var(--muted); }
.prd-sug b { font-size: 18px; color: var(--purple-txt); }
.prd-sug small { font-size: 10.5px; color: var(--muted); }
.prd-gauge { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.prd-gauge-top { display: flex; justify-content: space-between; align-items: baseline; }
.prd-gauge-top span { font-size: 13px; color: var(--text-2); }
.prd-gauge-top b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.prd-gauge-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); gap: 8px; }
.prd-gauge-foot span { display: flex; align-items: center; gap: 5px; }
.prd-gauge-foot b { color: var(--text); }
.prd-warn { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; font-size: 12.5px; color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); border: 1px solid color-mix(in srgb, var(--red) 25%, transparent); }

/* ── variantes ── */
.prd-colorcell { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.prd-colorcell code { font-size: 11px; color: var(--muted); font-family: ui-monospace, monospace; }
.prd-inh { height: 19px; font-size: 10.5px; padding: 0 7px; margin-left: 4px; }
.prd-novar { display: flex; flex-direction: column; gap: 4px; max-height: 520px; overflow-y: auto; margin: -4px -6px; }
.prd-novar-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; }
.prd-novar-row:hover { background: var(--surface-2); }
.prd-novar-row b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prd-novar-row span { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }

/* ── ficha técnica ── */
.prd-fichatb { justify-content: flex-start; }
.prd-fichatb .prd-sel { min-width: 260px; width: auto; }
.prd-fichatb .btn-primary { margin-left: auto; }
.prd-sheet { padding: 26px 28px; gap: 22px; }
.prd-sheet-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.prd-sheet-head .art-lg { width: 120px; height: 120px; }
.prd-sheet-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.prd-sheet-kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--purple-txt); font-weight: 700; }
.prd-sheet-title h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.prd-sheet-price { text-align: right; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.prd-sheet-price span { font-size: 12px; color: var(--muted); }
.prd-sheet-price b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.prd-sheet-price small { font-weight: 700; font-size: 12.5px; }
.prd-sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.prd-sheet-grid section { min-width: 0; }
.prd-sheet-grid h4 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prd-sheet-grid h4 .ic { color: var(--green); }
.prd-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; }
.prd-dl > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.prd-dl dt { color: var(--muted); }
.prd-dl dd { margin: 0; font-weight: 600; text-align: right; display: flex; align-items: center; gap: 6px; }
.prd-mini { font-size: 13px; }
.prd-mini th, .prd-mini td { padding: 7px 4px; }
.prd-mini tbody tr:hover td { background: none; }
.prd-pricebox { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.prd-pricebox > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.prd-pricebox span { font-size: 11.5px; color: var(--muted); }
.prd-pricebox b { font-size: 16px; }
.prd-sheet-vars, .prd-sheet-files { display: flex; flex-direction: column; gap: 6px; }
.prd-sheet-vars > div, .prd-sheet-files > div { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; background: var(--surface-2); font-size: 13px; min-width: 0; }
.prd-sheet-vars > div > span { margin-left: auto; font-weight: 600; white-space: nowrap; }
.prd-sheet-files > div b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prd-sheet-files > div > span.muted { margin-left: auto; font-size: 12px; white-space: nowrap; }
.prd-desc { color: var(--text-2); line-height: 1.6; white-space: pre-wrap; }
.prd-sheet-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }

/* ── arquivos ── */
.prd-fic { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c, var(--muted)) 15%, transparent); color: var(--c, var(--muted)); }
.prd-fic-stl { --c: var(--blue); } .prd-fic-3mf { --c: var(--purple-txt); } .prd-fic-obj { --c: var(--orange); } .prd-fic-step { --c: var(--cyan); }
.prd-plink:hover span { color: var(--purple-txt); }
.prd-upwrap { align-items: stretch; }
.prd-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 22px; border-radius: var(--radius); border: 1.5px dashed var(--line-2); background: radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--purple) 8%, transparent), transparent 70%), var(--surface); cursor: pointer; transition: border-color .15s, background .15s; min-height: 132px; }
.prd-drop:hover, .prd-drop.over { border-color: var(--purple); background: color-mix(in srgb, var(--purple) 10%, var(--surface)); }
.prd-drop b { font-size: 14px; }
.prd-drop > span:not(.prd-drop-ic) { font-size: 12.5px; color: var(--muted); }
.prd-drop u { color: var(--purple-txt); text-decoration: none; font-weight: 600; }
.prd-drop-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--purple) 16%, transparent); color: var(--purple-txt); margin-bottom: 4px; }
.prd-notice { align-self: stretch; padding: 16px; }
.prd-notice .al-text { line-height: 1.55; gap: 4px; }
.prd-uplist { display: flex; flex-direction: column; gap: 6px; }
.prd-uplist > div { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.prd-uplist b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── importação ── */
.prd-steps { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow-x: auto; }
.prd-steps > i { flex: 1; min-width: 20px; height: 1px; background: var(--line-2); }
.prd-step { display: flex; align-items: center; gap: 9px; white-space: nowrap; color: var(--muted); }
.prd-step span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; background: var(--surface-3); border: 1px solid var(--line-2); }
.prd-step b { font-size: 13px; font-weight: 600; }
.prd-step.active { color: var(--text); }
.prd-step.active span { background: linear-gradient(135deg, var(--purple), var(--purple-2)); border-color: transparent; color: #fff; box-shadow: 0 0 14px -2px var(--purple); }
.prd-step.done span { background: color-mix(in srgb, var(--green) 18%, transparent); border-color: transparent; color: var(--green); }
.prd-p { margin: 0 0 12px; line-height: 1.55; }
.prd-cols { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.prd-cols code { font-family: ui-monospace, monospace; font-size: 12px; padding: 3px 8px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-2); }
.prd-cols code.req { color: var(--purple-txt); border-color: color-mix(in srgb, var(--purple) 40%, transparent); }
.prd-drop-sm { min-height: 110px; padding: 16px; }
.prd-drop-sm .prd-drop-ic { width: 40px; height: 40px; border-radius: 12px; }
.prd-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; font-size: 12px; color: var(--muted); }
.prd-or::before, .prd-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.prd-paste { font-family: ui-monospace, monospace; font-size: 12.5px; margin-bottom: 12px; }
.prd-imp-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.prd-map { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.prd-map span { font-size: 12px; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.prd-map span.ok b { color: var(--green); font-weight: 600; font-family: ui-monospace, monospace; font-size: 11.5px; }
.prd-map span.no { color: var(--muted); border-style: dashed; }
.prd-map em { font-style: normal; font-size: 11px; }
.prd-msg { display: flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.prd-imp-err td { background: color-mix(in srgb, var(--red) 5%, transparent); }
.prd-imp-bar { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; position: sticky; bottom: 12px; z-index: 5; flex-wrap: wrap; box-shadow: var(--shadow); }
.prd-imp-bar > div:first-child { display: flex; flex-direction: column; }
.prd-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 10px; }
.prd-result-ic { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); box-shadow: 0 0 30px -6px var(--green); margin-bottom: 4px; }
.prd-result h3 { font-size: 22px; }
.prd-result-stats { display: grid; grid-template-columns: repeat(3, 150px); gap: 10px; margin: 8px 0 12px; }

/* ── responsivo ── */
@media (max-width: 1240px) {
  .prd-form-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .prd-look { grid-template-columns: minmax(0, 1fr) 180px; }
  .prd-imp-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .prd-form-layout { grid-template-columns: minmax(0, 1fr); }
  .prd-side { position: static; }
  .prd-sheet-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .prd-var-head { display: none; }
  .prd-var-row { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) 34px; }
  .prd-var-row > :nth-child(5) { grid-column: 2; } .prd-var-row > :nth-child(6) { grid-column: 3 / 5; }
  .prd-var-row > :nth-child(7) { grid-row: 1; grid-column: 4; }
  .prd-var-row > :nth-child(4) { grid-column: 4; grid-row: 2; }
  .prd-sheet-head { grid-template-columns: auto minmax(0, 1fr); }
  .prd-sheet-price { grid-column: 1 / -1; text-align: left; }
  .prd-dl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .prd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prd-card-body { padding: 10px; }
  .prd-card-price b { font-size: 16px; }
  .prd-card-top .prd-sku, .prd-card-foot .prd-sw { display: none; }
  .prd-look { grid-template-columns: minmax(0, 1fr); }
  .prd-preview { max-width: 220px; margin: 0 auto; }
  .prd-sel, .prd-fichatb .prd-sel { min-width: 0; width: 100%; }
  .search-field { min-width: 0; width: 100%; }
  .tb-left, .tb-right { width: 100%; }
  .prd-fichatb .btn-primary { margin-left: 0; }
  .prd-sheet { padding: 18px 16px; }
  .prd-sheet-title h2 { font-size: 21px; }
  .prd-sheet-head .art-lg { width: 84px; height: 84px; }
  .prd-pricebox { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .prd-imp-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prd-result-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prd-steps b { display: none; }
  .prd-imp-bar { position: static; }
}

/* ── impressão da ficha técnica ── */
@media print {
  :root:has(.prd-sheet) { --bg: #fff; --surface: #fff; --surface-2: #f5f5f8; --surface-3: #ececf1; --surface-4: #e2e2ea; --line: #e2e2e8; --line-2: #d0d0da; --text: #111; --text-2: #333; --muted: #666; --muted-2: #999; --art-bg1: #f3f3f7; --art-bg2: #dcdce4; --purple-txt: #6d28d9; --green: #3f7d0a; --glass: #fff; color-scheme: light; }
  .page:has(.prd-sheet) > :not(.prd-sheet) { display: none !important; }
  .prd-sheet { border: 0; padding: 0; }
  .prd-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .prd-sheet-grid section { break-inside: avoid; }
}
.prd-cl { align-items: flex-start; }
.prd-example { margin: 4px 0 14px; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.prd-example .table th, .prd-example .table td { padding: 7px 10px; white-space: nowrap; font-size: 12px; }
.prd-notice .al-text > span { display: block; }
.prd-imp-table td { white-space: nowrap; }
@media print {
  html:has(.prd-sheet), body:has(.prd-sheet) { background: #fff !important; }
  .page:has(.prd-sheet) { animation: none !important; opacity: 1 !important; transform: none !important; }
  .prd-sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px 22px; }
  .prd-sheet-head { grid-template-columns: auto minmax(0, 1fr) auto !important; }
  .prd-sheet-head .art-lg { width: 96px !important; height: 96px !important; }
  .prd-sheet-price { grid-column: auto !important; text-align: right !important; }
  .prd-dl { grid-template-columns: minmax(0, 1fr) !important; }
  .prd-dl > div { padding: 5px 0; font-size: 12px; }
  .prd-mini th, .prd-mini td { padding: 5px 4px; font-size: 12px; }
  .prd-pricebox > div { padding: 7px 10px; }
  .prd-pricebox b { font-size: 14px; }
}

/* ── custos extras, sugerido e marketplace ── */
.prd-card-sub { font-size: 11.5px; color: var(--muted); margin-top: -3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prd-card-sub b { color: var(--text-2); font-weight: 600; }
.prd-below { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11px; font-weight: 650; white-space: nowrap; color: var(--orange); background: var(--glass); backdrop-filter: blur(6px); border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent); }
.prd-below-sub { color: var(--orange); display: inline-flex; align-items: center; gap: 3px; justify-content: flex-end; }
.prd-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.prd-chip svg { color: var(--orange); }
.prd-chip b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 11.5px; background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.prd-chip:hover { border-color: color-mix(in srgb, var(--orange) 45%, transparent); color: var(--text); }
.prd-chip.on { border-color: color-mix(in srgb, var(--orange) 55%, transparent); background: color-mix(in srgb, var(--orange) 10%, var(--surface-2)); color: var(--text); }
.prd-chip.on svg:last-child { color: var(--muted); }
.prd-cl-sub { padding-top: 7px; border-top: 1px solid var(--line); font-weight: 600; }
.prd-cl-sub > span { color: var(--text); }
.prd-cl-total > span { color: var(--text); font-weight: 650; }
.prd-sug.is-below { border-color: color-mix(in srgb, var(--orange) 40%, transparent); }
.prd-note { margin-top: 10px; display: flex; align-items: flex-start; gap: 8px; padding: 9px 11px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; color: var(--text-2); background: color-mix(in srgb, var(--orange) 9%, transparent); border: 1px solid color-mix(in srgb, var(--orange) 22%, transparent); }
.prd-note svg { flex-shrink: 0; color: var(--orange); margin-top: 1px; }
.prd-note b { color: var(--orange); }
.prd-mkt { margin-top: 14px; padding: 11px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.prd-mkt-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.prd-mkt-top span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.prd-mkt-top b { font-size: 17px; color: var(--blue); white-space: nowrap; }
.prd-mkt small { font-size: 11px; line-height: 1.4; color: var(--muted); }
.prd-mini-sub td { font-weight: 650; border-top: 1px solid var(--line-2); }
.prd-pricebox small { font-size: 10.5px; color: var(--muted); line-height: 1.3; }

/* ── insumos do estoque por peça ── */
.prd-ins { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.prd-ins-head, .prd-ins-row { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(110px, .8fr) 88px 34px; gap: 8px; align-items: center; }
.prd-ins-head span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.prd-ins-row { padding: 6px 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.prd-ins-qtd .input { min-width: 0; }
.prd-ins-cost { text-align: right; font-size: 13px; white-space: nowrap; }
@media (max-width: 720px) {
  .prd-ins-head { display: none; }
  .prd-ins-row { grid-template-columns: minmax(0, 1fr) 34px; }
  .prd-ins-row .prd-ins-qtd { grid-column: 1; }
  .prd-ins-row .prd-ins-cost { grid-column: 2; grid-row: 2; text-align: right; }
  .prd-ins-row .icon-btn { grid-column: 2; grid-row: 1; }
}

/* material por etapa (cada plate com seu filamento e peso) */
.prd-etapas { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.prd-et-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 130px 90px; gap: 10px; align-items: center; }
.prd-et-head { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.prd-et-n { display: flex; flex-direction: column; min-width: 0; }
.prd-et-n b { font-size: 13px; }
.prd-et-n b::after { content: 'ª etapa'; font-weight: 500; color: var(--text-2); }
.prd-et-n small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prd-et-custo, .prd-et-total b { text-align: right; font-size: 13px; }
.prd-et-total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 650; font-size: 13px; }
.prd-et-total b[data-ettot="peso"] { text-align: left; padding-left: 4px; }
@media (max-width: 640px) {
  .prd-et-row { grid-template-columns: 58px minmax(0, 1fr) 96px; }
  .prd-et-row > :nth-child(4) { grid-column: 2 / -1; text-align: right; font-size: 12px; color: var(--text-2); }
  .prd-et-head > :nth-child(4) { display: none; }
}

/* ── assets/css/pages/estoque.css ── */
/* estilos do módulo estoque */
.est-tname { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.est-ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.est-sel { min-width: 200px; height: 38px; font-size: 13px; }
.est-sel-sm { min-width: 150px; height: 38px; font-size: 13px; }
.est-noresult { text-align: center; padding: 20px; }
.est-p { margin-bottom: 12px; line-height: 1.55; }
.est-intro { margin: 0 0 14px; line-height: 1.55; }
.est-kpi-sub { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.est-ro { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--line-2); font-weight: 600; }
.est-ro small { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.est-diff { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.est-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.est-strip .stat { background: var(--surface); padding: 14px 16px; }

/* visão geral: grupos de filamento */
.est-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.est-group { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .15s; }
.est-group:hover { border-color: var(--line-2); }
.est-group.is-low { border-color: color-mix(in srgb, var(--red) 35%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--red) 7%, var(--surface-2)), var(--surface-2) 60%); }
.est-group-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.est-group-name { display: flex; flex-direction: column; min-width: 0; }
.est-group-name b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-group-name span { font-size: 11.5px; color: var(--muted); }
.est-group-name em { font-style: normal; font-weight: 600; }
.est-group-top strong { font-size: 18px; font-weight: 750; white-space: nowrap; }
.est-group-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.est-group-stats span { display: flex; flex-direction: column; min-width: 0; }
.est-group-stats small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.est-group-stats b { font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.est-att { max-height: 470px; overflow-y: auto; }
.est-att .alert-item em { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--tone); }

/* bobinas */
.est-spools { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.est-spool { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .18s, transform .18s; min-width: 0; }
.est-spool:hover { border-color: var(--line-2); transform: translateY(-2px); }
.est-spool.is-empty { opacity: .6; }
.est-spool-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.est-spool-head .spool-art { filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.est-spool-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.est-spool-title .row { gap: 6px; }
.est-spool-title h4 { font-size: 15.5px; display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-spool-title > span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-spool-menu { display: flex; flex-direction: column; align-self: start; margin: -6px -6px 0 0; }
.est-spool-menu .icon-btn { width: 30px; height: 30px; color: var(--muted); }
.est-spool-w { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.est-spool-w b { font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.est-spool-w span { color: var(--muted); font-size: 13px; }
.est-spool-w em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.est-spool-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px 0 2px; border-top: 1px solid var(--line); }
.est-spool-stats span { display: flex; flex-direction: column; min-width: 0; }
.est-spool-stats small { font-size: 10.5px; color: var(--muted); }
.est-spool-stats b { font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-spool-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.est-spool-actions .btn { flex: 1; }

/* insumos */
.est-qty { display: inline-flex; align-items: center; gap: 4px; padding: 2px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.est-qty .icon-btn { width: 26px; height: 26px; border-radius: 7px; }
.est-qty > span { min-width: 74px; text-align: center; font-size: 13px; color: var(--muted); }
.est-qty > span b { color: var(--text); font-size: 14px; }
.est-row-low td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.est-mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.est-mat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .15s; }
.est-mat:hover { border-color: var(--purple); }
.est-mat span { font-weight: 700; color: var(--green); font-size: 13px; }
.est-mat small { font-size: 11px; color: var(--muted); }
.est-repo { display: flex; flex-direction: column; gap: 6px; }
.est-repo > div { display: grid; grid-template-columns: minmax(0, 1fr) auto 90px; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.est-repo > div > span { display: flex; flex-direction: column; min-width: 0; }
.est-repo > div > span b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-repo small { font-size: 11.5px; color: var(--muted); }
.est-repo em { font-style: normal; color: var(--orange); font-weight: 650; white-space: nowrap; }
.est-repo > div > b { text-align: right; }
.est-repo-total { display: flex; justify-content: space-between; padding: 12px 10px 0; margin-top: 8px; border-top: 1px dashed var(--line-2); font-size: 14px; }

/* movimentações */
.est-movsp { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.est-movsp > span { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.est-movsp small { font-size: 11.5px; color: var(--muted); }
.est-adj { color: var(--blue); }
.est-motivo { display: block; max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }

/* reservas */
.est-explain { flex-direction: row; align-items: center; gap: 16px; padding: 18px; flex-wrap: wrap; background: linear-gradient(120deg, color-mix(in srgb, var(--purple) 10%, var(--surface)), var(--surface) 55%); }
.est-explain-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--purple) 18%, transparent); color: var(--purple-txt); }
.est-explain > div:nth-child(2) { flex: 1 1 380px; min-width: 0; }
.est-explain b { font-size: 15px; }
.est-explain p { color: var(--text-2); font-size: 13px; line-height: 1.6; margin-top: 4px; max-width: 760px; }
.est-explain-stats { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 10px; flex: 0 1 auto; }
.est-perspool { display: flex; flex-direction: column; gap: 10px; }
.est-ps { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.est-ps.is-bad { border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.est-ps-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.est-ps-top > div { display: flex; flex-direction: column; min-width: 0; }
.est-ps-top b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-ps-top span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-ps-warn { color: var(--red); display: flex; }
.est-ps-nums { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.est-ps-nums b { display: block; font-size: 13px; color: var(--text); }
.est-ps-msg { font-size: 12px; color: var(--red); display: flex; align-items: center; gap: 6px; }
.est-joblink { text-decoration: none; }
.est-joblink:hover b { color: var(--purple-txt); }
.est-joblink .cell-sub { margin-top: 2px; }
.est-joblink .badge { height: 19px; font-size: 10.5px; }

/* compras */
.est-sugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.est-sug { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid color-mix(in srgb, var(--orange) 25%, var(--line)); }
.est-sug > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.est-sug > div > b { font-size: 14px; }
.est-sug span { font-size: 12px; color: var(--muted); }
.est-pitems-sum { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.est-pitems-sum span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.est-pitems { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.est-pi-head, .est-pi { display: grid; grid-template-columns: minmax(90px, 1.1fr) minmax(70px, 1fr) 34px minmax(70px, 1fr) 64px 100px 110px 84px 30px; gap: 6px; align-items: center; }
.est-pi-head span { font-size: 11px; font-weight: 600; color: var(--muted); }
.est-pi { padding: 5px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.est-pi .input { background: var(--surface); padding: 0 8px; }
.est-pi select.input { padding-right: 26px; background-position: right 6px center; }
.est-pi .input-affix > span { padding: 0 7px; font-size: 11.5px; }
.est-pi-hex { width: 34px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--surface); }
.est-pi-hex input { width: 24px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; }
.est-pi-sub { font-size: 12.5px; text-align: right; white-space: nowrap; }
.est-pi-del { width: 30px; height: 30px; color: var(--muted); }
.est-pi-del:hover { color: var(--red); }
.est-ptotal { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--muted); align-items: baseline; }
.est-ptotal span:first-child { margin-right: auto; }
.est-ptotal b { color: var(--text); }
.est-ptotal-g b { font-size: 17px; color: var(--green); }

@media (max-width: 1240px) { .est-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .est-pi-head { display: none; }
  .est-pi { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; }
  .est-pi > :nth-child(4) { grid-column: 1 / 3; }
  .est-pi > :nth-child(5) { grid-column: 3; }
  .est-pi > :nth-child(6), .est-pi > :nth-child(7) { grid-column: span 1; }
  .est-pi > :nth-child(8) { grid-column: 3; }
  .est-pi > :nth-child(9) { grid-column: 3; grid-row: 1; }
  .est-pi > :nth-child(3) { grid-row: 2; grid-column: 3; }
}
@media (max-width: 640px) {
  .est-spools, .est-sugs { grid-template-columns: minmax(0, 1fr); }
  .est-groups { grid-template-columns: minmax(0, 1fr); }
  .est-sel, .est-sel-sm { min-width: 0; flex: 1; }
  .search-field { min-width: 0; width: 100%; }
  .tb-left, .tb-right { width: 100%; }
  .est-explain-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .est-explain-stats .stat { padding: 10px; }
  .est-explain-stats .stat-value { font-size: 15px; }
  .est-repo > div { grid-template-columns: minmax(0, 1fr) auto; }
  .est-repo > div > b { grid-column: 2; }
}
.est-resgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); }
.est-cli { max-width: 150px; }
.est-sugs { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.est-sug span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1240px) { .est-resgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .est-sugs { grid-template-columns: minmax(0, 1fr); } .est-sug { grid-template-columns: auto minmax(0, 1fr); } .est-sug .btn { grid-column: 1 / -1; } }

/* ── insumos (simplificado) ── */
.est-sup-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.est-sup-sum > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.est-sup-sum span { font-size: 12.5px; color: var(--muted); }
.est-sup-sum b { font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.est-sup-tip { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; color: var(--text-2); background: color-mix(in srgb, var(--blue) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--blue) 25%, transparent); }
.est-sup-tip svg { flex-shrink: 0; color: var(--blue); margin-top: 2px; }
.est-sup-search { margin-bottom: 12px; max-width: 340px; }
.est-sup-list { display: flex; flex-direction: column; gap: 8px; }
.est-sup-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(150px, 1fr) minmax(0, .8fr) minmax(0, .8fr) auto; gap: 16px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.est-sup-row.is-low { border-color: color-mix(in srgb, var(--orange) 40%, transparent); }
.est-sup-name { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.est-sup-name b { font-size: 14.5px; font-weight: 650; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-sup-name small { font-size: 12px; color: var(--muted); }
.est-sup-name:hover b { color: var(--purple-txt); text-decoration: underline; text-underline-offset: 3px; }
.est-sup-qty { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.est-sup-qty strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.est-sup-qty > span { font-size: 13px; color: var(--muted); }
.est-sup-row.is-zero .est-sup-qty strong { color: var(--muted); }
.est-sup-tag { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-4); align-self: center; }
.est-sup-tag.is-low { color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); }
.est-sup-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.est-sup-cell small { font-size: 11.5px; color: var(--muted); }
.est-sup-cell b { font-size: 14px; font-weight: 650; }
.est-sup-btns { display: flex; gap: 6px; justify-content: flex-end; }
.est-sup-calc { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.est-sup-calc small { color: var(--muted); }

/* kits de embalagem */
.est-kits { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.est-kit { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.est-kit-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.est-kit-cost { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.est-kit-cost b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--orange); line-height: 1.1; }
.est-kit-cost small { font-size: 11.5px; color: var(--muted); }
.est-kit-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.est-kit-items li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.est-kit-items li.est-kit-ih { border-top: 0; padding-top: 0; font-size: 11px; color: var(--muted); font-weight: 600; }
.est-kit-items li.est-kit-ih em { color: var(--muted); }
.est-kit-q1 { font-weight: 700; color: var(--text-2); }
.est-kit-n { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.est-kit-n small { font-size: 11.5px; color: var(--muted); }
.est-kit-items em { font-style: normal; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.est-kit-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); margin-top: auto; }
.est-kit-can { display: flex; align-items: center; gap: 10px; }
.est-kit-can strong { font-size: 28px; font-weight: 800; line-height: 1; color: var(--green); }
.est-kit-can.is-zero strong { color: var(--muted); }
.est-kit-can span { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.est-kit-h { margin: 16px 0 8px; }
.est-kit-rows { display: flex; flex-direction: column; gap: 8px; }
.est-kit-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 36px; gap: 8px; align-items: center; }
.est-kit-row .est-kit-sel { width: 100%; height: 40px; }
.est-kit-addrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.est-kit-total { font-size: 13px; color: var(--text-2); }
.est-kit-total b { font-size: 17px; color: var(--orange); margin-left: 4px; }
.est-kit-miss { margin: 8px 0 10px; padding-left: 18px; }
.est-kit-miss li { margin: 2px 0; }
@media (max-width: 1100px) {
  .est-sup-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name qty" "cu val" "btn btn"; row-gap: 10px; }
  .est-sup-name { grid-area: name; } .est-sup-qty { grid-area: qty; justify-content: flex-end; } .est-sup-cu { grid-area: cu; } .est-sup-val { grid-area: val; text-align: right; align-items: flex-end; }
  .est-sup-btns { grid-area: btn; justify-content: stretch; } .est-sup-btns .btn { flex: 1; justify-content: center; }
}
@media (max-width: 860px) { .est-sup-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .est-kits { grid-template-columns: minmax(0, 1fr); }
  .est-sup-sum b { font-size: 18px; }
  .est-kit-row { grid-template-columns: minmax(0, 1fr) 96px 34px; }
}
.est-first { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 36px 16px; max-width: 520px; margin: 0 auto; }
.est-first h3 { font-size: 18px; margin-top: 6px; }
.est-first p { line-height: 1.55; margin: 0 0 6px; }
.est-first small { font-size: 12px; }
.est-chart-empty { min-height: 230px; display: grid; place-items: center; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); }
.est-chart-empty .empty p { line-height: 1.5; }
.est-chart-empty .empty p b { color: var(--text); font-weight: 650; }
.est-chart-empty .empty p span { font-size: 12.5px; }

/* ── assets/css/pages/financeiro.css ── */
/* estilos do módulo financeiro */
.fin-range { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 2px 9px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: 12px; white-space: nowrap; }
.fin-period { display: flex; align-items: center; gap: 8px; }
.fin-period .tabs { flex-wrap: nowrap; }
.fin-period .tab { padding: 7px 11px; white-space: nowrap; }
.fin-period-sel { display: none; align-items: center; gap: 6px; height: 38px; padding: 0 4px 0 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); }
.fin-period-sel select { border: 0; background-color: transparent; height: 34px; }
.fin-kpis .kpi-value { font-size: 24px; }
.fin-kfoot { display: flex; flex-direction: column; gap: 5px; min-width: 150px; margin-top: 4px; }
.fin-kfoot .progress { width: 100%; }
.fin-note { position: relative; padding-left: 21px; font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.fin-note > .ic:first-child { position: absolute; left: 0; top: 2px; }
.fin-table td.ta-right, .fin-table td.ta-center { white-space: nowrap; }
.fin-days { display: flex; align-items: flex-end; gap: 3px; height: 64px; padding-top: 4px; }
.fin-days i { flex: 1; min-height: 3px; border-radius: 3px 3px 1px 1px; background: color-mix(in srgb, var(--purple) 55%, transparent); }
.fin-days i.today { background: var(--green); box-shadow: 0 0 10px -2px var(--green); }
.fin-days i.future { background: var(--surface-4); }
.fin-days-cap { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.fin-note b { color: var(--text-2); }
.fin-pad { padding: 0 16px 12px; }
.fin-ellipsis { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-cellcol { display: flex; flex-direction: column; min-width: 0; }
.fin-cellcol > span:first-child { font-weight: 600; }
.fin-chart-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 16px; }
.fin-row3 { align-items: stretch; }

/* gráfico combinado */
.fin-combo .fc-bar { position: absolute; display: block; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 45%, transparent)); transition: filter .15s; }
.fin-combo .fc-bar.neg { border-radius: 2px 2px 5px 5px; background: linear-gradient(0deg, var(--c), color-mix(in srgb, var(--c) 45%, transparent)); }
.fin-combo .lc-hit { z-index: 2; }
.fin-combo .lc-dot { z-index: 1; }
.fin-combo .lc-dot.neg { box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 60%, transparent); }

/* meta do mês */
.fin-goal { display: flex; flex-direction: column; gap: 12px; }
.fg-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.fg-top > div:first-child { display: flex; flex-direction: column; }
.fg-top .muted { font-size: 12.5px; }
.fg-top strong { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.fg-top small { color: var(--muted); font-size: 13px; }
.fg-pct { font-size: 34px; font-weight: 800; color: var(--purple-txt); letter-spacing: -.03em; }
.fg-bar { position: relative; height: 14px; border-radius: 8px; background: var(--surface-4); }
.fg-bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, var(--purple-2), var(--purple) 60%, var(--green)); box-shadow: 0 0 14px -2px color-mix(in srgb, var(--purple) 60%, transparent); }
.fg-bar > i { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 2px; opacity: .75; }
.fg-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.fg-legend span { display: inline-flex; align-items: center; gap: 5px; }
.fg-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.fg-stats .stat-sub { white-space: normal; }

/* ranking de clientes */
.fin-rank { display: flex; flex-direction: column; gap: 4px; }
.fr-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; transition: background .15s; }
.fr-row:hover { background: var(--surface-2); }
.fr-row > em { font-style: normal; width: 20px; text-align: center; font-weight: 700; color: var(--muted); font-size: 12.5px; }
.fr-row:first-child > em { color: var(--yellow); }
.fr-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fr-name b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-name small { font-size: 12px; color: var(--muted); }
.fr-val { font-size: 13.5px; white-space: nowrap; }

/* custos */
.fin-params { display: flex; flex-direction: column; gap: 2px; }
.fp-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13px; color: var(--text-2); }
.fp-row:nth-child(odd) { background: var(--surface-2); }
.fp-row .ic { color: var(--muted); }
.fp-row span { flex: 1; }
.fp-row b { color: var(--text); white-space: nowrap; }
.fin-break { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 3px; font-size: 11px; color: var(--muted); }
.fin-break span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.fin-break .dot { width: 6px; height: 6px; }
.fin-pctcell { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.fin-pctcell .progress { width: 100%; max-width: 120px; }
.fin-total-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; }
.fin-total-line span { flex: 1; }
.fin-total-line b { font-size: 16px; }
.fin-total-line em { font-style: normal; font-size: 12px; font-weight: 700; }

/* DRE */
.fin-dre td { padding: 10px 12px; }
.fin-dre td small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.fin-dre td em { font-style: normal; font-size: 11.5px; font-weight: 600; margin-left: 8px; padding: 2px 8px; border-radius: 10px; background: color-mix(in srgb, var(--purple) 16%, transparent); color: var(--purple-txt); white-space: nowrap; }
.fin-dre .d-main td { font-weight: 700; font-size: 14.5px; }
.fin-dre .d-ded td:first-child { color: var(--text-2); }
.fin-dre .d-item td { font-size: 12.5px; color: var(--muted); padding-top: 6px; padding-bottom: 6px; border-bottom-style: dashed; }
.fin-dre .d-item td:first-child { padding-left: 34px !important; }
.fin-dre .d-sub td { font-weight: 700; background: var(--surface-2); }
.fin-dre .d-total td { font-weight: 800; font-size: 15.5px; background: color-mix(in srgb, var(--green) 9%, var(--surface-2)); border-top: 2px solid color-mix(in srgb, var(--green) 40%, transparent); border-bottom: 0; }
.fin-dre .d-total.neg td { background: color-mix(in srgb, var(--red) 9%, var(--surface-2)); border-top-color: color-mix(in srgb, var(--red) 40%, transparent); }
.fin-dre .d-total td em { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.fin-dre .d-total.neg td em { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.fin-dre tbody tr:hover td { background: inherit; }
.fin-dre .d-sub:hover td { background: var(--surface-2); }
.fin-dre-prev, .fin-dre-var { color: var(--muted); }
.fin-dre-card .card-body.flush { padding-bottom: 0; }
.fin-dre-card .fin-pad { padding-top: 4px; }

/* insights */
.fin-insights { display: flex; flex-direction: column; gap: 10px; }
.fin-ins { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--tone) 8%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--tone) 20%, transparent); transition: border-color .15s; }
a.fin-ins:hover { border-color: color-mix(in srgb, var(--tone) 50%, transparent); }
.fin-ins > .ic { color: var(--tone); margin-top: 1px; }
.fin-ins > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fin-ins b { font-size: 13.5px; font-weight: 650; }
.fin-ins span { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.tone-green { --tone: var(--green); } .tone-purple { --tone: var(--purple); } .tone-blue { --tone: var(--blue); } .tone-red { --tone: var(--red); } .tone-orange { --tone: var(--orange); }
.fin-ins-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }

/* despesas */
.fin-monthnav { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 4px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); }
.fin-monthnav b { min-width: 140px; text-align: center; font-size: 14px; }
.fin-monthnav .icon-btn { width: 30px; height: 30px; }
.fin-toolbar .toolbar { gap: 10px; }
.fin-toolbar .search-field { min-width: 190px; height: 32px; }
.fin-cat { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.fin-rec { color: var(--purple-txt); display: inline-flex; }
.fin-overdue td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.fin-switch { position: relative; display: inline-block; width: 36px; height: 20px; cursor: pointer; vertical-align: middle; }
.fin-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.fin-switch i { position: absolute; inset: 0; border-radius: 12px; background: var(--surface-4); border: 1px solid var(--line-2); transition: background .15s, border-color .15s; }
.fin-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .18s, background .15s; }
.fin-switch input:checked + i { background: color-mix(in srgb, var(--green) 30%, transparent); border-color: var(--green); }
.fin-switch input:checked + i::after { transform: translateX(16px); background: var(--green); }
.fin-switch input:focus-visible + i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 30%, transparent); }
.fin-sticky { position: sticky; top: calc(var(--tb-h) + 16px); align-self: start; }

/* fluxo de caixa */
.fin-linkbtn { border: 0; background: none; padding: 0; cursor: pointer; color: var(--purple-txt); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.fin-linkbtn:hover { color: var(--purple); }
.fin-proj { display: flex; flex-direction: column; gap: 6px; }
.fpj-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.fpj-row > span { display: flex; align-items: center; gap: 8px; color: var(--text-2); flex-wrap: wrap; }
.fpj-row small { flex-basis: 100%; padding-left: 23px; color: var(--muted); font-size: 11.5px; }
.fpj-row.in b { color: var(--green); } .fpj-row.out b { color: var(--red); }
.fpj-row b { white-space: nowrap; }
.fpj-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; margin-top: 4px; border-radius: 12px; background: color-mix(in srgb, var(--purple) 12%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--purple) 35%, transparent); font-weight: 650; }
.fpj-total b { font-size: 20px; font-weight: 800; }
.fpj-total.neg { background: color-mix(in srgb, var(--red) 10%, var(--surface-2)); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.fpj-total.neg b { color: var(--red); }
.fpj-list { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; }
.fpj-list > div { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; padding: 4px 2px; }
.fpj-list span { color: var(--muted); }
.fpj-list em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.fpj-list .link { margin-top: 4px; }

/* rentáveis */
.fin-pos { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--surface-3); font-size: 12px; font-weight: 700; color: var(--muted); }
tr:nth-child(1) .fin-pos { background: color-mix(in srgb, var(--yellow) 20%, transparent); color: var(--yellow); }
tr:nth-child(2) .fin-pos, tr:nth-child(3) .fin-pos { color: var(--text-2); }
.fin-margin { display: inline-block; padding: 2px 8px; border-radius: 9px; font-weight: 700; font-size: 12.5px; }
.fin-margin.high { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.fin-margin.mid { background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--orange); }
.fin-margin.low { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.hb-label .fin-art-mini { width: 22px; height: 22px; border-radius: 6px; }
.fin-rank-card .card-head { row-gap: 8px; }

/* responsivo */
@media (max-width: 1240px) {
  .fin-period .tabs { display: none; }
  .fin-period-sel { display: inline-flex; }
}
@media (max-width: 960px) {
  .fin-sticky { position: static; }
  .fin-ellipsis { max-width: 200px; }
}
@media (max-width: 640px) {
  .fin-range { margin: 6px 0 0; }
  .ph-actions .fin-monthnav { width: 100%; justify-content: space-between; }
  .fin-monthnav b { min-width: 0; }
  .fin-combo .lc-x span:nth-child(even) { display: none; }
  .fg-stats { grid-template-columns: minmax(0, 1fr); }
  .fin-toolbar .tb-right, .fin-toolbar .search-field { width: 100%; }
  .fin-toolbar .select-sm { flex: 1; }
  .fin-dre-pct, .fin-dre-prev { display: none; }
  .fin-dre td em { display: block; width: fit-content; margin: 3px 0 0; }
  .fin-dre .d-item td:first-child { padding-left: 24px !important; }
  .fin-ellipsis { max-width: 160px; }
}
.fin-stack { gap: 18px; min-width: 0; }
.fin-days-wrap { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.fin-sortbar .chip-stat { background: var(--surface); }
.fin-sortbar .tb-left { gap: 12px; }

/* tabelas em cartões e ajustes de celular */
@media (max-width: 640px) {
  .fin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fin-kpis .kpi { padding: 12px; min-height: 0; gap: 0; }
  .fin-kpis .kpi-icon, .fin-kpis .kpi-spark { display: none; }
  .fin-kpis .kpi-label { font-size: 12px; }
  .fin-kpis .kpi-value { font-size: 18px; }
  .fin-kpis .kpi-delta { font-size: 12px; margin-top: 2px; }
  .fin-kpis .kpi-foot { white-space: normal; font-size: 11px; line-height: 1.35; }
  .fin-kfoot { min-width: 0; }
  .fin-thin-x .lc-x span:nth-child(even) { display: none; }
  .fin-dre-var { display: none; }
  .fin-dre td { white-space: normal; }
  .fin-dre td.ta-right { white-space: nowrap; font-size: 12.5px; }
  .fin-cards thead { display: none; }
  .fin-cards table, .fin-cards tbody, .fin-cards tfoot { display: block; width: 100%; }
  .fin-cards tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .fin-cards td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; min-width: 0; }
  .fin-cards td:first-child { grid-column: 1 / -1; }
  .fin-cards td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; font-weight: 600; }
  .fin-cards td:empty { display: none; }
  .fin-cards tbody tr:hover td { background: none; }
  .fin-cards tfoot tr { background: var(--surface-2); }
  .fin-cards .row-actions { justify-content: flex-start; }
  .fin-cards .fin-pctcell { align-items: flex-start; }
  .fin-cards .fin-ellipsis { max-width: 100%; }
  .fin-cards .fin-overdue td:first-child { box-shadow: none; }
  .fin-cards tr.fin-overdue { box-shadow: inset 3px 0 0 var(--red); }
}

/* gráfico sem dados */
.fin-chart-empty { min-height: 280px; display: grid; place-items: center; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); }
.fin-chart-empty .empty p { line-height: 1.5; }
.fin-chart-empty .empty p b { color: var(--text); font-weight: 650; }
.fin-chart-empty .empty p span { font-size: 12.5px; }

/* ── assets/css/pages/organizacao.css ── */
/* estilos do módulo organizacao */

/* ── comuns ── */
.org-sel { height: 38px; min-width: 170px; font-size: 13px; }
.org-tb-stats { font-size: 12.5px; color: var(--muted); }
.org-tb-stats b { color: var(--text); }
.org-tb-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.org-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.org-tag { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--surface-4); color: var(--text-2); white-space: nowrap; }
.org-tag::before { content: "#"; opacity: .45; margin-right: 1px; }
.org-due { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.org-due.late { color: var(--red); }
.org-due.today { color: var(--orange); }
.org-due.soon { color: var(--purple-txt); }
.org-due.none, .org-due.done { color: var(--muted); font-weight: 500; }
.org-resp { display: inline-flex; flex: none; }
.org-resp.none { width: 24px; height: 24px; border-radius: 50%; border: 1px dashed var(--line-2); color: var(--muted-2); display: grid; place-items: center; }

/* ── kanban ── */
.org-people { display: inline-flex; align-items: center; padding-left: 6px; }
.org-person { border: 2px solid var(--bg); background: none; padding: 0; border-radius: 50%; margin-left: -8px; cursor: pointer; transition: transform .15s, box-shadow .15s; display: inline-flex; }
.org-person:hover { transform: translateY(-2px); z-index: 1; }
.org-person.on { box-shadow: 0 0 0 2px var(--green); z-index: 2; }
.org-board .kanban { grid-auto-columns: minmax(270px, 1fr); }
.org-board .kb-col { min-height: calc(100vh - 330px); }
.org-board .kb-list { gap: 9px; }
.org-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 11px; background: var(--surface-3); border: 1px solid var(--line-2); cursor: pointer; position: relative; transition: border-color .15s, transform .15s, box-shadow .15s; }
.org-card:hover { border-color: var(--muted-2); box-shadow: 0 8px 20px -12px rgba(0,0,0,.5); }
.org-card::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.org-card.prio-urgente::before { background: var(--red); }
.org-card.prio-alta::before { background: var(--orange); }
.org-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.org-card-top .badge { height: 21px; font-size: 11px; padding: 0 8px; }
.org-card-ic { color: var(--muted-2); display: flex; }
.org-card-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.org-card-desc { font-size: 12px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.org-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.org-card.done .org-card-title { text-decoration: line-through; color: var(--muted); }
.org-card.done { opacity: .78; }

/* ── lista de tarefas ── */
.org-list-card .card-body { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.org-quick { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.org-quick:focus-within { border-style: solid; border-color: var(--purple); box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 20%, transparent); color: var(--purple-txt); }
.org-quick-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 14.5px; }
.org-quick-input::placeholder { color: var(--muted); }
.org-quick-hint { display: flex; gap: 4px; flex: none; }
.org-quick-hint kbd { font: 600 11px/1 ui-monospace, monospace; padding: 4px 6px; border-radius: 6px; background: var(--surface-4); color: var(--muted); }
.org-quick-prev { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; margin-top: -6px; min-height: 0; }
.org-quick-prev:empty { display: none; }
.org-groups { display: flex; flex-direction: column; gap: 10px; }
.org-group { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.org-group-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--text); }
.org-group-head > .ic:first-child { color: var(--muted); transition: transform .15s; }
.org-group.collapsed .org-group-head > .ic:first-child { transform: rotate(-90deg); }
.org-group-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.org-group-head b { font-size: 14px; font-weight: 650; }
.org-group-head em { font-style: normal; font-size: 12px; color: var(--muted); background: var(--surface-4); border-radius: 10px; padding: 1px 8px; }
.org-group-list { border-top: 1px solid var(--line); }
.org-group-empty { padding: 14px 18px; color: var(--muted); font-size: 13px; }
.org-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; background: var(--surface); transition: background .12s; }
.org-row:last-child { border-bottom: 0; }
.org-row:hover { background: var(--surface-3); }
.org-check { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid var(--muted-2); background: none; color: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; transition: border-color .15s, background .15s, color .15s; }
.org-check:hover { border-color: var(--green); color: color-mix(in srgb, var(--green) 60%, transparent); }
.org-check.on { background: var(--green); border-color: var(--green); color: #0b0f04; }
.org-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.org-row-main > b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-row-sub { display: flex; align-items: center; gap: 6px; min-width: 0; }
.org-row-sub:empty { display: none; }
.org-row-sub .badge { height: 20px; font-size: 11px; }
.org-row-desc { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.org-row-meta { display: flex; align-items: center; gap: 12px; flex: none; }
.org-row-meta .badge { height: 21px; font-size: 11px; }
.org-row-meta .org-due { min-width: 92px; justify-content: flex-end; }
.org-row.done .org-row-main > b { text-decoration: line-through; color: var(--muted); }

/* ── calendário ── */
.org-cal { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.org-src { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.org-src-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s; }
.org-src-chip i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--c); }
.org-src-chip em { font-style: normal; font-size: 11px; color: var(--muted); background: var(--surface-4); padding: 0 6px; border-radius: 8px; }
.org-src-chip.on { color: var(--text); border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, var(--surface-2)); }
.org-src-chip.on i { background: var(--c); }
.org-src-chip:not(.on) { opacity: .7; }
.org-cal-card .cal-cell { min-height: 116px; }
.org-agenda-card { position: sticky; top: calc(var(--tb-h) + 16px); }
.org-agenda-card .card-body { max-height: calc(100vh - var(--tb-h) - 110px); overflow-y: auto; }
.org-agenda { display: flex; flex-direction: column; gap: 14px; }
.org-ag-day h5 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; display: flex; align-items: center; justify-content: space-between; }
.org-ag-day h5.today { color: var(--green); }
.org-ag-day h5 em { font-style: normal; font-weight: 600; letter-spacing: 0; }
.org-ag-day { display: flex; flex-direction: column; gap: 6px; }
.org-ag-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); border-left: 3px solid var(--c); background: var(--surface-2); color: var(--text); cursor: pointer; text-align: left; transition: background .12s, border-color .12s; }
.org-ag-item:hover { background: color-mix(in srgb, var(--c) 10%, var(--surface-2)); }
.org-ag-item > .ic:last-child { color: var(--muted-2); }
.org-ag-ic { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.org-ag-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.org-ag-txt b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-ag-txt small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── responsivo ── */
@media (max-width: 1360px) {
  .org-cal { grid-template-columns: minmax(0, 1fr) 300px; }
  .org-quick-hint { display: none; }
}
@media (max-width: 1180px) {
  .org-cal { grid-template-columns: minmax(0, 1fr); }
  .org-agenda-card { position: static; }
  .org-agenda-card .card-body { max-height: none; }
}
@media (max-width: 640px) {
  .org-sel { flex: 1 1 0; min-width: 0; }
  .org-board .kanban { grid-auto-columns: minmax(260px, 86vw); }
  .org-board .kb-col { min-height: 200px; }
  .org-row { flex-wrap: wrap; gap: 8px 12px; align-items: flex-start; }
  .org-row-main { flex: 1 1 calc(100% - 40px); }
  .org-row-meta { width: 100%; padding-left: 34px; gap: 10px; }
  .org-row-meta .org-due { min-width: 0; margin-right: auto; order: -1; }
  .org-list-card .card-body { padding: 12px; }
  .org-src-chip { height: 30px; padding: 0 10px; font-size: 12px; }
  .org-cal-card .cal-cell { min-height: 58px; }
  .org-cal-card .card-body { padding: 12px 10px; }
  .org-cal-card .cal-more { font-size: 9.5px; padding: 0; white-space: nowrap; overflow: hidden; }
  .org-tb-label { display: none; }
}
.org-resp.multi { padding-left: 6px; }
.org-resp.multi > .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.org-resp-more { margin-left: -6px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--text-2); background: var(--surface-3); box-shadow: 0 0 0 2px var(--surface); }

/* filtro de prioridade no cabeçalho de cada coluna do kanban */
.kb-head { gap: 8px; }
.kb-head > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-head b small { font-size: 11px; color: var(--muted); font-weight: 600; }
.kb-prio { flex: none; height: 26px; max-width: 152px; padding: 0 22px 0 9px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a98' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 7px center; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer; outline: 0; }
.kb-prio:hover { color: var(--text); border-color: var(--muted-2); }
.kb-prio:focus-visible { border-color: var(--purple); }
.kb-prio.on { color: #fff; background-color: var(--purple-2); border-color: var(--purple-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }

/* ── assets/css/pages/marketing.css ── */
/* LAG 3D Studio — Marketing (Posts, Aprovação, Calendário + telas antigas por URL) */

/* ── base ── */
.mk-ch { --c: var(--purple); display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; color: color-mix(in srgb, var(--c) 82%, var(--text)); background: color-mix(in srgb, var(--c) 15%, transparent); flex: none; }
.mk-ch.sm { height: 20px; padding: 0 7px; font-size: 11px; gap: 4px; }
.mk-sub { color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.mk-mt { margin-top: 10px; }
.mk-filters { display: flex; flex-direction: column; gap: 10px; }
.mk-filters .search-field { min-width: 240px; }
.mk-who { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.mk-date { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mk-date.late { color: var(--red); font-weight: 600; }
.mk-cmt-n { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 11.5px; }
.mk-kpi-of { font-size: 16px; color: var(--muted); font-weight: 600; }
.mk-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.mk-tag { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
.mk-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--purple) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--purple) 28%, transparent); color: var(--text-2); font-size: 13px; }
.mk-banner > .ic { color: var(--purple-txt); }
.mk-banner span { flex: 1; min-width: 0; }
.mk-banner b { color: var(--text); }
.mk-noart { --c: var(--purple); width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; flex: none; color: color-mix(in srgb, var(--c) 85%, var(--text)); background: color-mix(in srgb, var(--c) 14%, var(--surface-2)); }
.mk-tt { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }

/* ── comentários ── */
.mk-thread { display: flex; flex-direction: column; gap: 8px; }
.mk-msg { display: flex; gap: 9px; align-items: flex-start; }
.mk-msg-b { flex: 1; min-width: 0; padding: 8px 11px; border-radius: 4px 12px 12px 12px; background: var(--surface-2); border: 1px solid var(--line); }
.mk-msg.dec-aprovado .mk-msg-b { border-color: color-mix(in srgb, var(--green) 35%, transparent); background: color-mix(in srgb, var(--green) 6%, var(--surface-2)); }
.mk-msg.dec-reprovado .mk-msg-b { border-color: color-mix(in srgb, var(--red) 35%, transparent); background: color-mix(in srgb, var(--red) 6%, var(--surface-2)); }
.mk-msg-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.mk-msg-h em { font-style: normal; color: var(--muted); font-size: 11px; margin-left: auto; }
.mk-msg-h .badge { height: 19px; font-size: 11px; padding: 0 7px; gap: 3px; }
.mk-msg-b p { font-size: 13px; color: var(--text-2); margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mk-th-empty { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.mk-form-extra { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.mk-form-extra .form-section { margin-top: 0; }

/* ── planejamento ── */
.mk-plan-row { grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); align-items: start; }
.mk-camp-tabs { margin-bottom: 14px; overflow-x: auto; }
.mk-camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.mk-camp { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 13px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, var(--surface-2)), var(--surface-2) 45%); border: 1px solid var(--line-2); overflow: hidden; transition: border-color .15s, transform .15s; }
.mk-camp::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--c), transparent 80%); }
.mk-camp:hover { border-color: color-mix(in srgb, var(--c) 40%, var(--line-2)); }
.mk-camp-head { display: flex; align-items: flex-start; gap: 10px; }
.mk-camp-head .badge { margin-top: 3px; }
.mk-camp-head .icon-btn { width: 28px; height: 28px; margin: -2px -6px 0 -4px; }
.mk-camp-obj { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.mk-camp-t { flex: 1; min-width: 0; }
.mk-camp-t h4 { font-size: 15px; font-weight: 700; cursor: pointer; line-height: 1.25; overflow-wrap: anywhere; }
.mk-camp-t h4:hover { color: var(--purple-txt); }
.mk-camp-t span { font-size: 12px; color: var(--muted); }
.mk-camp-period { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.mk-camp-period .ic { color: var(--muted); }
.mk-camp-period em { font-style: normal; color: var(--muted); margin-left: auto; font-size: 12px; }
.mk-camp-time { margin-top: -6px; }
.mk-camp-chs { display: flex; flex-wrap: wrap; gap: 5px; }
.mk-camp-budget { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; }
.mk-cb-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); }
.mk-cb-top b { font-size: 15px; color: var(--text); font-weight: 700; }
.mk-cb-top small { font-size: 12px; color: var(--muted); font-weight: 500; }
.mk-cb-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.mk-camp-meta { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.mk-camp-meta .ic { color: var(--green); margin-top: 1px; }
.mk-camp-foot { display: flex; align-items: center; gap: 14px; padding-top: 10px; margin-top: auto; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.mk-camp-foot > span { display: inline-flex; align-items: center; gap: 5px; }
.mk-camp-foot .link { margin-left: auto; font-size: 12.5px; }
.mk-goal-head { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mk-goal-head b { font-size: 14px; color: var(--text); letter-spacing: 0; text-transform: none; }
.mk-goal-head small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.mk-goals { display: flex; flex-direction: column; gap: 12px; }
.mk-goal { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.mk-goal-bar { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mk-goal-bar small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-goal-bar small b { color: var(--text-2); }
.mk-goal-in { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.mk-goal-in .input { width: 58px; height: 30px; padding: 0 6px; text-align: center; font-weight: 600; }

/* ── quadro de conteúdos ── */
.mk-board .kanban { grid-auto-columns: minmax(232px, 1fr); }
.mk-board .kb-col[data-col="ideia"] { border-top-color: var(--muted-2); }
.mk-cc { --c: var(--purple); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 9px 12px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-2); cursor: pointer; transition: border-color .15s, box-shadow .15s; overflow: hidden; outline: 0; }
.mk-cc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); opacity: .85; }
.mk-cc:hover, .mk-cc:focus-visible { border-color: color-mix(in srgb, var(--c) 45%, var(--line-2)); box-shadow: 0 8px 22px -14px var(--c); }
.mk-cc.is-rej { border-color: color-mix(in srgb, var(--red) 45%, var(--line-2)); background: color-mix(in srgb, var(--red) 5%, var(--surface-3)); }
.mk-cc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mk-cc-fmt { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.mk-cc-main { display: flex; gap: 9px; align-items: flex-start; }
.mk-cc-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mk-cc-main .art-xs { width: 34px; height: 34px; }
.mk-rej { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 700; color: var(--red); background: color-mix(in srgb, var(--red) 15%, transparent); }
.mk-cc-camp { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-cc-camp .ic { flex: none; }
.mk-cc-foot { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--text-2); }
.mk-cc-resp { margin-left: auto; display: flex; }
.mk-noav { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed var(--line-2); color: var(--muted-2); }

/* ── criativos ── */
.mk-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; align-items: start; }
.mk-cr { display: flex; flex-direction: column; min-width: 0; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s, box-shadow .15s; }
.mk-cr:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(0,0,0,.6); }
.mk-cr-open { cursor: zoom-in; display: block; outline: 0; }
.mk-cr-open:focus-visible .mk-prev { box-shadow: inset 0 0 0 2px var(--purple); }
.mk-prev { position: relative; width: 100%; overflow: hidden; background: var(--surface-3); }
.mk-prev > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-ph { --h: var(--purple); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(75% 55% at 50% 45%, color-mix(in srgb, var(--h) 42%, transparent), transparent 72%), radial-gradient(60% 40% at 100% 100%, color-mix(in srgb, var(--green) 14%, transparent), transparent 70%), linear-gradient(165deg, var(--surface-3), var(--bg-2)); }
.mk-ph .art { width: 68%; max-width: 220px; aspect-ratio: 1; background: none; filter: drop-shadow(0 14px 22px rgba(0,0,0,.35)); }
.mk-ph-ic { color: var(--muted-2); }
.mk-ph-brand { position: absolute; left: 12px; top: 11px; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--text-2); opacity: .75; }
.mk-ph-brand em { font-style: normal; color: var(--green); }
.mk-ph-fmt { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--text-2); padding: 3px 9px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(6px); white-space: nowrap; }
.mk-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.45); border: 1.5px solid rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.mk-play .ic { margin-left: 3px; }
.mk-prev.mini .mk-play { width: 22px; height: 22px; border-width: 1px; }
.mk-prev.mini .mk-play .ic { margin-left: 1px; }
.mk-car { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); }
.mk-dots { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; gap: 4px; }
.mk-dots i { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--text) 35%, transparent); }
.mk-dots i.on { background: var(--text); }
.mk-cr-st { position: absolute; left: 10px; bottom: 10px; }
.mk-cr-st .badge { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.mk-prev:has(.mk-cr-st) .mk-ph-fmt { left: auto; right: 10px; transform: none; }
.mk-cr-body { display: flex; flex-direction: column; gap: 8px; padding: 11px 12px 13px; }
.mk-cr-title { display: flex; align-items: flex-start; gap: 6px; }
.mk-cr-title b { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 650; line-height: 1.3; }
.mk-cr-title .icon-btn { width: 26px; height: 26px; margin: -3px -4px 0 0; }
.mk-cr-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.mk-cr-meta .badge { height: 21px; font-size: 11px; gap: 4px; }
.mk-cr-camp { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.mk-cr-camp span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-cr-send { align-self: flex-start; }
.mk-crm { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
.mk-crm.tall { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
.mk-crm-prev .mk-prev { border-radius: 14px; border: 1px solid var(--line-2); }
.mk-crm-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mk-crm-info .form-section { margin-top: 2px; }
.mk-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; margin: 0; font-size: 13px; align-items: center; }
.mk-dl dt { color: var(--muted); font-size: 12px; }
.mk-dl dd { margin: 0; min-width: 0; }


/* ── posts ── */
.mk-opt { color: var(--muted); font-weight: 500; }
.mk-tabs-row { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mk-tabs-row::-webkit-scrollbar { display: none; }
.mk-tabs-row .tabs { flex-wrap: nowrap; flex: none; }
.mk-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 16px; }
.mk-post { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: pointer; outline: 0; transition: border-color .15s, transform .15s, box-shadow .15s; }
.mk-post:hover, .mk-post:focus-visible { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(0,0,0,.7); }
.mk-post:focus-visible { border-color: var(--purple); }
.mk-post.st-reprovado { border-color: color-mix(in srgb, var(--red) 42%, var(--line)); }
.mk-post-media { position: relative; aspect-ratio: 4 / 5; background: var(--surface-3); overflow: hidden; }
.mk-media { position: absolute; inset: 0; }
.mk-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-media-ph { --c: var(--purple); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(70% 55% at 50% 44%, color-mix(in srgb, var(--c) 24%, transparent), transparent 72%), linear-gradient(160deg, color-mix(in srgb, var(--c) 9%, var(--surface-2)), var(--bg-2)); }
.mk-media-ic { width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; color: color-mix(in srgb, var(--c) 80%, var(--text)); background: color-mix(in srgb, var(--c) 15%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); box-shadow: 0 14px 30px -14px var(--c); }
.mk-media-lb { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.mk-media-ph.sm { gap: 0; }
.mk-media-ph.sm .mk-media-ic { width: auto; height: auto; background: none; border: 0; box-shadow: none; border-radius: 0; }
.mk-post-st { position: absolute; left: 10px; top: 10px; }
.mk-post-media .mk-fmt { position: absolute; right: 10px; bottom: 10px; }
.mk-post-st .badge, .mk-post-media .mk-fmt { background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.mk-fmt { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-3); white-space: nowrap; flex: none; }
.mk-post-body { display: flex; flex-direction: column; gap: 9px; padding: 12px 14px 14px; flex: 1; min-width: 0; }
.mk-post-mst { display: none; }
.mk-post-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--text-2); min-width: 0; }
.mk-post-meta .mk-date { font-weight: 600; }
.mk-post-meta .mk-date .ic { color: var(--muted); }
.mk-post-meta .mk-date.late .ic { color: var(--red); }
.mk-post-title { font-size: 14px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-post-cap { font-size: 13px; color: var(--text-2); line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mk-post-cap.sm { -webkit-line-clamp: 2; color: var(--muted); }
.mk-adj { display: flex; gap: 7px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.4; color: var(--text-2); background: color-mix(in srgb, var(--red) 9%, transparent); border: 1px solid color-mix(in srgb, var(--red) 28%, transparent); }
.mk-adj .ic { color: var(--red); flex: none; margin-top: 1px; }
.mk-adj span { min-width: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-adj b { color: var(--red); }
.mk-post-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 2px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.mk-post-foot .mk-who { min-width: 0; color: var(--text-2); }
.mk-post-foot .mk-who > span { overflow: hidden; text-overflow: ellipsis; }
.mk-next { width: 100%; }
.mk-done { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 10px; font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--green) 75%, var(--text)); background: color-mix(in srgb, var(--green) 10%, transparent); }

/* boas-vindas (sem nenhum post) */
.mk-welcome { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding: 46px 28px 42px; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--purple) 13%, transparent), transparent 70%), var(--surface); }
.mk-welcome-head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mk-welcome-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--purple), var(--purple-2)); box-shadow: 0 14px 34px -12px var(--purple); margin-bottom: 8px; }
.mk-welcome h2 { font-size: 23px; font-weight: 750; }
.mk-welcome-head p { color: var(--muted); font-size: 14px; }
.mk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; width: 100%; max-width: 980px; }
.mk-steps li { --c: var(--purple); position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 28px 22px 24px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.mk-steps li:nth-child(2) { --c: var(--orange); }
.mk-steps li:nth-child(3) { --c: var(--green); }
.mk-steps li + li::before { content: ""; position: absolute; left: -24px; top: 50%; width: 11px; height: 11px; border-top: 2px solid var(--muted-2); border-right: 2px solid var(--muted-2); transform: translateY(-50%) rotate(45deg); }
.mk-step-n { position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--muted); background: var(--surface-3); border: 1px solid var(--line-2); }
.mk-step-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: color-mix(in srgb, var(--c) 82%, var(--text)); background: color-mix(in srgb, var(--c) 15%, transparent); margin-bottom: 4px; }
.mk-steps b { font-size: 15px; }
.mk-steps p { font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 270px; }

/* passos dentro do modal */
.mk-stepper { list-style: none; margin: 0 0 18px; padding: 0; display: flex; align-items: center; gap: 10px; }
.mk-stepper li { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.mk-stepper li:last-child { flex: none; }
.mk-stepper li:not(:last-child)::after { content: ""; flex: 1; min-width: 14px; height: 2px; border-radius: 2px; background: var(--line-2); }
.mk-stepper li.done:not(:last-child)::after { background: color-mix(in srgb, var(--green) 55%, transparent); }
.mk-sp-n { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-3); border: 1px solid var(--line-2); }
.mk-stepper li.cur { color: var(--text); }
.mk-stepper li.cur .mk-sp-n { color: #fff; background: var(--purple); border-color: var(--purple); box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple) 20%, transparent); }
.mk-stepper li.cur.warn .mk-sp-n { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 20%, transparent); }
.mk-stepper li.done { color: var(--text-2); }
.mk-stepper li.done .mk-sp-n { color: var(--green); background: color-mix(in srgb, var(--green) 16%, transparent); border-color: color-mix(in srgb, var(--green) 45%, transparent); }

/* modal do post */
.mk-pm-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.mk-pm-media .image-input { flex-direction: column; align-items: stretch; gap: 10px; }
.mk-pm-media .ii-preview { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 14px; border: 1.5px dashed var(--line-2); cursor: pointer; grid-auto-flow: row; align-content: center; gap: 10px; outline: 0; transition: border-color .15s, background .15s, color .15s; }
.mk-pm-media .ii-preview:not(:has(img))::after { content: "Clique ou arraste a arte aqui"; font-size: 12.5px; font-weight: 600; padding: 0 18px; text-align: center; }
.mk-pm-media .ii-preview:hover, .mk-pm-media .ii-preview:focus-visible, .mk-pm-media .ii-preview.drag { border-color: var(--purple); color: var(--purple-txt); background: color-mix(in srgb, var(--purple) 7%, var(--surface-2)); }
.mk-pm-media .ii-preview:has(img) { border-style: solid; }
.mk-pm-media .ii-actions { justify-content: center; }
.mk-pm-tip { display: block; margin-top: 8px; text-align: center; color: var(--muted); font-size: 11.5px; }
.mk-adj-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 18px; border-radius: 12px; background: color-mix(in srgb, var(--red) 8%, transparent); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); }
.mk-adj-box > .ic { color: var(--red); flex: none; margin-top: 1px; }
.mk-adj-box b { font-size: 13px; }
.mk-adj-box p { font-size: 13px; color: var(--text-2); margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mk-pm-cmts { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.mk-pm-cmts .form-section { margin-top: 0; }

/* ── aprovação ── */
.mk-ap-list { display: flex; flex-direction: column; gap: 18px; }
.mk-apv { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--orange); scroll-margin: 90px; }
.mk-apv.flash { animation: mk-flash 1.8s ease-out; }
@keyframes mk-flash { 0%, 35% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 65%, transparent); } 100% { box-shadow: 0 0 0 3px transparent; } }
.mk-apv-media { position: relative; align-self: start; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--line-2); cursor: zoom-in; outline: 0; }
.mk-apv-media:focus-visible { border-color: var(--purple); }
.mk-apv-media.crv { aspect-ratio: auto; }
.mk-apv-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mk-apv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-apv-date { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-size: 13px; color: var(--muted); }
.mk-apv-date b { color: var(--text); font-weight: 650; }
.mk-apv-date.late b, .mk-apv-date.late .ic { color: var(--red); }
.mk-apv-edit { margin-left: auto; }
.mk-apv h3 { font-size: 18px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.mk-apv-lb { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: -8px; }
.mk-apv-cap { font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); max-height: 300px; overflow-y: auto; }
.mk-apv-crnote { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.mk-apv-by { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.mk-apv-by b { color: var(--text-2); font-weight: 600; }
.mk-apv-cmt { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.mk-apv-cmt label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.mk-apv-cmt textarea { min-height: 64px; }
.mk-apv-cmt textarea.invalid { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 20%, transparent); }
.mk-apv-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mk-btn-adj:hover { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--line-2)); background: color-mix(in srgb, var(--red) 8%, var(--surface-3)); }
.mk-allclear { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 60px 24px; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(50% 70% at 50% 0%, color-mix(in srgb, var(--green) 10%, transparent), transparent 70%), var(--surface); }
.mk-allclear-ic { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); box-shadow: 0 0 0 9px color-mix(in srgb, var(--green) 6%, transparent); }
.mk-allclear h3 { font-size: 19px; font-weight: 700; }
.mk-allclear p { color: var(--muted); max-width: 460px; line-height: 1.55; font-size: 13.5px; }
.mk-allclear p b { color: var(--text-2); }
.mk-allclear .btn { margin-top: 10px; }
.mk-hist-list { display: flex; flex-direction: column; }
.mk-hist { display: flex; align-items: flex-start; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; outline: 0; }
.mk-hist:last-child { border-bottom: 0; }
.mk-hist:hover, .mk-hist:focus-visible { background: var(--surface-2); }
.mk-hthumb { position: relative; width: 40px; height: 50px; flex: none; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.mk-hthumb .mk-ph-brand { display: none; }
.mk-hist-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mk-hist-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-hist-t b { font-size: 13.5px; }
.mk-hist-sub { font-size: 12px; color: var(--muted); }
.mk-hist-main p { font-size: 12.5px; color: var(--text-2); font-style: italic; overflow-wrap: anywhere; }
.mk-hist-st { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.mk-hist-st small { font-size: 10.5px; color: var(--muted); }

/* ── calendário ── */
.mk-cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.mk-cal-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mk-cal-hint { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.mk-up { display: flex; flex-direction: column; gap: 8px; }
.mk-up-item { --c: var(--purple); display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; outline: 0; transition: border-color .15s; }
.mk-up-item:hover, .mk-up-item:focus-visible { border-color: color-mix(in srgb, var(--c) 50%, var(--line)); }
.mk-up-d { width: 42px; height: 46px; border-radius: 9px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface); border-top: 3px solid var(--c); }
.mk-up-d b { font-size: 16px; line-height: 1; }
.mk-up-d span { font-size: 10px; color: var(--muted); margin-top: 3px; font-weight: 600; }
.mk-up-th, .mk-day-th { position: relative; width: 37px; height: 46px; flex: none; border-radius: 7px; overflow: hidden; background: var(--surface-3); }
.mk-up-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mk-up-t > b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-up-t > span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mk-up-t .badge { flex: none; }
.mk-up-t .badge { height: 20px; font-size: 11px; padding: 0 7px; }
.mk-up-t em { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mk-up-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 10px 18px; text-align: center; color: var(--muted); font-size: 13px; }
.mk-up-empty > .ic { opacity: .55; }
.mk-day-list { display: flex; flex-direction: column; gap: 8px; }
.mk-day-item { --c: var(--purple); display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px 12px 8px 8px; border-radius: 12px; border: 1px solid var(--line); border-left: 3px solid var(--c); background: var(--surface-2); color: var(--text); cursor: pointer; transition: border-color .15s; }
.mk-day-item:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--line)); border-left-color: var(--c); }
.mk-day-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-day-t b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-day-t small { font-size: 11.5px; color: var(--muted); }

/* ── responsivo ── */
@media (max-width: 1400px) {
  .mk-plan-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1240px) {
  .mk-cal-layout { grid-template-columns: minmax(0, 1fr); }
  .mk-apv { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .mk-apv { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mk-apv-media { width: 100%; max-width: 340px; justify-self: center; }
  .mk-steps { gap: 30px; }
}
@media (max-width: 760px) {
  .mk-steps { grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 420px; }
  .mk-steps li + li::before { left: 50%; top: -21px; transform: translateX(-50%) rotate(135deg); }
  .mk-pm-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mk-pm-media { max-width: 220px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .mk-filters .search-field { min-width: 0; width: 100%; }
  .mk-filters .tb-left, .mk-filters .tb-right { width: 100%; }
  .mk-filters .select-sm { flex: 1 1 140px; }
  .mk-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mk-cr-body { padding: 9px 10px 11px; }
  .mk-crm, .mk-crm.tall { grid-template-columns: minmax(0, 1fr); }
  .mk-crm-prev { max-width: 260px; margin: 0 auto; width: 100%; }
  .mk-goal { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 8px; }
  .mk-prev:has(.mk-cr-st) .mk-ph-fmt { display: none; }
  .mk-cr-send { width: 100%; height: auto; min-height: 30px; padding: 5px 8px; white-space: normal; line-height: 1.2; font-size: 12px; }
  .mk-cr-title b { font-size: 13px; }
  .mk-board .kanban { grid-auto-columns: minmax(250px, 82vw); }
  .mk-camp-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-camp-period em { margin-left: 0; width: 100%; }

  .mk-tabs-row { margin: 0 -16px; padding: 0 16px; }
  .mk-posts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mk-post { flex-direction: row; border-radius: 14px; }
  .mk-post:hover { transform: none; }
  .mk-post-media { width: 112px; flex: none; aspect-ratio: auto; min-height: 150px; }
  .mk-post-media .mk-post-st, .mk-post-media .mk-fmt, .mk-media-lb { display: none; }
  .mk-media-ic { width: 48px; height: 48px; border-radius: 14px; }
  .mk-post-body { padding: 10px 12px 12px; gap: 7px; }
  .mk-post-mst { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
  .mk-post-mst .badge { height: 21px; font-size: 11px; padding: 0 8px; }
  .mk-post-cap { -webkit-line-clamp: 2; font-size: 12.5px; }
  .mk-post-title { font-size: 13.5px; -webkit-line-clamp: 1; }
  .mk-post-cap.sm { display: none; }
  .mk-post .mk-next { height: 34px; font-size: 12.5px; }
  .mk-welcome { padding: 30px 16px 28px; gap: 22px; }
  .mk-welcome h2 { font-size: 20px; }
  .mk-steps li { padding: 22px 16px 18px; }
  .mk-apv { padding: 12px; gap: 14px; }
  .mk-apv-media { max-width: 250px; }
  .mk-apv h3 { font-size: 16px; }
  .mk-apv-lb { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: -8px; }
.mk-apv-cap { font-size: 14px; padding: 12px; }
  .mk-apv-actions .btn { padding: 0 10px; }
  .mk-apv-date { margin-left: 0; }
  .mk-hist { flex-wrap: wrap; }
  .mk-hist-st { margin-left: 52px; align-items: flex-start; flex-direction: row; gap: 6px; }
  .mk-stepper { gap: 6px; }
  .mk-stepper li { font-size: 11.5px; gap: 5px; }
  .mk-pm-modal .modal-foot .btn:not(.mr-auto) { flex: 1 1 auto; }
}

/* vídeo do post (vai direto para o Google Drive) */
.mk-vid { margin-top: 10px; }
.mk-vid-btn { width: 100%; justify-content: center; }
.mk-vid-up, .mk-vid-ok { border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.mk-vid-top { display: flex; align-items: center; gap: 8px; }
.mk-vid-top > span { flex: 1; min-width: 0; }
.mk-vid-up small { color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.mk-vid-ok { flex-direction: row; align-items: center; flex-wrap: wrap; }
.mk-vid-ok > svg { color: var(--green); flex: none; }
.mk-vid-ok > span { flex: 1; min-width: 120px; display: flex; flex-direction: column; }
.mk-vid-ok b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-vid-ok small { color: var(--muted); font-size: 11.5px; }
.mk-media { position: relative; }
.mk-media-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; pointer-events: none; }
.mk-media-play svg { margin-left: 2px; }

/* ── assets/css/pages/site.css ── */
/* Marketing › Site da loja (banners e avaliações) */
.st-tabs { margin-bottom: 14px; }
.st-dica { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin-bottom: 16px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); background: color-mix(in srgb, var(--purple) 8%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--purple) 22%, transparent); }
.st-dica > svg { flex: none; margin-top: 2px; color: var(--purple-txt); }

.st-banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.st-banner { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s; }
.st-banner:hover, .st-banner:focus-visible { border-color: var(--purple); transform: translateY(-1px); outline: none; }
.st-banner-img { aspect-ratio: 8 / 3; background: var(--surface-2); }
.st-banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-banner-info { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; min-width: 0; }
.st-banner-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.st-banner-info b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-banner-info small { font-size: 12px; color: var(--muted); }

.st-imgs { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 14px; }
.st-imgs .field { margin: 0; }
.st-img { display: flex; flex-direction: column; gap: 8px; }
.st-img-prev { position: relative; display: grid; place-items: center; gap: 4px; min-height: 120px; aspect-ratio: 8 / 3; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--surface-2); color: var(--muted); overflow: hidden; text-align: center; padding: 8px; }
.st-img[data-st-img="imagemCelular"] .st-img-prev { aspect-ratio: auto; }
.st-img-prev small { font-size: 11.5px; }
.st-img-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.st-img-acoes { display: flex; gap: 6px; flex-wrap: wrap; }

.st-resumo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 6px; }
.st-avals { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.st-aval { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.st-aval.pend { border-color: color-mix(in srgb, var(--orange) 45%, transparent); }
.st-aval-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-estrelas { color: #f5b301; letter-spacing: 1px; font-size: 14px; }
.st-estrelas i { font-style: normal; color: var(--line-2); }
.st-aval b { font-size: 14px; }
.st-aval-prod { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.st-aval p { margin: 2px 0; font-size: 13px; line-height: 1.5; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.st-aval-foto { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.st-aval-acoes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.st-recusadas { margin-top: 18px; }
.st-recusadas summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-bottom: 10px; }

@media (max-width: 640px) {
  .st-banners, .st-avals { grid-template-columns: minmax(0, 1fr); }
  .st-imgs { grid-template-columns: minmax(0, 1fr); }
  .st-resumo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ── assets/css/pages/datas.css ── */
/* Marketing › Datas importantes */
.dt-list { display: flex; flex-direction: column; gap: 8px; }
.dt-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 12px; background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.dt-item:hover { background: var(--surface-3); }
.dt-item.oculta { opacity: .5; }
.dt-item > .badge { flex: none; }
.dt-cal { flex: none; width: 46px; height: 48px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c, var(--purple)) 14%, var(--surface)); line-height: 1; }
.dt-cal b { font-size: 18px; font-weight: 750; }
.dt-cal span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin-top: 3px; }
.dt-item-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dt-item-t b { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.dt-item-t small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-forte { color: var(--yellow); display: inline-flex; }
.dt-mes + .dt-mes { margin-top: 18px; }
.dt-mes h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; margin: 0 0 8px; }
.dt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.dt-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 12.5px; cursor: pointer; }
.dt-chip.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.dt-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.dt-como { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.dt-como b { color: var(--text); }
/* detalhe */
.dt-det { display: flex; flex-direction: column; gap: 10px; }
.dt-det-top { display: flex; gap: 14px; align-items: flex-start; --c: var(--purple); }
.dt-det-top .dt-cal { width: 60px; height: 62px; }
.dt-det-top .dt-cal b { font-size: 24px; }
.dt-det-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-det-quando { margin: 8px 0 2px; font-weight: 600; }
.dt-det .cfg-pv-label { margin-top: 8px; }
.dt-ideias { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dt-ideias li, .dt-post { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); margin: 0; line-height: 1.45; }
.dt-ideias li .ic, .dt-post .ic { color: var(--purple-txt); margin-top: 2px; flex: none; }
.dt-prods, .dt-posts { display: flex; flex-wrap: wrap; gap: 8px; }
.dt-prod, .dt-postlink { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; color: var(--text); background: var(--surface-2); }
.dt-postlink { padding: 6px 10px; }
.dt-prod:hover, .dt-postlink:hover { border-color: var(--line-2); background: var(--surface-3); }
@media (max-width: 640px) {
  .dt-item { flex-wrap: wrap; }
  .dt-item-t { flex-basis: calc(100% - 62px); }
  .dt-item > .badge { margin-left: 58px; }
}

/* ── assets/css/pages/instagram.css ── */
/* Marketing › Perfil do Instagram */
.ig-layout { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 22px; align-items: start; }
.ig-left { position: sticky; top: calc(var(--tb-h) + 16px); display: flex; flex-direction: column; gap: 10px; }
.ig-right { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ig-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ig-legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ig-legend .ig-tag { position: static; }

/* celular */
.ig-phone { border-radius: 38px; padding: 10px; background: linear-gradient(160deg, #2a2a33, #0c0c10); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.ig-screen { background: #000; color: #f5f5f5; border-radius: 30px; overflow: hidden; max-height: 760px; overflow-y: auto; font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; scrollbar-width: none; }
.ig-screen::-webkit-scrollbar { display: none; }
.ig-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 8px; }
.ig-user { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 5px; }
.ig-top-ic { display: flex; gap: 18px; }
.ig-head { display: flex; align-items: center; gap: 22px; padding: 6px 16px 10px; }
.ig-avatar { width: 84px; height: 84px; border-radius: 50%; flex: none; overflow: hidden; background: #262626; display: grid; place-items: center; color: #a8a8a8; }
.ig-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ig-name-stats { flex: 1; min-width: 0; }
.ig-fullname { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-stats { display: flex; justify-content: space-between; max-width: 230px; }
.ig-stats div { display: flex; flex-direction: column; line-height: 1.2; }
.ig-stats b { font-size: 16px; font-weight: 700; }
.ig-stats span { font-size: 13px; color: #f5f5f5; }
.ig-bio { padding: 0 16px 10px; font-size: 14px; line-height: 1.38; }
.ig-cat { display: block; color: #a8a8a8; }
.ig-bio p { margin: 0; white-space: normal; word-break: break-word; }
.ig-empty-bio { color: #0095f6; cursor: pointer; }
.ig-link { display: inline-flex; align-items: center; gap: 4px; color: #e0f1ff; font-weight: 600; margin-top: 2px; }
.ig-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px 16px 12px; }
.ig-btns button { background: #262626; color: #f5f5f5; border: 0; border-radius: 8px; height: 32px; font-weight: 600; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.ig-btns button:hover { background: #363636; }
.ig-highlights { display: flex; gap: 16px; padding: 4px 16px 14px; overflow-x: auto; scrollbar-width: none; }
.ig-hl { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; width: 64px; cursor: default; }
.ig-hl i { width: 62px; height: 62px; border-radius: 50%; border: 1px solid #363636; box-shadow: inset 0 0 0 3px #000; background: radial-gradient(circle at 40% 35%, #3b2a55, #141414); display: grid; place-items: center; font-style: normal; font-weight: 700; color: #c4f25a; font-size: 20px; }
.ig-hl.new { cursor: pointer; } .ig-hl.new i { background: #000; color: #f5f5f5; }
.ig-hl span { font-size: 12px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #262626; }
.ig-tabs button { background: none; border: 0; color: #737373; height: 44px; display: grid; place-items: center; cursor: pointer; border-bottom: 1px solid transparent; }
.ig-tabs button.on { color: #f5f5f5; border-bottom-color: #f5f5f5; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig-tile { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; background: #121212; overflow: hidden; cursor: pointer; color: #a8a8a8; }
.ig-tile img, .ig-tile .art { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
.ig-tile .art svg { width: 100%; height: 100%; }
.ig-tile:hover { filter: brightness(1.15); }
.ig-tile.plan::after { content: ""; position: absolute; inset: 0; border: 2px dashed rgba(196, 242, 90, .55); pointer-events: none; }
.ig-ic { position: absolute; top: 6px; right: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.ig-noimg { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; text-align: center; font-size: 10.5px; line-height: 1.3; background: linear-gradient(160deg, #241b33, #0f0f12); color: #cfcfcf; }
.ig-noimg span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ig-add, .ig-old { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; font-family: Inter, sans-serif; }
.ig-add { background: #0b0b0d; color: #c4f25a; border: 1.5px dashed #3a3a44; }
.ig-old { background: #161616; color: #8a8a8a; text-align: center; line-height: 1.3; }
.ig-old em { font-style: normal; color: #0095f6; }
.ig-tag { position: absolute; left: 4px; bottom: 4px; right: 4px; font: 600 10px/1.2 Inter, sans-serif; padding: 3px 5px; border-radius: 5px; color: #fff; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-tag.st-ideia, .ig-tag.st-producao { background: rgba(90, 90, 103, .92); }
.ig-tag.st-aprovacao { background: rgba(249, 115, 22, .92); }
.ig-tag.st-agendado { background: rgba(124, 58, 237, .92); }
.ig-tag.st-reprovado { background: rgba(240, 68, 68, .92); }

/* health score */
.ig-score-wrap { display: flex; align-items: center; gap: 20px; }
.ig-score { width: 118px; height: 118px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-4) 0); }
.ig-score > div { width: 94px; height: 94px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ig-score b { font-size: 32px; font-weight: 800; line-height: 1; }
.ig-score span { font-size: 11px; color: var(--muted); }
.ig-score-txt b { font-size: 18px; }
.ig-score-txt p { font-size: 12.5px; margin-top: 4px; }
.ig-pilares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 16px; font-size: 13px; }
.ig-pilar .row { margin-bottom: 5px; }
.ig-checks { display: flex; flex-direction: column; gap: 8px; }
.ig-check { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.ig-check > .ic { color: var(--orange); margin-top: 1px; }
.ig-check.ok > .ic { color: var(--green); }
.ig-check b { display: block; font-weight: 600; }
.ig-check b em { font-style: normal; font-size: 11px; color: var(--orange); font-weight: 700; margin-left: 4px; }
.ig-check span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ig-done { margin-top: 14px; }
.ig-done summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.ig-bio-now p { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.ig-bios { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ig-bio-sug { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; font-size: 13px; background: var(--surface-2); }
.ig-bio-sug .row { justify-content: space-between; }

@media (max-width: 1100px) { .ig-layout { grid-template-columns: minmax(0, 1fr); } .ig-left { position: static; max-width: 430px; margin: 0 auto; width: 100%; } }
@media (max-width: 640px) { .ig-pilares { grid-template-columns: minmax(0, 1fr); } .ig-score-wrap { flex-direction: column; text-align: center; } }

/* ── assets/css/pages/whatsapp.css ── */
/* LAG 3D Studio — WhatsApp (caixa de conversas e configuração) */
.sb-badge.green { background: var(--green); color: #0b0f04; }

/* ── layout da caixa de entrada: ocupa a altura da tela ── */
.page:has(> .wa-shell) { height: calc(100vh - var(--tb-h) - 66px); height: calc(100dvh - var(--tb-h) - 66px); min-height: 560px; }
.wa-shell { flex: 1; min-height: 0; display: grid; grid-template-columns: 360px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* ── lista de conversas ── */
.wa-side { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--line); }
.wa-side-top { display: flex; gap: 6px; padding: 14px 12px 10px 14px; align-items: center; }
.wa-search { flex: 1; min-width: 0 !important; }
.wa-filters { padding: 0 14px 10px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.wa-filters .tabs { display: flex; width: 100%; flex-wrap: nowrap; }
.wa-filters .tab { flex: 1; justify-content: center; padding: 6px 6px; font-size: 12.5px; white-space: nowrap; }
.wa-labels { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.wa-labels::-webkit-scrollbar { display: none; }
.wa-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; flex: none; }
.wa-chip:hover { color: var(--text); }
.wa-chip.on { background: color-mix(in srgb, var(--green) 16%, transparent); border-color: var(--green); color: var(--text); }
.wa-items { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; }
.wa-item { display: flex; gap: 12px; width: 100%; padding: 10px; border: 0; background: none; border-radius: 12px; text-align: left; cursor: pointer; align-items: flex-start; color: var(--text); }
.wa-item:hover { background: var(--surface-2); }
.wa-item.active { background: var(--surface-3); box-shadow: inset 3px 0 0 var(--green); }
.wa-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wa-item-top { display: flex; align-items: baseline; gap: 8px; }
.wa-item-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.wa-item-top em { font-style: normal; font-size: 11.5px; color: var(--muted); flex: none; }
.wa-item.unread .wa-item-top em { color: var(--green); font-weight: 600; }
.wa-item-bot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wa-prev { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 13px; }
.wa-prev-t { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wa-item.unread .wa-prev { color: var(--text-2); font-weight: 500; }
.wa-unread { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--green); color: #0b0f04; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.wa-item-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.wa-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; padding: 1px 7px; border-radius: 8px; background: var(--surface-3); color: var(--muted); white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.wa-item.active .wa-tag:not(.cli) { background: var(--surface-4); }
.wa-tag.cli { color: var(--purple-txt); background: color-mix(in srgb, var(--purple) 14%, transparent); }
.wa-av-anon { background: var(--surface-4); color: var(--muted); }
.wa-list-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 20px; color: var(--muted); }
.wa-list-empty p { color: var(--text-2); }
.wa-list-empty small { font-size: 12px; max-width: 250px; margin-bottom: 6px; }

/* ── conversa ── */
.wa-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg-2); }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 11px 14px 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.wa-back { display: none; }
.wa-head-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wa-head-txt > b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-head-txt > b small { font-weight: 400; font-size: 12px; }
.wa-head-txt > span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-cli-link { color: var(--purple-txt); font-weight: 600; }
.wa-cli-link:hover { text-decoration: underline; }
.wa-cli-link .ic { vertical-align: -1px; }
.wa-head-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.wa-head-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.wa-head-actions .icon-btn.on { color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, transparent); }
.wa-show-sm { display: none !important; }
.wa-window { display: flex; align-items: center; gap: 8px; padding: 7px 16px; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.wa-window > span { color: var(--text-2); min-width: 0; }
.wa-window.ok { color: var(--green); background: color-mix(in srgb, var(--green) 7%, var(--surface)); }
.wa-window.warn { color: var(--orange); background: color-mix(in srgb, var(--orange) 9%, var(--surface)); }
.wa-window.closed { color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--surface)); }
.wa-window.ok b { color: var(--green); } .wa-window.warn b { color: var(--orange); } .wa-window.closed b { color: var(--red); }
.wa-notes { display: flex; gap: 8px; align-items: flex-start; padding: 7px 16px; font-size: 12.5px; color: var(--text-2); background: color-mix(in srgb, var(--yellow) 7%, var(--surface)); border-bottom: 1px solid var(--line); }
.wa-notes .ic { color: var(--yellow); margin-top: 1px; }
.wa-notes span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.wa-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 7% 12px; display: flex; flex-direction: column; gap: 4px;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1.3px); background-size: 22px 22px; }
.wa-day { align-self: center; margin: 12px 0 6px; }
.wa-day span { display: inline-block; padding: 4px 12px; border-radius: 8px; background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.wa-msg { display: flex; flex-direction: column; max-width: min(72%, 560px); position: relative; }
.wa-msg.in { align-self: flex-start; align-items: flex-start; }
.wa-msg.out { align-self: flex-end; align-items: flex-end; }
.wa-msg.in + .wa-msg.out, .wa-msg.out + .wa-msg.in { margin-top: 6px; }
.wa-bubble { position: relative; padding: 7px 10px 5px; border-radius: 12px; background: var(--surface-3); color: var(--text); font-size: 14px; line-height: 1.42; box-shadow: 0 1px 1px rgba(0,0,0,.16); min-width: 76px; max-width: 100%; overflow-wrap: anywhere; }
.wa-msg.in .wa-bubble { border-top-left-radius: 4px; }
.wa-msg.out .wa-bubble { background: color-mix(in srgb, var(--green) 20%, var(--surface-2)); border-top-right-radius: 4px; }
.wa-msg.bare .wa-bubble { background: none; box-shadow: none; padding: 0; }
.wa-text a { color: var(--blue); text-decoration: underline; }
.wa-reaction { font-size: 13px; color: var(--text-2); font-style: italic; }
.wa-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 2px; font-size: 11px; color: var(--muted); line-height: 1.2; white-space: nowrap; }
.wa-tick { display: inline-flex; align-items: center; color: var(--muted); }
.wa-tick.read { color: var(--blue); }
.wa-tick.fail { color: var(--red); }
.wa-tick.wait { opacity: .8; }
.wa-tpl-tag { display: inline-flex; align-items: center; gap: 3px; margin-right: auto; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--purple) 16%, transparent); color: var(--purple-txt); font-size: 10.5px; font-weight: 600; }
.wa-err { display: flex; gap: 5px; align-items: flex-start; margin-top: 4px; font-size: 11.5px; color: var(--red); max-width: 100%; }
.wa-err .ic { margin-top: 1px; }
.wa-reply-btn { position: absolute; top: 4px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .12s; }
.wa-reply-btn:hover { color: var(--text); }
.wa-msg.in .wa-reply-btn { left: calc(100% + 6px); }
.wa-msg.out .wa-reply-btn { right: calc(100% + 6px); }
.wa-msg:hover .wa-reply-btn, .wa-reply-btn:focus-visible { opacity: 1; }
.wa-msg.flash .wa-bubble { animation: waFlash 1.4s; }
@keyframes waFlash { 0%, 60% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 60%, transparent); } 100% { box-shadow: 0 1px 1px rgba(0,0,0,.16); } }
.wa-quote { display: flex; flex-direction: column; gap: 1px; width: 100%; min-width: 180px; margin-bottom: 5px; padding: 6px 9px; border: 0; border-left: 3px solid var(--purple); border-radius: 7px; background: color-mix(in srgb, var(--text) 6%, transparent); text-align: left; cursor: pointer; font-size: 12.5px; color: var(--text); }
.wa-quote b { color: var(--purple-txt); font-size: 12px; }
.wa-quote span { color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* mídia */
.wa-img { display: block; padding: 0; border: 0; background: color-mix(in srgb, var(--text) 6%, transparent); border-radius: 9px; overflow: hidden; cursor: zoom-in; margin: -3px -6px 5px; min-width: 220px; min-height: 150px; }
.wa-img img { display: block; width: 320px; max-width: 100%; max-height: 380px; object-fit: cover; }
.wa-img img:not([src]) { visibility: hidden; }
.wa-img.err { cursor: default; }
.wa-img.sticker { background: none; min-width: 0; min-height: 0; margin: 0; }
.wa-img.sticker img { width: 150px; object-fit: contain; }
.wa-video { display: block; width: 320px; max-width: 100%; border-radius: 9px; margin-bottom: 4px; background: #000; }
.wa-audio { display: block; width: 280px; max-width: 100%; margin-bottom: 2px; }
.wa-doc { display: flex; align-items: center; gap: 10px; padding: 9px 11px; margin-bottom: 5px; border-radius: 9px; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); min-width: 230px; }
.wa-doc:hover { background: color-mix(in srgb, var(--text) 10%, transparent); }
.wa-doc:not([href]) { cursor: progress; }
.wa-doc > .ic { color: var(--muted); }
.wa-doc-ic { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); flex: none; }
.wa-doc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-doc-txt b { font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wa-doc-txt small { font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wa-media-miss { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.wa-media-err { opacity: .5; }

.wa-chat-note { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; color: var(--muted); padding: 30px 16px; text-align: center; margin: auto; }
.wa-chat-note.err { color: var(--red); }
.wa-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--green); animation: waSpin .8s linear infinite; display: inline-block; flex: none; vertical-align: middle; }
.wa-spin.lg { width: 30px; height: 30px; border-width: 3px; }
@keyframes waSpin { to { transform: rotate(360deg); } }

/* ── campo de mensagem ── */
.wa-composer { border-top: 1px solid var(--line); background: var(--surface); padding: 10px 14px 8px; position: relative; }
.wa-comp-row { display: flex; align-items: flex-end; gap: 4px; }
.wa-comp-row .icon-btn { height: 42px; width: 38px; }
.wa-attach { cursor: pointer; }
.wa-input { flex: 1; min-width: 0; resize: none; height: 42px; max-height: 160px; padding: 10px 14px; margin-left: 4px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; line-height: 1.4; outline: 0; transition: border-color .15s; }
.wa-input:focus { border-color: var(--green); }
.wa-input::placeholder { color: var(--muted-2); }
.wa-send { width: 42px; height: 42px; margin-left: 4px; border-radius: 50%; border: 0; background: var(--green); color: #0b0f04; display: grid; place-items: center; cursor: pointer; flex: none; transition: filter .15s, transform .1s; }
.wa-send:hover { filter: brightness(1.08); }
.wa-send:active { transform: scale(.94); }
.wa-comp-hint { font-size: 11px; color: var(--muted-2); margin: 5px 0 0 84px; }
.wa-composer.closed { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; }
.wa-closed-txt { display: flex; align-items: flex-start; gap: 9px; color: var(--text-2); font-size: 13px; flex: 1; min-width: 240px; }
.wa-closed-txt .ic { color: var(--red); margin-top: 2px; }
.wa-replybar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 6px 6px 6px 12px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--purple); }
.wa-replybar > .ic { color: var(--purple-txt); }
.wa-replybar > div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; }
.wa-replybar b { color: var(--purple-txt); font-size: 12px; }
.wa-replybar span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-qr { position: absolute; left: 14px; right: 14px; bottom: calc(100% - 4px); max-height: 320px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 5; }
.wa-qr[hidden] { display: none; }
.wa-qr-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.wa-qr-head .ic { color: var(--green); }
.wa-qr-head small { margin-left: auto; color: var(--muted); font-weight: 400; }
.wa-qr-item { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 9px; background: none; cursor: pointer; color: var(--text); }
.wa-qr-item b { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.wa-qr-item span { font-weight: 600; font-size: 13px; }
.wa-qr-item small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.wa-qr-item:hover, .wa-qr-item.on { background: var(--surface-3); }
.wa-qr-empty { padding: 10px; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.wa-qr-empty a { color: var(--purple-txt); font-weight: 600; }

/* conversa vazia */
.wa-placeholder { margin: auto; text-align: center; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px; color: var(--muted); }
.wa-ph-art { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); margin-bottom: 6px; }
.wa-placeholder h3 { color: var(--text); font-size: 18px; }
.wa-placeholder p { margin-bottom: 8px; }

/* indicador ao vivo no título */
.wa-live { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0; position: relative; top: -2px; }
.wa-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wa-live.ok { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.wa-live.ok i { animation: waPulse 1.6s infinite; }
.wa-live.warn { color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, transparent); }
.wa-live.demo { color: var(--purple-txt); background: color-mix(in srgb, var(--purple) 14%, transparent); }
@keyframes waPulse { 50% { opacity: .3; } }

.wa-demo-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--purple) 35%, transparent); background: color-mix(in srgb, var(--purple) 9%, var(--surface)); color: var(--text-2); font-size: 13px; }
.wa-demo-bar > .ic { color: var(--purple-txt); }
.wa-demo-bar > span { flex: 1; min-width: 0; }

/* ── estados (não configurado, conectando, erro) ── */
.wa-hero { display: flex; flex-direction: row; gap: 28px; padding: 32px; align-items: flex-start; }
.wa-hero-art { width: 92px; height: 92px; border-radius: 28px; flex: none; display: grid; place-items: center; color: #0b0f04; background: linear-gradient(135deg, var(--green), var(--green-2)); box-shadow: 0 16px 40px color-mix(in srgb, var(--green) 28%, transparent); }
.wa-hero-txt { display: flex; flex-direction: column; gap: 12px; max-width: 700px; }
.wa-hero-txt h2 { font-size: 22px; }
.wa-hero-txt p { color: var(--text-2); line-height: 1.55; }
.wa-hero-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.wa-hero-list li { display: flex; gap: 10px; align-items: center; }
.wa-hero-list .ic { color: var(--green); }
.wa-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.wa-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 16px; }
.wa-state > .ic { color: var(--red); }
.wa-state p { color: var(--text-2); max-width: 560px; }
.wa-state .wa-hero-actions { justify-content: center; }
.wa-state-login { max-width: 440px; }

/* ── configuração ── */
.wa-form-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.wa-form-err { display: flex; gap: 7px; align-items: flex-start; margin-top: 12px; padding: 8px 10px; border-radius: 9px; background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); font-size: 13px; }
.wa-form-err .ic { margin-top: 2px; }
.wa-login > p { margin-bottom: 12px; font-size: 13px; }
.wa-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; min-height: 0; }
.wa-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); overflow-wrap: anywhere; }
.wa-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.wa-step { display: flex; gap: 12px; align-items: flex-start; }
.wa-step-ic { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--line-2); color: var(--muted); }
.wa-step.ok .wa-step-ic { background: var(--green); border-color: var(--green); color: #0b0f04; }
.wa-step.err .wa-step-ic { border-color: var(--red); color: var(--red); }
.wa-step.busy .wa-step-ic { border-color: transparent; }
.wa-step > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wa-step small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.wa-step small .badge { height: 19px; font-size: 11px; vertical-align: middle; }
.wa-guide { margin: 0; padding: 0; list-style: none; counter-reset: wag; display: flex; flex-direction: column; gap: 12px; }
.wa-guide li { counter-increment: wag; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; font-size: 13px; color: var(--text-2); }
.wa-guide li::before { content: counter(wag); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--purple) 16%, transparent); color: var(--purple-txt); font-weight: 700; font-size: 12px; }
.wa-guide li b { color: var(--text); }
.wa-guide li span b { color: var(--text-2); }
.wa-guide-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wa-user { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.wa-user > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-user b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-user small { color: var(--muted); font-size: 12px; }
.wa-user-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #0b0f04; flex: none; }
.wa-resp-txt { color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 620px; }
.wa-pad { padding: 18px; }

/* ── modal de modelos ── */
.wa-tpl { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; min-height: 300px; }
.wa-tpl > .wa-chat-note, .wa-tpl > .empty { grid-column: 1 / -1; }
.wa-tpl-list { display: flex; flex-direction: column; gap: 6px; max-height: 440px; overflow-y: auto; padding-right: 4px; }
.wa-tpl-item { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; color: var(--text); }
.wa-tpl-item:hover { border-color: var(--muted-2); }
.wa-tpl-item.on { border-color: var(--green); background: color-mix(in srgb, var(--green) 9%, var(--surface-2)); }
.wa-tpl-item.off { opacity: .55; cursor: not-allowed; }
.wa-tpl-item b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.wa-tpl-meta { font-size: 11px; color: var(--muted); }
.wa-tpl-item small { font-size: 12px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-tpl-reload { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 6px 4px; }
.wa-tpl-reload:hover { color: var(--text); }
.wa-tpl-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wa-tpl-vars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wa-tpl-novars { font-size: 13px; }
.wa-tpl-pick { margin: auto; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.wa-tpl-prev { padding: 18px; border-radius: 12px; background-color: var(--bg-2); background-image: radial-gradient(color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1.3px); background-size: 22px 22px; border: 1px solid var(--line); display: flex; justify-content: flex-end; margin-top: 6px; }
.wa-tpl-prev .wa-bubble { background: color-mix(in srgb, var(--green) 20%, var(--surface-2)); max-width: 92%; border-top-right-radius: 4px; padding-bottom: 8px; }
.wa-tpl-h { display: block; margin-bottom: 4px; }
.wa-tpl-f { display: block; margin-top: 6px; color: var(--muted); font-size: 11.5px; }

/* ── outros modais ── */
.wa-file-prev { display: flex; justify-content: center; margin-bottom: 14px; }
.wa-file-prev img { max-width: 100%; max-height: 300px; border-radius: 12px; }
.wa-doc.big { min-width: 0; width: 100%; padding: 14px; }
.wa-cli-cur { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; }
.wa-cli-cur > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-cli-cur small { color: var(--muted); font-size: 12px; }
.wa-cli-sug { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--green); margin-bottom: 6px; }
.wa-cli-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; margin-bottom: 6px; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--green) 40%, var(--line-2)); background: color-mix(in srgb, var(--green) 7%, var(--surface-2)); text-align: left; cursor: pointer; color: var(--text); }
.wa-cli-opt > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-cli-opt small { color: var(--muted); font-size: 12px; }
.wa-cli-opt + .field { margin-top: 12px; }
.wa-new { display: flex; flex-direction: column; gap: 14px; }
.wa-lightbox { display: grid; place-items: center; }
.wa-lightbox img { max-width: 100%; max-height: 72vh; border-radius: 10px; }
.toast.wa-toast { pointer-events: auto; cursor: pointer; }
.toast.wa-toast small { color: var(--muted); }

/* ── responsivo ── */
@media (max-width: 1240px) {
  .wa-shell { grid-template-columns: 310px minmax(0, 1fr); }
  .wa-hide-sm { display: none !important; }
  .wa-show-sm { display: inline-grid !important; }
}
@media (max-width: 960px) {
  .page:has(> .wa-shell) { height: calc(100vh - var(--tb-h) - 50px); height: calc(100dvh - var(--tb-h) - 50px); min-height: 480px; }
  .page:has(> .wa-shell.has-sel) > .page-header, .page:has(> .wa-shell.has-sel) > .wa-demo-bar { display: none; }
  .wa-shell { grid-template-columns: minmax(0, 1fr); }
  .wa-shell.has-sel .wa-side { display: none; }
  .wa-shell:not(.has-sel) .wa-chat { display: none; }
  .wa-side { border-right: 0; }
  .wa-back { display: inline-grid; margin-left: -6px; }
  .wa-msgs { padding: 12px 10px; }
  .wa-msg { max-width: 86%; }
  .wa-reply-btn { display: none; }
  .wa-tpl { grid-template-columns: minmax(0, 1fr); }
  .wa-tpl-list { max-height: 220px; }
  .wa-hero { flex-direction: column; padding: 22px; gap: 18px; }
  .wa-hero-art { width: 64px; height: 64px; border-radius: 20px; }
}
@media (max-width: 640px) {
  .wa-head { padding: 9px 8px 9px 10px; gap: 8px; }
  .wa-head-actions { gap: 0; }
  .wa-head-actions .btn > span { display: none; }
  .wa-head-actions .btn { padding: 0 8px; }
  .wa-head-actions .icon-btn { width: 32px; }
  .wa-head .avatar { width: 36px !important; height: 36px !important; }
  .wa-composer { padding: 8px 8px 8px; }
  .wa-comp-row .icon-btn { width: 32px; }
  .wa-comp-hint { display: none; }
  .wa-window { padding: 6px 12px; font-size: 12px; }
  .wa-tpl-vars { grid-template-columns: minmax(0, 1fr); }
  .wa-demo-bar { flex-wrap: wrap; }
  .wa-img { min-width: 180px; }
  .wa-doc { min-width: 0; }
  .wa-qr-head small { display: none; }
}

/* ── assets/css/pages/configuracoes.css ── */
/* estilos do módulo configurações */
.cfg-note { --tone: var(--blue); display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.55; color: var(--text-2); background: color-mix(in srgb, var(--tone) 8%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent); }
.cfg-note > .ic { color: var(--tone); margin-top: 1px; }
.cfg-note b { color: var(--text); font-weight: 650; }
.cfg-note.tone-info { --tone: var(--blue); } .cfg-note.tone-warning { --tone: var(--orange); } .cfg-note.tone-danger { --tone: var(--red); }
.modal .cfg-note { margin-bottom: 16px; }
.cfg-pad { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.cfg-foot { padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); flex-direction: row; align-items: center; gap: 6px; margin-top: 2px; }
.cfg-cellcol { display: flex; flex-direction: column; min-width: 0; }
.cfg-cellcol > span:first-child { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cfg-table td.ta-right, .cfg-table td.ta-center { white-space: nowrap; }
.cfg-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--surface-3); font-weight: 650; font-size: 12px; color: var(--text); }
a.cfg-count:hover { background: var(--surface-4); }
.cfg-inactive td { opacity: .5; }
.cfg-inactive td:last-child, .cfg-inactive td:nth-last-child(2) { opacity: 1; }

/* indicador de rascunho */
.cfg-dirty, .cfg-dirty-only { display: none !important; }
.cfg-dirty.on { display: inline-flex !important; align-items: center; }
.cfg-dirty-only.on { display: inline-flex !important; }

/* interruptor */
.cfg-switch { position: relative; display: inline-block; width: 36px; height: 20px; cursor: pointer; vertical-align: middle; }
.cfg-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.cfg-switch i { position: absolute; inset: 0; border-radius: 12px; background: var(--surface-4); border: 1px solid var(--line-2); transition: background .15s, border-color .15s; }
.cfg-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .18s, background .15s; }
.cfg-switch input:checked + i { background: color-mix(in srgb, var(--green) 30%, transparent); border-color: var(--green); }
.cfg-switch input:checked + i::after { transform: translateX(16px); background: var(--green); }
.cfg-switch input:focus-visible + i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 30%, transparent); }

/* perfil */
.cfg-profile-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.cfg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.cfg-preview { padding: 16px; border-radius: 14px; background: radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--purple) 14%, transparent), transparent 60%), var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cfg-pv-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.cfg-userchip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line-2); color: var(--text-2); margin-bottom: 6px; }
.cfg-userchip .avatar { width: 42px !important; height: 42px !important; border: 2px solid var(--line-2); object-fit: cover; }
.cfg-userchip > span:not(.avatar) { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cfg-userchip b { font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-userchip small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-printhead { padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--line-2); display: flex; flex-direction: column; }
.cfg-printhead b { font-size: 17px; }
.cfg-printhead small { color: var(--muted); font-size: 12.5px; min-height: 18px; }
.cfg-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }

/* parâmetros de custo */
.cfg-cost-layout { grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); align-items: start; }
.cfg-cost-forms { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cfg-desc { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.cfg-group .field small { line-height: 1.4; }
.cfg-linkbtn { border: 0; background: color-mix(in srgb, var(--purple) 14%, transparent); color: var(--purple-txt); font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; vertical-align: 1px; }
.cfg-linkbtn:hover { background: color-mix(in srgb, var(--purple) 24%, transparent); }
.cfg-sticky { position: sticky; top: calc(var(--tb-h) + 16px); min-width: 0; }
.cfg-pv-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.cfg-pv-head > div:not(.art) { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.cfg-pv-head select { width: 100%; }
.cfg-pv-head small { font-size: 11.5px; }
.cfg-pv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cfg-pv-table th { font-size: 11.5px; color: var(--muted); font-weight: 600; text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.cfg-pv-table td { padding: 7px 4px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cfg-pv-table td:first-child, .cfg-pv-table th:first-child { text-align: left; color: var(--text-2); white-space: normal; }
.cfg-pv-table td small { display: block; color: var(--muted); font-size: 11px; }
.cfg-pv-table tr.tot td { font-weight: 700; color: var(--text); border-bottom-color: var(--line-2); }
.cfg-pv-table tr.hl td { font-weight: 700; color: var(--text); background: color-mix(in srgb, var(--purple) 9%, transparent); }
.cfg-pv-table tr.hl td:first-child { border-radius: 8px 0 0 8px; padding-left: 8px; }
.cfg-pv-table tr.hl td:last-child { border-radius: 0 8px 8px 0; }
.cfg-d { font-size: 12px; font-weight: 700; }
.cfg-d.good { color: var(--green); } .cfg-d.bad { color: var(--red); } .cfg-d.same { color: var(--muted-2); }
.cfg-pv-impact { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.cfg-pv-impact > div { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; color: var(--text-2); }
.cfg-pv-impact > div span { flex: 1; }
.cfg-pv-impact .ic { color: var(--muted); }
.cfg-hint { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.cfg-calc-res { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--green) 10%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); }
.cfg-calc-res b { font-size: 20px; color: var(--green); }

/* categorias */
.cfg-cat { display: inline-flex; align-items: center; gap: 10px; }
.cfg-swatch { width: 14px; height: 14px; border-radius: 5px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 15%, transparent), 0 0 10px -3px currentColor; flex: none; }

/* materiais */
.cfg-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cfg-impact { margin-top: 6px; font-size: 12.5px; }
.cfg-impact:empty { display: none; }

/* integrações */
.cfg-int-layout { grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); align-items: start; }
.cfg-int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cfg-int { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.cfg-int:hover { border-color: var(--line-2); transform: translateY(-1px); }
.cfg-int.on { border-color: color-mix(in srgb, var(--green) 30%, var(--line)); background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--green) 7%, transparent), transparent 60%), var(--surface); }
.ci-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.ci-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.cfg-int.on .ci-icon { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.cfg-int h4 { font-size: 15px; }
.cfg-int p { font-size: 12.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.ci-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.cfg-data-size { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.cfg-data-size em { font-style: normal; color: var(--muted); flex-basis: 100%; padding-left: 23px; font-size: 11.5px; }
.cfg-data-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.cfg-data-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cfg-data-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cfg-data-row b { font-size: 13.5px; }
.cfg-data-row small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.cfg-data-row .ai.red { background: color-mix(in srgb, var(--red) 15%, transparent); }
.cfg-keep { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.cfg-keep-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.cfg-keep .check { flex-wrap: wrap; }
.cfg-keep .check em { flex-basis: 100%; margin-left: 27px; }
.cfg-ack { padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--red) 35%, transparent); background: color-mix(in srgb, var(--red) 7%, transparent); }

/* responsivo */
@media (max-width: 1240px) {
  .cfg-cost-layout, .cfg-int-layout { grid-template-columns: minmax(0, 1fr); }
  .cfg-sticky { position: static; }
}
@media (max-width: 960px) {
  .cfg-profile-grid { grid-template-columns: minmax(0, 1fr); }
  .cfg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cfg-data-row { flex-wrap: wrap; }
  .cfg-data-row > .btn, .cfg-data-row > label.btn { margin-left: 44px; }
  .cfg-int-grid { grid-template-columns: minmax(0, 1fr); }
  .cfg-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cfg-actions .btn { flex: 1; }
}
.cfg-cats { align-items: start; }
@media (max-width: 640px) {
  .cfg-cards thead { display: none; }
  .cfg-cards table, .cfg-cards tbody { display: block; width: 100%; }
  .cfg-cards tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .cfg-cards td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; min-width: 0; }
  .cfg-cards td:first-child { grid-column: 1 / -1; }
  .cfg-cards td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; font-weight: 600; }
  .cfg-cards tbody tr:hover td { background: none; }
  .cfg-cards .row-actions { justify-content: flex-start; }
  .cfg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cfg-pv-table tr.sub td { font-weight: 650; color: var(--text); }

/* papéis da equipe (vários por pessoa) */
.cfg-badges { display: flex; flex-wrap: wrap; gap: 4px; }

/* app no celular e avisos */
.cfg-cel-p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; margin: 0 0 12px; }
.cfg-cel-p.small { font-size: 12px; margin: 12px 0 0; }
.cfg-cel-steps { margin: 0; padding: 0; list-style: none; counter-reset: passo; display: flex; flex-direction: column; gap: 10px; }
.cfg-cel-steps li { counter-increment: passo; display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.cfg-cel-steps li::before { content: counter(passo); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--purple-txt); background: color-mix(in srgb, var(--purple) 15%, transparent); }
.cfg-cel-steps b { color: var(--text); }
.cfg-cel-ok { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; color: var(--green); background: color-mix(in srgb, var(--green) 9%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--green) 22%, transparent); }
.cfg-cel-ok > div { display: flex; flex-direction: column; gap: 2px; }
.cfg-cel-ok b { color: var(--text); font-size: 14px; }
.cfg-cel-ok small { color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.cfg-cel-tipos { margin-top: 4px; }
.cfg-pv-label + .cfg-cel-tipos, .cfg-cel-ok + .cfg-pv-label, .btn + .cfg-pv-label, .cfg-actions + .cfg-pv-label, .cfg-note + .cfg-pv-label, .cfg-cel-p + .cfg-pv-label { margin-top: 18px; }
.cfg-bb-lan { margin-top: 18px; }

/* ── assets/css/pages/drive.css ── */
/* Painel do Google Drive (Integrações) */
.drv { display: flex; flex-direction: column; gap: 12px; }
.drv-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; width: 100%; flex-wrap: wrap; }
.drv-load { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; padding: 8px 0; }
.drv-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.drv-lista li { display: flex; gap: 12px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.drv-lista li > svg { flex: none; margin-top: 3px; color: var(--green); }
.drv-lista b { color: var(--text); }
.drv-dica { margin: 0; font-size: 12.5px; color: var(--muted); }
.drv-aviso { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 11px; font-size: 13px; background: color-mix(in srgb, var(--orange) 10%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--orange) 30%, transparent); color: var(--text-2); }
.drv-aviso > svg { flex: none; color: var(--orange); margin-top: 1px; }
.drv-conta { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--green) 8%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--green) 22%, transparent); }
.drv-conta > svg { color: var(--green); flex: none; }
.drv-conta > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.drv-conta b { font-size: 14px; overflow-wrap: anywhere; }
.drv-conta small { font-size: 12px; color: var(--muted); }
.drv-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.drv-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.drv-row b { font-size: 13.5px; }
.drv-row small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.drv-backups { display: flex; flex-direction: column; gap: 2px; }
.drv-backups > .btn { align-self: flex-start; }
.drv-bk-head { font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 4px; }
.drv-bk { display: flex; align-items: center; gap: 10px; padding: 6px 2px; font-size: 13px; border-bottom: 1px solid var(--line); }
.drv-bk:last-child { border-bottom: 0; }
.drv-bk span { flex: 1; display: inline-flex; align-items: center; gap: 8px; }
.drv-bk em { font-style: normal; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .drv-conta { flex-wrap: wrap; }
  .drv-row { flex-wrap: wrap; }
  .drv-row > .btn { margin-left: 44px; }
}

/* configuração (pasta + ponte do Apps Script) */
.drv-passos { margin: 0; padding: 0; list-style: none; counter-reset: p; display: flex; flex-direction: column; gap: 16px; }
.drv-passos > li { counter-increment: p; position: relative; padding-left: 38px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.drv-passos > li::before { content: counter(p); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.drv-passos small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.drv-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.drv-sub { font-size: 12.5px; line-height: 1.7; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.drv-cod summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.drv-cod textarea { margin-top: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }

/* ── assets/css/pages/contas.css ── */
/* Central de contas (cofre) */
.ct-estado { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 12.5px; color: var(--muted); margin-right: 6px; }
.ct-estado.on { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.ct-aviso { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin-bottom: 16px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); background: color-mix(in srgb, var(--purple) 8%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--purple) 22%, transparent); }
.ct-aviso > svg { flex: none; margin-top: 2px; color: var(--purple-txt); }
.ct-load { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ct-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.ct-top { display: flex; align-items: center; gap: 12px; }
.ct-logo { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); }
.ct-nome { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ct-nome b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-nome small { font-size: 11.5px; color: var(--muted); }
.ct-linha { display: flex; align-items: center; gap: 6px; padding: 6px 4px 6px 10px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.ct-rot { flex: none; width: 46px; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ct-val { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.ct-linha .icon-btn { width: 32px; height: 32px; flex: none; }
.ct-obs { margin: 0; font-size: 12.5px; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.ct-abrir { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--purple-txt); }
.ct-senha-wrap { position: relative; }
.ct-senha-wrap .input[name="senha"] { padding-right: 44px; }
.ct-olho { position: absolute; right: 6px; bottom: 6px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.ct-olho:hover { color: var(--text); background: var(--surface-3); }
@media (max-width: 640px) {
  .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-estado span { display: none; }
}

/* ── assets/css/pages/tutoriais.css ── */
/* tutoriais dos conectores */
.tut { display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; }
.tut-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tut-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 600; }
.tut-box { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.tut-box b { display: flex; align-items: center; gap: 7px; font-size: 13px; margin-bottom: 6px; }
.tut-box ul { margin: 0; padding-left: 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 3px; }
.tut-box.ok { background: color-mix(in srgb, var(--green) 8%, var(--surface-2)); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.tut-box.ok b { color: var(--green); }
.tut-box p { color: var(--text-2); }
.tut-steps { list-style: none; margin: 0; padding: 0; counter-reset: tut; display: flex; flex-direction: column; gap: 4px; }
.tut-steps li { counter-increment: tut; position: relative; padding: 4px 0 12px 42px; display: flex; flex-direction: column; gap: 3px; }
.tut-steps li::before { content: counter(tut); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: color-mix(in srgb, var(--purple) 18%, transparent); color: var(--purple-txt); }
.tut-steps li::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 0; width: 1px; background: var(--line-2); }
.tut-steps li:last-child::after { display: none; }
.tut-steps b { font-weight: 650; }
.tut-steps span { color: var(--text-2); line-height: 1.5; }
.tut-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tut-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--purple-txt); font-size: 12.5px; font-weight: 500; }
.tut-links a:hover { background: var(--surface-3); }
.tut-details { margin-bottom: 16px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.tut-details summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--purple-txt); }
.tut-details[open] summary { margin-bottom: 12px; }

/* ── assets/css/pages/login.css ── */
/* LAG 3D Studio — tela de login.
   Fontes: Orbitron (geométrica e larga, no estilo do "LAG" da logo) e Michroma (espaçada, como "STUDIO" e "3D").
   Sem internet, cai para fontes do sistema. Paleta fixa nas cores da logo. */

.auth {
  --a-bg: #07060b; --a-card: rgba(22, 19, 32, .72); --a-line: rgba(255, 255, 255, .08); --a-input: rgba(255, 255, 255, .045);
  --a-text: #f2f0f8; --a-muted: #a59fb8; --a-ph: #6f6984;
  --a-green: #9aa847; --a-green-hi: #b9cf4f; --a-lime: #a3e635; --a-purple: #9b4fd1; --a-purple-hi: #b874ee;
  --f-title: Orbitron, "Arial Black", Impact, ui-sans-serif, system-ui, sans-serif;
  --f-wide: Michroma, Orbitron, ui-sans-serif, system-ui, sans-serif;
  position: relative; min-height: 100vh; display: grid; place-items: center; padding: 40px 24px; overflow: hidden;
  background: radial-gradient(60% 50% at 25% 45%, rgba(155, 79, 209, .16), transparent 70%), radial-gradient(45% 45% at 80% 75%, rgba(154, 168, 71, .10), transparent 70%), var(--a-bg);
  color: var(--a-text); font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.auth-wrap { position: relative; z-index: 1; width: 100%; max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 430px); align-items: center; gap: 56px; }

/* ── marca: cubo flutuante + palavra ── */
.auth-brand { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.auth-stage { position: relative; width: min(100%, 520px); aspect-ratio: 1.15; }
.auth-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: auth-pulse 7s ease-in-out infinite; }
.auth-glow.g1 { width: 46%; height: 46%; left: 18%; top: 14%; background: var(--a-purple); }
.auth-glow.g2 { width: 38%; height: 38%; right: 16%; top: 30%; background: var(--a-green); animation-delay: -3.5s; opacity: .4; }
@keyframes auth-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
/* mesa de impressão em perspectiva */
.auth-bed { position: absolute; left: 6%; right: 6%; bottom: 2%; height: 34%; transform: perspective(520px) rotateX(62deg); transform-origin: bottom;
  background-image: linear-gradient(rgba(185, 207, 79, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(185, 207, 79, .22) 1px, transparent 1px); background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(70% 90% at 50% 70%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 90% at 50% 70%, #000 30%, transparent 75%); }
/* partículas subindo (filamento / camadas) */
.auth-particles { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000 40%, transparent 80%); mask-image: radial-gradient(60% 60% at 50% 50%, #000 40%, transparent 80%); }
.ap { position: absolute; left: var(--x); bottom: -10px; width: var(--w); height: var(--w); border-radius: 2px; background: var(--c); opacity: 0; box-shadow: 0 0 10px var(--c); animation: auth-rise var(--d) linear infinite; animation-delay: var(--dl); }
@keyframes auth-rise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: .85; } 85% { opacity: .5; } 100% { transform: translateY(-420px) rotate(220deg); opacity: 0; } }
/* cubo */
.auth-cube-wrap { position: absolute; left: 50%; top: 46%; width: 44%; transform: translate(-50%, -50%); }
.auth-cube { position: relative; z-index: 2; display: block; width: 100%; height: auto; filter: drop-shadow(0 0 22px rgba(155, 79, 209, .35)) drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); animation: auth-float 6s ease-in-out infinite; }
.auth-halo { position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; margin: -75% 0 0 -75%; border-radius: 50%; border: 1px solid rgba(185, 207, 79, .18); animation: auth-spin 24s linear infinite; }
.auth-halo::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--a-green-hi); box-shadow: 0 0 14px var(--a-green-hi); }
.auth-shadow { position: absolute; left: 14%; right: 14%; bottom: -26%; height: 12%; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .75), transparent 70%); animation: auth-shadow 6s ease-in-out infinite; }
@keyframes auth-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-22px) rotate(3deg); } }
@keyframes auth-shadow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.78); opacity: .5; } }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-cube-wrap { aspect-ratio: 266 / 362; }
/* palavra no estilo da logo */
.auth-word { display: flex; flex-direction: column; align-items: center; margin-top: -6px; line-height: 1; }
.w-studio { font-family: var(--f-wide); font-size: 18px; letter-spacing: .62em; padding-left: .62em; color: var(--a-purple-hi); }
.w-lag { font-family: var(--f-title); font-weight: 900; font-size: clamp(64px, 8vw, 96px); letter-spacing: .04em; margin: 8px 0 4px; background: linear-gradient(180deg, var(--a-green-hi), var(--a-green)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px rgba(154, 168, 71, .25)); }
.w-3d { display: flex; align-items: center; gap: 14px; font-family: var(--f-title); font-weight: 700; font-size: 22px; letter-spacing: .14em; color: var(--a-purple-hi); }
.w-3d i { display: block; width: 90px; height: 3px; border-radius: 2px; background: var(--a-purple); }
.auth-tag { margin-top: 18px; font-family: var(--f-wide); font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--a-muted); }

/* ── cartão ── */
.auth-card { position: relative; background: var(--a-card); border: 1px solid var(--a-line); border-radius: 26px; padding: 38px 38px 30px; box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.auth-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(185, 207, 79, .55), transparent 35%, transparent 65%, rgba(155, 79, 209, .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.auth-card-top { margin-bottom: 26px; }
.auth-kicker { font-family: var(--f-wide); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--a-green-hi); }
.auth-card h2 { font-family: var(--f-title); font-weight: 700; font-size: 30px; letter-spacing: .04em; margin: 10px 0 8px; color: var(--a-text); }
.auth-card-top p { color: var(--a-muted); font-size: 14px; }
.auth-card form { display: flex; flex-direction: column; gap: 18px; }
.auth-card form.shake { animation: auth-shake .35s; }
@keyframes auth-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-field > span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--a-muted); }
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-wrap > .ic { position: absolute; left: 16px; color: var(--a-ph); pointer-events: none; transition: color .15s; }
.auth-input { width: 100%; height: 54px; border: 1px solid var(--a-line); border-radius: 14px; padding: 0 48px 0 46px; background: var(--a-input); color: var(--a-text); font: inherit; font-size: 15.5px; outline: 0; transition: border-color .15s, box-shadow .15s, background .15s; }
.auth-input::placeholder { color: var(--a-ph); }
.auth-input:focus { border-color: rgba(185, 207, 79, .7); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 4px rgba(154, 168, 71, .16); }
.auth-input-wrap:focus-within > .ic { color: var(--a-green-hi); }
.auth-input.invalid { border-color: #f04444; }
.auth-eye { position: absolute; right: 8px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--a-ph); cursor: pointer; display: grid; place-items: center; }
.auth-eye:hover, .auth-eye.on { color: var(--a-text); background: rgba(255, 255, 255, .06); }
.auth-check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--a-muted); cursor: pointer; user-select: none; }
.auth-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--a-green); }
.auth-error { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; color: #ffb4b4; background: rgba(240, 68, 68, .12); border: 1px solid rgba(240, 68, 68, .25); }
.auth-error[hidden] { display: none; }
.auth-submit { position: relative; overflow: hidden; height: 56px; margin-top: 4px; border: 0; border-radius: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg, var(--a-green-hi), var(--a-green) 55%, #7d8a36); color: #12130a; font-family: var(--f-title); font-size: 15px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  box-shadow: 0 18px 40px -12px rgba(154, 168, 71, .55); transition: transform .12s, box-shadow .15s, filter .15s; }
.auth-submit::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: auth-shine 4.5s ease-in-out infinite; }
@keyframes auth-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.auth-submit:hover { filter: brightness(1.08); box-shadow: 0 22px 46px -12px rgba(154, 168, 71, .7); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:focus-visible { outline: 3px solid rgba(255, 255, 255, .6); outline-offset: 3px; }
.auth-submit .ic { transition: transform .15s; }
.auth-submit:hover .ic { transform: translateX(4px); }
.auth-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--a-line); font-size: 12px; color: var(--a-ph); }

@media (prefers-reduced-motion: reduce) { .auth *, .auth *::before, .auth *::after { animation: none !important; } }

/* telas menores */
@media (max-width: 1000px) {
  .auth-wrap { grid-template-columns: minmax(0, 1fr); max-width: 460px; gap: 10px; }
  .auth-stage { width: min(100%, 340px); }
  .w-lag { font-size: 64px; }
  .auth-tag { display: none; }
}
/* celular: tudo cabe numa tela só, sem rolar (a altura do cubo e da palavra acompanha a altura da tela) */
@media (max-width: 520px) {
  .auth { min-height: 100vh; min-height: 100dvh; padding: max(10px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom)); place-items: center; align-content: center; }
  .auth-wrap { gap: clamp(4px, 1.2dvh, 12px); }
  .auth-stage { width: auto; height: clamp(96px, 19dvh, 180px); aspect-ratio: 1.15; }
  .auth-bed { display: none; }
  .auth-word { margin-top: 0; }
  .w-studio { font-size: clamp(10px, 1.5dvh, 13px); }
  .w-lag { font-size: clamp(34px, 6dvh, 50px); margin: 4px 0 2px; }
  .w-3d { font-size: clamp(12px, 1.8dvh, 15px); gap: 10px; } .w-3d i { width: 44px; height: 2px; }
  .auth-card { padding: clamp(16px, 2.6dvh, 24px) 18px clamp(14px, 2.2dvh, 20px); border-radius: 20px; }
  .auth-card-top { margin-bottom: clamp(10px, 1.8dvh, 18px); }
  .auth-kicker { font-size: 9.5px; }
  .auth-card h2 { font-size: clamp(19px, 2.8dvh, 24px); margin: 6px 0 4px; }
  .auth-card-top p { font-size: 13px; }
  .auth-card form { gap: clamp(9px, 1.5dvh, 14px); }
  .auth-field { gap: 5px; }
  .auth-field > span { font-size: 11px; }
  .auth-input { height: clamp(44px, 6dvh, 50px); font-size: 16px; }
  .auth-check { font-size: 13px; }
  .auth-error { padding: 8px 12px; font-size: 13px; }
  .auth-submit { height: clamp(46px, 6.4dvh, 52px); margin-top: 2px; }
  .auth-foot { display: none; }
}
/* celular baixinho (ex.: iPhone SE, ou com o teclado aberto): some o texto de apoio */
@media (max-width: 520px) and (max-height: 640px) {
  .auth-card-top p, .auth-kicker { display: none; }
  .auth-card h2 { margin-top: 0; }
}

/* ── assets/css/pages/foto.css ── */
/* LAG 3D Studio — campo de foto e editor de foto (core/foto.js) */
.pf-field { display: flex; align-items: center; gap: 16px; }
.pf-avatar { width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-2); }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-avatar .avatar { width: 72px !important; height: 72px !important; }
.pf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.pf-actions small { flex-basis: 100%; font-size: 12px; }
.pf-actions [hidden] { display: none; }

.pe-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: start; }
.pe-stage { display: flex; flex-direction: column; gap: 8px; }
.pe-canvas { width: 100%; max-width: 420px; aspect-ratio: 1; display: block; margin: 0 auto; border-radius: 14px; cursor: grab; touch-action: none; outline: 0;
  background: repeating-conic-gradient(var(--surface-3) 0 25%, var(--surface-2) 0 50%) 0 0 / 20px 20px; border: 1px solid var(--line-2); }
.pe-canvas:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 35%, transparent); }
.pe-canvas.dragging { cursor: grabbing; }
.pe-hint { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; text-align: center; }
.pe-side { display: flex; flex-direction: column; gap: 18px; }
.pe-group { display: flex; flex-direction: column; gap: 8px; }
.pe-group > label { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.pe-zoom { display: flex; align-items: center; gap: 8px; }
.pe-zoom input { flex: 1; min-width: 0; accent-color: var(--purple); }
.pe-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pe-tools .btn { justify-content: center; }
.pe-previews { display: flex; align-items: flex-end; gap: 12px; }
.pe-previews img { border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); object-fit: cover; }
.pe-previews img:not([src]) { visibility: hidden; }
.pe-p-lg { width: 88px; height: 88px; } .pe-p-md { width: 48px; height: 48px; } .pe-p-sm { width: 28px; height: 28px; }

@media (max-width: 720px) {
  .pe-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pf-field { align-items: flex-start; }
}

/* foto clicável na tabela da equipe */
.cfg-photo-btn { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; line-height: 0; }
.cfg-photo-btn img.avatar { object-fit: cover; }
.cfg-photo-btn i { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-2); color: #fff; border: 2px solid var(--surface); opacity: 0; transition: opacity .15s; }
.cfg-photo-btn:hover i, .cfg-photo-btn:focus-visible i { opacity: 1; }
@media (hover: none) { .cfg-photo-btn i { opacity: 1; } }

/* fotos da equipe nos avatares */
img.avatar { object-fit: cover; flex: none; }

/* editor no corte quadrado (foto de produto): prévias quadradas */
.pe-quadrado .pe-previews img { border-radius: 10px; }
