/* Stile dell’app giornaliere di Desmas: bianco e arancio, come il logo. */
:root {
  --brand: #E8590C;
  --brand-ink: #FFFFFF;
  --brand-soft: #FFF0E5;
  --bg: #FAF8F6;
  --surface: #FFFFFF;
  --surface-2: #F1F3F6;
  --line: #E3E6EB;
  --text: #0F172A;
  --muted: #64748B;
  --faint: #94A3B8;
  --ok: #15803D;
  --warn: #B45309;
  --danger: #B91C1C;
  --info: #C2410C;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); }
body { color: var(--text); font: 14.5px/1.45 var(--font); -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden; }
button, select { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
svg.i { width: var(--s, 18px); height: var(--s, 18px); flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; }
.tnum { font-variant-numeric: tabular-nums; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 14.5px; font-weight: 600; }
.label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec { margin-top: 22px; }
.sec > .label { margin-bottom: 10px; }
.fade-in { animation: fadeIn 0.25s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } }

/* struttura */
.shell { min-height: 100dvh; padding-bottom: 76px; }
.main { max-width: 1240px; margin: 0 auto; padding: 18px 16px 40px; }
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.top h1 { flex: 1; min-width: 0; }
.logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 15px; letter-spacing: 0.02em; flex: none; }
.logo.lg { width: 64px; height: 64px; font-size: 22px; border-radius: 14px; }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav > div { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; max-width: 640px; margin: 0 auto; }
.nav .brand { display: none; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 10px; font-size: 10px; white-space: nowrap; font-weight: 600; color: var(--faint); }
.tab.on { color: var(--brand); }
.tab .new { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; margin-top: -4px; }

/* elementi */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 11px; font-weight: 600; font-size: 14px; background: var(--brand); color: var(--brand-ink); white-space: nowrap; transition: filter 0.15s, transform 0.1s; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn.wa { background: #25D366; color: #06210F; }
.btn.danger { background: var(--surface); color: var(--danger); border: 1px solid #F1C9C9; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: color-mix(in srgb, var(--c, var(--muted)) 12%, white); color: var(--c, var(--muted)); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--text); font-size: 13.5px; }
.notice > .i { color: var(--brand); margin-top: 1px; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }

/* form */
.field { display: block; }
.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.input { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 11px; outline: none; font-size: 14.5px; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.input { height: auto; min-height: 64px; padding: 9px 11px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; background: var(--surface) 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='%2364748B' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; padding-right: 30px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.form > * + * { margin-top: 10px; }
.search { position: relative; flex: 1; min-width: 200px; }
.search .i { position: absolute; left: 11px; top: 11px; color: var(--faint); }
.search .input { padding-left: 36px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

/* dashboard */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.kpi .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi .v { font-size: 24px; font-weight: 800; margin-top: 4px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 18px 0 12px; }

/* login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: linear-gradient(160deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 55%, #0F172A) 100%); }
.login .card { width: 100%; max-width: 360px; text-align: center; padding: 28px 24px; }
.pin { display: flex; justify-content: center; gap: 10px; margin: 18px 0; }
.pin span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--faint); }
.pin span.f { background: var(--brand); border-color: var(--brand); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keys button { height: 54px; border-radius: 12px; background: var(--surface-2); font-size: 20px; font-weight: 600; }
.keys button:active { background: var(--line); }

/* liste semplici */
.lrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
.lrow > div { flex: 1; min-width: 0; }
.lrow small { display: block; color: var(--muted); font-size: 12.5px; }
.lrow .p { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; flex: none; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 10px; border: 3px solid transparent; }
.swatch.on { border-color: var(--text); }

/* whatsapp */
.wa { border-radius: 14px; overflow: hidden; background: #ECE5DD; padding: 12px; }
.wa-msg { margin-left: auto; max-width: 92%; background: #D9FDD3; color: #111B21; padding: 8px 10px; border-radius: 10px 0 10px 10px; font-size: 13.5px; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }

/* sheet, toast */
.backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 50; opacity: 0; transition: opacity 0.2s; }
.backdrop.show { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 560px; margin: 0 auto; background: var(--surface); border-radius: 20px 20px 0 0; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); max-height: 92dvh; overflow-y: auto; transform: translateY(100%); transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
.sheet.show { transform: none; }
.grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 + p { margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 12px); z-index: 60; background: #0F172A; color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 500; opacity: 0; transition: 0.25s; max-width: calc(100% - 32px); width: max-content; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* giornaliere */
.mnav { display: inline-flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.mnav b { min-width: 132px; text-align: center; font-size: 14px; }
.notice.warn { background: #FEF3C7; }
.notice.warn > .i { color: var(--warn); }
.ot { color: var(--warn); }
.list { padding: 0; overflow: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.mk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font-weight: 800; font-size: 13px; font-style: normal; background: var(--surface); border: 1px dashed var(--line); color: var(--faint); }
.mk.I { background: #DCFCE7; border: 1px solid #86EFAC; color: #15803D; }
.mk.M { background: #FEF3C7; border: 1px solid #FCD34D; color: #B45309; }
.mk.A { background: #FEE2E2; border: 1px solid #FCA5A5; color: #B91C1C; }
.mk.T { background: #DBEAFE; border: 1px solid #93C5FD; color: #1D4ED8; }
button.mk:hover { border-color: var(--brand); }
.mgrid .mk { width: 22px; height: 25px; font-size: 12px; }
.mgrid-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mgrid { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.mgrid th, .mgrid td { padding: 4px 1px; text-align: center; border-bottom: 1px solid var(--line); }
.mgrid th { font-weight: 600; color: var(--muted); line-height: 1.1; padding-top: 8px; padding-bottom: 6px; }
.mgrid th b { display: block; color: var(--text); font-size: 12.5px; }
.mgrid th small { font-size: 10px; }
.mgrid .nm { text-align: left; padding: 6px 10px; white-space: nowrap; font-weight: 600; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.mgrid .tt { padding: 6px 10px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mgrid .we { background: #F1F5F9; }
.mgrid .hol { background: #FFE4D1; }
.mgrid tr:last-child td { border-bottom: 0; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal .wd { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--faint); }
.cd { aspect-ratio: 1 / 1.05; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.cd small { font-size: 11px; color: var(--muted); font-weight: 600; }
.cd b { font-size: 17px; min-height: 20px; line-height: 20px; }
.cd.we { background: #F1F5F9; }
.cd.hol { background: #FFE4D1; }
.cd.I { background: #DCFCE7; border-color: #86EFAC; color: #15803D; }
.cd.M { background: #FEF3C7; border-color: #FCD34D; color: #B45309; }
.cd.A { background: #FEE2E2; border-color: #FCA5A5; color: #B91C1C; }
.cd.T { background: #DBEAFE; border-color: #93C5FD; color: #1D4ED8; }
.ehead { display: none; }
.elist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.erow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; width: 100%; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.erow:last-child { border-bottom: 0; }
button.erow:hover { background: #FAFBFC; }
.erow .who { display: flex; align-items: center; gap: 10px; flex: 1 1 calc(100% - 140px); min-width: 0; }
.erow .who b { display: block; }
.erow .who small { display: block; color: var(--muted); font-size: 12.5px; }
.erow .amt { width: 120px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.erow .nums { display: none; }
.erow.foot { background: var(--surface-2); font-weight: 700; }
.pv-box { overflow: hidden; border-radius: 6px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 0 0 1px var(--line); background: #fff; margin-top: 14px; }
.pv-box .gdoc { transform-origin: top left; }

/* PDF A4 orizzontale */
.gdoc { width: 1123px; height: 794px; overflow: hidden; display: flex; flex-direction: column; padding: 30px 36px; background: #fff; color: #111827; font: 11px/1.35 var(--font); }
.gdoc .gh { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-bottom: 3px solid var(--brand); padding-bottom: 10px; }
.gdoc .gh b { display: block; font-size: 18px; }
.gdoc .gh small { color: #4B5563; font-size: 11.5px; }
.gdoc .gh .r { text-align: right; }
.gdoc .gh .r b { color: var(--brand); }
.gdoc .lbl { font-size: 9.5px; text-transform: uppercase; color: #6B7280; font-weight: 700; letter-spacing: 0.06em; }
.gdoc table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.gdoc th { background: var(--brand); color: #fff; font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 6px; text-align: left; font-weight: 700; }
.gdoc td { padding: 5px 6px; border-bottom: 1px solid #E5E7EB; }
.gdoc .r { text-align: right; }
.gdoc tfoot td { font-weight: 800; border-top: 2px solid #111827; border-bottom: 0; }
.gdoc table.days { table-layout: fixed; }
.gdoc table.days th, .gdoc table.days td { padding: 3px 0; font-size: 9.5px; }
.gdoc table.days th:first-child, .gdoc table.days td:first-child { padding-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gdoc .c { text-align: center; }
.gdoc th.we, .gdoc th.hol { background: #9A3412; }
.gdoc td.we { background: #F3F4F6; }
.gdoc td.hol { background: #FFE4D1; }
.gdoc .disc { margin-top: auto; padding-top: 10px; color: #6B7280; font-size: 9px; text-align: center; }

.calc .cl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.calc .cl small { display: block; color: var(--muted); font-size: 12px; }
.calc .cl b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc .grand { border-top: 2px solid var(--text); border-bottom: 1px dashed var(--line); margin-top: 4px; padding-top: 10px; font-size: 16px; font-weight: 800; }
.calc .bal { color: var(--brand); font-size: 18px; font-weight: 800; border-bottom: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; cursor: pointer; }
.check small { display: block; color: var(--muted); font-size: 12.5px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); margin-top: 2px; flex: none; }
.gdoc .ebody { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; margin-top: 16px; }
.gdoc .ecal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 8px; }
.gdoc .ecal .wd { text-align: center; font-size: 9.5px; font-weight: 700; color: #6B7280; text-transform: uppercase; }
.gdoc .ed { height: 72px; border: 1px solid #E5E7EB; border-radius: 6px; display: flex; flex-direction: column; padding: 5px 7px; }
.gdoc .ed small { font-size: 10px; color: #6B7280; font-weight: 600; }
.gdoc .ed b { flex: 1; display: grid; place-items: center; font-size: 22px; }
.gdoc .ed.we { background: #F3F4F6; }
.gdoc .ed.hol { background: #FFE4D1; }
.gdoc .ed.I b { color: #15803D; }
.gdoc .ed.M b { color: #B45309; }
.gdoc .ed.A b { color: #B91C1C; }
.gdoc .ed.T b { color: #1D4ED8; }
.gdoc .ename { font-size: 22px; font-weight: 800; margin: 2px 0 10px; }
.gdoc .calc .cl { border-bottom-color: #E5E7EB; font-size: 12.5px; padding: 6px 0; }
.gdoc .calc .cl small { color: #6B7280; font-size: 10.5px; }
.gdoc .calc .grand { border-top-color: #111827; font-size: 15px; }
.gdoc .calc .bal { font-size: 20px; }
.gdoc .signs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 64px; }
.gdoc .signs div { border-top: 1px solid #9CA3AF; padding-top: 6px; font-size: 10px; color: #4B5563; }
.pv-box + .pv-box { margin-top: 12px; }

/* desktop */
.d-only { display: none; }
@media (min-width: 980px) {
  .m-only { display: none !important; }
  .d-only { display: block; }
  .shell { padding: 0 0 0 232px; }
  .main { padding: 26px 36px 48px; }
  .nav { top: 0; bottom: 0; right: auto; width: 232px; border-top: 0; border-right: 1px solid var(--line); padding: 20px 12px; }
  .nav > div { display: flex; flex-direction: column; gap: 2px; max-width: none; }
  .nav .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
  .nav .brand b { display: block; font-size: 14px; line-height: 1.2; }
  .nav .brand small { color: var(--muted); font-size: 12px; }
  .tab { flex-direction: row; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--muted); justify-content: flex-start; }
  .tab:hover { background: var(--surface-2); }
  .tab.on { background: var(--brand-soft); color: var(--brand); }
  .tab .new { width: auto; height: auto; background: none; color: inherit; margin: 0; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .sheet { left: auto; right: 0; top: 0; width: 520px; max-width: none; margin: 0; max-height: none; height: 100dvh; border-radius: 20px 0 0 20px; transform: translateX(100%); padding: 26px; }
  .sheet .grab { display: none; }
  .toast { bottom: 28px; }
  .ehead { display: grid; padding: 10px 14px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface-2); }
  .erow, .ehead { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) 130px; gap: 12px; }
  .ehead span:not(:first-child) { text-align: right; }
  .erow .who small { display: none; }
  .erow .amt { order: 5; width: auto; }
  .erow .nums { display: contents; }
  .erow .n { font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
  .sheet.wide { width: min(1000px, 94vw); }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
}
@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; left: 0; top: 0; }
  .print-area .gdoc { transform: none !important; }
  .print-area .gdoc + .gdoc { break-before: page; }
  @page { size: A4 landscape; margin: 0; }
}

/* ---------- app vera: PIN mostrato, mese chiuso, attesa del server ---------- */
.pinshow { display: flex; justify-content: center; gap: 8px; margin: 18px 0; }
.pinshow span { width: 44px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mk[disabled], .cd[disabled] { cursor: default; opacity: 0.85; }
body.busy [data-act] { pointer-events: none; opacity: 0.7; }
body.busy { cursor: progress; }
/* logo dell'azienda al posto delle iniziali */
img.logo { background: none; object-fit: contain; border-radius: 0; }
img.logo.lg { width: 96px; height: 88px; }
.gdoc .gh .brandrow { display: flex; align-items: center; gap: 12px; }
.gdoc .gh .brandrow img { height: 52px; width: auto; }
.gdoc .econ { color: #4B5563; font-size: 12px; margin: -4px 0 8px; }

/* rapportini di cantiere */
.wlist { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.wrow { display: grid; grid-template-columns: 1fr 64px 76px; gap: 6px; align-items: center; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.wrow:last-child { border-bottom: 0; }
.wrow label { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.wrow label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrow .input { padding: 6px 8px; min-height: 0; height: 34px; font-size: 14px; }
.ritem.lav { grid-template-columns: 1fr auto auto 110px; align-items: center; }
.ritem { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.gdoc .rinfo { display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 24px; margin: 18px 0 8px; }
.gdoc .rinfo b { display: block; font-size: 17px; margin-top: 2px; }
.gdoc table.rep td { font-size: 12px; padding: 6px 8px; vertical-align: top; }
.gdoc table.rep + table.rep { margin-top: 14px; }
.gdoc table.rep tfoot td { font-size: 14px; }
