:root {
  --ink: #15171c;
  --ink-soft: #31343b;
  --muted: #6f747d;
  --paper: #ffffff;
  --canvas: #f5f3ef;
  --canvas-2: #ece9e3;
  --line: #e3e0da;
  --line-dark: #d2cec6;
  --brand: #d91f26;
  --brand-dark: #ad1016;
  --brand-soft: #fff0f0;
  --success: #137a52;
  --success-soft: #e8f7f0;
  --warning: #a7600a;
  --warning-soft: #fff5df;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --info: #245ec7;
  --info-soft: #edf3ff;
  --shadow-sm: 0 8px 24px rgba(24, 26, 31, .06);
  --shadow-md: 0 18px 55px rgba(24, 26, 31, .10);
  --shadow-lg: 0 30px 90px rgba(12, 14, 18, .18);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 90% 0%, rgba(217,31,38,.045), transparent 28rem), var(--canvas); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.app-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(215,211,204,.9); backdrop-filter: blur(18px); }
.header-inner { width: min(1500px, calc(100% - 36px)); height: 100%; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0,1fr) 315px; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.brand-mark { width: 60px; height: 46px; display: grid; place-items: center; }
.brand-mark img { width: 58px; height: 42px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 18px; letter-spacing: .08em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.desktop-nav { display: flex; justify-content: center; align-items: center; gap: 4px; }
.desktop-nav a { position: relative; padding: 12px 14px; border-radius: 12px; color: #51555e; font-size: 14px; font-weight: 750; transition: .18s ease; }
.desktop-nav a:hover { color: var(--ink); background: #f4f2ee; }
.desktop-nav a.is-active { color: var(--ink); background: #eeece7; }
.desktop-nav a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--brand); }
.nav-count, .menu-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: white; font-size: 10px; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-width: 0; }
.desktop-user { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.desktop-logout { margin: 0; }
.desktop-logout button { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink-soft); font-size: 13px; font-weight: 800; cursor: pointer; transition: .16s ease; }
.desktop-logout button:hover { border-color: #e4b8b6; background: var(--danger-soft); color: var(--danger); transform: translateY(-1px); }
.desktop-logout button:focus-visible { outline: 3px solid rgba(217,31,38,.18); outline-offset: 2px; }
.desktop-logout svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon-button > span { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; background: var(--brand); color: white; font-size: 10px; font-weight: 800; border: 2px solid white; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; padding: 11px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 21px; height: 2px; border-radius: 2px; background: var(--ink); transition: .18s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }

.page-shell { width: min(1440px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 80px; }
.messages { display: grid; gap: 8px; margin-bottom: 18px; }
.message { padding: 14px 16px; border: 1px solid #bdd0f9; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--info); font-weight: 650; }
.message.success { border-color: #b7e4d0; background: var(--success-soft); color: var(--success); }
.message.error { border-color: #f3c7c2; background: var(--danger-soft); color: var(--danger); }
.message.info { border-color: var(--line); background: white; color: var(--ink-soft); }

.eyebrow { display: inline-block; color: var(--brand); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.light { color: #ffb5b8; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin: 8px 0 26px; }
.page-heading h1, .hero-panel h1, .client-hero h1, .company-hero h1, .job-hero h1, .equipment-hero h1, .request-detail-hero h1, .document-hero h1 { margin: 8px 0 0; font-size: clamp(32px, 4.8vw, 58px); line-height: .98; letter-spacing: -.045em; }
.page-heading p, .hero-panel p, .client-hero p { max-width: 720px; margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.narrow-heading { width: min(1060px, 100%); margin-inline: auto; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover, .text-link { color: var(--brand); }
.actions, .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 13px; padding: 10px 17px; font-weight: 800; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: white; box-shadow: 0 8px 22px rgba(217,31,38,.20); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 12px 30px rgba(217,31,38,.25); }
.btn-secondary { background: white; border-color: var(--line-dark); color: var(--ink); }
.btn-secondary:hover { background: #f8f7f4; }
.btn-dark { background: var(--ink); color: white; }
.btn-dark:hover { background: #000; }
.btn-light { background: white; color: var(--ink); }
.btn-danger-outline { background: transparent; border-color: #ecc4c0; color: var(--danger); }
.btn-large { min-height: 52px; padding-inline: 23px; border-radius: 15px; }
.btn-small { min-height: 36px; padding: 7px 12px; border-radius: 10px; font-size: 13px; }
.btn-block { width: 100%; }

.hero-panel { min-height: 250px; padding: 42px; border-radius: var(--radius-lg); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; overflow: hidden; position: relative; color: white; box-shadow: var(--shadow-md); }
.hero-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.18), transparent 30%), linear-gradient(135deg,#17191f,#090a0d 75%); }
.hero-panel::after { content: ""; position: absolute; width: 370px; height: 370px; right: -180px; bottom: -230px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.035),0 0 0 88px rgba(255,255,255,.025); }
.hero-panel > * { position: relative; z-index: 1; }
.hero-panel .eyebrow { color: #ff9da1; }
.hero-panel p { color: rgba(255,255,255,.68); }
.hero-panel h1 { max-width: 760px; }

.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 16px 0 28px; }
.metric-card { position: relative; min-height: 142px; display: grid; align-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); overflow: hidden; transition: .18s ease; }
.metric-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.metric-card > span { color: var(--muted); font-size: 13px; font-weight: 750; }
.metric-card strong { font-size: 38px; letter-spacing: -.04em; }
.metric-card small { color: var(--muted); }
.metric-card.accent-red { background: linear-gradient(145deg,var(--brand),#b90f15); color: white; border-color: transparent; }
.metric-card.accent-red > span,.metric-card.accent-red small { color: rgba(255,255,255,.74); }

.dashboard-grid, .client-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.panel-span-2 { grid-column: span 2; }
.panel-span-3 { grid-column: span 3; }
.panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.025em; }
.panel-heading > h2 { margin: 0; }
.panel-heading > a { color: var(--brand); font-size: 13px; font-weight: 800; }
.compact-panel { padding: 20px; }
.content-panel h2 { margin: 5px 0 14px; font-size: 24px; }
.success-panel { border-left: 4px solid var(--success); }

.clean-list { display: grid; }
.clean-list.compact .clean-row { padding-block: 12px; }
.clean-row { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.clean-row:last-child { border-bottom: 0; }
.clean-row:hover .row-main strong { color: var(--brand); }
.row-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #f0efeb; color: var(--ink); font-weight: 850; }
.row-icon.is-danger { background: var(--danger-soft); color: var(--danger); }
.row-main { min-width: 0; display: grid; gap: 4px; flex: 1; }
.row-main strong,.row-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main small,.row-meta small { color: var(--muted); }
.row-meta { display: grid; justify-items: end; gap: 3px; font-size: 12px; }
.empty-compact { min-height: 130px; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; color: var(--muted); }
.empty-compact strong { color: var(--ink); }
.empty-state { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; border: 1px dashed var(--line-dark); border-radius: var(--radius-lg); background: rgba(255,255,255,.55); color: var(--muted); }
.empty-state strong { color: var(--ink); font-size: 22px; }
.empty-state p { margin: 0 0 8px; }
.empty-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: white; box-shadow: var(--shadow-sm); color: var(--brand); font-size: 28px; }

.timeline-list { display: grid; }
.timeline-list a { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.timeline-list a:last-child { border-bottom: 0; }
.timeline-list time { color: var(--brand); font-weight: 850; }
.timeline-list span { display: grid; gap: 3px; }
.timeline-list small { color: var(--muted); }
.job-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.job-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fbfaf8; transition: .18s ease; }
.job-card:hover { border-color: #c9c4bb; transform: translateY(-2px); }
.job-card > div:first-child,.job-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-card h3 { margin: 20px 0 4px; font-size: 18px; }
.job-card p { margin: 0; color: var(--muted); font-size: 13px; }
.job-card footer { margin-top: 18px; color: var(--muted); font-size: 12px; }
.job-number { color: var(--muted); font-size: 11px; font-weight: 800; }

.client-hero { min-height: 330px; display: grid; grid-template-columns: 1fr 250px; align-items: end; gap: 34px; padding: 48px; border-radius: var(--radius-lg); background: radial-gradient(circle at 80% 20%,rgba(255,255,255,.11),transparent 25%),linear-gradient(135deg,#181a20,#090a0d); color: white; box-shadow: var(--shadow-md); }
.client-hero h1 { max-width: 700px; }
.client-hero p { color: rgba(255,255,255,.68); margin-bottom: 24px; }
.client-hero .eyebrow { color: #ff9da1; }
.client-hero-status { min-height: 200px; display: grid; align-content: center; justify-items: center; padding: 24px; border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); text-align: center; }
.client-hero-status > span,.client-hero-status small { color: rgba(255,255,255,.66); }
.client-hero-status strong { font-size: 64px; line-height: 1; margin: 12px 0; }
.client-grid { margin-top: 18px; }
.feature-link { display: block; }
.feature-link h3 { margin: 18px 0 6px; font-size: 22px; }
.feature-link p { color: var(--muted); line-height: 1.55; }
.feature-link footer { display: flex; justify-content: space-between; margin-top: 24px; color: var(--muted); font-size: 13px; }
.feature-link footer span { color: var(--brand); font-weight: 800; }

.badge { width: max-content; display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; background: #efefec; color: #494d54; font-size: 11px; font-weight: 850; }
.status-active,.status-resolved,.status-completed,.status-final { background: var(--success-soft); color: var(--success); }
.status-new,.status-open { background: var(--info-soft); color: var(--info); }
.status-review,.status-scheduled,.status-in_progress,.status-draft { background: var(--warning-soft); color: var(--warning); }
.status-cancelled,.status-fault,.status-offline,.status-urgent { background: var(--danger-soft); color: var(--danger); }
.status-service_due { background: #fff0dc; color: #a75300; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #9a9da3; box-shadow: 0 0 0 4px rgba(154,157,163,.12); }
.status-dot-active { background: var(--success); box-shadow: 0 0 0 4px rgba(19,122,82,.12); }
.status-dot-service_due { background: var(--warning); box-shadow: 0 0 0 4px rgba(167,96,10,.12); }
.status-dot-fault,.status-dot-offline { background: var(--danger); box-shadow: 0 0 0 4px rgba(180,35,24,.12); }
.urgent-flag { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--danger); color: white; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.inline-labels { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

.search-bar { display: grid; grid-template-columns: minmax(0,1fr) max-content; gap: 10px; margin-bottom: 18px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.search-bar-wide { grid-template-columns: minmax(0,1fr) minmax(190px,250px) max-content; }
.subnav { display: flex; align-items: center; gap: 6px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 2px; }
.subnav a { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: 12px; font-weight: 800; }
.subnav a.is-active { background: var(--ink); border-color: var(--ink); color: white; }

.company-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.company-card { min-width: 0; display: grid; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); transition: .18s ease; }
.company-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-dark); }
.company-card-top,.company-card footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.company-monogram { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: white; font-size: 19px; font-weight: 850; text-transform: uppercase; }
.company-monogram.large { width: 68px; height: 68px; border-radius: 20px; font-size: 28px; }
.company-card h2 { margin: 28px 0 6px; font-size: 22px; letter-spacing: -.025em; }
.company-card > p { margin: 0; color: var(--muted); min-height: 42px; }
.company-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 22px 0; padding: 14px 0; border-block: 1px solid var(--line); }
.company-stats span { display: grid; gap: 2px; color: var(--muted); font-size: 11px; }
.company-stats strong { color: var(--ink); font-size: 18px; }
.company-card footer { color: var(--muted); font-size: 12px; }
.company-card footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-card footer strong { color: var(--brand); }
.company-hero,.job-hero,.equipment-hero,.request-detail-hero,.document-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.company-identity { display: flex; align-items: center; gap: 18px; }
.company-hero h1,.job-hero h1,.equipment-hero h1,.request-detail-hero h1,.document-hero h1 { font-size: clamp(30px,4vw,50px); }
.company-hero p,.job-hero p,.equipment-hero p,.request-detail-hero p,.document-hero p { margin: 8px 0 0; color: var(--muted); }
.detail-layout { display: grid; grid-template-columns: minmax(0,2.1fr) minmax(280px,.9fr); gap: 18px; align-items: start; }
.detail-main,.detail-sidebar { display: grid; gap: 18px; }
.object-stack { display: grid; gap: 12px; }
.object-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fbfaf8; }
.object-card header { display: flex; justify-content: space-between; gap: 16px; }
.object-card h3 { margin: 0; font-size: 18px; }
.object-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.object-card footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.object-card footer a { color: var(--brand); font-size: 13px; font-weight: 800; }
.equipment-chips { display: grid; gap: 8px; margin-top: 16px; }
.equipment-chips a { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: white; border: 1px solid var(--line); }
.equipment-chips small { color: var(--muted); }
.info-list { display: grid; grid-template-columns: 120px 1fr; margin: 0; }
.info-list dt,.info-list dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--muted); font-size: 12px; }
.info-list dd { font-weight: 650; overflow-wrap: anywhere; }
.contact-list { display: grid; }
.contact-list a { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list a:last-child { border-bottom: 0; }
.contact-list span { color: var(--muted); font-size: 11px; }
.contact-list strong { font-size: 13px; overflow-wrap: anywhere; }

.equipment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.equipment-grid.large-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.equipment-card { min-width: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fbfaf8; }
.equipment-card.premium { min-height: 150px; background: white; box-shadow: var(--shadow-sm); }
.equipment-card:hover { border-color: var(--line-dark); transform: translateY(-2px); }
.equipment-card > div { min-width: 0; display: grid; gap: 4px; }
.equipment-card strong,.equipment-card small,.equipment-card p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.equipment-card small,.equipment-card p { color: var(--muted); }
.equipment-card p { margin: 7px 0 0; font-size: 12px; }
.equipment-icon { width: 50px; height: 50px; position: relative; display: grid !important; place-items: center; border-radius: 15px; background: var(--ink); color: white; font-weight: 850; font-size: 20px; }
.equipment-icon .status-dot { position: absolute; right: -2px; bottom: -2px; border: 3px solid white; }
.card-arrow { color: var(--brand); font-size: 20px; font-weight: 800; }

.request-hero { width: min(880px,100%); margin: 0 auto 22px; text-align: center; }
.request-hero h1 { margin: 8px 0 8px; font-size: clamp(36px,6vw,62px); letter-spacing: -.05em; }
.request-hero p { margin: 0; color: var(--muted); font-size: 17px; }
.request-stack,.job-list,.document-list,.notification-stack { display: grid; gap: 11px; }
.request-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); transition: .18s ease; }
.request-card:hover,.job-list-card:hover,.document-list-card:hover,.notification-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.request-index { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #f0efeb; font-weight: 850; }
.request-content { min-width: 0; }
.request-content > div { display: flex; gap: 8px; align-items: center; }
.request-content h2 { margin: 6px 0 4px; font-size: 19px; }
.request-content p { margin: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-content footer { display: flex; gap: 14px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.request-detail-hero { align-items: center; }
.large-prose { font-size: 17px; line-height: 1.7; }
.prose { white-space: pre-line; line-height: 1.65; }

.job-list-card { display: grid; grid-template-columns: 160px minmax(0,1fr) 190px 24px; gap: 18px; align-items: center; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); transition: .18s ease; }
.job-list-status { display: grid; gap: 10px; }
.job-list-status > strong { font-size: 12px; color: var(--muted); }
.job-list-main { min-width: 0; }
.job-list-main h2 { margin: 0 0 4px; font-size: 19px; }
.job-list-main p,.job-list-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.job-list-main p { margin: 0; font-size: 13px; }
.job-list-main small { margin-top: 8px; }
.job-list-meta { display: grid; justify-items: end; gap: 6px; color: var(--muted); font-size: 12px; text-align: right; }
.side-link-card { display: grid; gap: 5px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.side-link-card > span,.side-link-card small { color: var(--muted); font-size: 11px; }
.side-link-card strong { font-size: 17px; }

.document-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.document-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf8; }
.document-card:hover { border-color: var(--line-dark); background: white; }
.document-card > div { min-width: 0; display: grid; gap: 3px; }
.document-card strong,.document-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-card small { color: var(--muted); }
.document-type { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 900; }
.document-type.large { width: 58px; height: 58px; border-radius: 16px; font-size: 14px; }
.document-list-card { display: grid; grid-template-columns: auto minmax(0,1fr) 180px 24px; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); transition: .18s ease; }
.document-list-card h2 { margin: 4px 0; font-size: 19px; }
.document-list-card p { margin: 0; color: var(--muted); }
.document-meta { display: grid; justify-items: end; gap: 8px; color: var(--muted); font-size: 12px; }
.document-hero > div:first-child { display: flex; align-items: center; gap: 16px; }
.report-document { display: grid; gap: 0; }
.report-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.report-block:last-child { border-bottom: 0; }
.report-block > span { display: block; margin-bottom: 8px; color: var(--brand); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.report-block p { margin: 0; line-height: 1.65; }

.notification-card { display: grid; grid-template-columns: 12px minmax(0,1fr) 24px; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); transition: .18s ease; }
.notification-card.is-unread { border-left: 4px solid var(--brand); }
.notification-dot { width: 9px; height: 9px; border-radius: 50%; background: #c4c5c8; }
.notification-card.is-unread .notification-dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(217,31,38,.10); }
.notification-card p { margin: 5px 0; color: var(--muted); }
.notification-card small { color: var(--muted); }

.premium-form { width: min(1060px,100%); margin: 0 auto; display: grid; gap: 16px; }
.compact-form { width: min(900px,100%); }
.form-section { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.form-section > header { display: grid; grid-template-columns: 38px 1fr; gap: 14px; margin-bottom: 22px; }
.form-section > header > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: white; font-size: 11px; font-weight: 850; }
.form-section h2 { margin: 0; font-size: 20px; }
.form-section header p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.form-group { min-width: 0; display: grid; gap: 7px; }
.form-group.span-2,.span-2 { grid-column: span 2; }
.form-group label,.repeater label { color: var(--ink-soft); font-size: 13px; font-weight: 800; }
.form-group label small { color: var(--muted); font-weight: 600; }
.form-group > small,.form-group .helptext { color: var(--muted); font-size: 11px; line-height: 1.45; }
.form-control { width: 100%; min-height: 48px; border: 1px solid #d6d2cb; border-radius: 13px; padding: 11px 13px; background: #fff; color: var(--ink); outline: none; transition: .16s ease; }
.form-control:hover { border-color: #bdb8ae; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(217,31,38,.09); }
textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.55; }
select.form-control { cursor: pointer; }
input[type="file"].form-control { padding: 9px; }
.errorlist { margin: 0; padding: 9px 11px; list-style: none; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 12px; }
.sticky-form-actions { position: sticky; bottom: 12px; z-index: 15; display: flex; justify-content: flex-end; gap: 10px; padding: 12px; border: 1px solid rgba(218,214,207,.95); border-radius: 17px; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); box-shadow: var(--shadow-md); }
.important-check,.switch-check { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf8; cursor: pointer; }
.important-check { border-color: #efc4c1; background: var(--danger-soft); }
.important-check input,.switch-check input { width: 19px; height: 19px; accent-color: var(--brand); }
.important-check span,.switch-check span { display: grid; gap: 2px; }
.important-check small,.switch-check small { color: var(--muted); font-size: 11px; }
.repeaters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.repeater { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf8; }
.repeater h3 { margin: 0 0 12px; font-size: 15px; }
.repeater-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.delete-check { grid-column: span 2; color: var(--danger) !important; font-size: 11px !important; }
.request-form { width: min(880px,100%); }

.auth-body { background: #0d0f13; }
.auth-shell { width: 100%; padding: 0; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1.2fr .8fr; }
.auth-brand-panel { position: relative; display: grid; align-items: end; padding: 7vw; overflow: hidden; color: white; background: radial-gradient(circle at 75% 20%,rgba(217,31,38,.35),transparent 26%),linear-gradient(145deg,#17191f,#07080a 70%); }
.auth-brand-panel::after { content: ""; position: absolute; width: 620px; height: 620px; right: -320px; bottom: -310px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.025),0 0 0 120px rgba(255,255,255,.015); }
.auth-brand-content { position: relative; z-index: 1; max-width: 720px; }
.auth-brand-content > img { width: 190px; height: 120px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); margin-bottom: 42px; }
.auth-brand-content h1 { margin: 10px 0 16px; font-size: clamp(50px,7vw,92px); line-height: .93; letter-spacing: -.055em; }
.auth-brand-content p { max-width: 610px; color: rgba(255,255,255,.66); font-size: 18px; line-height: 1.6; }
.auth-features { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 32px; color: rgba(255,255,255,.82); font-size: 13px; }
.auth-form-panel { display: grid; place-items: center; padding: 40px; background: var(--canvas); }
.auth-card { width: min(420px,100%); }
.auth-card h2 { margin: 8px 0; font-size: 38px; letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 28px; color: var(--muted); }
.auth-card form { display: grid; gap: 16px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; color: var(--muted); font-size: 11px; }
.auth-divider::before,.auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-legal { display: block; margin-top: 18px; color: var(--muted); text-align: center; line-height: 1.5; }
.auth-mobile-logo { display: none; }

.mobile-fab { display: none; }
.install-offer { position: fixed; z-index: 100; left: 50%; bottom: max(18px,env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(620px,calc(100% - 28px)); display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 13px; padding: 12px; border: 1px solid #3d4048; border-radius: 17px; background: rgba(20,22,27,.96); color: white; box-shadow: var(--shadow-lg); backdrop-filter: blur(18px); }
.install-offer[hidden] { display: none; }
.install-offer img { width: 44px; height: 44px; border-radius: 12px; }
.install-offer > div { display: grid; gap: 3px; }
.install-offer span { color: rgba(255,255,255,.62); font-size: 11px; }
.install-dismiss { width: 32px; height: 32px; border: 0; background: transparent; color: white; font-size: 22px; cursor: pointer; }
.install-help { width: min(430px,calc(100% - 28px)); padding: 30px; border: 0; border-radius: 24px; box-shadow: var(--shadow-lg); text-align: center; }
.install-help::backdrop { background: rgba(8,9,12,.62); backdrop-filter: blur(4px); }
.install-help img { width: 78px; border-radius: 18px; }
.install-help h2 { margin-bottom: 8px; }
.install-help p { color: var(--muted); line-height: 1.6; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f2f1ed; cursor: pointer; font-size: 20px; }

@media (max-width: 1180px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .desktop-nav,.desktop-user,.desktop-logout { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { position: fixed; top: calc(var(--header-h) + 8px); right: max(12px,env(safe-area-inset-right)); width: min(380px,calc(100vw - 24px)); max-height: calc(100dvh - var(--header-h) - 24px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; display: none; padding: 12px; padding-bottom: max(18px,env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-lg); }
  .mobile-menu.is-open { display: block; animation: menuIn .16s ease; }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
  .mobile-user-card { display: grid; grid-template-columns: 44px 1fr; gap: 11px; align-items: center; padding: 10px; margin-bottom: 8px; border-radius: 14px; background: #f6f4f0; }
  .avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--ink); color: white; font-weight: 850; }
  .mobile-user-card div { display: grid; gap: 3px; min-width: 0; }
  .mobile-user-card strong,.mobile-user-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-user-card small { color: var(--muted); }
  .mobile-menu nav { display: grid; gap: 3px; }
  .mobile-menu nav a { display: flex; justify-content: space-between; padding: 12px; border-radius: 12px; font-weight: 750; }
  .mobile-menu nav a:hover { background: #f3f1ed; }
  .mobile-menu .menu-primary { margin-top: 5px; background: var(--brand); color: white; }
  .advanced-link { color: var(--muted); font-size: 12px; }
  .mobile-logout { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
  .mobile-logout button { width: 100%; padding: 12px; border: 0; border-radius: 12px; background: var(--danger-soft); color: var(--danger); text-align: left; font-weight: 800; cursor: pointer; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .company-grid,.equipment-grid.large-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .header-inner,.page-shell { width: min(100% - 22px,1440px); }
  .brand-mark { width: 52px; }
  .brand-mark img { width: 52px; }
  .brand-copy { display: none; }
  .page-shell { padding-top: 22px; padding-bottom: 110px; }
  .page-heading,.company-hero,.job-hero,.equipment-hero,.request-detail-hero,.document-hero { align-items: flex-start; flex-direction: column; }
  .page-heading h1,.hero-panel h1,.client-hero h1 { font-size: 38px; }
  .hero-panel { min-height: 310px; padding: 26px; align-items: flex-start; flex-direction: column; justify-content: space-between; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .metric-grid { gap: 10px; }
  .metric-card { min-height: 120px; padding: 16px; }
  .metric-card strong { font-size: 32px; }
  .dashboard-grid,.client-grid { grid-template-columns: 1fr; }
  .panel-span-2,.panel-span-3 { grid-column: auto; }
  .job-grid,.document-grid,.equipment-grid,.company-grid,.equipment-grid.large-grid { grid-template-columns: 1fr; }
  .client-hero { min-height: 440px; grid-template-columns: 1fr; padding: 28px; align-items: start; }
  .client-hero-status { min-height: 140px; grid-template-columns: 1fr auto; justify-items: start; text-align: left; }
  .client-hero-status strong { grid-column: 2; grid-row: 1 / span 3; font-size: 54px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { order: -1; }
  .company-identity { align-items: flex-start; }
  .company-monogram.large { width: 56px; height: 56px; border-radius: 17px; }
  .search-bar,.search-bar-wide { grid-template-columns: 1fr; }
  .request-card { grid-template-columns: 42px minmax(0,1fr); }
  .request-card > .badge { grid-column: 2; }
  .request-content footer { flex-direction: column; gap: 3px; }
  .job-list-card { grid-template-columns: 1fr auto; }
  .job-list-main { grid-column: 1 / -1; grid-row: 1; }
  .job-list-status { grid-column: 1; grid-row: 2; }
  .job-list-meta { grid-column: 2; grid-row: 2; }
  .job-list-card > .card-arrow { display: none; }
  .document-list-card { grid-template-columns: auto 1fr; }
  .document-meta { grid-column: 2; justify-items: start; }
  .document-list-card > .card-arrow { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.span-2,.span-2 { grid-column: auto; }
  .form-section { padding: 20px; }
  .repeaters { grid-template-columns: 1fr; }
  .sticky-form-actions { bottom: max(10px,env(safe-area-inset-bottom)); }
  .sticky-form-actions .btn { flex: 1; }
  .mobile-fab { position: fixed; z-index: 40; left: 50%; bottom: max(14px,env(safe-area-inset-bottom)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; background: var(--brand); color: white; box-shadow: 0 15px 40px rgba(217,31,38,.35); font-weight: 850; }
  .mobile-fab span { font-size: 20px; line-height: 1; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { min-height: 100vh; padding: 28px 22px; }
  .auth-mobile-logo { display: block; margin-bottom: 26px; }
  .auth-mobile-logo img { width: 150px; height: 90px; object-fit: contain; object-position: left; }
  .install-offer { grid-template-columns: 42px 1fr auto; bottom: max(78px,calc(env(safe-area-inset-bottom) + 70px)); }
  .install-offer .install-dismiss { position: absolute; top: -10px; right: -7px; border-radius: 50%; background: var(--ink); }
}

@media (max-width: 520px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 112px; }
  .metric-card small { display: none; }
  .panel { padding: 19px; border-radius: 16px; }
  .info-list { grid-template-columns: 105px 1fr; }
  .repeater-row { grid-template-columns: 1fr; }
  .delete-check { grid-column: auto; }
  .request-card { padding: 16px; }
  .company-card { padding: 18px; }
  .company-stats { grid-template-columns: repeat(3,1fr); }
  .company-stats span { font-size: 9px; }
}

@media print {
  .app-header,.actions,.hero-actions,.sticky-form-actions,.mobile-fab,.messages,.install-offer { display: none !important; }
  body,html { background: white; }
  .page-shell { width: 100%; padding: 0; }
  .panel { box-shadow: none; }
}

/* Lightweight Serbian date and date-time pickers */
.datetime-input-wrap,.date-input-wrap { position: relative; }
.datetime-input-wrap .form-control,.date-input-wrap .form-control { padding-right: 48px; }
.datetime-trigger,.date-trigger { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; background: #f3f1ed; color: var(--ink); cursor: pointer; font-weight: 850; }
.datetime-picker-panel,.date-picker-panel { position: fixed; z-index: 120; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-lg); }
.datetime-picker-header,.date-picker-head { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 8px; margin-bottom: 10px; }
.datetime-picker-header strong,.date-picker-head strong { text-align: center; font-size: 14px; }
.datetime-picker-nav,.date-picker-head button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: #f3f1ed; cursor: pointer; font-size: 22px; }
.datetime-picker-weekdays,.datetime-picker-days,.date-picker-week,.date-picker-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.datetime-picker-weekdays,.date-picker-week { margin-bottom: 5px; }
.datetime-picker-weekdays span,.date-picker-week span { display: grid; place-items: center; color: var(--muted); font-size: 10px; font-weight: 800; }
.datetime-picker-day,.date-picker-day { min-height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; }
.datetime-picker-day:hover,.date-picker-day:hover { background: #f3f1ed; }
.datetime-picker-day.is-today { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }
.datetime-picker-day.is-selected,.date-picker-day.is-selected { background: var(--brand); color: white; }
.datetime-picker-day.is-empty,.date-picker-day:empty { cursor: default; }
.datetime-picker-time { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.datetime-picker-time label { color: var(--muted); font-size: 11px; font-weight: 800; }
.datetime-picker-time-controls { display: flex; align-items: center; gap: 5px; }
.datetime-picker-time select { height: 36px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.datetime-picker-actions,.date-picker-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.datetime-picker-link,.date-picker-foot button { border: 0; border-radius: 9px; padding: 8px 10px; background: #f3f1ed; color: var(--ink-soft); cursor: pointer; font-size: 11px; font-weight: 800; }
.client-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 14px 0 18px; }
.client-shortcuts a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.78); }
.client-shortcuts span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.client-shortcuts strong { font-size: 13px; }
@media (max-width:820px){.client-shortcuts{grid-template-columns:1fr}.mobile-nav-logout{margin-top:9px;padding-top:9px;border-top:1px solid var(--line)}}
.mobile-nav-logout { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.mobile-nav-logout button { width: 100%; padding: 12px; border: 0; border-radius: 12px; background: var(--danger-soft); color: var(--danger); text-align: left; font-weight: 800; cursor: pointer; }

/* v1.1 — premium brand, administration center and access request */
:root { --header-h: 88px; }
.app-header { background: rgba(255,255,255,.95); }
.header-inner { grid-template-columns: 230px minmax(0,1fr) 250px; }
.brand-site-link { position: relative; height: 72px; gap: 10px; padding: 5px 8px 5px 0; border-radius: 16px; transition: .18s ease; }
.brand-site-link:hover { transform: translateY(-1px); }
.brand-mark { width: 154px; height: 68px; place-items: center start; }
.brand-mark img { width: 150px; height: 64px; object-fit: contain; object-position: left center; filter: drop-shadow(0 5px 12px rgba(20,22,27,.08)); }
.brand-portal-tag { align-self: center; padding: 6px 8px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 850; line-height: 1.25; text-transform: uppercase; letter-spacing: .08em; }
.admin-nav-link { margin-left: 5px; border: 1px solid #ead8d7; color: var(--brand) !important; background: var(--brand-soft); }
.admin-nav-link:hover,.admin-nav-link.is-active { border-color: #e5b9b6; background: #ffe7e7 !important; }
.mobile-admin-link { margin-top: 7px; border: 1px solid #efd4d2; background: var(--brand-soft); color: var(--brand); }

/* Administration center */
.admin-hero { position: relative; min-height: 250px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 22px; padding: 38px; overflow: hidden; border-radius: 30px; color: white; background: radial-gradient(circle at 82% 12%,rgba(229,55,62,.38),transparent 26%),linear-gradient(135deg,#17191f,#08090c 72%); box-shadow: var(--shadow-md); }
.admin-hero::after { content:""; position:absolute; width:420px; height:420px; right:-220px; bottom:-260px; border:1px solid rgba(255,255,255,.09); border-radius:50%; box-shadow:0 0 0 48px rgba(255,255,255,.025),0 0 0 100px rgba(255,255,255,.015); }
.admin-hero > * { position: relative; z-index: 1; }
.admin-hero h1 { max-width: 840px; margin: 8px 0 12px; font-size: clamp(38px,5vw,68px); line-height: .98; letter-spacing: -.05em; }
.admin-hero p { max-width: 660px; margin: 0; color: rgba(255,255,255,.66); font-size: 16px; line-height: 1.55; }
.admin-module-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 13px; margin-bottom: 22px; }
.admin-module-card { position: relative; min-height: 230px; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-sm); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.admin-module-card:hover { transform: translateY(-3px); border-color: var(--line-dark); box-shadow: var(--shadow-md); }
.admin-module-primary { color: white; border-color: #24272e; background: linear-gradient(145deg,#24272e,#101217); }
.admin-module-primary p,.admin-module-primary small { color: rgba(255,255,255,.6) !important; }
.admin-module-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--brand-soft); color: var(--brand); font-weight: 900; }
.admin-module-primary .admin-module-icon { background: rgba(255,255,255,.1); color: white; }
.admin-module-card div { align-self: end; }
.admin-module-card small { color: var(--brand); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.admin-module-card h2 { margin: 6px 0 9px; font-size: 21px; line-height: 1.1; }
.admin-module-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-module-card > strong { position: absolute; top: 20px; right: 20px; font-size: 29px; letter-spacing: -.04em; }
.admin-module-card > .card-arrow { justify-self: end; align-self: end; font-size: 24px; }
.admin-overview-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* User management */
.user-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.user-management-card { display:grid; gap:18px; padding:22px; border:1px solid var(--line); border-radius:22px; background:white; box-shadow:var(--shadow-sm); }
.user-management-head { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:13px; align-items:center; }
.user-management-head h2 { margin:0 0 4px; font-size:18px; }
.user-management-head p { margin:0; color:var(--muted); font-size:12px; }
.large-avatar { width:50px; height:50px; border-radius:15px; }
.mini-info { display:grid; grid-template-columns:118px minmax(0,1fr); gap:8px 12px; margin:0; padding:14px; border-radius:14px; background:#f8f6f2; font-size:12px; }
.mini-info dt { color:var(--muted); }
.mini-info dd { margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:750; }
.card-actions { display:flex; flex-wrap:wrap; gap:8px; }
.card-actions form { display:inline-flex; }
.company-select-grid { width:min(980px,100%); margin:0 auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.company-select-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:14px; align-items:center; padding:18px; border:1px solid var(--line); border-radius:18px; background:white; box-shadow:var(--shadow-sm); transition:.18s ease; }
.company-select-card:hover { transform:translateY(-2px); border-color:var(--brand); }
.company-select-card div { display:grid; gap:4px; }
.company-select-card small { color:var(--muted); }
.portal-user-mini-list { display:grid; gap:8px; }
.portal-user-mini { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:10px; align-items:center; padding:10px; border-radius:13px; background:#f8f6f2; }
.portal-user-mini .avatar { width:40px; height:40px; }
.portal-user-mini div { min-width:0; display:grid; gap:3px; }
.portal-user-mini strong,.portal-user-mini small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.portal-user-mini small { color:var(--muted); font-size:11px; }

/* Access request administration */
.request-admin-list { display:grid; gap:10px; }
.request-admin-card { display:grid; grid-template-columns:52px minmax(0,1fr) auto 24px; gap:15px; align-items:center; padding:18px 20px; border:1px solid var(--line); border-radius:18px; background:white; box-shadow:var(--shadow-sm); transition:.18s ease; }
.request-admin-card:hover { transform:translateY(-2px); border-color:var(--line-dark); box-shadow:var(--shadow-md); }
.request-admin-avatar,.request-review-badge { display:grid; place-items:center; border-radius:16px; background:var(--ink); color:white; font-weight:900; }
.request-admin-avatar { width:50px; height:50px; }
.request-admin-card h2 { margin:0 0 4px; font-size:18px; }
.request-admin-card p { margin:0; color:var(--muted); }
.request-admin-card small { display:block; margin-top:6px; color:var(--muted); }
.request-review-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; padding:30px; border-radius:25px; background:linear-gradient(135deg,#fff,#f4f1eb); border:1px solid var(--line); box-shadow:var(--shadow-sm); }
.request-review-hero h1 { margin:6px 0; font-size:clamp(34px,5vw,58px); letter-spacing:-.05em; }
.request-review-hero p { margin:0; color:var(--muted); }
.request-review-badge { width:82px; height:82px; font-size:28px; }
.info-list-wide { grid-template-columns:150px 1fr; }
.review-message { margin-top:20px; padding:18px; border-radius:16px; background:#f8f6f2; }
.review-message span { color:var(--brand); font-size:10px; font-weight:850; text-transform:uppercase; letter-spacing:.1em; }
.review-message p { margin:8px 0 0; line-height:1.6; }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.settings-card { display:grid; grid-template-columns:52px minmax(0,1fr) auto; gap:15px; align-items:center; min-height:130px; padding:22px; border:1px solid var(--line); border-radius:20px; background:white; box-shadow:var(--shadow-sm); }
.settings-card > span { width:50px; height:50px; display:grid; place-items:center; border-radius:15px; background:var(--brand-soft); color:var(--brand); font-weight:900; }
.settings-card h2 { margin:0 0 6px; }
.settings-card p { margin:0; color:var(--muted); }
.settings-card-advanced { border-style:dashed; }

/* Premium public access request */
.auth-body:has(.access-layout),.auth-body:has(.access-success-layout) { background:#0c0e12; }
.auth-shell:has(.access-layout),.auth-shell:has(.access-success-layout) { width:100%; max-width:none; margin:0; padding:0; }
.access-layout { min-height:100vh; display:grid; grid-template-columns:minmax(380px,.84fr) minmax(620px,1.16fr); background:var(--canvas); }
.access-story-panel { position:relative; min-height:100vh; display:grid; grid-template-rows:auto 1fr auto; padding:42px clamp(32px,5vw,78px); overflow:hidden; color:white; background:radial-gradient(circle at 72% 18%,rgba(217,31,38,.34),transparent 29%),linear-gradient(145deg,#191b21,#07080b 74%); }
.access-story-panel::after { content:""; position:absolute; width:620px; height:620px; right:-360px; bottom:-350px; border:1px solid rgba(255,255,255,.1); border-radius:50%; box-shadow:0 0 0 65px rgba(255,255,255,.025),0 0 0 138px rgba(255,255,255,.014); }
.access-logo-link,.access-story-content,.access-story-foot { position:relative; z-index:1; }
.access-logo-plate,.auth-logo-plate { width:max-content; display:inline-flex; align-items:center; justify-content:center; padding:14px 20px; border-radius:20px; background:rgba(255,255,255,.96); box-shadow:0 18px 50px rgba(0,0,0,.22); }
.access-logo-plate img { width:190px; height:112px; object-fit:contain; }
.access-story-content { align-self:center; max-width:660px; }
.access-story-content h1 { margin:13px 0 18px; font-size:clamp(45px,6vw,78px); line-height:.95; letter-spacing:-.055em; }
.access-story-content > p { margin:0; max-width:610px; color:rgba(255,255,255,.66); font-size:17px; line-height:1.65; }
.access-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:34px; }
.access-steps > div { display:grid; gap:6px; padding:16px; border:1px solid rgba(255,255,255,.11); border-radius:17px; background:rgba(255,255,255,.045); backdrop-filter:blur(10px); }
.access-steps span { color:#ff9296; font-size:11px; font-weight:900; }
.access-steps strong { font-size:13px; }
.access-steps small { color:rgba(255,255,255,.52); line-height:1.45; }
.access-story-foot { align-self:end; color:rgba(255,255,255,.38); font-size:11px; letter-spacing:.04em; }
.access-form-panel { min-height:100vh; display:grid; align-items:start; padding:36px clamp(24px,5vw,76px) 56px; overflow:auto; background:radial-gradient(circle at 100% 0%,rgba(217,31,38,.055),transparent 26rem),var(--canvas); }
.access-form-wrap { width:min(780px,100%); margin:0 auto; }
.access-form-top { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:42px; color:var(--muted); font-size:12px; }
.access-form-top a { color:var(--ink); font-weight:800; }
.access-form-heading { margin-bottom:24px; }
.access-form-heading h2 { margin:8px 0 10px; font-size:clamp(36px,5vw,58px); line-height:1; letter-spacing:-.05em; }
.access-form-heading p { max-width:650px; margin:0; color:var(--muted); line-height:1.6; }
.access-request-premium-form { display:grid; gap:14px; }
.access-fieldset { margin:0; padding:22px; border:1px solid var(--line); border-radius:21px; background:white; box-shadow:var(--shadow-sm); }
.access-fieldset legend { display:flex; align-items:center; gap:10px; margin:0 0 18px; padding:0 8px 0 0; }
.access-fieldset legend > span { width:33px; height:33px; display:grid; place-items:center; border-radius:11px; background:var(--ink); color:white; font-size:11px; font-weight:900; }
.access-fieldset legend > div { display:grid; gap:2px; }
.access-fieldset legend strong { font-size:16px; }
.access-fieldset legend small { color:var(--muted); font-size:11px; }
.access-check-group { align-self:end; }
.access-privacy-card { display:flex; align-items:flex-start; gap:13px; padding:17px; border:1px solid #d9d5ce; border-radius:17px; background:rgba(255,255,255,.75); cursor:pointer; }
.access-privacy-card input { width:20px; height:20px; margin-top:2px; accent-color:var(--brand); }
.access-privacy-card span { display:grid; gap:4px; }
.access-privacy-card small { color:var(--muted); line-height:1.5; }
.access-submit { justify-content:space-between; padding-inline:22px; }
.access-submit span { font-size:22px; }
.access-security-note { margin:0; color:var(--muted); text-align:center; font-size:11px; line-height:1.5; }
.access-success-layout { min-height:100vh; display:grid; place-items:center; padding:30px; background:radial-gradient(circle at 74% 12%,rgba(217,31,38,.24),transparent 25rem),linear-gradient(145deg,#17191f,#07080b 74%); }
.access-success-card { width:min(650px,100%); display:grid; justify-items:center; gap:16px; padding:44px; border-radius:30px; background:white; box-shadow:0 35px 100px rgba(0,0,0,.28); text-align:center; }
.success-logo img { width:180px; height:105px; object-fit:contain; }
.success-check { width:68px; height:68px; display:grid; place-items:center; margin-top:6px; border-radius:50%; background:var(--success-soft); color:var(--success); font-size:30px; font-weight:900; }
.access-success-card h1 { margin:0; font-size:clamp(38px,6vw,62px); line-height:1; letter-spacing:-.05em; }
.access-success-card > p { max-width:500px; margin:0; color:var(--muted); line-height:1.6; }
.success-next-steps { width:100%; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:8px 0; }
.success-next-steps div { display:grid; gap:8px; justify-items:center; padding:14px; border-radius:14px; background:#f7f5f1; }
.success-next-steps span { width:28px; height:28px; display:grid; place-items:center; border-radius:9px; background:var(--ink); color:white; font-size:10px; font-weight:900; }
.success-next-steps strong { font-size:12px; }

/* Branded login logo */
.auth-logo-plate { margin-bottom:34px; }
.auth-logo-plate img { width:185px; height:108px; object-fit:contain; }
.auth-brand-content > img { display:none; }
.auth-mobile-logo a { display:inline-flex; padding:10px 14px; border:1px solid var(--line); border-radius:17px; background:white; box-shadow:var(--shadow-sm); }
.auth-mobile-logo img { width:176px !important; height:100px !important; object-position:center !important; }

@media (max-width: 1320px) {
  .admin-module-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .user-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .access-layout { grid-template-columns:minmax(340px,.75fr) minmax(580px,1.25fr); }
  .access-steps { grid-template-columns:1fr; }
}

@media (max-width:1180px) {
  :root { --header-h:80px; }
  .brand-site-link { height:66px; }
  .brand-mark { width:138px; height:62px; }
  .brand-mark img { width:134px; height:58px; }
  .brand-portal-tag { display:none; }
  .admin-overview-grid { grid-template-columns:1fr; }
}

@media (max-width:900px) {
  .access-layout { grid-template-columns:1fr; }
  .access-story-panel { min-height:auto; padding:28px 24px 34px; grid-template-rows:auto auto; }
  .access-story-content { margin-top:34px; }
  .access-story-content h1 { font-size:46px; }
  .access-story-content > p,.access-steps,.access-story-foot { display:none; }
  .access-logo-plate { padding:9px 14px; border-radius:16px; }
  .access-logo-plate img { width:145px; height:84px; }
  .access-form-panel { min-height:auto; padding:28px 20px 55px; }
  .access-form-top { margin-bottom:28px; }
  .admin-module-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .settings-grid,.company-select-grid { grid-template-columns:1fr; }
}

@media (max-width:820px) {
  :root { --header-h:72px; }
  .brand-site-link { height:60px; padding:2px 0; }
  .brand-mark { width:112px; height:58px; }
  .brand-mark img { width:108px; height:54px; }
  .admin-hero { min-height:280px; align-items:flex-start; flex-direction:column; padding:26px; }
  .admin-hero h1 { font-size:44px; }
  .admin-module-grid,.user-card-grid { grid-template-columns:1fr; }
  .admin-module-card { min-height:190px; }
  .request-admin-card { grid-template-columns:46px minmax(0,1fr) auto; }
  .request-admin-card > .card-arrow { display:none; }
  .request-admin-card > .badge { grid-column:2; justify-self:start; }
  .request-review-hero { align-items:flex-start; }
  .request-review-badge { width:58px; height:58px; }
  .access-form-top span { display:none; }
  .access-fieldset { padding:18px; }
  .success-next-steps { grid-template-columns:1fr; }
  .access-success-card { padding:30px 22px; }
}

@media (max-width:520px) {
  .brand-mark { width:100px; }
  .brand-mark img { width:98px; }
  .admin-module-grid { grid-template-columns:1fr; }
  .access-story-content h1 { font-size:38px; }
  .access-form-heading h2 { font-size:38px; }
  .access-fieldset legend small { display:none; }
  .user-management-head { grid-template-columns:auto minmax(0,1fr); }
  .user-management-head > .badge { grid-column:2; justify-self:start; }
  .mini-info { grid-template-columns:100px minmax(0,1fr); }
}

/* Kamenolom — izdvojen operativni modul */
.quarry-nav-link { color:#7a4a00 !important; background:#fff6df; border-radius:12px; }
.quarry-nav-link.is-active { color:white !important; background:#8b5b0c !important; }
.mobile-quarry-link { color:#7a4a00 !important; background:#fff6df; }
.quarry-subnav { margin-top:-10px; }
.quarry-subnav a.is-active { background:#8b5b0c; border-color:#8b5b0c; }
.quarry-hero { min-height:255px; display:flex; align-items:flex-end; justify-content:space-between; gap:30px; margin-bottom:18px; padding:38px; overflow:hidden; position:relative; border-radius:var(--radius-lg); color:white; background:radial-gradient(circle at 85% 10%,rgba(255,204,92,.24),transparent 31%),linear-gradient(135deg,#242018,#0b0b0a 74%); box-shadow:var(--shadow-md); }
.quarry-hero::after { content:""; position:absolute; width:420px; height:420px; right:-230px; bottom:-270px; border:1px solid rgba(255,255,255,.12); border-radius:50%; box-shadow:0 0 0 48px rgba(255,255,255,.025),0 0 0 98px rgba(255,255,255,.02); }
.quarry-hero > * { position:relative; z-index:1; }
.quarry-hero .eyebrow { color:#ffd476; }
.quarry-hero h1 { margin:8px 0 0; font-size:clamp(42px,6vw,72px); line-height:.94; letter-spacing:-.055em; }
.quarry-hero p { max-width:680px; margin:14px 0 0; color:rgba(255,255,255,.68); font-size:16px; }
.quarry-date-filter { width:min(440px,100%); display:grid; grid-template-columns:1fr auto; gap:8px; align-items:end; padding:14px; border:1px solid rgba(255,255,255,.14); border-radius:17px; background:rgba(255,255,255,.08); backdrop-filter:blur(8px); }
.quarry-date-filter label { grid-column:1/-1; color:rgba(255,255,255,.72); font-size:11px; font-weight:800; }
.quarry-date-filter .form-control { min-height:44px; }
.quarry-alert-card { border-color:#e8b5ae; background:linear-gradient(145deg,#fff,#fff1ef); }
.quarry-dashboard-grid { align-items:start; }
.quarry-record-list { display:grid; }
.quarry-record-list-large { padding:0 22px; border:1px solid var(--line); border-radius:var(--radius); background:white; box-shadow:var(--shadow-sm); }
.quarry-record { min-width:0; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; padding:15px 0; border-bottom:1px solid var(--line); }
.quarry-record:last-child { border-bottom:0; }
.quarry-record:hover > div > strong { color:var(--brand); }
.quarry-record > div { min-width:0; }
.quarry-record strong { display:block; font-size:14px; }
.quarry-record p { margin:5px 0 4px; color:var(--ink-soft); line-height:1.45; }
.quarry-record small { color:var(--muted); font-size:11px; line-height:1.45; }
.quarry-record > time,.quarry-record-meta { color:var(--muted); font-size:11px; white-space:nowrap; }
.quarry-record-meta { display:grid; justify-items:end; gap:7px; }
.quarry-avatar { width:44px; height:44px; display:grid; place-items:center; flex:0 0 auto; border-radius:14px; background:#fff0cf; color:#7a4a00; font-size:18px; font-weight:900; text-transform:uppercase; }
.quarry-avatar.is-dark { background:var(--ink); color:white; }
.quarry-card-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.quarry-person-card { min-width:0; display:grid; padding:20px; border:1px solid var(--line); border-radius:var(--radius); background:white; box-shadow:var(--shadow-sm); transition:.18s ease; }
.quarry-person-card:hover { transform:translateY(-3px); border-color:var(--line-dark); box-shadow:var(--shadow-md); }
.quarry-person-top,.quarry-person-card footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.quarry-person-card h2 { margin:24px 0 5px; font-size:19px; letter-spacing:-.02em; }
.quarry-person-card p { margin:0; color:var(--muted); min-height:38px; }
.quarry-person-card footer { margin-top:20px; padding-top:13px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; }
.quarry-person-card footer strong { color:#8b5b0c; }
.quarry-two-column { display:grid; grid-template-columns:minmax(300px,.72fr) minmax(500px,1.28fr); gap:18px; align-items:start; }
.quarry-stock-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.quarry-stock-card { min-width:0; padding:20px; border:1px solid var(--line); border-radius:var(--radius); background:white; box-shadow:var(--shadow-sm); }
.quarry-stock-card.is-low { border-color:#edbdb7; background:linear-gradient(145deg,#fff,#fff3f1); }
.quarry-stock-card header,.quarry-stock-card footer { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.quarry-stock-card header a { min-width:0; display:grid; gap:4px; }
.quarry-stock-card header strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.quarry-stock-card header small,.quarry-stock-card footer { color:var(--muted); font-size:11px; }
.quarry-stock-card > div { display:flex; align-items:baseline; gap:8px; margin:30px 0 24px; }
.quarry-stock-card > div strong { font-size:40px; line-height:1; letter-spacing:-.05em; }
.quarry-stock-card > div span { color:var(--muted); font-weight:800; }
.quarry-stock-card footer { padding-top:13px; border-top:1px solid var(--line); }
.quarry-stock-card footer a { color:var(--brand); font-weight:800; }
.quarry-history { margin-top:18px; }
.quarry-table-wrap { width:100%; overflow-x:auto; }
.quarry-table { width:100%; border-collapse:collapse; min-width:760px; }
.quarry-table th,.quarry-table td { padding:13px 11px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.quarry-table th { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.05em; }
.quarry-table td { color:var(--ink-soft); font-size:13px; line-height:1.5; }
.quarry-table tbody tr:last-child td { border-bottom:0; }
.quarry-period-filter { grid-template-columns:1fr 1fr auto; align-items:end; }
.quarry-period-filter label { display:grid; gap:6px; color:var(--ink-soft); font-size:12px; font-weight:800; }
.quarry-report-stack { display:grid; gap:18px; }
.quarry-check { min-height:48px; display:flex; align-items:center; gap:10px; padding:11px 13px; border:1px solid var(--line); border-radius:13px; background:#fbfaf8; cursor:pointer; }
.quarry-check input { width:19px; height:19px; accent-color:var(--brand); }
.quarry-form select[multiple] { min-height:220px; padding:7px; }
.quarry-form select[multiple] option { padding:7px 9px; border-radius:7px; }

@media (max-width:1180px) {
  .quarry-card-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .quarry-stock-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px) {
  .quarry-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .quarry-two-column { grid-template-columns:1fr; }
}
@media (max-width:820px) {
  .quarry-subnav { margin-top:-15px; }
  .quarry-hero { min-height:auto; align-items:stretch; flex-direction:column; padding:26px; }
  .quarry-date-filter { width:100%; }
  .quarry-metrics,.quarry-report-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .quarry-dashboard-grid { grid-template-columns:1fr; }
  .quarry-dashboard-grid .panel-span-2 { grid-column:auto; }
  .quarry-stock-grid { grid-template-columns:1fr; }
  .quarry-record-list-large { padding:0 16px; }
}
@media (max-width:520px) {
  .quarry-card-grid,.quarry-metrics,.quarry-report-metrics { grid-template-columns:1fr; }
  .quarry-date-filter,.quarry-period-filter { grid-template-columns:1fr; }
  .quarry-record { grid-template-columns:auto minmax(0,1fr); }
  .quarry-record > time,.quarry-record-meta { grid-column:2; justify-items:start; }
  .quarry-person-card { padding:18px; }
}

/* Desetka v1.3.0 — portal kamenoloma bez ISKRA vizuelnog identiteta */
.desetka-brand { gap: 12px; text-decoration: none; }
.desetka-mark, .desetka-hero-mark, .desetka-mobile-mark {
  display: grid; place-items: center; background: #d61f26; color: #fff; font-weight: 950;
  letter-spacing: -.06em; box-shadow: 0 12px 26px rgba(214,31,38,.22);
}
.desetka-mark { width: 52px; height: 52px; border-radius: 15px; font-size: 22px; }
.desetka-brand .brand-copy strong { letter-spacing: .16em; font-size: 17px; }
.desetka-brand .brand-copy small { font-size: 10px; }
.desetka-hero-mark { width: 92px; height: 92px; border-radius: 28px; font-size: 40px; margin-bottom: 32px; }
.desetka-mobile-mark { width: 76px; height: 76px; border-radius: 22px; font-size: 30px; margin-bottom: 26px; }
.desetka-login .auth-brand-panel { background: radial-gradient(circle at 72% 20%,rgba(214,31,38,.35),transparent 26%),linear-gradient(145deg,#17191f,#07080a 70%); }
.desetka-login .auth-card { max-width: 520px; }
.desetka-login .auth-legal { display:block; margin-top:24px; }
.desetka-hero { background: linear-gradient(135deg,#17191f,#252a31); }
.desetka-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.clickable-row { cursor: pointer; }
.clickable-row:hover td { background: #faf7f1; }
.status-running,.status-completed,.status-verified,.status-received { background:#e7f6ed; color:#17683b; }
.status-fault,.status-critical,.status-urgent,.status-open { background:#fde9ea; color:#a51c22; }
.status-service,.status-waiting_part,.status-high { background:#fff1d9; color:#8d5b00; }
@media (max-width: 1050px) { .desetka-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) {
  .desetka-metrics { grid-template-columns: 1fr 1fr; }
  .desetka-brand .brand-copy small { display:none; }
  .desetka-mark { width:44px;height:44px;border-radius:13px;font-size:19px; }
}
@media (max-width: 430px) { .desetka-metrics { grid-template-columns: 1fr; } }

/* Desetka v1.4 — detaljni personalni karton */
.employee-card-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;color:var(--muted);font-size:11px}.employee-card-meta span{padding:5px 8px;background:#f6f4f0;border-radius:999px}.employee-profile-hero{display:grid;grid-template-columns:auto 1fr auto;gap:20px;align-items:center;padding:24px;margin-bottom:18px;background:linear-gradient(135deg,#171b21,#242a32);color:#fff;border-radius:24px}.employee-profile-avatar{width:76px;height:76px;border-radius:20px;display:grid;place-items:center;background:#df1d27;font-size:32px;font-weight:900}.employee-profile-hero h2{margin:8px 0 5px;font-size:28px}.employee-profile-hero p{margin:0;color:#c7ccd3}.employee-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr));gap:10px}.employee-profile-stats div{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);padding:13px;border-radius:14px}.employee-profile-stats span{display:block;font-size:10px;color:#b9c0c9;text-transform:uppercase;letter-spacing:.05em}.employee-profile-stats strong{display:block;margin-top:4px;font-size:16px}.employee-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.employee-dl{display:grid;grid-template-columns:minmax(150px,.65fr) 1.35fr;margin:0}.employee-dl dt,.employee-dl dd{padding:10px 0;border-bottom:1px solid var(--line)}.employee-dl dt{color:var(--muted);font-size:12px}.employee-dl dd{margin:0;font-weight:600}.preline{white-space:pre-line}.sensitive-note{display:block;color:#9b6a10;margin-top:4px;font-weight:500}.compact-list{display:grid;gap:8px}.compact-list>div{padding:11px 12px;background:#f7f5f1;border-radius:12px}.compact-list strong,.compact-list span{display:block}.compact-list span{margin-top:3px;color:var(--muted);font-size:11px}.muted{color:var(--muted)}
@media(max-width:820px){.employee-profile-hero{grid-template-columns:auto 1fr}.employee-profile-stats{grid-column:1/-1}.employee-detail-grid{grid-template-columns:1fr}}@media(max-width:520px){.employee-profile-hero{grid-template-columns:1fr}.employee-profile-stats{grid-template-columns:1fr 1fr}.employee-dl{grid-template-columns:1fr}.employee-dl dt{padding-bottom:2px}.employee-dl dd{padding-top:2px}}
