:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --surface: #fff;
  --ink: #18263d;
  --muted: #53647b;
  --line: #dce4ef;
  --primary: #245fe5;
  --primary-hover: #194dca;
  --primary-soft: #edf3ff;
  --green: var(--primary);
  --green-hover: var(--primary-hover);
  --green-light: var(--primary-soft);
  --sidebar: 244px;
  --radius: 12px;
  --text-body: 14px;
  --text-label: 13px;
  --text-meta: 12px;
  --text-title: 28px;
  --text-section: 16px;
  --text-dialog: 22px;
  --control-height: 42px;
  --control-radius: 7px;
  --control-line: #c5d1e2;
  --card-padding: 22px;
  --dialog-padding: 24px;
  --surface-muted: #f4f7fc;
  font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
/* Keep one desktop workspace layout at every window width. */
body { margin: 0; min-width: 1440px; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
/* Restore the native arrow only while Codex inserts its annotation cursor rule. */
html:has(style[data-browser-comment-cursor-style]),
html:has(style[data-browser-comment-cursor-style]) body,
html:has(style[data-browser-comment-cursor-style]) body *,
html:has(style[data-browser-comment-cursor-style]) #codex-browser-sidebar-comments-root {
  cursor: default !important;
}
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #86adff; outline-offset: 3px; }
button, a, input, select, textarea { transition: background .15s, border-color .15s, box-shadow .15s; }
button:disabled { cursor: not-allowed; color: #596b85; background: #edf1f7; border-color: #dce4ef; opacity: 1; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 28px 18px 22px; background: #111e35; color: #f5f8ff; display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; font-size: 12px; font-weight: 750; letter-spacing: 1.2px; }
.brand img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.brand-sub { display: block; margin-top: 2px; font-size: 10px; color: #aebed9; letter-spacing: 2px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 11px 14px; color: #c5d2e7; border-radius: 8px; font-weight: 600; }
.sidebar nav a + a { margin-top: 5px; }
.sidebar nav a:hover { color: #fff; background: #243552; }
.sidebar nav a.nav-active { background: #2861df; color: #fff; box-shadow: 0 3px 12px #050f2426; }
.master-nav > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; font-weight: 650; }
.master-nav > summary::-webkit-details-marker { display: none; }
.master-nav .nav-chevron { width: 16px; height: 16px; margin-left: auto; transition: transform .15s; }
.master-nav[open] > summary .nav-chevron { transform: rotate(90deg); }
.sidebar .master-nav > summary { min-height: 46px; padding: 11px 14px; border-radius: 8px; color: #c5d2e7; }
.sidebar .master-nav > summary:hover { background: #243552; color: #fff; }
.sidebar .master-nav[data-active=true] > summary { color: #fff; }
.sidebar .master-nav:not([open])[data-active=true] > summary { background: #2861df; }
.sidebar .master-subnav { margin: 5px 0 10px 23px; padding-left: 10px; border-left: 1px solid #3b4f70; }
.sidebar .master-subnav a { gap: 10px; min-height: 42px; padding: 10px; font-size: 13px; }
.sidebar .master-subnav a svg { width: 18px; height: 18px; }
.sidebar nav > a { margin-top: 6px; }
.sidebar-note { margin: 27px 12px 0; padding-top: 21px; border-top: 1px solid #34435d; }
.small-label { display: block; margin-bottom: 9px; font-size: 11px; color: #b4c4dd; }
.sidebar-note strong { font-size: 13px; font-weight: 600; }
.sidebar-note p { margin: 8px 0 0; font-size: 12px; line-height: 1.8; color: #b4c4dd; }
.sidebar-bottom { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 20px; border-top: 1px solid #34435d; min-width: 0; }
.sidebar-bottom > div { min-width: 0; }
.db-symbol { font-size: 22px; color: #bacce9; }
.sidebar-bottom strong { display: block; font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-bottom small { display: block; margin-top: 3px; color: #b7c8e2; font-size: 11px; }
.status-dot { width: 7px; height: 7px; background: #8a9dbb; border-radius: 50%; margin-left: auto; flex-shrink: 0; }
.status-dot.connected { background: #62dfa5; }
.app-shell { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { min-height: 66px; padding: 12px 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.breadcrumb > span { color: #7989a0; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.user-profile { position: relative; }
.user-menu-toggle { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; max-width: min(360px, 50vw); padding: 8px 12px; border: 1px solid #d6e2fb; border-radius: 8px; background: #edf3ff; color: #234e9a; font-size: 14px; font-weight: 600; text-align: left; }
.user-menu-toggle span { overflow-wrap: anywhere; }
.user-menu-toggle:hover, .user-menu-toggle[aria-expanded=true] { background: #e2ecff; border-color: #adc4ee; }
.user-menu-toggle svg { width: 16px; height: 16px; transition: transform .15s; }
.user-menu-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
.user-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 10px 30px #152b4d24; z-index: 40; }
.user-menu [role=menuitem] { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 10px 12px; border: 0; border-radius: 6px; background: #fff; color: #273a54; font-size: 14px; text-align: left; white-space: nowrap; }
.user-menu [role=menuitem]:hover, .user-menu [role=menuitem]:focus-visible { background: #edf3ff; color: #234e9a; }
.user-menu [role=menuitem] svg { width: 18px; height: 18px; }
main { max-width: 1680px; margin: auto; padding: 32px 36px 24px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin-bottom: 7px; font-size: 10px; line-height: 1.5; letter-spacing: 1.6px; font-weight: 750; color: #3b61a4; }
h1 { margin: 0; font-size: var(--text-title); line-height: 1.35; font-weight: 700; letter-spacing: -.7px; }
h2, h3, p { margin: 0; word-break: keep-all; }
.page-heading p { margin-top: 9px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.button { min-height: var(--control-height); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid transparent; border-radius: var(--control-radius); font-size: var(--text-label); font-weight: 600; line-height: 1.4; white-space: nowrap; }
.button svg { width: 17px; height: 17px; }
.primary, .button.primary.secondary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 3px #123b7a12; }
.primary:hover:not(:disabled), .button.primary.secondary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }
.primary:disabled { background: #e2eafe; color: #4f648e; border-color: #d5e0fa; box-shadow: none; }
.secondary { background: #fff; color: #34445e; border-color: #cfd9e8; }
.secondary:hover:not(:disabled) { background: #f3f7ff; border-color: #a6bce7; }
.plus { font-size: 20px; font-weight: 400; line-height: 1; }

.list-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 2px 5px #20375904; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--card-padding); min-height: 68px; }
.list-heading > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.list-heading h2 { font-size: var(--text-section); line-height: 1.5; font-weight: 700; letter-spacing: -.25px; overflow-wrap: anywhere; }
/* Heading counts are hidden across pages and dialogs; existing data hooks remain valid. */
.count-chip { display: none; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 7px 9px; border: 1px solid transparent; border-radius: var(--control-radius); font-size: var(--text-label); font-weight: 600; color: #4c5e78; background: transparent; white-space: nowrap; }
.text-button svg { width: 15px; height: 15px; }
.text-button:hover:not(:disabled) { color: #2156cc; background: #edf3ff; }
.filters { display: flex; align-items: flex-end; gap: 9px; padding: 0 var(--card-padding) 20px; }
.search-field { position: relative; flex: 1; min-width: 200px; }
.search-field > svg { position: absolute; left: 13px; top: 13px; width: 17px; height: 17px; color: #5d718e; }
.search-field input { width: 100%; height: var(--control-height); border: 1px solid var(--control-line); border-radius: var(--control-radius); padding: 0 38px; color: var(--ink); background: var(--surface); font-size: var(--text-body); }
input::placeholder, textarea::placeholder { color: #66758c; opacity: 1; }
.search-field kbd { position: absolute; right: 13px; top: 11px; padding: 0 5px; color: #53647b; background: #f3f6fb; border: 1px solid var(--line); border-radius: 4px; font-family: inherit; font-size: 12px; line-height: 18px; }
select { height: var(--control-height); min-width: 122px; padding: 0 28px 0 12px; border: 1px solid var(--control-line); border-radius: var(--control-radius); color: var(--ink); background: var(--surface); font-size: var(--text-body); }
.reset-button { width: 42px; height: 42px; flex-shrink: 0; border: 1px solid #cfd9e8; border-radius: 7px; color: #4c5e78; background: #fff; font-size: 23px; }
.reset-button:hover { background: #edf3ff; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #3b77ed; box-shadow: 0 0 0 3px #2463eb1a; }
.table-container { overflow: auto; overscroll-behavior-x: contain; }
table { width: 100%; min-width: 790px; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: var(--text-body); font-variant-numeric: tabular-nums; }
thead { background: var(--surface-muted); border-block: 1px solid var(--line); }
th { height: 46px; padding: 10px 14px; font-size: var(--text-label); font-weight: 600; color: #3c506e; line-height: 1.5; vertical-align: middle; }
td { height: 64px; padding: 12px 14px; color: #273a54; border-bottom: 1px solid #e7edf5; line-height: 1.6; vertical-align: middle; }
th:first-child, td:first-child { padding-left: var(--card-padding); }
th:last-child, td:last-child { padding-right: var(--card-padding); }
tbody tr:hover { background: #f5f8ff; }
tbody tr:last-child td { border-bottom: 0; }
.id-col { width: 70px; }
.action-col { width: 105px; text-align: center; }
.sort { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; font: inherit; color: inherit; background: transparent; }
.sort span { color: #536d96; }
.customer-chip, .subgroup-chip { display: inline-block; padding: 4px 8px; border-radius: 5px; font-size: 11px; font-weight: 650; line-height: 1.5; }
.customer-chip { color: #2153b3; background: #eaf1ff; border: 1px solid #d6e5ff; }
.subgroup-chip { color: #40536d; background: #f1f5fa; border: 1px solid #dfe6ef; }
.model-text { font-weight: 650; color: #172d50; }
.part-text { font-family: Consolas, 'Malgun Gothic', monospace; font-size: 13px; font-weight: 500; color: #28466e; font-variant-numeric: tabular-nums; }
.remarks-text { color: #53647b; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: #596c86; font-size: 12px; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; align-items: center; justify-content: center; gap: 7px; }
.edit-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid #d5dfed; border-radius: 7px; color: #45608b; background: #fff; flex-shrink: 0; }
.edit-button svg { width: 16px; height: 16px; }
.edit-button:hover:not(:disabled) { background: #eaf1ff; color: #1f57cc; border-color: #a2bcef; }
.delete-button { color: #ba423d; }
.delete-button:hover:not(:disabled) { background: #fff1ef; color: #a32d26; border-color: #e4b1ac; }
.danger { background: #c53d36; color: #fff; border-color: #c53d36; }
.danger:hover:not(:disabled) { background: #ab2c26; }
.empty-state { min-height: 260px; padding: 40px 22px 44px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: #3b6cc7; background: #edf3ff; border: 1px solid #dce7ff; margin: 0 auto 17px; }
.empty-icon svg { width: 23px; height: 23px; }
.empty-state h3 { font-size: 17px; font-weight: 650; margin-bottom: 9px; }
.empty-state p { font-size: 13px; line-height: 1.8; color: var(--muted); white-space: pre-line; }
.empty-state .button { margin-top: 20px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px var(--card-padding); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-meta); }
.pagination > div { display: flex; align-items: center; gap: 7px; }
.page-size { display: flex; align-items: center; gap: 8px; margin-right: 9px; }
.page-size select { min-width: 58px; height: 32px; padding: 0 6px; font-size: 12px; }
.page-arrow { width: 30px; height: 32px; border: 1px solid #d3deec; border-radius: 6px; color: #415778; background: #fff; font-size: 21px; }
.page-arrow:hover:not(:disabled) { background: #edf3ff; }
#page-number { min-width: 30px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: #eaf1ff; color: #2155bd; font-weight: 650; }
.page-footnote { display: flex; align-items: flex-start; gap: 8px; margin: 17px 0 28px; color: #53647b; font-size: 12px; line-height: 1.8; }
.info-symbol { display: inline-grid; place-items: center; flex-shrink: 0; width: 14px; height: 14px; margin-top: 3px; border: 1px solid #7588a6; border-radius: 50%; color: #526a92; font: 700 10px Georgia, serif; }
footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-top: 19px; color: #53647b; font-size: 11px; }
footer > span:first-child { font-size: 10px; font-weight: 600; letter-spacing: 1px; }
dialog { padding: 0; border: 1px solid #d4deed; color: var(--ink); background: #fff; box-shadow: 0 24px 90px #0e244b33; }
dialog::backdrop { background: #0d1c3666; backdrop-filter: blur(3px); }
.modal { width: min(550px, calc(100vw - 32px)); max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); border-radius: 14px; }
.compact { width: min(450px, calc(100vw - 32px)); }
.drawer { margin: 0 0 0 auto; width: min(550px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; border-block: 0; border-right: 0; }
.drawer form { display: flex; flex-direction: column; min-height: 100%; max-height: 100dvh; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px var(--dialog-padding); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.dialog-heading h2 { font-size: var(--text-dialog); line-height: 1.4; font-weight: 700; letter-spacing: -.5px; }
.dialog-heading .eyebrow { font-size: 10px; margin-bottom: 4px; }
.close-button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #52647f; background: #f2f5fa; font-size: 26px; line-height: 1; flex-shrink: 0; }
.close-button:hover { color: #234e9a; background: #e7efff; }
.drawer-body, .modal-body { padding: 24px var(--dialog-padding); }
.drawer-body, .drawer .modal-body { overflow-y: auto; flex: 1; }
.form-intro { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 22px; }
.modal-body > p { font-size: var(--text-body); line-height: 1.8; color: var(--muted); }
.record-id { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 24px; border: 1px solid #dce7ff; border-radius: 8px; background: #f3f7ff; }
.record-id > span { font-size: 12px; color: #506a95; }
.record-id strong { color: #244e98; font-size: 14px; }
.record-id small { margin-left: auto; font-size: 11px; color: #536d96; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.form-grid label { color: #33465f; font-size: var(--text-label); font-weight: 600; }
.form-grid em, .dialog-footer em { font-style: normal; color: #c33d35; }
.full { grid-column: 1/-1; }
.form-grid input, .form-grid textarea { display: block; width: 100%; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--control-line); border-radius: var(--control-radius); font-size: var(--text-body); font-weight: 400; color: var(--ink); background: var(--surface); }
.form-grid input { height: var(--control-height); }
.form-grid textarea { resize: vertical; line-height: 1.7; min-height: 90px; }
.optional { margin-left: 6px; font-size: 11px; color: #65768d; font-weight: 400; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--dialog-padding); border-top: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.dialog-footer > span { font-size: 12px; color: var(--muted); }
.dialog-footer > div { display: flex; gap: 8px; }
.connection-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding: 14px; border: 1px solid #dce6f4; border-radius: 8px; background: #f5f8fe; color: #536b90; }
.connection-note svg { width: 18px; height: 18px; margin-top: 2px; }
.connection-note p { font-size: 12px; line-height: 1.8; }
.form-error { padding: 12px 14px; border: 1px solid #f0c6be; border-radius: 7px; color: #9e322a; background: #fff4f1; font-size: 13px; line-height: 1.8; margin-bottom: 18px; }
.field-error { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; color: #b3342b; }
.field-error:empty { display: none; }
.form-grid input[aria-invalid=true], .form-grid textarea[aria-invalid=true] { border-color: #d66357; }
.icon-button { border: 0; color: #52647f; background: transparent; font-size: 23px; }
#toast { position: fixed; bottom: 25px; left: calc(50% + var(--sidebar)/2); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 15px 20px; max-width: calc(100vw - 32px); border: 1px solid #314362; border-radius: 10px; background: #172c4b; color: #fff; box-shadow: 0 8px 25px #0d204333; z-index: 30; font-size: 14px; }
.toast-check { color: #91ecc1; font-weight: 700; }
.loading { opacity: .6; pointer-events: none; }
.delete-details { padding: 7px 14px; margin: 20px 0 0; border: 1px solid var(--line); border-radius: 8px; background: #f6f8fc; }
.delete-details > div { display: flex; align-items: flex-start; gap: 16px; padding: 9px 0; }
.delete-details dt { min-width: 85px; font-size: 12px; color: #53647b; }
.delete-details dd { margin: 0; font-size: 14px; color: #263c5d; overflow-wrap: anywhere; }
.delete-details + .form-error { margin-top: 16px; }
.excel-template { display: grid; gap: 9px; padding: 16px; margin-bottom: 23px; border: 1px solid #dce6fa; border-radius: 9px; background: #f3f7ff; }
.excel-template strong, .excel-file-label { font-size: 13px; color: #2a4369; font-weight: 650; }
.excel-template span, .excel-file-label small { color: #53647b; font-size: 12px; line-height: 1.8; }
.excel-template .button { width: max-content; margin-top: 4px; }
.excel-file-label { display: grid; gap: 10px; margin-bottom: 18px; }
.excel-file-label input { width: 100%; padding: 11px; border: 1px solid #cbd7e7; border-radius: 7px; font: inherit; font-size: 13px; color: #344c70; background: #fff; }
.excel-file-label input::file-selector-button { margin-right: 12px; padding: 6px 10px; border: 1px solid #c5d4eb; border-radius: 5px; background: #f0f5ff; color: #2b518e; font: inherit; }
.excel-details { max-height: 240px; overflow: auto; padding: 14px; border: 1px solid #f0c6be; border-radius: 8px; background: #fff7f4; color: #913a2d; font-size: 12px; line-height: 1.8; }
.excel-details > strong { display: block; margin-bottom: 6px; }
.excel-details ul { padding-left: 20px; margin: 0; }
.excel-details li + li { margin-top: 7px; }
@media (min-width:1600px) { main { padding-top: 38px; } }

@media (prefers-reduced-motion:reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
/* Every master-data cell uses the same type, weight and color. */
.table-value { font-family: inherit; font-size: 14px; font-weight: 400; color: #273a54; font-variant-numeric: tabular-nums; letter-spacing: normal; background: transparent; border: 0; padding: 0; }
td.remarks-text { color: #273a54; }

.form-grid select {display:block;width:100%;margin-top:8px;padding:0 12px;height:var(--control-height);border:1px solid var(--control-line);border-radius:var(--control-radius);font-family:inherit;font-size:var(--text-body);font-weight:400;background:var(--surface);color:var(--ink);}
.permission-list{margin-top:24px;border:1px solid var(--line);border-radius:8px;padding:16px;}
.permission-list legend{font-size:14px;font-weight:600;padding:0 6px;}
.permission-list label{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:14px;}
.permission-list input{width:17px;height:17px;}
.form-grid label small:not(.field-error){display:block;margin-top:7px;font-size:var(--text-meta);font-weight:400;line-height:1.6;color:var(--muted);}

/* Shared visual rhythm for every page and dialog; behavior remains in the page scripts. */
.page-heading > div:first-child { min-width: 0; }
.page-actions, .production-heading-actions, .dialog-footer > div { align-items: center; }
.list-heading > div:first-child { flex-wrap: wrap; }
.list-heading > .text-button, .list-heading > .production-heading-actions { margin-left: auto; }
.list-card + .list-card { margin-top: 24px; }
.dialog-footer .button.primary, .dialog-footer .button.danger { min-width: 76px; }
.dialog-heading .eyebrow { display: none; }
.dialog-heading { min-height: 78px; }
.modal[open], .modal > form { display: flex; flex-direction: column; min-height: 0; }
.modal > form { max-height: calc(100dvh - 34px); }
.modal > .modal-body, .modal > form > .modal-body { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
.modal .dialog-heading, .modal .dialog-footer { flex-shrink: 0; }
.dialog-footer .button { flex-shrink: 0; }
.form-grid input[readonly] { background: var(--surface-muted); color: var(--muted); }
.dialog-footer > div:last-child, .dialog-footer > .button:only-child { margin-left: auto; }
.dialog-footer:has(> .button.primary, > .button.danger) > .button:first-of-type { margin-left: auto; }
.form-intro { font-size: var(--text-body); }
.form-error, .section-error { font-size: var(--text-label); }
.excel-file-label, .excel-template strong { font-size: var(--text-label); }
.excel-file-label input { font-size: var(--text-body); font-weight: 400; background: #f7f9fd; border-color: var(--control-line); }
.excel-file-label input::file-selector-button { background: var(--surface); color: #263b58; border-color: var(--control-line); }
#account-head th:last-child, #account-rows td:last-child,
#inventory-overview-rows td:last-child, #inventory-page > .list-card thead th:last-child { text-align: center; }


/* Remove browser locale literals and draw consistent year/month separators. */
input[type="date"]::-webkit-datetime-edit-text { display: none; }
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="date"]::-webkit-datetime-edit-month-field {
  padding-right: 8px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 4px 1px;
  background-repeat: no-repeat;
  background-position: right 2px center;
}
