/* OmniFlow Design System 2026
   Pure presentation layer: no workflow, state or data behavior lives here. */

:root {
  --of-bg: #f4f6f8;
  --of-surface: #ffffff;
  --of-surface-subtle: #f8fafb;
  --of-surface-muted: #f1f4f6;
  --of-ink: #101828;
  --of-ink-2: #344054;
  --of-ink-3: #667085;
  --of-ink-4: #98a2b3;
  --of-line: #e4e7ec;
  --of-line-strong: #d0d5dd;
  --of-brand: #147357;
  --of-brand-hover: #0d5c45;
  --of-brand-soft: #eaf6f1;
  --of-blue: #2563eb;
  --of-red: #d92d20;
  --of-amber: #b54708;
  --of-radius-xs: 7px;
  --of-radius-sm: 10px;
  --of-radius: 14px;
  --of-radius-lg: 18px;
  --of-shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
  --of-shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --of-shadow-md: 0 12px 32px rgba(16, 24, 40, .08), 0 2px 8px rgba(16, 24, 40, .04);
  --of-focus: 0 0 0 3px rgba(20, 115, 87, .14);
}

html { background: var(--of-bg); color-scheme: light; }
body {
  background:
    radial-gradient(circle at 88% -12%, rgba(20,115,87,.055), transparent 28rem),
    var(--of-bg) !important;
  color: var(--of-ink-2) !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif !important;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(20,115,87,.18); color: var(--of-ink); }
* { scrollbar-color: #cbd2d9 transparent; }
*:focus-visible { outline: 0 !important; box-shadow: var(--of-focus) !important; }

/* Application chrome */
.container { max-width: 1680px !important; padding: 18px 24px 48px !important; }
.page-shell { gap: 20px !important; }
.workspace-main { min-width: 0; }
.workspace-sidebar { gap: 14px !important; }

.header {
  background: rgba(13, 18, 25, .97) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 8px 28px rgba(16,24,40,.10) !important;
}
.header-top { min-height: 74px !important; padding: 12px 24px !important; gap: 22px !important; }
.header h1 {
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -.035em !important;
  text-transform: none !important;
}
.header h1::after { content: " OS"; color: #7bd0ae; font-weight: 600; }
.header-fields { gap: 10px 16px !important; align-items: end !important; }
.header-field { gap: 5px !important; }
.header-field label {
  color: #98a2b3 !important;
  font-size: 9.5px !important;
  font-weight: 650 !important;
  letter-spacing: .075em !important;
}
.header input,
.header select {
  min-height: 36px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.075) !important;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
}
.header input::placeholder { color: #667085 !important; }

.tablet-side-nav {
  width: 86px !important;
  padding: 14px 10px calc(14px + env(safe-area-inset-bottom)) !important;
  background: #10151c !important;
  border-right: 1px solid rgba(255,255,255,.06) !important;
  box-shadow: 12px 0 32px rgba(16,24,40,.08) !important;
}
.tablet-side-logo {
  width: 44px !important;
  height: 44px !important;
  border-radius: 13px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.26) !important;
}
.tablet-side-nav-inner { gap: 4px !important; }
.tablet-side-btn {
  min-height: 54px !important;
  border-radius: 11px !important;
  color: #8590a0 !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  transition: color .15s ease, background .15s ease, transform .15s ease !important;
}
.tablet-side-btn svg { width: 21px !important; height: 21px !important; }
.tablet-side-btn:hover:not(.active) { background: rgba(255,255,255,.055) !important; color: #d0d5dd !important; }
.tablet-side-btn.active {
  background: #fff !important;
  color: #101828 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.22) !important;
  transform: none !important;
}

.tablet-command-bar {
  min-height: 58px !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  background: rgba(255,255,255,.94) !important;
  border: 1px solid var(--of-line) !important;
  border-radius: var(--of-radius) !important;
  box-shadow: var(--of-shadow-sm) !important;
  backdrop-filter: blur(18px);
}
.tablet-command-search input,
.global-search-input { background: var(--of-surface-subtle) !important; }

/* Navigation hierarchy */
.tabs-shell {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.tabs-nav {
  gap: 3px !important;
  padding: 6px !important;
  margin-bottom: 14px !important;
  border: 1px solid var(--of-line) !important;
  border-radius: var(--of-radius) !important;
  background: rgba(255,255,255,.82) !important;
  box-shadow: var(--of-shadow-xs) !important;
  backdrop-filter: blur(14px);
}
.tab-btn {
  min-height: 36px !important;
  padding: 7px 10px !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: var(--of-ink-3) !important;
  background: transparent !important;
  font-size: 11px !important;
  font-weight: 550 !important;
  box-shadow: none !important;
}
.tab-btn:hover { color: var(--of-ink) !important; background: var(--of-surface-muted) !important; }
.tab-btn.active {
  color: var(--of-ink) !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(16,24,40,.10) !important;
}
.tab-stage { border: 0 !important; background: transparent !important; }

/* Page-level hierarchy */
.workspace-hero,
.object360-head,
.budget-hero,
.service-costs-hero,
.history-hero {
  border: 1px solid var(--of-line) !important;
  border-radius: var(--of-radius-lg) !important;
  background: linear-gradient(145deg, #fff 0%, #f9fbfa 100%) !important;
  box-shadow: var(--of-shadow-sm) !important;
}
.workspace-hero { padding: 20px !important; margin-bottom: 14px !important; }
.workspace-kicker,
.object360-kicker,
.budget-kicker,
.service-costs-kicker {
  color: var(--of-brand) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
}
.workspace-title,
.object360-title,
.budget-title,
.service-costs-title {
  color: var(--of-ink) !important;
  font-size: clamp(19px, 1.7vw, 26px) !important;
  line-height: 1.18 !important;
  letter-spacing: -.035em !important;
}
.workspace-subtitle,
.object360-subtitle,
.budget-subtitle,
.service-costs-subtitle,
.global-panel-subtitle {
  color: var(--of-ink-3) !important;
  line-height: 1.5 !important;
}
.workspace-meta-grid { gap: 10px !important; margin-top: 18px !important; }
.workspace-meta-card {
  padding: 12px 14px !important;
  border: 1px solid var(--of-line) !important;
  border-radius: var(--of-radius-sm) !important;
  background: rgba(255,255,255,.82) !important;
  box-shadow: none !important;
}
.workspace-meta-label { color: var(--of-ink-4) !important; font-size: 9px !important; letter-spacing: .08em !important; }
.workspace-meta-value { color: var(--of-ink) !important; font-size: 13px !important; }
.workspace-meta-sub { color: var(--of-ink-3) !important; font-size: 10.5px !important; }

/* Reusable surfaces */
.global-panel,
.global-search-panel,
.budget-panel,
.table-section,
.dok-table-wrap,
.dok-doklad,
.history-panel,
.service-pbz-section,
.object360-section,
.object360-responsibility-panel,
.object360-relation-stream,
.object360-vault-head,
.object360-action-center,
.nast-section > .global-panel {
  border: 1px solid var(--of-line) !important;
  border-radius: var(--of-radius) !important;
  background: var(--of-surface) !important;
  box-shadow: var(--of-shadow-xs) !important;
}
.global-panel,
.global-search-panel,
.budget-panel { padding: 16px !important; }
.global-panel-head,
.budget-panel-head,
.dok-table-head,
.service-pbz-head {
  align-items: flex-start !important;
  gap: 14px !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid var(--of-line) !important;
}
.global-panel-title,
.budget-panel-title,
.dok-table-title,
.service-pbz-title,
.object360-responsibility-title {
  color: var(--of-ink) !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  letter-spacing: -.018em !important;
  font-weight: 650 !important;
}

/* Buttons */
.btn,
.object360-action,
.object360-contact-action,
.object360-event-action,
.object360-record-action,
.dok-subnav-btn,
.nast-subnav-btn,
.history-quick-chip {
  min-height: 36px !important;
  padding: 8px 13px !important;
  border: 1px solid var(--of-line-strong) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--of-ink-2) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  box-shadow: var(--of-shadow-xs) !important;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease !important;
}
.btn:hover,
.object360-action:hover,
.object360-contact-action:hover,
.object360-record-action:hover {
  transform: translateY(-1px) !important;
  border-color: #b8c0ca !important;
  box-shadow: var(--of-shadow-sm) !important;
}
.btn:active,
.object360-action:active { transform: translateY(0) !important; }
.btn.primary,
.object360-action.primary,
#uploadBtn,
#dokImportBtn,
button[onclick*="generateNewOfferNumber"],
button[style*="background:#143d34"],
button[style*="background: #143d34"],
button[style*="background:#1f5138"] {
  border-color: var(--of-brand) !important;
  background: var(--of-brand) !important;
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(20,115,87,.22) !important;
}
button[style*="background:#7F1D1D"],
.danger { border-color: #fecdca !important; background: #fff !important; color: var(--of-red) !important; }
.btn:disabled, button:disabled { opacity: .48 !important; box-shadow: none !important; transform: none !important; }

/* Forms */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea,
.dok-search,
.dok-filter-select,
.revision-inline-input,
.revision-inline-select,
.history-inline-input,
.history-inline-select,
.of-modal-input,
.of-modal-select {
  min-height: 38px;
  border: 1px solid var(--of-line-strong) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--of-ink) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  box-shadow: inset 0 1px 1px rgba(16,24,40,.025) !important;
  transition: border-color .14s ease, box-shadow .14s ease !important;
}
input:hover, select:hover, textarea:hover { border-color: #aeb7c2 !important; }
input:focus, select:focus, textarea:focus {
  border-color: var(--of-brand) !important;
  outline: 0 !important;
  box-shadow: var(--of-focus) !important;
}
input::placeholder, textarea::placeholder { color: var(--of-ink-4) !important; }
label,
.of-modal-label { color: var(--of-ink-3) !important; font-size: 10.5px !important; font-weight: 650 !important; letter-spacing: .035em !important; }

/* KPIs: less boxy, more signal */
.budget-kpi-card,
.object360-kpi,
.dok-kpi,
.history-metric-card,
.history-status-kpi,
.history-stat,
.stat-card,
.work-report-meta-card {
  padding: 14px 15px !important;
  border: 1px solid var(--of-line) !important;
  border-radius: var(--of-radius-sm) !important;
  background: var(--of-surface) !important;
  box-shadow: none !important;
}
.budget-kpi-label,
.object360-kpi-label,
.dok-kpi-label,
.history-metric-label,
.history-status-kpi-label,
.history-stat-label,
.work-report-meta-label {
  color: var(--of-ink-3) !important;
  font-size: 9.5px !important;
  font-weight: 650 !important;
  letter-spacing: .065em !important;
}
.budget-kpi-value,
.object360-kpi-value,
.dok-kpi-value,
.history-metric-value,
.history-status-kpi-value,
.history-stat-value,
.work-report-meta-value {
  color: var(--of-ink) !important;
  font-size: clamp(19px, 2vw, 28px) !important;
  font-weight: 650 !important;
  letter-spacing: -.04em !important;
}

/* Tables */
.table-wrapper,
.dok-table-wrap { overflow: hidden; }
table { border-collapse: separate !important; border-spacing: 0 !important; }
table thead th,
.dok-table thead th {
  height: 40px !important;
  padding: 9px 11px !important;
  border-bottom: 1px solid var(--of-line-strong) !important;
  background: var(--of-surface-subtle) !important;
  color: var(--of-ink-3) !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
}
table tbody td,
.dok-table tbody td {
  padding: 10px 11px !important;
  border-bottom: 1px solid #edf0f2 !important;
  color: var(--of-ink-2) !important;
  font-size: 12px !important;
  vertical-align: middle !important;
}
table tbody tr { transition: background .12s ease !important; }
table tbody tr:hover td { background: #f8fbfa !important; }
table tbody tr:last-child td { border-bottom: 0 !important; }

/* Long-table ergonomics */
.history-table-desktop .table-wrapper,
.revision-table-desktop .table-wrapper,
.dok-table-wrap > div[style*="overflow-x:auto"],
#usersManagementGrid,
#objectsManagementGrid,
#pricesPanelBody {
  scrollbar-gutter: stable;
}
.history-table-desktop table thead th,
.revision-table-desktop table thead th,
.dok-table thead th,
.users-mgmt-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 6 !important;
  box-shadow: 0 1px 0 var(--of-line-strong), 0 4px 10px rgba(16,24,40,.035) !important;
}
.history-table-desktop table th:first-child,
.history-table-desktop table td:first-child,
.revision-table-desktop table th:first-child,
.revision-table-desktop table tbody tr:not(.budget-object-group-row) td:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 3 !important;
  background: #fff !important;
  box-shadow: 1px 0 0 var(--of-line) !important;
}
.history-table-desktop table thead th:first-child,
.revision-table-desktop table thead th:first-child {
  z-index: 8 !important;
  background: var(--of-surface-subtle) !important;
}

/* Density preference */
.of-density-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
}
.of-density-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--of-line) !important;
  border-radius: 11px;
  background: #fff;
  color: var(--of-ink-2);
  text-align: left;
  cursor: pointer;
}
.of-density-option:hover { border-color: #b7c5c0 !important; background: #fbfdfc; }
.of-density-option.active { border-color: #82bca6 !important; background: var(--of-brand-soft); box-shadow: var(--of-focus); }
.of-density-radio { width: 17px; height: 17px; flex: 0 0 auto; border: 1.5px solid #98a2b3; border-radius: 50%; margin-top: 1px; background: #fff; }
.of-density-option.active .of-density-radio { border: 5px solid var(--of-brand); }
.of-density-option strong { display: block; color: var(--of-ink); font-size: 13px; }
.of-density-option small { display: block; margin-top: 3px; color: var(--of-ink-3); font-size: 11px; line-height: 1.45; }
.of-density-preview { max-width: 760px; margin-top: 16px; overflow: hidden; border: 1px solid var(--of-line); border-radius: 11px; background: #fff; }
.of-density-preview-head, .of-density-preview-row { display: grid; grid-template-columns: 1.2fr 1fr .55fr; gap: 12px; align-items: center; padding: 10px 13px; border-bottom: 1px solid var(--of-line); }
.of-density-preview-head { background: var(--of-surface-subtle); }
.of-density-preview-head span { width: 50%; height: 6px; border-radius: 4px; background: #d9dee4; }
.of-density-preview-row:last-child { border-bottom: 0; }
.of-density-preview-row strong { color: var(--of-ink); font-size: 11px; }
.of-density-preview-row span { color: var(--of-ink-3); font-size: 10px; }
.of-density-preview-row i { justify-self: start; padding: 3px 7px; border-radius: 99px; background: var(--of-brand-soft); color: var(--of-brand); font-size: 9px; font-style: normal; font-weight: 650; }

body.of-density-compact .container { padding-top: 12px !important; }
body.of-density-compact .workspace-sidebar { gap: 9px !important; }
body.of-density-compact .workspace-hero,
body.of-density-compact .global-panel,
body.of-density-compact .global-search-panel,
body.of-density-compact .budget-panel { padding: 12px 14px !important; }
body.of-density-compact .workspace-meta-grid { margin-top: 11px !important; gap: 6px !important; }
body.of-density-compact .workspace-meta-card,
body.of-density-compact .budget-kpi-card,
body.of-density-compact .object360-kpi,
body.of-density-compact .dok-kpi,
body.of-density-compact .history-metric-card,
body.of-density-compact .history-status-kpi,
body.of-density-compact .history-stat { padding: 9px 11px !important; }
body.of-density-compact table thead th { height: 34px !important; padding: 6px 8px !important; }
body.of-density-compact table tbody td,
body.of-density-compact .dok-table tbody td { padding: 6px 8px !important; font-size: 11px !important; }
body.of-density-compact input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.of-density-compact select,
body.of-density-compact textarea,
body.of-density-compact .btn,
body.of-density-compact .object360-action { min-height: 32px !important; padding-top: 6px !important; padding-bottom: 6px !important; }
body.of-density-compact .object360-object-btn { padding: 7px 10px !important; }

/* Empty and loading states */
.object360-empty,
.budget-empty,
.global-search-empty,
.kal-empty {
  min-height: 110px;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 6px !important;
  padding: 24px !important;
  border: 1px dashed var(--of-line-strong) !important;
  border-radius: 11px !important;
  background: var(--of-surface-subtle) !important;
  color: var(--of-ink-3) !important;
  text-align: center !important;
  line-height: 1.5 !important;
}
.object360-empty::before,
.budget-empty::before,
.global-search-empty::before,
.kal-empty::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 1px solid var(--of-line-strong);
  border-radius: 9px;
  background: linear-gradient(145deg,#fff,#eef2f4);
  box-shadow: var(--of-shadow-xs);
}
.of-skeleton-list { display: grid; gap: 8px; padding: 14px; }
.of-skeleton-list span { display: block; height: 38px; border-radius: 9px; background: linear-gradient(90deg,#f0f2f4 25%,#f8f9fa 38%,#f0f2f4 62%); background-size: 400% 100%; animation: ofSkeleton 1.25s ease-in-out infinite; }
.of-skeleton-list span:nth-child(2) { animation-delay: .12s; }
.of-skeleton-list span:nth-child(3) { animation-delay: .24s; }
@keyframes ofSkeleton { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .of-skeleton-list span { animation: none; } }

/* Consistent page anatomy and action hierarchy */
.service-pbz-head,
.dok-header,
.nast-header,
.object360-head {
  position: relative;
  align-items: flex-start !important;
  gap: 18px !important;
  padding-bottom: 15px !important;
  border-bottom: 1px solid var(--of-line) !important;
}
.service-pbz-head::before,
.dok-header::before,
.nast-header::before,
.object360-head::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--of-brand);
}
.service-pbz-title,
.dok-header-title,
.nast-header-title,
.object360-title {
  color: var(--of-ink) !important;
  font-size: clamp(19px, 1.7vw, 24px) !important;
  font-weight: 720 !important;
  letter-spacing: -.035em !important;
  line-height: 1.15 !important;
}
.service-pbz-subtitle,
.dok-header-sub,
.nast-header-sub,
.object360-subtitle {
  max-width: 720px;
  margin-top: 6px !important;
  color: var(--of-ink-3) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

/* Toolbars read as controls first and actions second. */
.history-toolbar,
.template-actions,
.servis-export-bar,
.dok-header-actions,
.budget-toolbar,
.work-report-panel-actions,
.work-report-export-actions {
  gap: 7px !important;
  align-items: center !important;
}
.history-toolbar input,
.history-toolbar select,
.budget-toolbar input,
.budget-toolbar select {
  min-height: 34px !important;
  background-color: #fff !important;
  border-color: var(--of-line-strong) !important;
  box-shadow: none !important;
}
.history-toolbar .btn,
.template-actions .btn,
.servis-export-bar .btn,
.dok-header-actions .btn,
.budget-toolbar .btn,
.work-report-panel-actions .btn,
.work-report-export-actions .btn {
  min-height: 34px !important;
  border: 1px solid var(--of-line-strong) !important;
  background: #fff !important;
  color: var(--of-ink-2) !important;
  box-shadow: 0 1px 2px rgba(16,24,40,.035) !important;
}
.history-toolbar .btn:hover,
.template-actions .btn:hover,
.servis-export-bar .btn:hover,
.dok-header-actions .btn:hover,
.budget-toolbar .btn:hover,
.work-report-panel-actions .btn:hover,
.work-report-export-actions .btn:hover {
  border-color: #aebdb7 !important;
  background: var(--of-brand-soft) !important;
  color: var(--of-brand-strong) !important;
}
/* The first operational action stays visually decisive. */
.servis-export-bar .btn[data-pbz-calc-action="exportServicePbzPDF"],
.dok-header-actions .btn[data-dok-action="exportPdf"],
.dok-header-actions #dokSaveToObjectBtn,
.work-report-export-actions .btn:first-child {
  border-color: var(--of-brand) !important;
  background: var(--of-brand) !important;
  color: #fff !important;
}
.history-toolbar .btn[style*="#7F1D1D"],
.template-actions .btn[style*="#7F1D1D"],
.work-report-export-actions .btn[style*="#7F1D1D"] {
  border-color: #fecaca !important;
  background: #fff !important;
  color: #b42318 !important;
}

/* Upload and result areas become a calm two-step workflow. */
#topActions {
  gap: 10px !important;
  margin-bottom: 18px !important;
}
#topActions .upload-section {
  border-color: var(--of-line) !important;
  background: #fff !important;
  box-shadow: var(--of-shadow-xs) !important;
}
#topActions #uploadArea {
  border-style: dashed !important;
  border-color: #a9cbbd !important;
  background: linear-gradient(145deg,#fbfdfc,#f5faf7) !important;
}
#topActions #exportArea {
  border-left: 3px solid var(--of-brand) !important;
}
.history-quick-filters,
.work-report-quick-filters,
.history-year-chips {
  padding: 8px !important;
  border: 1px solid var(--of-line) !important;
  border-radius: 10px !important;
  background: var(--of-surface-subtle) !important;
}

@media (max-width: 760px) {
  .service-pbz-head,
  .dok-header,
  .nast-header,
  .object360-head { gap: 12px !important; }
  .history-toolbar,
  .dok-header-actions,
  .servis-export-bar { width: 100% !important; }
  .history-toolbar > *,
  .dok-header-actions > *,
  .servis-export-bar > * { flex: 1 1 145px !important; }
}

/* UX six-pack: unified shell, actions, forms, statuses and motion */
@media (min-width: 701px) {
  .tablet-side-nav { width: 86px !important; }
  .header,
  .container { margin-left: 86px !important; }
  .header { width: auto !important; }
  .tablet-side-nav::after { display: none !important; }
}

/* One primary action; utilities live in a compact overflow menu. */
.of-page-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.of-primary-action {
  min-height: 36px !important;
  padding: 8px 14px !important;
  border: 1px solid var(--of-brand) !important;
  background: var(--of-brand) !important;
  color: #fff !important;
  box-shadow: var(--of-shadow-xs) !important;
}
.of-action-overflow { position: relative; z-index: 15; }
.of-action-overflow > summary {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--of-line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--of-ink-2);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  box-sizing: border-box;
}
.of-action-overflow > summary::-webkit-details-marker { display: none; }
.of-action-overflow[open] > summary { border-color: #9ab9ad; box-shadow: var(--of-focus); }
.of-action-overflow-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: 230px;
  padding: 6px;
  border: 1px solid var(--of-line);
  border-radius: 11px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--of-shadow-md);
  backdrop-filter: blur(16px);
}
.of-action-overflow-menu button {
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--of-ink-2);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.of-action-overflow-menu button:hover { background: var(--of-surface-muted); color: var(--of-ink); }

/* Forms: clear grouping, optionality and actionable validation. */
.revision-manual-panel { scroll-margin-top: 18px; }
.revision-manual-grid { gap: 12px !important; }
.revision-manual-field {
  min-width: 0;
  padding: 10px !important;
  border: 1px solid var(--of-line) !important;
  border-radius: 10px !important;
  background: var(--of-surface-subtle) !important;
}
.revision-manual-field label { display: flex !important; align-items: center; justify-content: space-between; gap: 7px; }
.of-required-mark { color: var(--of-ink-4); font-size: 8px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.of-field-attention {
  border-color: #f0a9a2 !important;
  background: #fffafa !important;
  box-shadow: 0 0 0 3px rgba(217,45,32,.09) !important;
}
.of-field-attention:focus { border-color: var(--of-brand) !important; box-shadow: var(--of-focus) !important; }
.revision-manual-field:focus-within { border-color: #b8d7cb !important; background: #fff !important; }

/* One semantic language for status chips throughout the product. */
:is(.history-badge,.object360-event-badge,.object360-defect-badge,.dok-format-badge,[class*="status-badge"]) {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
:is([class*="approved"],[class*="done"],[class*="resolved"],[class*="success"]) { --of-status-bg: #ecf8f2; --of-status-fg: #087553; --of-status-line: #b7e4d1; }
:is([class*="pending"],[class*="warning"],[class*="warn"],[class*="progress"]) { --of-status-bg: #fffaeb; --of-status-fg: #9a5b13; --of-status-line: #fedf89; }
:is([class*="rejected"],[class*="danger"],[class*="critical"],[class*="overdue"]) { --of-status-bg: #fff1f0; --of-status-fg: #b42318; --of-status-line: #fecdca; }
:is(.history-badge,.object360-event-badge,.object360-defect-badge,[class*="status-badge"])[class*="approved"],
:is(.history-badge,.object360-event-badge,.object360-defect-badge,[class*="status-badge"])[class*="done"],
:is(.history-badge,.object360-event-badge,.object360-defect-badge,[class*="status-badge"])[class*="resolved"],
:is(.history-badge,.object360-event-badge,.object360-defect-badge,[class*="status-badge"])[class*="pending"],
:is(.history-badge,.object360-event-badge,.object360-defect-badge,[class*="status-badge"])[class*="warning"],
:is(.history-badge,.object360-event-badge,.object360-defect-badge,[class*="status-badge"])[class*="rejected"],
:is(.history-badge,.object360-event-badge,.object360-defect-badge,[class*="status-badge"])[class*="danger"],
:is(.history-badge,.object360-event-badge,.object360-defect-badge,[class*="status-badge"])[class*="critical"] {
  border-color: var(--of-status-line) !important;
  background: var(--of-status-bg) !important;
  color: var(--of-status-fg) !important;
}

/* Details are layered: summary first, secondary controls only on demand. */
.mobile-collapsible-summary,
.work-report-editor-summary { cursor: pointer; }
.mobile-collapsible-summary:hover,
.work-report-editor-summary:hover { background: #fbfcfd !important; }
.object360-tabs,
.dok-subnav,
.nast-subnav { position: sticky; top: 8px; z-index: 12; backdrop-filter: blur(14px); }

/* Restrained motion communicates state without visual noise. */
.btn,
.tab-btn,
.tablet-side-btn,
.object360-tab,
.history-quick-chip,
.budget-year-btn {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}
.btn:active,
.of-primary-action:active { transform: translateY(1px) !important; }

@keyframes ofSaveArrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Final one-hand mobile pass. */
@media (max-width: 760px) {
  .header,
  .container { margin-left: 0 !important; }
  .service-pbz-head,
  .dok-header,
  .object360-head { flex-direction: column !important; }
  .of-page-actions { width: 100%; justify-content: stretch; }
  .of-page-actions > .btn { flex: 1 1 auto; min-height: 44px !important; }
  .of-action-overflow { flex: 0 0 auto; }
  .of-action-overflow > summary { min-height: 44px; padding-inline: 15px; }
  .of-action-overflow-menu { position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); top: auto; width: auto; padding: 8px; }
  .of-action-overflow-menu button { min-height: 44px; font-size: 12px; }
  .revision-manual-grid { grid-template-columns: 1fr !important; }
  .revision-manual-field { padding: 9px !important; }
  input, select, textarea, .btn { min-height: 44px; }
  .object360-tabs,
  .dok-subnav,
  .nast-subnav { top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn,.tab-btn,.tablet-side-btn,.object360-tab,.history-quick-chip,.budget-year-btn,.of-save-indicator { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto !important; }
}

/* Calm workspace: compact context header and one navigation system */
.header-top { position: relative; min-height: 62px !important; padding-block: 9px !important; }
.of-header-toggle {
  min-height: 32px; flex: 0 0 auto; padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
  background: rgba(255,255,255,.07); color: #d0d5dd;
  font: inherit; font-size: 10px; font-weight: 650; cursor: pointer;
}
.of-header-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }
.of-header-summary {
  min-width: 0; overflow: hidden; color: #aeb7c3; font-size: 11px; font-weight: 560;
  text-overflow: ellipsis; white-space: nowrap;
}
body:not(.of-header-expanded) .header-fields { display: none !important; }
body.of-header-expanded .of-header-summary { display: none; }
body.of-header-expanded .header-top { align-items: flex-start !important; padding-block: 12px !important; }
body.of-header-expanded .of-header-toggle { order: 3; }

@media (min-width: 701px) {
  .tabs-nav { display: none !important; }
  .tabs-shell { border-top-left-radius: var(--of-radius) !important; border-top-right-radius: var(--of-radius) !important; }
  .tab-stage { padding-top: 0 !important; }
}

.of-recent-strip { display: flex; align-items: center; gap: 6px; min-height: 0; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.of-recent-strip:empty { display: none; }
.of-recent-strip::-webkit-scrollbar { display: none; }
.of-recent-strip > span { flex: 0 0 auto; color: var(--of-ink-4); font-size: 8.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.of-recent-strip button {
  flex: 0 0 auto; min-height: 26px; padding: 4px 8px; border: 1px solid var(--of-line); border-radius: 999px;
  background: #fff; color: var(--of-ink-3); font: inherit; font-size: 9.5px; font-weight: 650; cursor: pointer;
}
.of-recent-strip button:hover { border-color: #a9cbbb; background: var(--of-brand-soft); color: var(--of-brand); }

/* Long dashboards disclose detail progressively. */
.of-dashboard-section { overflow: visible !important; }
.of-dashboard-section-summary {
  display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px; border-radius: inherit; background: #fff; cursor: pointer; list-style: none;
}
.of-dashboard-section-summary::-webkit-details-marker { display: none; }
.of-dashboard-section-summary span { display: grid; gap: 2px; }
.of-dashboard-section-summary strong { color: var(--of-ink); font-size: 13px; letter-spacing: -.015em; }
.of-dashboard-section-summary small { color: var(--of-ink-3); font-size: 10px; font-weight: 500; }
.of-dashboard-section-summary i { color: var(--of-ink-4); font-style: normal; transition: transform .16s ease; }
.of-dashboard-section[open] > .of-dashboard-section-summary { border-bottom: 1px solid var(--of-line); border-radius: var(--of-radius) var(--of-radius) 0 0; }
.of-dashboard-section[open] > .of-dashboard-section-summary i { transform: rotate(180deg); }
.of-dashboard-section-body { padding-top: 2px; }
.of-dashboard-section-body > .budget-panel-head { display: none !important; }

/* Shared chart language */
.of-column-chart,.service-profit-chart,[class*="chart-wrap"],[class*="chart-panel"] {
  --of-chart-primary: #147357; --of-chart-secondary: #aeb8c4; --of-chart-compare: #d89b3c;
}
.of-column-chart { border: 1px solid var(--of-line) !important; border-radius: 11px !important; background: linear-gradient(180deg,#fff,#fafbfc) !important; }
.of-column-chart-track { background: repeating-linear-gradient(to top, transparent 0, transparent 24%, rgba(16,24,40,.045) 25%) !important; }
.of-column-chart-label { color: var(--of-ink-3) !important; font-size: 9px !important; }
.of-column-chart-value { color: var(--of-ink-2) !important; font-weight: 700 !important; }
.service-profit-chart-empty { border: 1px dashed var(--of-line-strong) !important; border-radius: 11px !important; background: var(--of-surface-subtle) !important; }

.workspace-subtitle,.service-pbz-subtitle,.global-panel-subtitle,.dok-header-sub,.revision-manual-subtitle { max-width: 72ch; }

@media (max-width: 760px) {
  .header-top { min-height: 56px !important; padding: 8px 10px !important; gap: 8px !important; }
  .header h1 { font-size: 15px !important; }
  .of-header-summary { order: 4; flex-basis: 100%; font-size: 10px; }
  body.of-header-expanded .header-fields { width: 100%; grid-template-columns: 1fr !important; }
  body.of-header-expanded .header-top { flex-wrap: wrap !important; }
  .tabs-nav { display: flex !important; }
  .of-recent-strip { margin-top: 8px; }
  .of-dashboard-section-summary { min-height: 50px; padding: 10px 12px; }
  .of-dashboard-section-summary small { display: none; }
}

/* Mobile core navigation and content priority */
@media (max-width: 0px) {
.mobile-more-menu { display: none; }
@media (max-width: 760px) {
  .mobile-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0,1fr)) !important;
    overflow: visible !important;
    gap: 3px !important;
  }
  .mobile-bottom-nav > .mobile-bottom-nav-btn { display: none !important; min-width: 0 !important; width: auto !important; }
  #mobileNavOverview,
  #mobileNavObjekty360,
  #mobileNavUcpavky,
  #mobileNavRevizeBudget,
  #mobileNavMore { display: flex !important; }
  .mobile-bottom-nav-btn { min-width: 0 !important; min-height: 50px !important; padding: 4px 2px !important; font-size: 8px !important; }
  .mobile-bottom-nav-icon { width: 20px !important; height: 20px !important; font-size: 15px; letter-spacing: 1px; }
  .mobile-bottom-nav-icon svg { width: 20px !important; height: 20px !important; }

  .mobile-more-menu {
    position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end;
    padding: 12px 10px calc(82px + env(safe-area-inset-bottom));
    background: rgba(16,24,40,.38); opacity: 0; pointer-events: none; transition: opacity .16s ease;
    backdrop-filter: blur(3px);
  }
  .mobile-more-menu.open { opacity: 1; pointer-events: auto; }
  .mobile-more-sheet {
    width: 100%; padding: 12px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px;
    background: rgba(255,255,255,.98); box-shadow: 0 24px 70px rgba(16,24,40,.24);
    transform: translateY(12px); transition: transform .16s ease;
  }
  .mobile-more-menu.open .mobile-more-sheet { transform: translateY(0); }
  .mobile-more-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 3px 10px; }
  .mobile-more-head strong { color: var(--of-ink); font-size: 14px; }
  .mobile-more-head button { width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--of-surface-muted); color: var(--of-ink-3); font-size: 20px; }
  .mobile-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .mobile-more-grid button {
    min-height: 46px; padding: 9px; border: 1px solid var(--of-line); border-radius: 10px;
    background: #fff; color: var(--of-ink-2); font: inherit; font-size: 11px; font-weight: 700; text-align: left;
  }
  body.mobile-more-open { overflow: hidden !important; }

  /* The bottom bar is the sole mobile navigation. */
  .tabs-nav { display: none !important; }

  /* Cloud health and search share one compact command row. */
  .mobile-command-center { grid-template-columns: 82px minmax(0,1fr) !important; gap: 7px !important; margin-bottom: 9px !important; }
  .of-header-summary { display: none !important; }
  .header-top { min-height: 58px !important; flex-wrap: nowrap !important; }
  .mobile-cloud-status { min-height: 48px !important; padding: 5px !important; justify-content: center !important; gap: 3px !important; }
  .mobile-cloud-status-main { min-width: 0 !important; gap: 3px !important; }
  .mobile-cloud-status-main > div { display: none !important; }
  .mobile-cloud-dot { width: 9px !important; height: 9px !important; }
  .mobile-cloud-refresh { width: 34px !important; min-width: 34px !important; height: 34px !important; min-height: 34px !important; }
  .mobile-global-search { min-width: 0; }
  .mobile-global-search-row { min-height: 48px !important; padding: 5px !important; }
  .mobile-global-search-icon { width: 34px !important; height: 34px !important; flex: 0 0 34px !important; }
  .mobile-global-search-input { min-width: 0 !important; min-height: 36px !important; padding: 7px 8px !important; font-size: 11px !important; }
  #mobileSmartClientPanel { grid-column: 1 / -1; }

  /* Recommended action becomes a compact contextual strip. */
  .next-action-panel {
    min-height: 54px !important; padding: 8px 9px !important; margin-bottom: 10px !important;
    display: grid !important; grid-template-columns: minmax(0,1fr) auto !important; gap: 8px !important;
    align-items: center !important; border-radius: 11px !important;
  }
  .next-action-kicker,
  .next-action-desc { display: none !important; }
  .next-action-title { font-size: 11.5px !important; line-height: 1.25 !important; }
  .next-action-panel .btn { width: auto !important; min-height: 38px !important; padding: 7px 10px !important; font-size: 10px !important; white-space: nowrap; }

  /* Object directory and detail are strictly single-column. */
  .object360-layout,
  .object360-object-list { grid-template-columns: minmax(0,1fr) !important; }
  .object360-object-list { display: grid !important; overflow: visible !important; }
  .object360-object-btn { width: 100% !important; min-width: 0 !important; }
  .object360-hero-row { display: grid !important; grid-template-columns: minmax(0,1fr) !important; }
  .object360-hero-actions { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 7px !important; width: 100%; }
  .object360-hero-actions > .primary { grid-column: 1 / -1; }
  .object360-hero-actions > .object360-action { min-width: 0 !important; width: 100% !important; }
  .object360-more-actions { width: 100%; }
  .object360-more-actions > summary { min-height: 44px; justify-content: center; }

  .upcoming-rev-more {
    width: 100%; min-height: 42px; border: 0; border-top: 1px solid var(--of-line);
    background: #fff; color: var(--of-brand); font: inherit; font-size: 10px; font-weight: 750;
  }

  /* Floating feedback never covers editable content or bottom navigation. */

  .omniflow-toast-container { bottom: calc(82px + env(safe-area-inset-bottom)) !important; }
  [aria-label="Zpět nahoru"] { bottom: calc(84px + env(safe-area-inset-bottom)) !important; right: 12px !important; }
}

@media (max-width: 340px) {
  .mobile-bottom-nav { left: 5px !important; right: 5px !important; padding-inline: 4px !important; }
  .mobile-bottom-nav-btn { font-size: 7.5px !important; }
  .mobile-command-center { grid-template-columns: 72px minmax(0,1fr) !important; }
  .next-action-panel { grid-template-columns: minmax(0,1fr) !important; }
  .next-action-panel .btn { width: 100% !important; }
  .object360-hero-actions { grid-template-columns: 1fr !important; }
  .object360-hero-actions > .primary { grid-column: auto; }
}
}

/* Object 360 */
.object360-shell { gap: 16px !important; }
.object360-head { padding: 20px 22px !important; margin-bottom: 14px !important; }
.object360-layout { gap: 14px !important; align-items: start !important; }
.object360-directory {
  border: 1px solid var(--of-line) !important;
  border-radius: var(--of-radius) !important;
  background: #fff !important;
  box-shadow: var(--of-shadow-xs) !important;
  overflow: hidden !important;
}
.object360-directory-head { padding: 12px !important; border-bottom: 1px solid var(--of-line) !important; background: var(--of-surface-subtle) !important; }
.object360-object-list { padding: 6px !important; gap: 3px !important; }
.object360-object-btn {
  padding: 11px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  box-shadow: none !important;
}
.object360-object-btn:hover { background: var(--of-surface-muted) !important; }
.object360-object-btn.active { border-color: #b8decf !important; background: var(--of-brand-soft) !important; }
.object360-object-name { color: var(--of-ink) !important; font-size: 12.5px !important; font-weight: 650 !important; }
.object360-object-client,
.object360-object-counts { color: var(--of-ink-3) !important; font-size: 10px !important; }
.object360-hero {
  padding: 20px !important;
  border: 1px solid var(--of-line) !important;
  border-radius: var(--of-radius-lg) !important;
  background: linear-gradient(145deg,#fff,#f8fbfa) !important;
  box-shadow: var(--of-shadow-sm) !important;
}
.object360-hero-name { font-size: 22px !important; letter-spacing: -.035em !important; color: var(--of-ink) !important; }
.object360-tabs { padding: 5px !important; gap: 3px !important; border: 1px solid var(--of-line) !important; border-radius: 11px !important; background: var(--of-surface-subtle) !important; }
.object360-tab { min-height: 34px !important; padding: 7px 10px !important; border-radius: 8px !important; color: var(--of-ink-3) !important; font-size: 10.5px !important; }
.object360-tab.active { background: #fff !important; color: var(--of-ink) !important; box-shadow: var(--of-shadow-xs) !important; }

/* Modals */
.of-modal-overlay { background: rgba(16,24,40,.48) !important; backdrop-filter: blur(7px) !important; }
.of-modal-box {
  border: 1px solid rgba(255,255,255,.7) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 28px 80px rgba(16,24,40,.22) !important;
}
.of-modal-head { padding: 18px 20px !important; border-bottom: 1px solid var(--of-line) !important; }
.of-modal-title { color: var(--of-ink) !important; font-size: 17px !important; letter-spacing: -.025em !important; }
.of-modal-body { padding: 18px 20px !important; gap: 14px !important; }
.of-modal-footer { padding: 14px 20px 18px !important; border-top: 1px solid var(--of-line) !important; }
.of-modal-close { width: 34px !important; height: 34px !important; border-radius: 9px !important; background: var(--of-surface-muted) !important; color: var(--of-ink-3) !important; }
.of-modal-hint { color: var(--of-ink-3) !important; line-height: 1.5 !important; }

/* Documentation */
#tabDokumentace > div:first-child,
#dokPdfPreview,
#dokDataQualityPanel > div {
  border-color: var(--of-line) !important;
  border-radius: var(--of-radius) !important;
  box-shadow: var(--of-shadow-xs) !important;
}
.dok-subnav { padding: 5px !important; border-radius: 11px !important; background: var(--of-surface-muted) !important; }
.dok-subnav-btn { box-shadow: none !important; border-color: transparent !important; background: transparent !important; }
.dok-subnav-btn.active { border-color: var(--of-line) !important; background: #fff !important; color: var(--of-ink) !important; box-shadow: var(--of-shadow-xs) !important; }
.dok-legend { padding: 10px 13px !important; border: 1px solid var(--of-line) !important; border-radius: 10px !important; background: var(--of-surface-subtle) !important; }

/* Upload states */
.upload-section {
  padding: 28px 22px !important;
  border: 1.5px dashed #c7d0d9 !important;
  border-radius: var(--of-radius-lg) !important;
  background: rgba(255,255,255,.72) !important;
  box-shadow: none !important;
}
.upload-section:hover { border-color: var(--of-brand) !important; background: #fbfdfc !important; }
.upload-icon { color: var(--of-brand) !important; }
.upload-section h2 { color: var(--of-ink) !important; font-size: 17px !important; letter-spacing: -.025em !important; }
.upload-section p { color: var(--of-ink-3) !important; }

/* Alerts and statuses */
.next-action-panel,
.viewer-mode-banner,
.error { border-radius: var(--of-radius-sm) !important; box-shadow: none !important; }
.history-badge,
.object360-event-badge,
.object360-mini-count {
  border-radius: 999px !important;
  font-weight: 650 !important;
  letter-spacing: .015em !important;
}


/* Responsive refinement */
@media (max-width: 1180px) {
  .container { padding: 14px 16px 38px !important; }
  .workspace-hero { padding: 17px !important; }
  .object360-layout { grid-template-columns: minmax(220px, 30%) minmax(0, 1fr) !important; }
}

@media (max-width: 760px) {
  body { font-size: 13px; padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important; }
  .container { padding: 10px 10px 28px !important; }
  .workspace-hero,
  .global-panel,
  .global-search-panel,
  .budget-panel { border-radius: 13px !important; padding: 14px !important; }
  .workspace-subtitle { display: none !important; }
  .workspace-meta-grid { grid-template-columns: 1fr !important; gap: 6px !important; }
  .workspace-meta-card { padding: 10px 12px !important; }
  .tabs-nav { overflow-x: auto !important; flex-wrap: nowrap !important; scrollbar-width: none; }
  .tabs-nav::-webkit-scrollbar { display: none; }
  .tab-btn { flex: 0 0 auto !important; }
  .object360-layout { grid-template-columns: 1fr !important; }
  .object360-directory { position: static !important; max-height: 300px !important; }
  .mobile-bottom-nav {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    width: auto !important;
    padding: 6px 7px calc(6px + env(safe-area-inset-bottom)) !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    border-radius: 16px !important;
    background: rgba(16,21,28,.94) !important;
    box-shadow: 0 16px 40px rgba(16,24,40,.26) !important;
    backdrop-filter: blur(20px);
  }
  .mobile-bottom-nav-btn { min-width: 56px !important; min-height: 50px !important; border-radius: 11px !important; color: #98a2b3 !important; }
  .mobile-bottom-nav-btn.active { background: #fff !important; color: #101828 !important; box-shadow: none !important; }
  .mobile-bottom-nav-icon { width: 21px !important; height: 21px !important; }
  table tbody td, .dok-table tbody td { padding: 9px !important; }
  .of-modal-box { border-radius: 16px !important; }
  .of-density-options { grid-template-columns: 1fr; }
  .history-table-desktop table th:first-child,
  .history-table-desktop table td:first-child,
  .revision-table-desktop table th:first-child,
  .revision-table-desktop table td:first-child { position: static !important; box-shadow: none !important; }
}

@media print {
  body { background: #fff !important; }
  .btn, input, select, textarea { box-shadow: none !important; }
}

/* A18: one reachable synchronization entry, no reload button nested in it. */
.sync-launcher-label { display:block; font-size:12px; font-weight:750; color:#173e30; }
.mobile-command-center #mobileCloudStatus { flex-direction:column; gap:4px !important; min-width:92px !important; }
.mobile-command-center #mobileCloudStatus .mobile-cloud-status-main { display:flex !important; }
.mobile-command-center #mobileCloudStatus .mobile-cloud-status-main > div { display:none !important; }
@media screen and (max-width:760px) {
  body.mobile-information-mode .container .mobile-command-center, body .container .mobile-command-center { grid-template-columns:96px minmax(0,1fr) !important; }
  #mobileCloudStatus .sync-launcher-label { font-size:11px; }
}
.cloud-truth-dialog .sync-center-explanation { margin:0; color:#526359; font-size:14px; line-height:1.5; }
.cloud-truth-dialog .sync-center-confirmed { margin:0; color:#526359; font-size:12px; }
.sync-center-advanced, .sync-settings-advanced { border-top:1px solid #dce5df; padding-top:12px; }
.sync-settings-advanced { margin:0 14px 14px; }
.sync-center-advanced summary, .sync-settings-advanced summary { cursor:pointer; min-height:44px; display:flex; align-items:center; gap:8px; font-size:13px; font-weight:650; }
.sync-center-advanced summary::before, .sync-settings-advanced summary::before { content:'›'; font-size:20px; }
.sync-center-advanced[open] summary::before, .sync-settings-advanced[open] summary::before { transform:rotate(90deg); }
.sync-center-tools { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.cloud-truth-dialog .btn, .sync-settings-advanced .btn { min-height:44px !important; white-space:normal; }
#cloudSyncTruthOverlay .of-modal-footer .btn.sync-center-primary, #nastSection-zaloha .btn.sync-center-primary { background:#17694e !important; color:#fff !important; }
.cloud-truth-dialog .sync-center-review[hidden], .cloud-truth-dialog .cloud-truth-error[hidden] { display:none !important; }
.cloud-truth-dialog :is(button,summary):focus-visible, .sync-settings-advanced summary:focus-visible { outline:3px solid #17694e; outline-offset:3px; }
@media (max-width:480px) { .cloud-truth-dialog .cloud-truth-body dl { grid-template-columns:1fr; } }

#cloudSyncTruthOverlay .of-modal-footer button.btn.sync-center-primary { background: #17694e !important; background-image:none !important; color:#fff !important; }
