/* Hoja de estilos compartida — software de gestión, no landing (fable-p3-spec §2).
   Sin degradados, sin sombras difusas, radios ≤ 6 px, números tabulares. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #F3F2EE; color: #1E2321;
  font: 14px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[hidden] { display: none !important; }
a { color: #1F5A80; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid #C9A227; outline-offset: 1px;
}
h1, h2, h3 { font-weight: 600; line-height: 1.25; margin: 0; }
h2 { font-size: 15px; margin: 20px 0 8px; }
h3 { font-size: 13px; margin: 18px 0 6px; text-transform: uppercase; letter-spacing: .04em; color: #4A524E; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.break-all { word-break: break-all; }

/* ---------- Armazón ---------- */
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: 48px auto; min-height: 100vh; }
.side {
  grid-row: 1 / span 2; width: 220px; background: #141917; color: #D9DDD8;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 0 0 16px;
}
.side .brand { display: flex; align-items: center; height: 48px; padding: 0 16px; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 1px solid #2A302D; }
.side .grp { margin: 18px 16px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8E9792; }
.side a:not(.brand) { display: block; padding: 7px 16px 7px 14px; color: #D9DDD8; text-decoration: none; border-left: 2px solid transparent; font-size: 13.5px; }
.side a:not(.brand):hover { background: #1D2421; }
.side a.on { border-left-color: #C9A227; color: #fff; }
.top {
  height: 48px; display: flex; align-items: center; gap: 16px; padding: 0 20px;
  background: #FBFAF7; border-bottom: 1px solid #D8D5CE; position: sticky; top: 0; z-index: 5;
}
.top .brand-m { display: none; }
.top-title { font-size: 15px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-plan { margin-left: auto; font-size: 12.5px; color: #4A524E; white-space: nowrap; }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-search { height: 32px; width: 230px; padding: 0 8px; border: 1px solid #B9B5AC; border-radius: 4px; font: inherit; font-size: 13px; background: #fff; }
.lic-badge { font-size: 12px; font-weight: 600; padding: 4px 8px; border: 1px solid #D8D5CE; border-radius: 4px; background: #F3F2EE; color: #1E2321; white-space: nowrap; }
.lic-badge.active { border-color: #2F6B4F; color: #2F6B4F; background: #EEF5F1; }
.lic-badge.readonly { border-color: #A23B2A; color: #A23B2A; background: #FBEDEA; }
.main { min-width: 0; }
.bottom { display: none; }
.foot { padding: 16px 20px 24px; color: #6A726E; font-size: 12px; border-top: 1px solid #D8D5CE; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Vista dividida ---------- */
.split { display: grid; grid-template-columns: minmax(560px, 1fr) minmax(480px, 1fr); align-items: start; border-bottom: 1px solid #D8D5CE; }
.pane { padding: 16px 20px 24px; background: #F3F2EE; min-width: 0; }
.desk { background: #EFECE6; border-left: 1px solid #D8D5CE; padding: 20px; min-height: calc(100vh - 48px); position: sticky; top: 48px; min-width: 0; }
.intro-s { margin: 0 0 4px; color: #3A413E; max-width: 70ch; }
.page-pad { padding: 8px 20px 24px; max-width: 980px; }

/* ---------- Tablas densas ---------- */
.grid { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border: 1px solid #D8D5CE; }
.grid th, .grid td { height: 32px; padding: 0 8px; border-bottom: 1px solid #D8D5CE; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.grid thead th { position: sticky; top: 0; background: #F7F6F2; font-weight: 600; font-size: 12px; color: #4A524E; z-index: 1; }
.grid th.num, .grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.grid tbody th { font-weight: 500; }
.tbl-wrap { max-width: 100%; overflow-x: auto; }
.st-table tbody tr.sel { background: #F0EFEA; }
/* P3-R5-B7: en escritorio la tabla de contratos no parte palabras ni cifras; si no cabe, desplaza .tbl-wrap. */
@media (min-width: 901px) {
  .st-table th, .st-table td { word-break: normal; overflow-wrap: break-word; }
  .st-table th, .st-table td.num, .st-table td.mono, .st-table .pill-st { overflow-wrap: normal; white-space: nowrap; }
}
.st-table tbody tr:hover { background: #F7F6F2; cursor: pointer; }
.lines td { padding: 0 4px; }
.lines input { width: 100%; height: 26px; border: 1px solid transparent; background: transparent; font: inherit; padding: 0 4px; border-radius: 4px; }
.lines td.num input { text-align: right; font-variant-numeric: tabular-nums; }
.lines input:hover, .lines input:focus { border-color: #B9B5AC; background: #fff; }
.lines th:first-child { width: 36%; }
.lines td:last-child { width: 36px; text-align: center; }
.btn-x { width: 26px; height: 26px; border: 1px solid transparent; background: transparent; border-radius: 4px; color: #6A726E; font-size: 16px; line-height: 1; cursor: pointer; }
.btn-x:hover { border-color: #D8D5CE; color: #A23B2A; }
[aria-invalid="true"] { border-color: #A23B2A !important; background: #FBEDEA !important; }

/* ---------- Estudio P3.3 ---------- */
/* P3-M11: un nombre largo sin espacios no ensancha la página a 390 px. */
#st-ws-ident { overflow-wrap: anywhere; word-break: break-word; min-width: 0; max-width: 100%; }
/* P3-M13: llave emitida visible, copiable y recuperable por correo de compra. */
.rec-box { margin-top: 12px; padding: 8px 10px; border: 1px solid #D8D5CE; border-radius: 4px; background: #FBFAF7; }
.rec-box summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: #1E2321; }
.rec-box form { margin-top: 8px; }
.key-box { display: grid; gap: 6px; padding: 8px 10px; margin-bottom: 10px; border: 1px solid #C9B98A; background: #FBF7EA; border-radius: 4px; }
.key-box label { font-size: 13px; font-weight: 600; }
.key-row { display: flex; gap: 8px; min-width: 0; }
.key-row input { flex: 1 1 auto; min-width: 0; min-height: 44px; }
.key-row .btn { flex: 0 0 auto; }
@media (max-width: 560px) { .key-row { flex-wrap: wrap; } .key-row input { flex-basis: 100%; } .key-row .btn { flex: 1 1 auto; } }
.ws-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: #FBFAF7; border: 1px solid #D8D5CE; border-radius: 4px; margin-bottom: 10px; }
.tab-strip { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #D8D5CE; padding-bottom: 8px; margin-bottom: 10px; }
.tab-btn { height: 32px; padding: 0 10px; border: 1px solid #D8D5CE; border-radius: 4px; background: #FBFAF7; color: #3A413E; font: inherit; font-size: 13px; cursor: pointer; }
.tab-btn.on { background: #1E2321; border-color: #1E2321; color: #fff; font-weight: 600; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 8px; }
.sec-head h2 { margin: 0; }
.actions.compact { margin-top: 0; }
.fld-end { display: flex; align-items: flex-end; }
.banner { padding: 10px 12px; border: 1px solid #D8D5CE; border-left-width: 3px; border-radius: 4px; background: #fff; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.banner.warn { border-left-color: #A23B2A; color: #A23B2A; background: #FBEDEA; }
.banner.info { border-left-color: #2F6B4F; color: #1E2321; }
.pill-st { font-weight: 600; font-size: 12px; }
.pill-healthy { color: #2F6B4F; }
.pill-warning { color: #9A6B12; }
.pill-loss { color: #A23B2A; }
.sig-canvas { display: block; width: 100%; max-width: 520px; height: 140px; background: #FBFAF7; border: 1px solid #9C988F; border-radius: 4px; touch-action: none; margin-top: 6px; cursor: crosshair; }
.tk-checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.tk-check-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; align-items: center; padding: 6px 8px; background: #FBFAF7; border: 1px solid #D8D5CE; border-radius: 4px; }
.chk-points { display: flex; flex-direction: column; gap: 6px; }
.chk-edit-row { display: grid; grid-template-columns: minmax(0, 1fr) 128px 32px; gap: 6px; align-items: center; padding: 4px 6px; background: #fff; border: 1px solid #D8D5CE; border-radius: 4px; }
.chk-edit-row input { width: 100%; height: 30px; padding: 0 8px; border: 1px solid #B9B5AC; border-radius: 4px; font: inherit; font-size: 13.5px; background: #fff; color: inherit; }
.chk-new-in { flex: 1 1 220px; height: 32px; padding: 0 8px; border: 1px solid #B9B5AC; border-radius: 4px; font: inherit; font-size: 13.5px; background: #fff; }
.chk-pv-list { margin: 0 0 14px; padding-left: 20px; font-size: 13.5px; }
.chk-pv-list li { padding: 5px 0; border-bottom: 1px solid #ECEAE4; }
.pm-sched-list { list-style: none; margin: 0 0 12px; padding: 0; font-size: 13.5px; }
.pm-sched-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #ECEAE4; }
.wo-part-form .wo-qty-in { width: 72px; height: 32px; padding: 0 8px; border: 1px solid #B9B5AC; border-radius: 4px; font: inherit; font-variant-numeric: tabular-nums; background: #fff; }
.chk.chk-inline { margin: 0; }
.billing-box { margin-top: 14px; }
.link-box { padding: 8px 10px; background: #FBFAF7; border: 1px solid #D8D5CE; border-radius: 4px; margin: 10px 0; }

/* ---------- Regla #3: panel ejecutivo SVG, logotipo, foto, importador y cuenta ---------- */
.exec { margin: 0 0 14px; padding: 12px; background: #fff; border: 1px solid #D8D5CE; border-radius: 4px; min-width: 0; }
.exec h2 { margin: 0 0 10px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.kpi { min-width: 0; padding: 8px 10px; background: #FBFAF7; border: 1px solid #E4E1DA; border-left: 3px solid #1F5A80; border-radius: 4px; }
.kpi.kpi-ok { border-left-color: #2F6B4F; }
.kpi.kpi-warn { border-left-color: #9A6B12; }
.kpi.kpi-loss { border-left-color: #A23B2A; }
.kpi-l { display: block; font-size: 11.5px; line-height: 1.3; color: #4A524E; text-transform: uppercase; letter-spacing: .04em; }
.kpi-v { display: block; margin-top: 2px; font-size: 18px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.exec-charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.chart { margin: 0; min-width: 0; }
.chart figcaption { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: #3A413E; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; color: #3A413E; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.sw-labor, .c-labor { background: #1F5A80; fill: #1F5A80; }
.sw-travel, .c-travel { background: #C9A227; fill: #C9A227; }
.sw-parts, .c-parts { background: #7A8F84; fill: #7A8F84; }
.sw-profit, .c-profit { background: #2F6B4F; fill: #2F6B4F; }
.sw-fee, .c-fee { background: #1E2321; fill: #1E2321; }
.sw-target { background: #fff; border: 2px solid #1E2321; }
.sw-planned, .c-planned { background: #1F5A80; fill: #1F5A80; }
.sw-logged, .c-logged { background: #C9A227; fill: #C9A227; }
.c-healthy { fill: #2F6B4F; }
.c-warning { fill: #9A6B12; }
.c-loss { fill: #A23B2A; }
.c-track { fill: #F0EFEA; }
.c-axis { stroke: #B9B5AC; stroke-width: 1; }
.c-target { stroke: #1E2321; stroke-width: 2; }
.c-txt { fill: #3A413E; font-size: 11.5px; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.c-val { fill: #1E2321; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.logo-box { margin: 0 0 6px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.logo-frame { display: flex; align-items: center; justify-content: center; width: 180px; height: 72px; padding: 6px; background: #fff; border: 1px dashed #B9B5AC; border-radius: 4px; overflow: hidden; }
.logo-frame img { display: block; max-width: 100%; max-height: 100%; }
.photo-box { margin: 10px 0 4px; }
.svc-photo { display: block; max-width: 100%; height: auto; max-height: 280px; margin: 6px 0 8px; background: #fff; border: 1px solid #D8D5CE; border-radius: 4px; }
.imp-box { margin-top: 18px; padding-top: 4px; border-top: 1px solid #D8D5CE; }
.imp-lbl { display: block; font-size: 13px; color: #3A413E; margin-top: 6px; }
.imp-table td.imp-use { width: 56px; }
.imp-table input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: #1E2321; }
.imp-tag { display: block; font-size: 11px; line-height: 1.2; color: #6A726E; white-space: nowrap; }
.acc-box { margin-top: 16px; padding: 10px 12px; background: #fff; border: 1px solid #D8D5CE; border-radius: 4px; }
.acc-box h3 { margin-top: 0; }
.acc-actions { gap: 8px; flex-wrap: wrap; }
.acc-who { margin: 0 0 8px; font-size: 13.5px; overflow-wrap: anywhere; }
.acc-sub { margin: 10px 0 4px; font-size: 12.5px; font-weight: 600; color: #4A524E; }
.acc-ws-list { list-style: none; margin: 0 0 6px; padding: 0; }
.acc-ws-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #ECEAE4; font-size: 13.5px; min-width: 0; }
.acc-ws-list li span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Formularios ---------- */
.add { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.add label { font-size: 13px; color: #4A524E; }
select, .fld input, textarea {
  font: inherit; font-size: 14px; border: 1px solid #B9B5AC; border-radius: 4px; background: #fff; color: inherit;
}
select { height: 32px; padding: 0 6px; max-width: 100%; width: 100%; }
.add select { width: auto; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.fld label { display: block; font-size: 13px; color: #3A413E; margin-bottom: 3px; }
.fld .ctl { display: flex; align-items: center; }
.fld input { width: 100%; height: 32px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.fld .sfx { margin-left: 6px; font-size: 12.5px; color: #6A726E; white-space: nowrap; }
.hint { margin: 3px 0 0; font-size: 12px; color: #6A726E; display: block; }
textarea { width: 100%; padding: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; resize: vertical; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px;
  border: 1px solid #9C988F; border-radius: 4px; background: #fff; color: #1E2321; font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: none; position: relative;
}
.btn:hover { background: #F7F6F2; }
.btn.primary { background: #1E2321; border-color: #1E2321; color: #fff; }
.btn.primary:hover { background: #333B37; }
.btn.file { overflow: hidden; }
.file-in { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); opacity: 0; cursor: pointer; }
.chk { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13.5px; }
.chk input { width: 16px; height: 16px; margin: 0; accent-color: #1E2321; }
.err { color: #A23B2A; font-size: 13px; margin: 10px 0 0; }
.err-list { margin: 10px 0 0; padding-left: 18px; color: #A23B2A; font-size: 13px; }
.err-list:empty { display: none; }
.ok { color: #2F6B4F; font-size: 13px; margin: 8px 0 0; }
.count { font-size: 13px; color: #4A524E; }

/* ---------- Documento sobre la mesa ---------- */
.sheet { background: #fff; border: 1px solid #D8D5CE; border-radius: 2px; padding: 28px 32px; max-width: 640px; margin: 0 auto; overflow-wrap: anywhere; }
.sheet-h { border-bottom: 1px solid #1E2321; padding-bottom: 10px; margin-bottom: 14px; }
.sheet-brand { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #6A726E; }
.sheet-h h2 { margin: 0; font-size: 18px; }
.sheet-sub { margin: 4px 0 0; font-size: 12.5px; color: #4A524E; }
.status { margin: 0 0 12px; padding: 8px 10px; border-left: 3px solid currentColor; font-weight: 600; font-size: 14px; background: #fff; }
.st-healthy { color: #2F6B4F; }
.st-warning { color: #9A6B12; }
.st-loss { color: #A23B2A; }
.kv th { width: 62%; }
.kv tr[data-row="profit"] td, .kv tr[data-row="margin"] td, .kv tr[data-row="minFee"] td { font-weight: 600; }
.kv3 td.num:last-child { width: 72px; color: #4A524E; }
.traps { margin: 0; padding-left: 18px; font-size: 13.5px; }
.traps li { margin: 4px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- Hoja de etiquetas ---------- */
.desk-bar h2 { margin: 0 0 8px; }
.desk-bar .actions { margin: 0 0 12px; }
.a4 {
  list-style: none; margin: 0 auto; padding: 0.17% 0; background: #fff; border: 1px solid #D8D5CE;
  width: 100%; max-width: 560px; aspect-ratio: 210 / 297; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); overflow: hidden;
}
.lbl { display: flex; align-items: center; gap: 4%; padding: 3% 4%; border: 1px dashed #E4E1DA; min-width: 0; min-height: 0; overflow: hidden; }
.lbl svg { height: 92%; width: auto; aspect-ratio: 1; flex: none; }
.lbl-t { display: flex; flex-direction: column; min-width: 0; font-size: 7.5px; line-height: 1.25; }
.lbl-t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbl-t .lc { font-weight: 700; font-size: 6.5px; }
.lbl-t .ln { font-weight: 700; font-size: 8.5px; }
.lbl-t .lp { font-weight: 700; }
.lbl-t .lk { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 5.5px; color: #4A524E; margin-top: 2px; }

/* ---------- Contenido ---------- */
.intro { padding: 12px 0 4px; max-width: 760px; }
.h-big { font-size: 22px; margin: 8px 0 8px; }
.lead { font-size: 15px; color: #2B312E; margin: 0 0 8px; }
.note { font-size: 13px; color: #4A524E; margin: 8px 0 0; }
.prose { max-width: 760px; }
.prose ul { padding-left: 18px; margin: 0; }
.prose li { margin: 4px 0; }
.tools-table th { width: 38%; }
.tools-table a { font-weight: 600; }
.plans th { width: 22%; }
.plans td.num { width: 30%; text-align: left; }
.faq details { border-bottom: 1px solid #D8D5CE; }
.faq summary { cursor: pointer; padding: 9px 0; font-weight: 600; }
.faq details p { margin: 0 0 10px; color: #2B312E; }
.vertical > section, .vertical > nav { margin-top: 18px; }
.vert-nav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; border-top: 1px solid #D8D5CE; }
.vert-nav li { margin: 0; border-bottom: 1px solid #D8D5CE; }
.vert-nav a { display: block; padding: 7px 0; color: #1E2321; font-size: 13.5px; }
.scan { max-width: 520px; margin-top: 16px; }
.scan h2 { font-size: 18px; margin: 0 0 8px; }
.tech-pad { max-width: 680px; margin: 0 auto; }

/* ---------- Móvil (técnico en campo) ---------- */
@media (max-width: 900px) {
  .shell { display: block; padding-bottom: 64px; }
  .side { display: none; }
  .top { padding: 0 12px; gap: 10px; }
  .top .brand-m { display: inline-flex; flex: none; align-items: center; min-height: 44px; min-width: 44px; font-weight: 700; color: #1E2321; text-decoration: none; }
  .top-title { font-size: 14px; min-width: 0; }
  .top-plan { display: none; }
  .top-search, .lic-badge { display: none; }
  .split { display: block; }
  .pane { padding: 12px; }
  .desk { position: static; min-height: 0; border-left: 0; border-top: 1px solid #D8D5CE; padding: 12px; }
  .sheet { padding: 16px 14px; }
  .page-pad { padding: 8px 12px 20px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .fld input, select, .btn, .tab-btn { height: 44px; min-height: 44px; font-size: 16px; }
  .btn, .tab-btn { min-width: 44px; padding: 0 14px; }
  textarea { font-size: 16px; }
  .chk { min-height: 44px; }
  .chk input {
    appearance: none; -webkit-appearance: none; width: 44px; height: 44px; flex: none; border-radius: 4px; margin: 0;
    background: #F3F2EE; box-shadow: inset 0 0 0 11px #F3F2EE, inset 0 0 0 12px #6A726E;
  }
  .chk input:checked { box-shadow: inset 0 0 0 11px #F3F2EE, inset 0 0 0 22px #1E2321; }
  .lines thead, .st-table thead { display: none; }
  .lines, .lines tbody, .st-table, .st-table tbody { display: block; border: 0; background: transparent; }
  .lines tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 44px; gap: 6px; padding: 8px; margin-bottom: 8px; background: #fff; border: 1px solid #D8D5CE; border-radius: 4px; }
  .lines td { height: auto; border: 0; padding: 0; }
  .lines td:first-child { grid-column: 1 / -1; }
  .lines td[data-cap]::before { content: attr(data-cap); display: block; font-size: 11.5px; line-height: 1.2; color: #4A524E; text-align: left; margin-bottom: 3px; min-height: 28px; }
  .lines td:last-child { align-self: end; grid-column: 5; grid-row: 2; width: auto; }
  .lines input { height: 44px; font-size: 16px; border-color: #D8D5CE; background: #FBFAF7; }
  .st-table tr { display: block; padding: 8px 10px; margin-bottom: 8px; background: #fff; border: 1px solid #D8D5CE; border-radius: 4px; }
  .st-table td { display: flex; justify-content: space-between; align-items: center; height: auto; border: 0; padding: 2px 0; text-align: left; }
  .st-table td a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .btn-x { width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex: none; border-color: #D8D5CE; }
  .wo-part-form .wo-qty-in { height: 44px; min-height: 44px; font-size: 16px; width: 88px; }
  .grid thead th { top: 0; }
  .tools-table tr, .plans tr { display: block; padding: 6px 0; border-bottom: 1px solid #D8D5CE; }
  .tools-table th, .tools-table td, .plans th, .plans td { display: block; height: auto; border: 0; width: auto !important; padding: 2px 10px; }
  .tools-table a { display: flex; align-items: center; min-height: 44px; }
  .faq summary, .rec-box summary { min-height: 44px; display: flex; align-items: center; }
  .scan a, .page-pad > p > a, .foot-links a, .link-box a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .vert-nav ul { grid-template-columns: minmax(0, 1fr); }
  .vert-nav a { display: flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-v { font-size: 16px; }
  .logo-frame { width: 100%; }
  .imp-table input[type=checkbox] { width: 44px; height: 44px; }
  .imp-table td.imp-use { width: auto; }
  .tk-check-row { grid-template-columns: minmax(0, 1fr); }
  .chk-edit-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 6px; padding: 8px; }
  .chk-edit-row input { grid-column: 1 / -1; height: 44px; min-height: 44px; font-size: 16px; }
  .chk-new-in { height: 44px; min-height: 44px; font-size: 16px; }
  .bottom {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: #141917; border-top: 1px solid #2A302D;
  }
  .bottom a, .bottom .b-tab {
    display: flex; align-items: center; justify-content: center; min-height: 56px; min-width: 44px;
    color: #D9DDD8; background: transparent; border: 0; border-top: 2px solid transparent; border-radius: 0;
    text-decoration: none; font: inherit; font-size: 13px; cursor: pointer;
  }
  .bottom a.on, .bottom .b-tab.on { border-top-color: #C9A227; color: #fff; }
  .a4 { max-width: 100%; }
  .lbl-t { font-size: 5px; }
  .lbl-t .ln { font-size: 6px; }
  .lbl-t .lc, .lbl-t .lk { font-size: 4.5px; }
}

@media print {
  .side, .top, .bottom, .pane, .page-pad, .foot, .actions, .desk-bar { display: none !important; }
  .shell { display: block; }
  .desk { position: static; border: 0; padding: 0; background: #fff; }
  .sheet { border: 0; max-width: none; }
}
