/*
 * Payslip Studio: the tool's own components, styled in the site's design language (3 Nov 2026, on the UltraCompress Pro
 * template; the first part of this file is the shared block of QR Generator and Biodata Maker). Base: /libs/site-pages.css
 * (tokens, Inter and Space Grotesk, buttons, theme toggle, focus rings) and /libs/shared-nav.css (the site's header and
 * footer). The payslip itself is drawn by the script as a picture of the page, in fixed paper colours in both themes, in
 * the Arimo font kept in fonts/ (with its licence). This file holds the toolbar, the tabs, the form, the menus, the Month,
 * Company and Design views, the preview, the windows, the print layout and the information sections. Light is the default;
 * dark applies when <html> has no data-theme.
 */

/* The payslip's own font: the same files the PDF embeds, so the page, the picture and the PDF match. */
@font-face { font-family: "PS Arimo"; src: url("fonts/arimo-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "PS Arimo"; src: url("fonts/arimo-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: block; }

/* ----- Tokens the tool adds ----- */
:root {
    --surface: #ffffff;
    --surface-2: #f3f4f8;
    --ring: rgba(139, 92, 246, 0.18);
    --app-max: 1600px;
    --radius-lg: 16px;
    --line: rgba(0, 0, 0, 0.1);
    --line-strong: rgba(0, 0, 0, 0.24);
    --ok: #166534;
    --ok-soft: rgba(22, 101, 52, 0.09);
    --bad: #b91c1c;
    --bad-soft: rgba(185, 28, 28, 0.08);
    --warn: #92400e;
    --warn-soft: rgba(217, 119, 6, 0.1);
    --stage: #f3f4f8;
}
:root:not([data-theme="light"]) {
    --surface: #14141f;
    --surface-2: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.26);
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, 0.1);
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, 0.1);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.1);
    --stage: #1c1c2b;
}

/* ----- Page: full width, the page provides the side space ----- */
.container.app-container { max-width: calc(var(--app-max) + 2 * var(--content-gutter)); margin-top: 16px; }
@media (min-width: 640px) { .container.app-container { margin-top: 24px; } }

/* ----- The site header is the first thing on the page and stays at the top ----- */
body { padding-top: 0; }
body > header { position: sticky; top: 0; z-index: 50; }
header .site-nav { position: relative; top: auto; }
.theme-toggle { top: 90px; }
@media (max-width: 639.98px) { .theme-toggle { top: 75px; } } /* the header is 81 px tall from 640 px, 65 px below */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ----- Hero ----- */
.app-hero { margin: 0 0 2rem; text-align: center; }
.app-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text-strong); }
.app-brand img { width: 44px; height: 44px; border-radius: 12px; display: block; }
.app-hero h1 { margin-bottom: 0.75rem; }
.app-tagline { color: var(--text-2); font-size: 1.125rem; line-height: 1.6; max-width: 46rem; margin: 0 auto; }

/* ----- Small helpers ----- */
main [hidden], .dialog [hidden] { display: none !important; } /* the script hides fields that carry their own display */
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--text-2); }
.small { font-size: 0.9rem; }
.block { display: block; }
.hint { color: var(--text-3); font-size: 0.8rem; font-weight: 400; line-height: 1.45; }
.err { color: var(--bad); font-size: 0.85rem; font-weight: 600; }
.err:empty { display: none; }
.note { font-size: 0.875rem; color: var(--text-2); line-height: 1.55; max-width: 80ch; }
.note.warn { color: var(--warn); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link:hover { color: var(--link-hover); }
code { font-size: 0.85em; padding: 1px 6px; border-radius: 6px; background: var(--code-bg); color: var(--code-text); }
kbd { font-family: inherit; font-size: 0.72rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--chip-border); background: var(--chip); color: var(--text-strong); }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9999px; font-family: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2; padding: 12px 24px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn .ico { width: 17px; height: 17px; }
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text-strong); border: 1px solid var(--surface-border); padding: 11px 23px; }
.btn-secondary:hover:not(:disabled) { border-color: var(--brand); color: var(--link); transform: translateY(-2px); }
.btn-danger { background: var(--surface); color: var(--danger); border: 1px solid rgba(185, 28, 28, 0.35); padding: 11px 23px; }
.btn-danger:hover:not(:disabled) { background: var(--danger-strong); color: #fff; border-color: transparent; transform: translateY(-2px); }
.btn-sm { font-size: 0.85rem; padding: 9px 16px; }
.btn-secondary.btn-sm, .btn-danger.btn-sm { padding: 8px 15px; }
.btn-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); flex-shrink: 0; padding: 0; font-family: inherit; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.icon-btn:hover { border-color: var(--brand); color: var(--link); background: var(--surface); }
.icon-btn.del:hover { border-color: var(--danger); color: var(--danger); }
.icon-btn:focus-visible, .link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ----- Toolbar ----- */
.app-shell { margin: 0 0 3rem; scroll-margin-top: 90px; }
.app-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 1.25rem; }
.toolbar-left, .toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 10px; border-radius: 9999px; border: 1px solid var(--tint-brand-border); background: var(--tint-brand); min-width: 220px; max-width: 100%; }
.status-icon { font-size: 1.3rem; line-height: 1; }
.status-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.status-main { font-weight: 700; font-size: 0.85rem; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-sub { font-size: 0.72rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 9999px; background: var(--surface-2); max-width: 100%; }
.view-tab { padding: 8px 16px; border: 0; border-radius: 9999px; background: transparent; font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.view-tab:hover { color: var(--link); }
.view-tab.active { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }
.view-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.view[hidden] { display: none; }
.shell-hint { margin-top: 14px; }

/* ----- Cards ----- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.card-grid:empty { display: none; }
.card--wide { grid-column: span 2; }
.card--full { grid-column: 1 / -1; }
.card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); box-shadow: var(--surface-shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; margin-bottom: 0; }
.view > .card { margin-bottom: 20px; }
.card-header { padding: 14px 20px; border-bottom: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-title { margin: 0; font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-note { font-size: 0.8125rem; color: var(--text-3); }
.card-body { padding: 16px 20px 20px; flex: 1; min-width: 0; }
.card-body > * + * { margin-top: 16px; }
.form-hint { font-size: 0.8rem; color: var(--text-3); margin: 10px 0 0; line-height: 1.5; }

/* ----- Fields ----- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.label { font-weight: 600; font-size: 0.85rem; color: var(--text-strong); }
.input, .select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 14px; background: var(--field); border: 1px solid var(--field-border); border-radius: 12px; font-family: inherit; font-size: 0.95rem; color: var(--text); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.input::placeholder { color: var(--placeholder); }
.input[aria-invalid="true"] { border-color: var(--bad); }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.5; }
input[type="time"].input { color-scheme: light; width: 9em; }
:root:not([data-theme="light"]) input[type="time"].input { color-scheme: dark; }
.select { width: auto; max-width: 100%; appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; cursor: pointer; }
.select option { color: #0a0a14; background: #fff; }
.num-input { width: 7.5em; }
.num-input.wide { width: 10em; }
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.925rem; color: var(--text); padding: 4px 0; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9999px; border: 1px solid var(--chip-border); background: var(--surface); font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.seg button:hover { border-color: var(--brand); color: var(--link); transform: translateY(-1px); }
.seg button[aria-checked="true"] { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.seg button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9999px; border: 1px solid var(--chip-border); background: var(--chip); font-family: inherit; font-size: 0.8rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.chip .ico { width: 15px; height: 15px; color: var(--link); }
.chip:hover { border-color: var(--brand); color: var(--link); transform: translateY(-1px); }
.chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ----- Windows ----- */
.dialog { margin: auto; border: 1px solid var(--surface-border); border-radius: 20px; padding: 0; width: min(520px, calc(100vw - 16px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35); }
.dialog--narrow { width: min(420px, calc(100vw - 16px)); }
.dialog--wide { width: min(680px, calc(100vw - 16px)); }
.dialog::backdrop { background: rgba(10, 10, 20, 0.6); backdrop-filter: blur(6px); }
.dialog[open] { animation: pop 0.2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.dialog-head { padding: 18px 20px; border-bottom: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-title { margin: 0; font-size: 1.15rem; }
.dialog-close { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--chip-border); background: var(--chip); color: var(--text-strong); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: border-color 0.2s ease, color 0.2s ease; }
.dialog-close:hover { border-color: var(--brand); color: var(--link); }
.dialog-body { padding: 20px; overflow-y: auto; max-height: calc(100vh - 210px); display: flex; flex-direction: column; gap: 14px; }
.dialog-actions { padding: 14px 20px; border-top: 1px solid var(--surface-border); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.confirm-message { margin: 0; color: var(--text); }
.help-body h3 { margin: 6px 0 0; font-size: 1rem; }
.help-body p { margin: 0; color: var(--text-2); }

/* ----- Toasts ----- */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { pointer-events: auto; background: #0a0a14; color: #fff; border: 1px solid rgba(255, 255, 255, 0.12); border-left: 4px solid var(--brand); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); min-width: 260px; max-width: 420px; font-size: 0.875rem; font-weight: 500; overflow-wrap: anywhere; animation: slideIn 0.3s ease; transition: opacity 0.3s ease, transform 0.3s ease; }
.toast button { background: none; border: 0; padding: 0; color: #c4b5fd; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.toast.leaving { opacity: 0; transform: translateX(40px); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.toast.good { border-left-color: #4ade80; }
.toast.bad { border-left-color: #f87171; }

/* ----- Information sections ----- */
.info-section { margin: 0 0 2.5rem; }
.info-section h2 { font-size: 1.75rem; margin: 0 0 1.25rem; }
.info-section .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1rem 0 1.5rem; }
.info-stack { display: grid; gap: 12px; }
.info-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 16px; box-shadow: var(--surface-shadow); padding: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--surface-hover-shadow); }
.info-card--small { padding: 16px; box-shadow: none; }
.info-card h3 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.info-card p { color: var(--text-2); margin-bottom: 0.75rem; }
.info-card p:last-child { margin-bottom: 0; }
.step-card { position: relative; padding-top: 24px; }
.step-num { position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--gradient-brand); color: #fff; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 0.75rem; }
.step-head h3 { margin: 0; }
.step-emoji { font-size: 1.6rem; line-height: 1; }
.info-section details.info-card { padding: 0; }
.info-section details.info-card summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--text-strong); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.info-section details.info-card summary::-webkit-details-marker { display: none; }
.info-section details.info-card summary::after { content: '+'; color: var(--link); font-weight: 700; font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.info-section details.info-card[open] summary::after { content: '\2212'; }
.info-section details.info-card p { padding: 0 20px 16px; margin: 0; color: var(--text-2); }


/* ===== Payslip Studio components ===== */

/* ----- Toolbar: the company, the employee, the month; tabs and the check count ----- */
.app-toolbar .icon-btn { width: 40px; height: 40px; border-color: var(--surface-border); background: var(--surface); }
.app-toolbar .icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.app-toolbar .icon-btn:disabled:hover { border-color: var(--surface-border); color: var(--text-2); }
.who { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; min-width: 0; }
.emp-btn { max-width: 100%; }
.emp-btn .doc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16em; }
.emp-btn .chev { width: 15px; height: 15px; color: var(--text-3); }
.month-step { display: inline-flex; align-items: center; gap: 4px; }
.month-step .month-input { width: 11.5em; min-height: 40px; padding: 6px 12px; font-weight: 600; font-variant-numeric: tabular-nums; color-scheme: light; }
:root:not([data-theme="light"]) .month-step .month-input { color-scheme: dark; }
.app-shell > .view-tabs { margin: 0 0 1.25rem; display: flex; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.view-tab { display: inline-flex; align-items: center; gap: 6px; }
.tab-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 9999px; background: var(--danger-strong); color: #fff; font-size: 0.72rem; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.tab-badge[hidden] { display: none; }
@media (min-width: 1024px) { .view-tab.tab-preview { display: none; } }

/* ----- Layout: the form on the left, the payslip on the right from 1024 px; the Preview tab below; Month and Company
   use the whole width ----- */
.app-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.preview-column { min-width: 0; display: none; }
body[data-view="preview"] .preview-column { display: block; }
body[data-view="preview"] #panel { display: none; }
@media (min-width: 1024px) {
    .app-layout { grid-template-columns: minmax(400px, 1fr) minmax(0, 0.95fr); }
    .preview-column, body[data-view="preview"] .preview-column { display: block; position: sticky; top: 97px; height: calc(100vh - 113px); }
    body[data-view="preview"] #panel { display: flex; }
    .preview-card { height: 100%; }
    body[data-view="month"] .app-layout, body[data-view="company"] .app-layout { grid-template-columns: minmax(0, 1fr); }
}
body[data-view="month"] .preview-column, body[data-view="company"] .preview-column { display: none !important; }
.preview-card .card-header { flex-shrink: 0; }
.desk-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zoom { display: flex; align-items: center; gap: 4px; }
.zoom .icon-btn { width: 36px; height: 36px; border-color: var(--surface-border); background: var(--surface); }
.zoom-val { min-width: 58px; height: 36px; border: 1px solid var(--surface-border); border-radius: 10px; background: var(--surface); color: var(--text-strong); font-family: inherit; font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease; }
.zoom-val:hover { border-color: var(--brand); color: var(--link); }
.zoom-val:focus-visible, .desk-scroll:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.desk-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px 0 24px; background: var(--stage); scrollbar-width: thin; }
.pages { display: flex; flex-direction: column; align-items: center; gap: 18px; width: max-content; min-width: 100%; padding: 0 8px; }
.sheet { box-shadow: 0 1px 2px rgba(10, 10, 20, 0.12), 0 8px 28px rgba(10, 10, 20, 0.14); zoom: var(--z, 1); width: var(--pw); height: var(--ph); background: #fff; line-height: 0; }
.sheet svg { display: block; width: 100%; height: 100%; }
.panel .card-body { padding-top: 18px; }

/* ----- The form ----- */
.welcome { display: flex; flex-direction: column; gap: 14px; padding: 16px; margin-bottom: 18px; border-radius: 14px; background: var(--tint-brand); border: 1px solid var(--tint-brand-border); }
.welcome h3 { margin: 0; font-size: 1.15rem; }
.welcome p { margin: 0; }
.welcome .actions .btn { flex: 1 1 200px; }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 0; }
.empty h3 { margin: 0; font-size: 1.1rem; }
.empty p { margin: 0; }
.sec { border-bottom: 1px solid var(--line); }
.sec:first-of-type, .co-switch + .sec { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: center; gap: 6px; min-height: 56px; }
.sec-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 0; border: 0; background: transparent; text-align: left; font-family: inherit; font-weight: 700; font-size: 1rem; color: var(--text-strong); cursor: pointer; }
.sec-toggle:hover .sec-title { color: var(--link); }
.sec-toggle:focus-visible, .mini-btn:focus-visible, .staff-open:focus-visible, .tpl-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sec-toggle > .ico { color: var(--link); }
.sec-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sec-count { color: var(--text-3); font-weight: 500; font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sec-toggle .chev { margin-left: auto; color: var(--text-3); transition: transform 0.2s ease; }
.sec[data-open="true"] .sec-toggle .chev { transform: rotate(180deg); }
.mini-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; display: inline-grid; place-items: center; color: var(--text-2); padding: 0; flex: none; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.mini-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--link); background: var(--surface); }
.mini-btn .ico { width: 17px; height: 17px; }
.sec-body { display: none; padding: 2px 0 20px; }
.sec[data-open="true"] .sec-body { display: flex; flex-direction: column; gap: 14px; }
.grid2, .grid3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 480px) { .grid2, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
body[data-view="month"] .grid3, body[data-view="company"] .grid3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.span2 { grid-column: 1 / -1; }
.f-note { color: var(--text-3); font-size: 0.8rem; line-height: 1.45; }
.f-note:empty { display: none; }
.hint.bad { color: var(--bad); }
.hint.block { display: block; }
.input[readonly] { background: var(--surface-2); color: var(--text-2); }
input[type="date"].input, input[type="month"].input { color-scheme: light; }
:root:not([data-theme="light"]) input[type="date"].input, :root:not([data-theme="light"]) input[type="month"].input { color-scheme: dark; }
.select { width: 100%; }
.unit { position: relative; }
.unit .input { padding-right: 44px; }
.unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 0.875rem; pointer-events: none; }
.add-row { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.btn.add-btn { border-style: dashed; color: var(--text-2); }
.next-row { display: flex; justify-content: flex-end; padding-top: 16px; }
h3.sub { font-size: 0.975rem; margin: 10px 0 0; }
.strong { font-weight: 700; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.out-big { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; min-height: 44px; display: flex; align-items: center; color: var(--text-strong); }
.ctc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.field.inline { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
.field.inline .select { width: auto; max-width: 100%; min-width: 0; }
.check-row.small { font-size: 0.85rem; padding: 0; }
.check-row.small input { width: 18px; height: 18px; }
.tag { display: inline-block; font-size: 0.75rem; color: var(--text-3); border: 1px solid var(--chip-border); border-radius: 9999px; padding: 1px 8px; }
.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px var(--brand); border-radius: 12px; } 100% { box-shadow: 0 0 0 3px transparent; } }

/* salary and deduction lines */
.comp-head, .comp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1fr) 36px; gap: 6px; align-items: center; }
.comp-head { color: var(--text-3); font-size: 0.78rem; font-weight: 600; padding: 4px 0 0; }
.comps { display: flex; flex-direction: column; gap: 6px; }
.comp .c-val[hidden] + .c-month { grid-column: 3 / 5; }
.comp .c-tags { grid-column: 1 / -1; margin-top: -2px; }
.comp .c-month .input { text-align: right; font-variant-numeric: tabular-nums; }
.comp .c-month .input::placeholder { color: var(--text-2); }
.comp .unit .input, .xrow .unit .input, .loan .unit .input { padding-right: 34px; }
.comp .unit span, .xrow .unit span, .loan .unit span { right: 10px; }
.xrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr) 36px; gap: 6px; align-items: center; }
.xrows, .lrows, .loans { display: flex; flex-direction: column; gap: 6px; }
.lrow { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.7fr)) minmax(0, 0.6fr) 36px; gap: 6px; align-items: center; }
.lrow .input { text-align: right; }
.lrow .input:first-child { text-align: left; }
.lhead { color: var(--text-3); font-size: 0.75rem; font-weight: 600; }
.lhead span:not(:first-child) { text-align: right; }
.l-bal { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-strong); }
.loan { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) 36px; gap: 6px; align-items: center; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.loan .loan-note { grid-column: 1 / 4; }
.loan .check-row { grid-column: 4 / 6; justify-content: flex-end; }

/* PF, ESI, professional tax and TDS */
.stat-list { display: flex; flex-direction: column; gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stat:first-child { padding-top: 0; }
.stat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--text-strong); }
.stat-head output { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.stat-ctl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 480px) { .stat-ctl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-ctl .field .label { font-size: 0.8rem; color: var(--text-2); font-weight: 500; }
.tax-box { margin-top: 4px; }
/* the site's base table rule (margin, a border on every cell, rounded corners) is for reading pages: these tables draw row lines only */
.pay-table, .mini-table { margin: 0; border-radius: 0; overflow: visible; background: transparent; }
.pay-table th, .pay-table td, .mini-table th, .mini-table td { border: 0; border-bottom: 1px solid var(--line); }
.mini-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; color: var(--text); }
.mini-table td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.mini-table td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.mini-table tr.b td { font-weight: 700; color: var(--text-strong); }
.mini-table.pt th { border: 0; text-align: left; font-size: 0.8rem; color: var(--text-3); font-weight: 600; padding: 4px 0; }
.mini-table.pt td { padding: 3px 6px 3px 0; border: 0; }
.mini-table.pt td:last-child { width: 40px; padding: 0; }

/* the notes to check */
.checks:empty { display: none; }
.checks .sec { border-top: 1px solid var(--line); margin-bottom: 8px; }
.checks-sec .sec-toggle > .ico:first-child { color: var(--warn); }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ck-note { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--surface-border); background: var(--surface); }
.ck-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.ck-ic .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.ck-note.tip .ck-ic { background: var(--tint-brand); color: var(--link); }
.ck-note.info .ck-ic { background: var(--ok-soft); color: var(--ok); }
.ck-title { font-weight: 700; font-size: 0.925rem; color: var(--text-strong); align-self: center; }
.ck-title .link { color: var(--text-strong); font-weight: 700; text-align: left; }
.ck-text { grid-column: 2; color: var(--text-2); font-size: 0.875rem; line-height: 1.5; }

/* pictures: logo, signature, stamp */
.pic-row { display: flex; align-items: center; gap: 14px; padding: 12px 0 0; flex-wrap: wrap; }
.pic-thumb { width: 96px; height: 64px; border-radius: 10px; border: 1px dashed var(--line-strong); background: repeating-conic-gradient(#eef0f4 0 25%, #ffffff 0 50%) 0 0 / 14px 14px; display: grid; place-items: center; overflow: hidden; color: var(--text-3); flex: none; }
.pic-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pic-text { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pic-text b { color: var(--text-strong); }

/* ----- Month ----- */
.month-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.month-head h3 { margin: 0; font-size: 1.3rem; }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (min-width: 760px) { .figs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fig { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--surface-border); min-width: 0; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.fig:hover { transform: translateY(-2px); box-shadow: var(--surface-hover-shadow); }
.fig span { color: var(--text-3); font-size: 0.82rem; }
.fig b { font-size: 1.2rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--text-strong); }
.fig.hi { border-color: var(--tint-brand-border); background: var(--tint-brand); }
.month-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--surface-border); border-radius: 14px; background: var(--surface); }
.pay-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; color: var(--text); }
.pay-table th { text-align: left; font-size: 0.8rem; color: var(--text-3); font-weight: 600; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.pay-table th.num { text-align: right; }
.pay-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pay-table tfoot td { font-weight: 700; border-bottom: 0; background: var(--surface-2); font-variant-numeric: tabular-nums; color: var(--text-strong); }
.pay-table .link.strong { color: var(--text-strong); text-decoration: none; font-weight: 700; text-align: left; }
.pay-table .link.strong:hover { text-decoration: underline; color: var(--link); }
.pay-table .lop { width: 80px; min-height: 40px; padding: 6px 10px; text-align: right; }
.pay-table td:first-child { min-width: 180px; }
@media (max-width: 1279px) { .wide-only { display: none; } }
.chip-s { display: inline-block; font-size: 0.72rem; font-weight: 700; border-radius: 9999px; padding: 0 7px; margin-left: 2px; }
.chip-s.ok { background: var(--ok-soft); color: var(--ok); }
.chip-s.warn { background: var(--warn-soft); color: var(--warn); }

/* ----- Company ----- */
.co-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.co-switch h3 { margin: 0; font-size: 1.3rem; }
.staff { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.staff-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.staff-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; text-align: left; padding: 4px 0; font-family: inherit; color: var(--text); cursor: pointer; border-radius: 10px; }
.staff-open b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-strong); }
.staff-open:hover b { color: var(--link); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-brand); color: #fff; font-weight: 700; flex: none; }

/* ----- Menus: the employee list, Download, a line's menu ----- */
.pop { position: fixed; z-index: 2500; min-width: 240px; max-width: min(360px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow-y: auto; background: var(--surface); border: 1px solid var(--surface-border); border-radius: 16px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22); padding: 6px; }
.pop.wide { max-width: min(440px, calc(100vw - 24px)); }
.pop[hidden] { display: none; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; background: transparent; border-radius: 10px; text-align: left; font-family: inherit; font-size: 0.925rem; font-weight: 500; color: var(--text); cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--tint-brand); color: var(--link); outline: none; }
.menu-item:disabled { opacity: 0.45; cursor: not-allowed; background: transparent; color: var(--text); }
.menu-item .ico { color: var(--link); }
.menu-item .mi-sub { display: block; color: var(--text-3); font-size: 0.78rem; font-weight: 400; }
.menu-item.danger, .menu-item.danger .ico { color: var(--bad); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-label { font-size: 0.78rem; color: var(--text-3); font-weight: 600; padding: 6px 12px 2px; }
.pop-search { padding: 4px 4px 6px; }
.pop-search .input { min-height: 40px; }

/* ----- Design ----- */
.dz { display: flex; flex-direction: column; gap: 26px; }
.dz-group { display: flex; flex-direction: column; gap: 10px; }
.dz-group > h3 { margin: 0; font-size: 1.05rem; }
.dz-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 480px) { .dz-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 560px) and (max-width: 1023px), (min-width: 1280px) { .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tpl-card { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: transparent; text-align: left; min-width: 0; font-family: inherit; color: var(--text); cursor: pointer; border-radius: 8px; }
.tpl-thumb { position: relative; width: 100%; aspect-ratio: 210 / 297; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--surface-border); box-shadow: var(--surface-shadow); transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.tpl-thumb.half { aspect-ratio: 210 / 148.5; }
.tpl-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tpl-card:hover .tpl-thumb { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--surface-hover-shadow); }
.tpl-card[aria-pressed="true"] .tpl-thumb { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.tpl-name { font-weight: 700; font-size: 0.925rem; color: var(--text-strong); }
.tpl-desc { color: var(--text-3); font-size: 0.8rem; line-height: 1.35; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); padding: 0; background: var(--a); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--brand); }
.swatch:focus-visible, .swatch.custom:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.swatch.custom { position: relative; overflow: hidden; display: inline-block; background: conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935); }
.swatch.custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.slider-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.slider-row output { font-variant-numeric: tabular-nums; color: var(--link); font-weight: 700; font-size: 0.875rem; }
.slider-row input { grid-column: 1 / -1; width: 100%; accent-color: var(--brand); min-height: 28px; }
.show-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 16px; }
@media (min-width: 560px) { .show-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ----- Windows ----- */
.month-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 12px; }
.radio-list { display: flex; flex-direction: column; gap: 4px; }
.plain-list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }
.help-body b { color: var(--text-strong); }
.busy { position: fixed; inset: 0; z-index: 3500; display: grid; place-items: center; background: rgba(10, 10, 20, 0.45); }
.busy[hidden] { display: none; }
.busy > div { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 16px; background: var(--surface); color: var(--text-strong); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3); font-weight: 600; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--tint-brand-border); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Print: only the payslip ----- */
.print-root { display: none; }
@media print {
    html, body { background: #fff !important; padding: 0 !important; margin: 0 !important; display: block !important; min-height: 0 !important; }
    body > *:not(.print-root) { display: none !important; }
    .print-root { display: block !important; }
    .print-root svg { display: block; width: 100%; height: auto; }
}

/* ----- Tablets ----- */
@media (max-width: 1023px) {
    .info-section .info-grid { grid-template-columns: repeat(2, 1fr); }
    .info-three { grid-template-columns: 1fr; }
}

/* ----- Phones ----- */
@media (max-width: 639px) {
    .app-hero { margin-bottom: 1.5rem; }
    .app-tagline { font-size: 1rem; }
    .app-toolbar { gap: 10px; }
    .toolbar-left, .toolbar-right { width: 100%; }
    .toolbar-right .btn { flex: 1 1 auto; }
    .status-pill { flex: 1 1 100%; min-width: 0; }
    .who { width: 100%; justify-content: space-between; }
    .who .emp-btn { flex: 1 1 auto; justify-content: flex-start; }
    .emp-btn .doc-name { max-width: none; flex: 1; text-align: left; }
    .month-step { flex: 1 1 100%; }
    .month-step .month-pick { flex: 1; min-width: 0; }
    .month-step .month-input { width: 100%; }
    .app-shell > .view-tabs { width: 100%; }
    .app-shell > .view-tabs .view-tab { flex: 1 1 auto; justify-content: center; padding: 8px 6px; font-size: 0.8rem; }
    .card-header { padding-left: 16px; padding-right: 16px; }
    .card-body { padding: 14px 16px 16px; }
    .desk-scroll { padding: 12px 0 16px; }
    .toasts { bottom: 16px; right: 16px; left: 16px; align-items: stretch; }
    .toast { min-width: 0; max-width: none; }
    .dialog-body, .dialog-head, .dialog-actions { padding-left: 16px; padding-right: 16px; }
    .info-section h2 { font-size: 1.4rem; }
    .info-section .info-grid, .info-three { grid-template-columns: 1fr; }
    .info-card { padding: 16px; }
    .step-num { left: 16px; }
    .comp-head { display: none; }
    .comp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; padding: 8px 0; border-bottom: 1px solid var(--line); }
    .comp .c-name { grid-column: 1 / 3; }
    .comp .mini-btn { grid-column: 3; grid-row: 1; }
    .comp .c-calc { grid-column: 1 / 2; }
    .comp .c-val { grid-column: 2 / 4; }
    .comp .c-month { grid-column: 1 / 4; }
    .comp .c-val[hidden] + .c-month { grid-column: 2 / 4; }
    .comp .c-month::before { content: "This month"; display: block; font-size: 0.875rem; color: var(--text-3); margin-bottom: 2px; }
    .xrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
    .xrow .input:nth-child(2) { grid-column: 1 / 4; grid-row: 2; }
    .lrow { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 0.8fr)) 44px; }
    .lrow .l-bal { display: none; }
    .lhead span:nth-child(5) { display: none; }
    .loan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
    .loan > .input:first-child { grid-column: 1 / 3; }
    .loan .loan-note, .loan .check-row { grid-column: 1 / 4; justify-content: flex-start; }
    .hide-sm { display: none; }
    .pay-table td:first-child { min-width: 0; }
    .pay-table td, .pay-table th { padding-left: 8px; padding-right: 8px; }
    .pay-table .lop { width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    .btn, .info-card, .dialog, .toast, .chip, .seg button, .view-tab, .tpl-thumb, .swatch, .mini-btn, .flash, .spinner, .fig { transition: none; animation: none; }
}

/* Phones: 16 px text, 44 px tap targets (AdSense audit H-04, 8 Oct 2026). The payslip and the design thumbnails are
   document previews and keep their own sizes. */
@media (max-width: 639.98px) {
    main button, main select, main summary, main [role="button"],
    main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="color"]) { min-height: 44px; }
    main .icon-btn, main .mini-btn, .app-toolbar .icon-btn, .zoom .icon-btn { min-width: 44px; min-height: 44px; }
    main .mini-btn { width: 44px; height: 44px; }
    main .zoom-val { min-height: 44px; }
    main .check-row { min-height: 44px; align-items: center; }
    main input[type="range"], .dialog input[type="range"] { min-height: 44px; }
    main .seg button { min-width: 44px; min-height: 44px; }
    main .view-tab { min-height: 44px; }
    main .tpl-card { min-height: 44px; }
    main .pay-table .link.strong { min-height: 44px; display: inline-flex; align-items: center; }
    main :is(p, li, dd, td, th, figcaption, .form-hint, .hint, .f-note, .muted, .small, .sec-count, .tpl-desc, .ck-text, .ck-title,
        .card-note, .label, .tpl-name, .input, .select, .tag, .chip-s, .fig span, .lhead, .comp-head, .mini-table, .check-row.small, .stat-ctl .field .label):not(.sheet *):not(.tpl-thumb *) { font-size: 1rem; }
    .pop .menu-item { min-height: 44px; font-size: 1rem; }
    .pop .menu-item .mi-sub, .pop .menu-label { font-size: 0.875rem; }
    .dialog button, .dialog .btn { min-height: 44px; }
    .dialog .mini-btn, .dialog .dialog-close { width: 44px; height: 44px; }
    .dialog .check-row { min-height: 44px; align-items: center; }
    .dialog p, .dialog li, .dialog .form-hint, .dialog .hint, .dialog .input, .dialog .label { font-size: 1rem; }
}
