@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("manrope-latin-ext.6d36d5bdedfa.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("manrope-latin.938c6e8019b6.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: Phosphor;
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("phosphor.527636c38907.woff2") format("woff2");
}
.ph { display: inline-block; font-family: Phosphor, sans-serif; font-style: normal; font-weight: 400; line-height: 1; flex: 0 0 auto; }
:root {
  color-scheme: dark;
  --bg: #12151b;
  --sidebar: #14181f;
  --topbar: #151920;
  --surface: #1a1f28;
  --surface-alt: #202632;
  --raised: #282f3b;
  --field: #171b23;
  --line: #2b3340;
  --strong-line: #404b5b;
  --text: #f2f5f9;
  --secondary: #c3ccd8;
  --muted: #9daabd;
  --primary: #ff875c;
  --primary-hover: #ffa17d;
  --on-primary: #20100a;
  --link: #ff9a75;
  --focus: #ff9a75;
  --chart-revenue: #67d8b5;
  --chart-expense: #8b9de6;
  --mint: #8be0bf;
  --mint-bg: #233a35;
  --blue: #aabbff;
  --blue-bg: #2b3450;
  --orange: #ff9a75;
  --orange-bg: #3d2c29;
  --amber: #f6c373;
  --amber-bg: #3b3327;
  --red: #ffc0c4;
  --red-bg: #46282f;
  --shadow: 0 10px 30px #080a0f4a;
  --radius: 14px;
  --sidebar-width: 232px;
  --topbar-height: 64px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f9;
  --sidebar: #fff;
  --topbar: #fff;
  --surface: #fff;
  --surface-alt: #f2f5fa;
  --raised: #e6ecf3;
  --field: #fff;
  --line: #dce3eb;
  --strong-line: #adb9c8;
  --text: #17212f;
  --secondary: #39475b;
  --muted: #536378;
  --primary: #b7411e;
  --primary-hover: #a43515;
  --on-primary: #fff;
  --link: #a23718;
  --focus: #b7411e;
  --chart-revenue: #168b6d;
  --chart-expense: #5b73d3;
  --mint: #12634f;
  --mint-bg: #e0f4eb;
  --blue: #3d53af;
  --blue-bg: #e7ebfe;
  --orange: #a23718;
  --orange-bg: #fcebe3;
  --amber: #865612;
  --amber-bg: #fbf0da;
  --red: #a12838;
  --red-bg: #fce8ea;
  --shadow: 0 10px 35px #33476118;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-padding-block-start: calc(var(--topbar-height) + 16px); }
body { min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); font-family: Manrope, system-ui, -apple-system, sans-serif; font-size: 1rem; line-height: 1.55; }
h1, h2, h3, p, ul, ol, dl { margin-block: 0; }
h1, h2, h3 { color: var(--text); line-height: 1.25; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.85rem, 3.3vw, 2.5rem); font-weight: 800; letter-spacing: -.055em; }
h2 { font-size: 1.12rem; font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: .95rem; font-weight: 750; letter-spacing: -.01em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
#hlavny-obsah:focus { outline: none; }
::selection { background: var(--primary); color: var(--on-primary); }
.sr-only, .skip-link:not(:focus) { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.skip-link:focus { position: fixed; z-index: 100; top: 8px; left: 8px; padding: .65rem 1rem; border: 1px solid var(--focus); border-radius: 8px; background: var(--surface); }
.muted, .lead { color: var(--muted); }
.lead { margin-block-start: .4rem; }
.nowrap { white-space: nowrap; }
.align-right { text-align: right !important; }
.stack { display: grid; gap: 1rem; }
.stack > * { min-width: 0; }

.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; z-index: 25; top: 0; align-self: start; display: flex; flex-direction: column; min-width: 0; height: 100vh; height: 100dvh; padding: 1.35rem .8rem .9rem; background: var(--sidebar); border-right: 1px solid var(--line); }
.brand { display: flex; gap: .7rem; align-items: center; margin: 0 .55rem 1.5rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { display: block; border-radius: 10px; flex: 0 0 37px; }
.brand strong { display: block; font-size: 1.14rem; font-weight: 800; letter-spacing: .09em; line-height: 1.15; }
.brand small { display: block; margin-top: .16rem; color: var(--muted); font-size: .74rem; font-weight: 700; line-height: 1.2; }
.navigation { display: grid; gap: 1.12rem; padding: .1rem 0 .6rem; overflow-y: auto; scrollbar-width: thin; }
.nav-group { display: grid; gap: .18rem; }
.nav-caption { margin: 0 .67rem .32rem; color: var(--muted); font-size: .73rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.nav-group a { position: relative; display: flex; gap: .66rem; align-items: center; min-height: 42px; padding: .51rem .67rem; border: 1px solid transparent; border-radius: 8px; color: var(--secondary); font-size: .88rem; font-weight: 730; text-decoration: none; }
.nav-group a i { color: var(--muted); font-size: 1.16rem; }
.nav-group a:hover { background: var(--surface-alt); color: var(--text); }
.nav-group a[aria-current="page"] { border-color: color-mix(in srgb, var(--orange) 22%, transparent); background: var(--orange-bg); color: var(--orange); }
.nav-group a[aria-current="page"] i { color: var(--orange); }
.sidebar-account { display: flex; gap: .3rem; align-items: center; justify-content: space-between; margin-top: auto; padding: .8rem .2rem 0; border-top: 1px solid var(--line); }
.account { display: flex; flex: 1; gap: .55rem; align-items: center; min-width: 0; padding: .17rem; color: var(--text); text-decoration: none; }
.account:hover { color: var(--link); }
.account > span:last-child { min-width: 0; }
.account strong, .account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account strong { font-size: .9rem; font-weight: 800; }
.account small { color: var(--muted); font-size: .76rem; }
.avatar { display: grid; flex: 0 0 36px; place-items: center; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); background: var(--blue-bg); font-weight: 800; }
.main-shell { min-width: 0; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; justify-content: space-between; gap: .75rem; align-items: center; min-height: var(--topbar-height); padding: 0 clamp(1.15rem, 3vw, 2.6rem); border-bottom: 1px solid var(--line); background: var(--topbar); }
.topbar-left, .topbar-actions { display: flex; gap: .52rem; align-items: center; }
.workspace-label { display: inline-flex; gap: .55rem; align-items: center; color: var(--secondary); font-size: .86rem; font-weight: 750; }
.workspace-label i { color: var(--muted); font-size: 1.2rem; }
.icon-button { position: relative; display: inline-grid; min-inline-size: 42px; min-block-size: 42px; padding: .5rem; place-items: center; border: 1px solid transparent; border-radius: 9px; color: var(--secondary); background: transparent; font-size: 1.25rem; line-height: 1; text-decoration: none; }
.icon-button:hover { color: var(--text); border-color: var(--line); background: var(--surface-alt); }
.topbar-actions .icon-button { border-color: var(--line); }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
[data-theme="dark"] .theme-moon, [data-theme="light"] .theme-sun { display: none; }
.mobile-menu { display: none; }
.nav-scrim { position: fixed; z-index: 24; inset: 0; width: 100%; border: 0; background: #04070cb3; }

.page-content { max-width: 1760px; padding: 1.86rem clamp(1.15rem, 3vw, 2.6rem) 2.5rem; margin-inline: auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin-block-end: 1.45rem; }
.page-head > div { min-width: 0; }
.page-head .lead { overflow-wrap: anywhere; }
.dashboard-head { margin-block-end: 1.55rem; }
.crumb { display: inline-block; margin-block-end: .45rem; }
.panel { min-width: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel + .panel { margin-top: 1rem; }
.panel > h2:first-child, .panel-head { margin-bottom: .95rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; }
.panel-head h2 { margin: 0; }
.panel-symbol { display: grid; min-width: 34px; min-height: 34px; place-items: center; border-radius: 8px; font-size: 1.14rem; }
.panel > .actions:last-child { margin-top: .9rem; }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.split-grid > .panel, .dashboard-grid > .panel, .stack > .panel, .note-grid > .panel { margin: 0; }
.split-grid + *, .stack + *, .detail-grid + * { margin-block-start: 1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .48rem; min-height: 44px; padding: .49rem .88rem; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface-alt); font-size: .87rem; font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--text); border-color: var(--strong-line); background: var(--raised); }
.btn i { font-size: 1.06rem; }
.btn.primary, .btn.btn-primary { color: var(--on-primary); border-color: var(--primary); background: var(--primary); }
.btn.primary:hover, .btn.btn-primary:hover { color: var(--on-primary); border-color: var(--primary-hover); background: var(--primary-hover); }
.btn.secondary, .btn.btn-secondary { color: var(--secondary); border-color: var(--strong-line); background: var(--surface); }
.btn.secondary:hover, .btn.btn-secondary:hover { color: var(--text); background: var(--surface-alt); }
.btn.danger, .btn.btn-danger { color: var(--red); border-color: var(--red); background: var(--red-bg); }
.btn.danger:hover, .btn.btn-danger:hover { color: var(--red); background: var(--surface-alt); }
.btn:disabled { cursor: not-allowed; opacity: .65; }
.text-link { color: var(--link); font-size: .87rem; font-weight: 800; text-decoration: none; }
.text-link:hover, .table-link:hover { text-decoration: underline; }
.text-link.subdued { color: var(--muted); }
.table-link { color: var(--text); font-weight: 800; text-decoration: none; }
.badge { display: inline-flex; align-items: center; gap: .3rem; min-height: 24px; padding: .15rem .45rem; border: 1px solid transparent; border-radius: 6px; color: var(--secondary); background: var(--surface-alt); font-size: .8rem; font-weight: 760; line-height: 1.2; white-space: nowrap; }
.badge.status-new, .badge.new { color: var(--blue); background: var(--blue-bg); }
.badge.status-in_progress, .badge.in_progress { color: var(--orange); background: var(--orange-bg); }
.badge.status-completed, .badge.status-confirmed, .badge.completed { color: var(--mint); background: var(--mint-bg); }
.badge.status-cancelled, .badge.cancelled { color: var(--muted); background: var(--raised); }
.badge.status-pending, .badge.waiting { color: var(--amber); background: var(--amber-bg); }
.actions { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.actions > form { margin: 0; }
.error-screen { max-width: 600px; margin: 3rem auto; }
.form-panel { max-width: 880px; }

.overview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .6rem 1.1rem; flex-wrap: wrap; margin-block-end: .75rem; }
.overview-period { display: flex; align-items: baseline; gap: .35rem .8rem; flex-wrap: wrap; }
.overview-period span { color: var(--muted); font-size: .82rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.segmented { display: inline-flex; align-items: stretch; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.segmented a { display: grid; min-height: 34px; padding: .22rem .72rem; place-items: center; border: 1px solid transparent; border-radius: 6px; color: var(--muted); font-size: .82rem; font-weight: 800; white-space: nowrap; text-decoration: none; }
.segmented a:hover { color: var(--text); }
.segmented a[aria-current="true"] { border-color: var(--strong-line); color: var(--text); background: var(--raised); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.stat-card { display: grid; gap: .35rem; min-width: 0; padding: .95rem 1.05rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.stat-top h3 { color: var(--secondary); }
.stat-icon { display: grid; flex: 0 0 36px; height: 36px; place-items: center; border-radius: 9px; font-size: 1.18rem; }
.tone-mint { color: var(--mint); background: var(--mint-bg); }
.tone-blue { color: var(--blue); background: var(--blue-bg); }
.tone-orange { color: var(--orange); background: var(--orange-bg); }
.tone-amber { color: var(--amber); background: var(--amber-bg); }
.stat-card > strong { overflow-wrap: anywhere; color: var(--text); font-size: clamp(1.3rem, 2.2vw, 1.94rem); font-weight: 800; line-height: 1.25; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat-card > strong span { color: var(--muted); font-size: .67em; }
.stat-note { color: var(--muted); font-size: .77rem; font-weight: 650; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: .85rem; margin-block: .92rem; }
.dashboard-chart { min-height: 285px; }
.chart-key { display: flex; gap: .9rem; margin-bottom: .65rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.chart-key span { display: inline-flex; align-items: center; gap: .35rem; }
.chart-swatch { width: 9px; height: 9px; border-radius: 3px; }
.chart-swatch.revenue, .bar.revenue { background: var(--chart-revenue); }
.chart-swatch.expense, .bar.expense { background: var(--chart-expense); }
.chart-scroll { padding: .05rem .06rem .26rem; overflow-x: auto; scrollbar-width: thin; }
.chart-plot { position: relative; display: flex; width: max-content; min-width: 100%; min-height: 174px; margin: .35rem 0 0; padding-inline: .12rem; border-radius: 5px; }
.chart-plot::before { position: absolute; z-index: 0; inset: 0 0 29px; border-block-end: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); content: ""; }
.chart-column { position: relative; display: grid; flex: 1 0 44px; grid-template-rows: minmax(0, 1fr) 28px; min-width: 0; align-items: end; justify-items: center; }
.bar-group { position: relative; z-index: 1; display: flex; align-items: end; justify-content: center; gap: clamp(2px, .4vw, 5px); width: 90%; max-width: 62px; height: 100%; border-radius: 4px 4px 0 0; }
.bar-group:focus-visible { z-index: 4; outline-offset: -2px; }
.bar { width: 26%; min-width: 5px; max-width: 16px; height: 2px; border-radius: 4px 4px 0 0; }
.bar[data-bar-height="0"] { opacity: .42; }
.bar-label { align-self: center; color: var(--muted); font-size: .75rem; font-weight: 680; white-space: nowrap; }
.bar-tooltip { position: absolute; z-index: 5; top: 3px; left: 50%; display: none; gap: .2rem; min-width: max-content; padding: .4rem .6rem; border: 1px solid var(--strong-line); border-radius: 7px; color: var(--text); background: var(--surface-alt); box-shadow: var(--shadow); font-size: .75rem; font-weight: 700; transform: translateX(-50%); pointer-events: none; }
.chart-column:first-child .bar-tooltip { left: 0; transform: none; }
.chart-column:last-child .bar-tooltip { right: 0; left: auto; transform: none; }
.bar-group:hover { z-index: 4; }
.bar-group:hover .bar-tooltip, .bar-group:focus .bar-tooltip { display: grid; }
.active-orders { display: flex; gap: .55rem; align-items: baseline; padding: 0 0 .75rem; margin-block-end: .05rem; border-bottom: 1px solid var(--line); }
.active-orders strong { color: var(--text); font-size: 2.15rem; font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.active-orders span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.status-list, .booking-list, .alert-list { padding: 0; list-style: none; }
.status-list li { display: grid; grid-template-columns: 9px 1fr auto; gap: .48rem; align-items: center; min-height: 31px; padding-top: .27rem; color: var(--secondary); font-size: .84rem; }
.status-list strong { color: var(--text); font-variant-numeric: tabular-nums; }
.status-color { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status-color.color-blue { background: var(--blue); }
.status-color.color-orange { background: var(--orange); }
.status-color.color-green { background: var(--mint); }
.status-color.color-cyan { background: var(--chart-expense); }
.dashboard-jobs, .dashboard-calendar { min-height: 200px; }
.dashboard-table td { padding-block: .65rem; }
.booking-list li { display: flex; align-items: center; gap: .65rem; padding: .5rem 0; }
.booking-list li + li { border-top: 1px solid var(--line); }
.booking-date { display: grid; flex: 0 0 45px; min-height: 47px; padding: .16rem; place-content: center; text-align: center; line-height: 1; border: 1px solid var(--line); border-radius: 7px; color: var(--orange); background: var(--orange-bg); }
.booking-date > strong { font-size: 1.13rem; }
.booking-date > span { margin-top: .15rem; font-size: .73rem; }
.booking-list li > div { display: grid; gap: .18rem; min-width: 0; }
.booking-list li > div .table-link { overflow-wrap: anywhere; font-size: .87rem; }
.booking-list li > div span { color: var(--muted); font-size: .82rem; }
.alert-list li { display: flex; align-items: flex-start; gap: .65rem; padding: .5rem 0; }
.alert-list li + li { border-top: 1px solid var(--line); }
.alert-list li > i { margin-top: .25rem; color: var(--amber); }
.alert-list p { color: var(--muted); font-size: .85rem; }
.dashboard-alerts { scroll-margin-block-start: .4rem; }

.table-wrap { min-width: 0; overflow-x: auto; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; color: var(--secondary); text-align: left; }
thead { color: var(--muted); }
th, td { padding: .62rem .55rem; vertical-align: middle; }
th { font-size: .8rem; font-weight: 800; white-space: nowrap; }
td { border-top: 1px solid var(--line); font-size: .9rem; overflow-wrap: anywhere; }
th:first-child, td:first-child { padding-inline-start: .08rem; }
th:last-child, td:last-child { padding-inline-end: .08rem; }
td small { display: block; margin-block-start: .08rem; color: var(--muted); font-size: .77rem; }
.table-wrap td a { white-space: normal; }
.row-actions { display: flex; align-items: center; gap: .45rem .75rem; }
.row-actions a { padding-block: .3rem; white-space: nowrap; }
.search-form, .pagination { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.search-form { margin-block-end: 1rem; }
.search-input { position: relative; width: min(100%, 350px); }
.search-input i { position: absolute; top: 50%; left: .7rem; color: var(--muted); transform: translateY(-50%); }
.search-input input { padding-inline-start: 2.05rem; }
.pagination { justify-content: flex-end; margin-top: .75rem; color: var(--muted); font-size: .84rem; }
.empty-state { display: grid; justify-items: center; align-content: center; gap: .3rem; min-height: 112px; padding: .85rem .25rem; color: var(--muted); font-size: .87rem; text-align: center; }
.empty-state i { color: var(--muted); font-size: 1.55rem; }
.empty-state a { padding: .2rem; }

form label { color: var(--secondary); font-size: .89rem; font-weight: 800; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { display: block; width: 100%; min-height: 44px; margin: 0; padding: .5rem .68rem; border: 1px solid var(--strong-line); border-radius: 8px; color: var(--text); background: var(--field); font-size: 1rem; line-height: 1.4; }
select { appearance: none; padding-inline-end: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type="checkbox"], input[type="radio"] { width: 1.12rem; height: 1.12rem; margin: .25rem .35rem .25rem 0; vertical-align: middle; accent-color: var(--primary); }
input[type="file"]::file-selector-button { margin-right: .6rem; padding: .3rem .55rem; border: 1px solid var(--strong-line); border-radius: 5px; color: var(--text); background: var(--surface-alt); font: inherit; }
textarea { min-height: 100px; resize: vertical; }
fieldset { padding: .74rem; border: 1px solid var(--line); border-radius: 8px; }
legend { padding-inline: .25rem; color: var(--secondary); font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.field { display: grid; gap: .3rem; align-content: start; min-width: 0; }
.form-grid .wide-field { grid-column: 1 / -1; }
.required-indicator { color: var(--link); }
.helptext { color: var(--muted); font-size: .83rem; }
.helptext ul { padding-inline-start: 1.1rem; }
.errorlist { margin: 0; padding-inline-start: 1.08rem; color: var(--red); font-size: .86rem; font-weight: 700; }
.form-errors, .message { padding: .65rem .75rem; border: 1px solid var(--strong-line); border-radius: 8px; color: var(--secondary); background: var(--surface-alt); }
.form-errors, .message-error { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.message-success { border-color: var(--mint); color: var(--mint); background: var(--mint-bg); }
.message-warning { border-color: var(--amber); color: var(--amber); background: var(--amber-bg); }
.messages { display: grid; gap: .5rem; margin-block-end: 1rem; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: .85rem 1.1rem; }
.detail-grid dt { color: var(--muted); font-size: .81rem; font-weight: 760; }
.detail-grid dd { margin: .15rem 0 0; color: var(--text); overflow-wrap: anywhere; }
.note-grid, .photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.note-grid { margin-block: .85rem; }
.note-grid p, .detail-notes { overflow-wrap: anywhere; }
.photo-grid { margin-block: .5rem; }
.photo-card { min-width: 0; padding: .55rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-alt); }
.photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; background: var(--field); object-fit: contain; }
.photo-card p, .photo-card figcaption { padding-block: .35rem; overflow-wrap: anywhere; }
.data-list { padding-inline-start: 1.1rem; color: var(--secondary); }
.data-list > li + li { margin-top: .4rem; }
hr { border: 0; border-top: 1px solid var(--line); }

.guest-content { width: min(100%, 1250px); min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: clamp(1rem, 5vw, 4rem); display: grid; align-content: center; }
.login-page { display: grid; grid-template-columns: minmax(290px, 1fr) minmax(325px, .95fr); min-height: 480px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); background: var(--surface); }
.login-brand { position: relative; display: grid; align-items: center; isolation: isolate; overflow: hidden; min-height: 210px; padding: clamp(1.5rem, 5vw, 3.5rem); border-right: 1px solid #463b39; background: radial-gradient(ellipse at 70% 88%, #573126, transparent 60%), linear-gradient(145deg, #252932, #1a1d23 67%); }
.login-brand-inner { z-index: 2; }
.login-brand img { display: block; margin: 0 0 1.45rem; border-radius: 15px; }
.login-wordmark { color: #fff4ed; font-size: clamp(2rem, 5vw, 4.15rem); font-weight: 800; letter-spacing: .02em; line-height: .95; }
.login-subtitle { margin-top: .75rem; color: #ffc6b0; font-size: clamp(.91rem, 1.9vw, 1.2rem); font-weight: 700; }
.login-pattern { position: absolute; z-index: -1; top: 56%; left: 40%; width: min(53vw, 520px); aspect-ratio: 1; border: 1px solid #ff996b; border-radius: 16%; opacity: .42; transform: translate(-11%, -5%) rotate(39deg); }
.login-pattern::before, .login-pattern::after { position: absolute; inset: 11%; border: 1px solid #ff996b; border-radius: 16%; content: ""; }
.login-pattern::after { inset: 22%; }
.login-main { position: relative; display: grid; align-items: center; padding: clamp(1.1rem, 5vw, 3.5rem); }
.login-inner { width: min(100%, 365px); margin: auto; }
.login-inner form { margin-block-start: 1.4rem; }
.guest-theme { position: absolute; top: .7rem; right: .68rem; }

@media (max-width: 1200px) {
  :root { --sidebar-width: 211px; }
  .sidebar { padding-inline: .64rem; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .dashboard-table th, .dashboard-table td { padding-inline: .38rem; }
}
@media (max-width: 1000px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr); }
  .panel { padding: .95rem; }
  .stat-card { padding: .77rem .8rem; }
  .stat-icon { flex-basis: 30px; height: 30px; font-size: 1.04rem; }
  .stat-top h3 { font-size: .86rem; }
}
@media (max-width: 880px) {
  :root { --topbar-height: 58px; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(275px, calc(100vw - 42px)); visibility: hidden; padding-inline: .85rem; box-shadow: var(--shadow); transform: translateX(-102%); transition: transform .18s ease, visibility .18s; }
  .sidebar[data-open] { visibility: visible; transform: translateX(0); }
  .mobile-menu { display: inline-grid; }
  .topbar, .page-content { padding-inline: clamp(.85rem, 4vw, 1.7rem); }
  body.mobile-nav-open { overflow: hidden; }
}
@media (max-width: 650px) {
  .dashboard-grid, .split-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .form-grid, .note-grid { grid-template-columns: minmax(0, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-content { padding-block-start: 1.25rem; }
  .page-head { align-items: flex-start; margin-block-end: 1.05rem; }
  .overview-toolbar { align-items: flex-start; }
  .dashboard-chart { min-height: 252px; }
  .dashboard-jobs, .dashboard-calendar { min-height: 0; }
  .login-page { grid-template-columns: minmax(0, 1fr); }
  .login-brand { min-height: 170px; border-right: none; border-bottom: 1px solid #463b39; }
  .login-brand img { width: 48px; height: 48px; margin-block-end: .75rem; }
  .login-main { padding: 1.35rem 1.05rem 1.75rem; }
  .chart-plot { min-height: 151px; }
  .dashboard-grid { gap: .6rem; margin-block: .65rem; }
}
@media (max-width: 380px) {
  .workspace-label i { display: none; }
  .segmented a { padding-inline: .5rem; }
  .stat-note { font-size: .72rem; }
  .stat-card { padding-inline: .63rem; }
  .row-actions { align-items: start; flex-direction: column; gap: .15rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.ph.ph-bell::before { content: "\e0ce"; }
.ph.ph-calendar-blank::before { content: "\e10a"; }
.ph.ph-car-simple::before { content: "\e114"; }
.ph.ph-chart-line-up::before { content: "\e156"; }
.ph.ph-clipboard-text::before { content: "\e198"; }
.ph.ph-clock::before { content: "\e19a"; }
.ph.ph-clock-counter-clockwise::before { content: "\e1a0"; }
.ph.ph-device-mobile-camera::before { content: "\e1e2"; }
.ph.ph-download-simple::before { content: "\e20c"; }
.ph.ph-files::before { content: "\e710"; }
.ph.ph-garage::before { content: "\ecd6"; }
.ph.ph-handshake::before { content: "\e582"; }
.ph.ph-list::before { content: "\e2f0"; }
.ph.ph-magnifying-glass::before { content: "\e30c"; }
.ph.ph-moon::before { content: "\e330"; }
.ph.ph-package::before { content: "\e390"; }
.ph.ph-plus::before { content: "\e3d4"; }
.ph.ph-receipt::before { content: "\e3ec"; }
.ph.ph-sign-out::before { content: "\e42a"; }
.ph.ph-squares-four::before { content: "\e464"; }
.ph.ph-sun::before { content: "\e472"; }
.ph.ph-tray::before { content: "\e4aa"; }
.ph.ph-trend-up::before { content: "\e4ae"; }
.ph.ph-users::before { content: "\e4d6"; }
.ph.ph-wallet::before { content: "\e68a"; }
.ph.ph-warning-circle::before { content: "\e4e2"; }
.ph.ph-wrench::before { content: "\e5d4"; }
