:root {
    color-scheme: light;
    --nav: #07334c;
    --nav-open: #25435e;
    --nav-text: #c2d6e3;
    --top: #eaf2f5;
    --paper: #fff;
    --wash: #f4f7f9;
    --line: #e6ebef;
    --border: #d7dfe6;
    --text: #192e3c;
    --muted: #677988;
    --green: #67bd34;
    --green-dark: #347424;
    --blue: #409eff;
    --sidebar: 244px;
    --topbar: 80px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text); }
a { color: #236fab; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, p { margin-top: 0; }
h1 { font-weight: 500; font-size: 25px; letter-spacing: -.025em; margin-bottom: 0; line-height: 1.25; }
h2 { font-size: 16px; line-height: 1.4; font-weight: 650; margin-bottom: 15px; }
p { line-height: 1.55; }
small { color: var(--muted); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#sidebar { position: fixed; z-index: 30; width: var(--sidebar); inset: 0 auto 0 0; overflow-y: auto; background: var(--nav); color: var(--nav-text); scrollbar-width: thin; scrollbar-color: #638498 transparent; }
.brand { height: 75px; display: flex; align-items: center; gap: 12px; padding: 0 17px; color: #fff; font-weight: 750; font-size: 14px; letter-spacing: .09em; }
.brand:hover { text-decoration: none; }
.brand small { display: block; color: #c6dce8; font-size: 10px; font-weight: 650; letter-spacing: .19em; margin-top: 3px; }
.brand-mark { width: 43px; height: 43px; border-radius: 11px; flex: none; display: inline-grid; place-items: center; color: white; background: #438937; font-size: 17px; font-weight: 750; letter-spacing: -.06em; }
#sidebar nav { padding-bottom: 24px; }
.nav-item { min-height: 55px; display: flex; align-items: center; gap: 13px; padding: 0 20px; color: var(--nav-text); line-height: 1.2; font-weight: 500; }
.nav-item:hover, .nav-children a:hover { background: #1a4560; color: #fff; text-decoration: none; }
.nav-item.selected, .nav-children a.selected { color: #73bbff; }
.nav-icon { width: 22px; text-align: center; font-size: 18px; color: #c4dbe8; font-family: "Segoe UI Symbol", Arial, sans-serif; }
.nav-item .chevron { margin-left: auto; }
.chevron { width: 7px; height: 7px; transform: rotate(45deg); border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; display: inline-block; margin: 0 0 4px 4px; }
details[open] > summary .chevron { transform: rotate(225deg); margin-bottom: -2px; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.nav-children { background: var(--nav-open); padding: 3px 0; }
.nav-children a { min-height: 43px; padding: 10px 15px 10px 40px; display: flex; align-items: center; color: #d4e3ec; font-size: 13px; }
.nav-children a.selected { background: #4f657b; color: white; }
.app { margin-left: var(--sidebar); min-width: 0; }
@media (min-width: 871px) {
    .sidebar-closed #sidebar { width: 64px; }
    .sidebar-closed .app { margin-left: 64px; }
    .sidebar-closed .brand, .sidebar-closed .nav-item { padding-inline: 0; justify-content: center; }
    .sidebar-closed .brand-text, .sidebar-closed .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .sidebar-closed .nav-children, .sidebar-closed .nav-item .chevron { display: none; }
}
.topbar { position: sticky; top: 0; z-index: 20; min-height: var(--topbar); background: var(--top); display: flex; gap: 18px; align-items: center; padding: 0 22px; }
.menu-toggle { background: none; border: 0; color: var(--text); font-size: 22px; padding: 6px; border-radius: 6px; }
.global-search { display: flex; flex: 1 1 auto; max-width: 510px; min-width: 0; background: white; height: 40px; border-radius: 26px; overflow: hidden; }
.global-search input { border: 0; padding: 0 15px; min-width: 90px; flex: 1; background: transparent; }
.global-search select { border: 0; border-left: 1px solid var(--line); width: 125px; padding: 0 10px; background: transparent; color: var(--muted); }
.top-actions { display: flex; align-items: center; margin-left: auto; gap: 12px; }
.round { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 21px; color: var(--nav); background: #fff; font-weight: 650; }
.round:hover { color: var(--blue); text-decoration: none; }
.pop { position: relative; }
.profile > summary { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.profile-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile > summary .chevron { flex: none; }
.popover { position: absolute; right: 0; top: calc(100% + 12px); display: grid; gap: 2px; min-width: 215px; padding: 8px; background: white; border: 1px solid var(--line); box-shadow: 0 10px 26px #123b531c; border-radius: 6px; }
.popover a, .popover > span { display: block; padding: 9px 10px; }
.popover a:hover { background: var(--wash); text-decoration: none; }
.workspace { min-height: calc(100vh - var(--topbar)); padding: 17px 22px 24px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 38px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: #567184; }
.page-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 25px; }
.title-left { display: flex; gap: 13px; align-items: center; }
.back { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: #607484; }
.back:hover { color: var(--blue); text-decoration: none; }
.actions, .section-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.section-actions { justify-content: flex-end; margin: 12px 0; }
.inline { margin: 0; display: inline-flex; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; gap: 5px; border: 1px solid var(--border); border-radius: 3px; padding: 6px 13px; background: #fff; color: #526570; white-space: nowrap; font-weight: 500; line-height: 1.25; }
.button:hover { border-color: #a9bdcb; background: #f5f8fa; text-decoration: none; }
.button.primary { color: #fff; background: var(--green-dark); border-color: var(--green-dark); }
.button.primary:hover { background: #2a621c; border-color: #2a621c; }
.button.blue { color: white; background: #3297ee; border-color: #3297ee; }
.button.blue:hover { background: #237dc7; border-color: #237dc7; }
.button.danger { background: #e45d62; border-color: #e45d62; color: #fff; }
.button.danger:hover { background: #c74449; border-color: #c74449; }
.button.add { color: var(--green-dark); background: #f4faef; border-color: #b7d8a4; }
.button.add:hover { background: #e9f5e0; }
.button.quiet { border-color: transparent; }
.notice { padding: 11px 14px; border-radius: 5px; border: 1px solid #b5d6ea; background: #eef8ff; color: #2c5d7a; margin-bottom: 15px; }
.notice.success { border-color: #bddeb0; background: #f1faec; color: #2d6327; }
.notice.error { border-color: #eac0bc; background: #fff3f3; color: #9d2927; }
.tabs { display: flex; flex-wrap: wrap; align-items: end; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs > a, .tabs > button { display: inline-flex; min-height: 40px; align-items: center; padding: 9px 17px; color: #465b6a; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-right: 0; white-space: nowrap; }
.tabs > :first-child { border-radius: 3px 0 0 0; }
.tabs > :last-child { border-right: 1px solid var(--line); border-radius: 0 3px 0 0; }
.tabs > a:hover, .tabs > button:hover { color: var(--blue); text-decoration: none; }
.tabs .selected, .tabs [aria-selected=true] { color: #216da8; box-shadow: inset 0 -2px #4b9cda; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 17px; }
.filters > input, .filters > select { flex: 1 1 140px; max-width: 215px; }
.filters .button { min-height: 33px; }
input:not([type=checkbox]):not([type=radio]), select, textarea { border: 1px solid var(--border); border-radius: 4px; background: #fff; color: var(--text); min-height: 34px; padding: 6px 10px; max-width: 100%; }
input::placeholder { color: #718491; }
.global-search input:not([type=checkbox]):not([type=radio]), .global-search select { border-width: 0; border-radius: 0; }
.global-search select { border-left-width: 1px; }
input[readonly] { color: #536574; background: #f5f7f8 !important; }
input[type=checkbox], input[type=radio] { accent-color: var(--green-dark); width: 16px; height: 16px; margin: 0; }
.filter-date { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.filter-date input { width: 136px; }
.extra-filters { position: relative; }
.filter-popover { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 12px; display: grid; grid-template-columns: repeat(2,minmax(140px,1fr)); gap: 8px; position: absolute; z-index: 10; min-width: 330px; right: 0; top: calc(100% + 6px); box-shadow: 0 7px 20px #13354b16; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 13px 10px; vertical-align: middle; line-height: 1.5; overflow-wrap: anywhere; }
th { color: #607482; font-weight: 650; font-size: 13px; }
th a { color: inherit; }
td { font-size: 13px; }
tbody tr:hover { background: #f7fafc; }
td.empty, p.empty { color: var(--muted); text-align: center; padding: 22px 10px; }
.row-index { width: 45px; color: #728593; }
.row-tools { white-space: nowrap; width: 76px; }
.record-link { color: #206da8; font-weight: 550; }
.linked { display: block; }
.icon-button { border: 1px solid var(--line); border-radius: 3px; display: inline-grid; place-items: center; height: 26px; width: 26px; margin-right: 4px; }
.icon-button:hover { background: #eef6fc; text-decoration: none; }
.badge { display: inline-block; padding: 3px 7px; border-radius: 4px; line-height: 1.35; color: #536977; background: #eef2f5; font-size: 12px; }
.badge.good { color: #2d6424; background: #e9f5e2; }
.badge.bad { color: #9d2927; background: #faeceb; }
.badge.pending { color: #785700; background: #fff4d7; }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; background: #f2f4f5; padding: 9px 10px; margin-top: 16px; color: var(--muted); }
.page-current { background: var(--blue); color: white; padding: 8px 11px; border-radius: 3px; font-weight: 650; }
.workspace:has(> .records-list), .records-list { display: flex; flex-direction: column; }
.records-list { flex: 1 0 auto; }
.records-list .table-scroll { flex: 1 0 auto; }
.records-list .pager { background: #eee; }
.tire-actions > summary .chevron { margin-left: 5px; }
.tire-actions .popover { z-index: 14; }
.operation-dialog { width: min(432px, calc(100vw - 28px)); max-height: calc(100dvh - 15vh - 15px); overflow: auto;
    margin: 15vh auto 0; padding: 20px; border: 0; border-radius: 2px; background: white; color: #303133; box-shadow: 0 2px 12px #0004; }
.operation-dialog::backdrop { background: #0008; }
.operation-dialog header { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.operation-dialog h2 { font-size: 18px; font-weight: 500; margin: 0; }
.dialog-close { color: #606266; font-size: 20px; line-height: 1; }
.dialog-fields { padding: 45px 28px 76px; display: grid; gap: 28px; }
.dialog-fields > label:not(.check-label), .dialog-field-row > label { display: grid; gap: 7px; min-width: 0; }
.dialog-fields input:not([type=radio]):not([type=checkbox]), .dialog-fields select, .dialog-fields textarea { width: 100%; }
.dialog-fields input:not([type=radio]):not([type=checkbox]), .dialog-fields select:not([multiple]) { min-height: 38px; }
.dialog-field-row { display: flex; align-items: end; gap: 8px; }
.dialog-field-row > label { flex: 1; }
.dialog-fields fieldset { border: 0; padding: 0; margin: 0; }
.dialog-fields legend { font-weight: 600; }
.multi-picker > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px;
    min-height: 38px; border: 1px solid var(--border); border-radius: 4px; padding: 6px 12px; color: var(--muted); }
.multi-picker .picker-menu { position: static; margin-top: 4px; min-width: 0; }
.picker-options { max-height: 180px; overflow: auto; }
.picker-options .check-label { padding: 5px 0; min-height: 30px; }
.picker-options p { margin: 8px 0 4px; }
.operation-dialog footer { display: flex; justify-content: end; gap: 8px; }
.operation-dialog footer form:first-child { margin-right: auto; }
.integration-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 24px; }
.integration-catalog { background: #f7f8f9; padding: 16px 0; }
.integration-catalog h2 { margin: 8px 18px 5px; font-size: 15px; }
.integration-catalog a { display: block; padding: 10px 18px; color: #3c4a54; }
.integration-catalog a.selected { background: #e7f1fb; color: #2469a4; }
.integration-content { min-width: 0; }
.provider-connection { border: 1px solid var(--line); border-bottom: 0; }
.provider-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    min-height: 52px; padding: 8px 16px; background: #f5f7fa; }
.provider-heading h2 { margin: 0; font-weight: 500; }
.provider-connection p { margin: 8px 16px; }
.provider-vehicles { border: 1px solid var(--line); }
.provider-vehicles form { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 3px 5px 3px 0; }
.record-form { max-width: 1120px; }
.form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px 22px; padding: 18px 0; align-items: start; }
.form-grid > label:not(.check-label), .panel label:not(.check-label), .auth-card label { display: flex; flex-direction: column; gap: 6px; color: #415767; font-weight: 550; }
.field-label { color: #405867; font-weight: 600; display: inline-block; margin-bottom: 1px; }
.required { color: #ab312e; }
.wide { grid-column: 1 / -1; }
.check-label { min-height: 34px; display: flex; align-items: center; gap: 8px; padding-top: 10px; }
.form-bottom { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.line-row { display: grid; grid-template-columns: 2fr 1.5fr 1fr 1fr auto; gap: 7px; margin: 7px 0; }
.checklist { border: 1px solid var(--line); margin-top: 8px; padding: 10px; }
.checklist-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.checklist-row > strong { flex: 1; }
.checklist-row > label { display: inline-flex; align-items: center; gap: 5px; }
.record-details { max-width: 960px; display: grid; grid-template-columns: minmax(140px,255px) minmax(100px,1fr); margin: 15px 0 25px; border: 1px solid var(--line); border-bottom: 0; border-radius: 4px; }
.record-details > * { margin: 0; padding: 10px 13px; border-bottom: 1px solid var(--line); line-height: 1.45; }
.record-details dt { background: #f6f8fa; color: #587181; }
.file-list { line-height: 1.8; padding-left: 22px; }
.dashboard { background: #fff; }
.dashboard .breadcrumb { margin-bottom: 19px; }
.dashboard-tiles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.dash-card, .panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 15px 16px; }
.dash-card h2 { font-size: 15px; }
.dashboard .dash-card { border-radius: 10px; box-shadow: 0 4px 16px #13354912; }
.dash-stat { min-height: 199px; padding: 0; overflow: hidden; }
.dash-stat > h2 { display: flex; align-items: center; min-height: 51px; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tile-stats { display: flex; min-height: 145px; padding: 14px 16px; gap: 8px; }
.tile-stat { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column-reverse; align-items: center; justify-content: space-evenly;
    color: #465363; gap: 5px; text-align: center; font-size: 13px; --stat-accent: #737f90; }
.tile-stat strong { color: var(--stat-accent); font-size: clamp(28px,3vw,42px); line-height: 1.1; font-weight: 750; }
.tile-stat span::before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--stat-accent); margin: 0 6px 2px 0; border-radius: 50%; }
.tile-stat.overdue { --stat-accent: #c9555d; }
.tile-stat.soon { --stat-accent: #a26a10; }
.tile-stat.week { --stat-accent: #212936; }
.fleet-stat .tile-stats { display: grid; align-content: start; gap: 5px; }
.fleet-stat .tile-stat, .tile-main { display: flex; flex-direction: row; justify-content: space-between; color: #465363; font-size: 13px; }
.fleet-stat .tile-stat strong { font-size: inherit; color: #212936; }
.tile-main strong { color: #212936; }
.dashboard-charts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 48px; }
.chart-panel { grid-column: span 2; }
.chart-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chart-header .button { min-height: 27px; font-size: 12px; padding: 4px 8px; }
.chart-columns { display: flex; justify-content: space-around; align-items: end; gap: 6px; padding: 12px 0 3px; }
.chart-column { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.chart-column progress { width: 23px; height: 114px; writing-mode: vertical-lr; direction: rtl; accent-color: var(--blue); }
.metric strong { display: block; color: var(--nav); font-size: 26px; margin: 12px 0; }
.report-grid, .settings-panels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.settings-panels { grid-template-columns: repeat(2,minmax(0,1fr)); }
.settings-panels .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.report-link { display: block; padding: 9px 0; border-top: 1px solid var(--line); font-weight: 550; }
.report-link:first-of-type { border-top: 0; }
.panel > form > .button { margin-top: 13px; }
.panel > form.filters > .button { margin-top: 0; }
.upload-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 15px; }
.search-result { margin-bottom: 15px; }
.search-result > a { display: inline-block; margin-top: 12px; }
.notice-list { display: grid; gap: 10px; }
.notice-list p { margin: 7px 0 0; }
.vehicle-summary { min-height: 90px; display: flex; align-items: center; gap: 20px; margin: 0 0 20px; }
.vehicle-photo { width: 100px; height: 100px; object-fit: cover; border-radius: 16px; }
.vehicle-summary strong { display: inline-block; margin-bottom: 12px; }
.vehicle-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 13px; }
.vehicle-card-layout { display: grid; grid-template-columns: 238px minmax(0,1fr); gap: 20px; }
.vehicle-card-navigation { min-width: 0; }
.vehicle-quick { margin-bottom: 18px; }
.vehicle-quick > summary { width: 100%; min-height: 29px; border-radius: 18px; }
.vehicle-quick > .popover { right: auto; left: 0; z-index: 12; }
.vehicle-card-tabs { border: 1px solid var(--line); }
.vehicle-card-tabs a { display: block; padding: 10px 18px; border-left: 3px solid transparent; color: #465363; }
.vehicle-card-tabs a:hover { background: #f3f7fa; text-decoration: none; }
.vehicle-card-tabs a.selected { border-left-color: var(--blue); background: #eef1f5; color: #1e507a; font-weight: 600; }
.vehicle-card-content { min-width: 0; }
.vehicle-card-content .record-details { margin-top: 0; }
.calendar-head { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 5px 0 13px; }
.calendar { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.calendar > div { padding: 8px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.calendar-day, .calendar-blank { min-height: 85px; }
.calendar-weekday, .calendar-blank { background: var(--wash); }
.calendar-event { display: block; font-size: 12px; margin-top: 6px; border-radius: 3px; background: #eaf3fd; padding: 3px; overflow-wrap: anywhere; }
.calendar-event.overdue { background: #faeceb; }
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: #eaf2f6; }
.auth-card { width: min(100%,420px); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px; box-shadow: 0 16px 40px #173f5720; }
.auth-brand { display: flex; gap: 12px; align-items: center; font-size: 18px; color: var(--nav); margin-bottom: 24px; }
.auth-card h1 { margin-bottom: 20px; }
.auth-card form { display: grid; gap: 13px; }
.auth-card form .button { min-height: 40px; }
.auth-card p { margin: 14px 0 0; }
@media (max-width: 1180px) {
    .dashboard-tiles { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .form-grid, .report-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 870px) {
    :root { --topbar: 62px; }
    #sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .18s, visibility .18s; }
    .app, .sidebar-closed .app { margin-left: 0; }
    .sidebar-open #sidebar { display: block; transform: none; visibility: visible; box-shadow: 0 0 0 100vmax #142b4180; }
    .topbar { padding: 0 12px; gap: 10px; }
    .workspace { padding: 14px; }
    .breadcrumb { margin-bottom: 26px; }
    .global-search select { width: 85px; }
    .dashboard-charts { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .vehicle-card-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
    .vehicle-card-tabs { display: flex; overflow-x: auto; }
    .vehicle-card-tabs a { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
    .vehicle-card-tabs a.selected { border-bottom-color: var(--blue); }
    .vehicle-quick > summary { width: auto; }
    .integration-layout { grid-template-columns: 1fr; gap: 12px; }
    .integration-catalog { display: flex; flex-wrap: wrap; align-items: center; padding: 6px; }
    .integration-catalog h2 { margin: 5px 8px; }
}
@media (max-width: 570px) {
    .top-actions { gap: 6px; }
    .profile > summary { max-width: 88px; font-size: 12px; }
    .global-search select { display: none; }
    .dashboard-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .form-grid, .settings-panels, .settings-panels .form-grid, .report-grid { grid-template-columns: 1fr; }
    .chart-panel { grid-column: 1 / -1; }
    .filter-popover { position: fixed; inset: auto 10px 18px; min-width: 0; }
    .calendar > div { padding: 4px; }
    .calendar-event { font-size: 10px; }
    .line-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    .checklist-row { align-items: flex-start; flex-wrap: wrap; }
    .checklist-row > strong { flex-basis: 100%; }
    .dialog-fields { padding: 25px 0 32px; gap: 18px; }
}
@media print {
    #sidebar, .topbar, .breadcrumb, .actions, .filters, .pager, .tabs, .back, .notice, .row-tools { display: none !important; }
    .app { margin: 0; }
    .workspace { min-height: 0; padding: 0; }
    .table-scroll { overflow: visible; }
    table { page-break-inside: auto; }
    tr { page-break-inside: avoid; }
    th, td { padding: 7px; }
}
