:root {
  --vod-primary: #0099d7;
  --vod-primary-dark: #007caf;
  --vod-primary-soft: #e7f7fd;
  --vod-text: #102033;
  --vod-muted: #667085;
  --vod-border: #dce4ec;
  --vod-border-strong: #c8d5e2;
  --vod-bg: #f6f9fc;
  --vod-surface: #ffffff;
  --vod-success: #15803d;
  --vod-warning: #b7791f;
  --vod-danger: #c2410c;
  --vod-radius: 8px;
  --vod-shadow: 0 18px 45px rgba(16, 32, 51, 0.09);
  --vod-control-height: 44px;
  --vod-sidebar-width: 300px;
  --vod-sidebar-collapsed-width: 92px;
  --vod-shell-breakpoint: 991.98px;
  --vod-display-font: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--vod-text);
  background: var(--vod-bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--vod-primary-dark); }
a:hover { color: var(--vod-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: var(--vod-control-height);
  border-radius: var(--vod-radius);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--vod-primary);
  box-shadow: 0 0 0 0.22rem rgba(0, 153, 215, 0.18);
}

.btn-sm {
  min-height: 34px;
  padding: 0.36rem 0.68rem;
  font-size: 0.84rem;
}

.btn-primary {
  border-color: var(--vod-primary);
  background: var(--vod-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--vod-primary-dark);
  background: var(--vod-primary-dark);
}

.btn-ghost {
  border: 1px solid var(--vod-border);
  background: var(--vod-surface);
  color: var(--vod-text);
}

.btn-ghost:hover {
  border-color: var(--vod-primary);
  color: var(--vod-primary-dark);
}

.button-loading { display: none; }
.btn.is-loading .button-label { display: none; }
.btn.is-loading .button-loading { display: inline; }

.form-label {
  margin-bottom: 0.45rem;
  color: var(--vod-text);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-control,
.form-select {
  min-height: var(--vod-control-height);
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  color: var(--vod-text);
}

.form-control::placeholder { color: #98a2b3; }

.text-danger,
.field-validation-error {
  color: var(--vod-danger) !important;
  font-size: 0.86rem;
  font-weight: 600;
}

.validation-summary ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.badge-soft { background: var(--vod-primary-soft); color: var(--vod-primary-dark); }
.badge-muted { background: #eef2f6; color: #475467; }
.badge-success { background: #eaf7ef; color: var(--vod-success); }
.badge-warning { background: #fff7e6; color: var(--vod-warning); }
.badge-danger { background: #fff1eb; color: var(--vod-danger); }

.profile-summary .badge-muted,
.record-hero .badge-muted {
  background: #fff1eb;
  color: var(--vod-danger);
}

.btn-danger-soft {
  border-color: #fed7c3;
  background: #fff1eb;
  color: var(--vod-danger);
}

.btn-danger-soft:hover {
  border-color: var(--vod-danger);
  background: #ffe3d5;
  color: var(--vod-danger);
}

.btn-success-soft {
  border-color: #bde8cc;
  background: #eaf7ef;
  color: var(--vod-success);
}

.btn-success-soft:hover {
  border-color: var(--vod-success);
  background: #dcf2e4;
  color: var(--vod-success);
}

.app-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: stretch;
}

.app-sidebar {
  flex: 0 0 var(--vod-sidebar-width);
  width: var(--vod-sidebar-width);
  min-width: var(--vod-sidebar-width);
  position: sticky;
  top: 0;
  z-index: 1040;
  display: flex;
  height: 100vh;
  min-height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--vod-border);
  background: var(--vod-surface);
  padding: 1.1rem;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 102px;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--vod-border);
  background: #ffffff;
  padding: 0 0 1rem;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 238px;
  height: auto;
  object-fit: contain;
}

.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d0dae6;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  min-height: 46px;
  border-radius: var(--vod-radius);
  padding: 0.65rem 0.75rem;
  color: var(--vod-text);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-link:hover {
  background: #f3f8fb;
  color: var(--vod-primary-dark);
  transform: translateX(2px);
}

.sidebar-link.active {
  background: linear-gradient(90deg, var(--vod-primary-soft), #ffffff);
  color: var(--vod-primary-dark);
  box-shadow: inset 3px 0 0 var(--vod-primary);
}

.report-hub {
  display: grid;
  gap: 1.25rem;
}

.report-group {
  padding-block: 0.35rem 0.8rem;
  border-bottom: 1px solid var(--vod-border);
}

.report-group-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.report-group-heading i {
  color: var(--vod-primary-dark);
  font-size: 1.25rem;
}

.report-group-heading h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.report-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.65rem;
}

.report-link-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.75rem;
  min-height: 68px;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  background: var(--vod-surface);
  padding: 0.75rem;
  color: var(--vod-text);
  text-decoration: none;
}

.report-link-row:hover {
  border-color: var(--vod-primary);
  color: var(--vod-text);
}

.report-link-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--vod-radius);
  background: var(--vod-primary-soft);
  color: var(--vod-primary-dark);
}

.report-link-row strong,
.report-link-row small {
  display: block;
}

.report-link-row small {
  margin-top: 0.18rem;
  color: var(--vod-muted);
  font-weight: 600;
  line-height: 1.35;
}

.report-filter-form {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.report-metrics {
  margin-bottom: 1rem;
}

.report-filter-summary {
  border-bottom: 1px solid var(--vod-border);
  padding: 0.8rem 1rem;
  color: var(--vod-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.report-table {
  min-width: 980px;
}

.sidebar-link.disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

.sidebar-section-label {
  margin: 0.85rem 0 0.2rem;
  padding: 0 0.75rem;
  color: var(--vod-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #eef2f6;
  color: var(--vod-text);
  font-size: 1rem;
  font-weight: 900;
}

.nav-icon i,
.metric-icon i,
.btn i,
.password-toggle i,
.empty-icon i,
.icon-button i {
  line-height: 1;
}

.btn i {
  flex: 0 0 auto;
  font-size: 1.05em;
}

.sidebar-link.active .nav-icon {
  background: var(--vod-primary);
  color: #ffffff;
}

.sidebar-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  padding: 0.75rem;
  color: var(--vod-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.sidebar-copyright {
  margin-top: 0.65rem;
  border: 1px solid rgba(0, 153, 215, 0.16);
  border-radius: var(--vod-radius);
  background: #f7fbfe;
  padding: 0.55rem 0.65rem;
  color: #667085;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--vod-success);
}

.sidebar-backdrop { display: none; }
.app-content {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100vh;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--vod-border);
  background: rgba(255, 255, 255, 0.94);
  padding: 0.85rem 1.25rem;
  backdrop-filter: blur(10px);
}

.icon-button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  background: var(--vod-surface);
  color: var(--vod-text);
  font-size: 1.35rem;
}

.topbar-title {
  min-width: 0;
  margin-right: auto;
}

.topbar-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  width: min(380px, 28vw);
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  background: var(--vod-surface);
  padding: 0.35rem 0.4rem 0.35rem 0.7rem;
}

.topbar-search i {
  color: var(--vod-muted);
}

.topbar-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--vod-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.topbar-search input::placeholder {
  color: #98a2b3;
}

.topbar-search button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: var(--vod-primary-soft);
  color: var(--vod-primary-dark);
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--vod-primary-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar h1,
.topbar-title h1 {
  margin: 0;
  color: var(--vod-text);
  font-size: 1.35rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  background: var(--vod-surface);
  padding: 0.45rem 0.6rem;
}

.user-avatar {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--vod-primary-soft);
  color: var(--vod-primary-dark);
  font-weight: 900;
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-name {
  max-width: 190px;
  overflow: hidden;
  color: var(--vod-text);
  font-size: 0.88rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role {
  color: var(--vod-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.logout-form { margin: 0; }

.content-frame {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 1.5rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding: 0.15rem 0 1rem;
  border-bottom: 1px solid var(--vod-border);
}

.page-header h2 {
  margin: 0;
  color: var(--vod-text);
  font-size: 1.7rem;
  font-weight: 900;
}

.page-header p:not(.eyebrow) {
  margin: 0.4rem 0 0;
  color: var(--vod-muted);
}

.header-actions,
.page-actions,
.form-actions,
.filter-actions,
.pagination-actions,
.table-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.empty-state,
.error-state,
.table-card,
.profile-summary,
.detail-card {
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  background: var(--vod-surface);
  box-shadow: 0 1px 2px rgba(16, 32, 51, 0.04);
}

.dashboard-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  padding: 0.35rem 0 1.5rem;
  border-bottom: 1px solid var(--vod-border);
}

.dashboard-intro h2,
.section-heading h2,
.empty-state h2,
.error-state h2 {
  margin: 0;
  color: var(--vod-text);
  font-weight: 900;
}

.dashboard-intro h2 {
  max-width: 760px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.08;
}

.dashboard-intro p,
.module-card p,
.status-card p,
.empty-state p,
.error-state p,
.auth-form-header p { color: var(--vod-muted); }

.dashboard-intro p {
  max-width: 770px;
  margin: 1rem 0 0;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.content-section {
  margin-top: 1.65rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  background: #ffffff;
  padding: 0.95rem;
  box-shadow: 0 1px 2px rgba(16, 32, 51, 0.04);
}

.metric-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--vod-radius);
  background: var(--vod-primary-soft);
  color: var(--vod-primary-dark);
  font-size: 1.18rem;
}

.metric-card div > span {
  display: block;
  color: var(--vod-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 0.12rem;
  color: var(--vod-text);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}

.dashboard-compact-intro h2 {
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
}

.dashboard-compact-intro p {
  margin-top: 0.55rem;
}

.dashboard-priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.dashboard-kpi {
  display: flex;
  min-height: 126px;
  align-items: flex-start;
  gap: 0.85rem;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  background: var(--vod-surface);
  padding: 1rem;
  color: var(--vod-text);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 32, 51, 0.04);
}

.dashboard-kpi:hover {
  border-color: var(--vod-primary);
  color: var(--vod-text);
}

.dashboard-kpi.primary {
  border-color: rgba(0, 153, 215, 0.35);
  background: linear-gradient(180deg, #ffffff, #f4fbff);
}

.dashboard-kpi small,
.dashboard-kpi em {
  display: block;
  color: var(--vod-muted);
  font-style: normal;
  font-weight: 800;
}

.dashboard-kpi small {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.dashboard-kpi strong {
  display: block;
  margin: 0.25rem 0 0.3rem;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.dashboard-kpi em {
  font-size: 0.82rem;
  line-height: 1.35;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.dashboard-main-column,
.dashboard-side-column {
  display: grid;
  gap: 1rem;
}

.dashboard-panel {
  padding: 1rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.panel-heading h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.dashboard-bars {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.dashboard-bar-row {
  display: grid;
  grid-template-columns: minmax(135px, 180px) minmax(0, 1fr) 48px;
  align-items: center;
  gap: 0.85rem;
}

.dashboard-bar-row strong,
.dashboard-bar-row span {
  display: block;
}

.dashboard-bar-row span {
  color: var(--vod-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-bar-row b {
  text-align: right;
  font-size: 0.9rem;
}

.dashboard-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f6;
}

.dashboard-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--vod-success);
}

.dashboard-bar.warning span {
  background: var(--vod-warning);
}

.dashboard-summary-table th,
.dashboard-summary-table td {
  padding: 0.78rem 0.55rem;
  vertical-align: middle;
}

.dashboard-summary-table th {
  color: var(--vod-text);
  font-size: 0.88rem;
  font-weight: 900;
}

.dashboard-summary-table td {
  color: var(--vod-muted);
  font-weight: 800;
}

.dashboard-summary-table td:nth-child(2) {
  color: var(--vod-text);
  font-size: 1rem;
  text-align: right;
}

.dashboard-summary-table td:last-child {
  text-align: right;
}

.dashboard-summary-table.compact td:last-child {
  color: var(--vod-muted);
  font-size: 0.86rem;
}

.quick-action-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.quick-action-list a {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  padding: 0.75rem;
  color: var(--vod-text);
  font-weight: 900;
  text-decoration: none;
}

.quick-action-list a:hover {
  border-color: var(--vod-primary);
  color: var(--vod-primary-dark);
}

.quick-action-list i {
  color: var(--vod-primary-dark);
  font-size: 1.15rem;
}

.today-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.today-item,
.attention-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  background: var(--vod-surface);
  padding: 0.85rem;
  color: var(--vod-text);
  text-decoration: none;
}

.today-item small,
.attention-card small {
  display: block;
  color: var(--vod-muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.today-item strong,
.attention-card strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.today-item em,
.attention-card em {
  display: block;
  margin-top: 0.22rem;
  color: var(--vod-muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.attention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.attention-card:hover {
  border-color: var(--vod-primary);
  color: var(--vod-text);
}

.inline-empty {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px dashed var(--vod-border);
  border-radius: var(--vod-radius);
  padding: 0.85rem;
  color: var(--vod-muted);
  font-weight: 800;
}

.inline-empty i {
  color: var(--vod-primary-dark);
}

.activity-table i {
  color: var(--vod-primary-dark);
}

.search-panel {
  margin-bottom: 1rem;
  padding: 1rem;
}

.global-search-form {
  display: grid;
  gap: 0.5rem;
}

.search-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.6rem;
  align-items: center;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  color: var(--vod-muted);
  transform: translateY(-50%);
}

.search-input-wrap .form-control {
  padding-left: 2.4rem;
}

.search-results {
  display: grid;
  gap: 1rem;
}

.search-group {
  padding: 1rem;
}

.search-group-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.search-group-heading h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.search-result-list {
  display: grid;
  gap: 0.55rem;
}

.search-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  padding: 0.75rem;
  color: var(--vod-text);
  text-decoration: none;
}

.search-result-row:hover {
  border-color: var(--vod-primary);
  color: var(--vod-text);
}

.search-result-row strong,
.search-result-row small {
  display: block;
  min-width: 0;
}

.search-result-row small {
  margin-top: 0.18rem;
  overflow: hidden;
  color: var(--vod-muted);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.status-grid,
.module-grid {
  display: grid;
  gap: 0.9rem;
}

.status-grid,
.module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.status-card,
.module-card {
  min-height: 170px;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  background: #ffffff;
  padding: 1rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.status-card:hover,
.module-card:hover {
  border-color: #b9ddeb;
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.08);
  transform: translateY(-2px);
}

.status-indicator {
  display: block;
  width: 34px;
  height: 5px;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: #cbd5e1;
}

.status-card.ready .status-indicator { background: var(--vod-success); }
.status-card.pending .status-indicator { background: var(--vod-warning); }

.status-card h3,
.module-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 900;
}

.status-card p,
.module-card p {
  margin: 0;
  font-size: 0.92rem;
}

.module-card .badge { margin-top: 1rem; }

.empty-state,
.error-state {
  margin-top: 1rem;
  padding: 2rem;
  text-align: center;
}

.empty-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--vod-primary-soft);
  color: var(--vod-primary-dark);
  font-size: 1.5rem;
  font-weight: 900;
}

.request-id { font-size: 0.88rem; }

.app-alert {
  border-radius: var(--vod-radius);
  font-weight: 700;
}

.list-toolbar {
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--vod-border);
  padding: 0 0 1rem;
}

.filter-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px auto;
  gap: 0.85rem;
  align-items: end;
}

.filter-form-wide {
  grid-template-columns: minmax(240px, 1fr) 220px 180px auto;
}

.cylinder-filter-form {
  grid-template-columns: minmax(240px, 1fr) 170px 220px 150px auto;
}

.issue-filter-form {
  grid-template-columns: minmax(220px, 1fr) 220px 150px 150px auto;
}

.issue-workflow {
  display: grid;
  gap: 1rem;
}

.issue-control-panel {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vod-border);
}

.scan-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.scan-input {
  min-height: 54px;
  font-size: 1.05rem;
  font-weight: 800;
}

.scan-message {
  min-height: 1.3rem;
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.issue-draft-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--vod-border);
  padding: 1rem;
}

.issue-draft-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.issue-draft-header strong {
  font-size: 1.35rem;
  font-weight: 900;
}

.money-input {
  min-width: 110px;
}

.empty-draft {
  padding: 1rem;
  color: var(--vod-muted);
  font-weight: 800;
}

.compact-empty {
  padding: 1.25rem;
  text-align: left;
}

.print-document {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  background: #ffffff;
  padding: 2rem;
}

.print-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  max-width: 920px;
  margin: 0.75rem auto 0;
  padding-top: 0;
}

.print-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--vod-text);
  padding-bottom: 1rem;
}

.print-header img {
  width: 260px;
  height: auto;
}

.print-header h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 900;
}

.print-parties {
  margin: 1.5rem 0;
}

.print-parties span {
  display: block;
  color: var(--vod-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.print-parties p {
  margin: 0.25rem 0 0;
  color: var(--vod-muted);
}

.print-table {
  width: 100%;
  border-collapse: collapse;
}

.print-table th,
.print-table td {
  border: 1px solid #cbd5e1;
  padding: 0.55rem;
  text-align: left;
}

.print-table th {
  background: #eef7fb;
}

.print-notes,
.print-footer {
  margin-top: 1.5rem;
}

.print-page {
  width: 100%;
}

.document-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 2px solid var(--vod-primary);
  padding-bottom: 1rem;
}

.document-header img {
  width: 240px;
  height: auto;
}

.document-header p,
.document-meta span {
  margin: 0;
  color: var(--vod-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.document-header h1 {
  margin: 0.15rem 0;
  color: var(--vod-text);
  font-size: 1.6rem;
  font-weight: 900;
}

.document-header > div {
  text-align: right;
}

.document-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}

.document-meta strong,
.document-meta p {
  display: block;
  margin: 0.25rem 0 0.75rem;
}

.document-table tfoot th {
  text-align: right;
}

.document-notes {
  margin-top: 1.5rem;
}

.sale-total-bar strong {
  color: var(--vod-text);
}

.table-card {
  overflow: hidden;
  max-width: 100%;
}

.table-card .table {
  margin-bottom: 0;
}

.table-responsive {
  max-width: 100%;
}

.table-card td,
.table-card th {
  padding: 0.82rem 0.95rem;
  white-space: nowrap;
}

.table-actions {
  justify-content: flex-end;
  gap: 0.45rem;
}

.table-card tbody tr:hover {
  background: #f8fcff;
}

.table-actions .btn {
  min-width: 64px;
}

.status-switch-form {
  margin: 0;
}

.status-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  padding: 0.28rem 0.58rem;
  background: var(--vod-surface);
  color: var(--vod-muted);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.status-switch:hover,
.status-switch:focus-visible {
  border-color: var(--vod-primary);
  color: var(--vod-primary-dark);
  box-shadow: 0 0 0 0.18rem rgba(0, 153, 215, 0.12);
  outline: 0;
  transform: translateY(-1px);
}

.status-switch-track {
  position: relative;
  width: 34px;
  height: 18px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: #d0d5dd;
  transition: background-color 0.16s ease;
}

.status-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 32, 51, 0.2);
  transition: transform 0.16s ease;
}

.status-switch.is-active {
  border-color: rgba(0, 153, 215, 0.35);
  background: var(--vod-primary-soft);
  color: var(--vod-primary-dark);
}

.status-switch.is-active .status-switch-track {
  background: var(--vod-primary);
}

.status-switch.is-active .status-switch-thumb {
  transform: translateX(16px);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--vod-border);
  padding: 0.9rem 1rem;
  color: var(--vod-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.ledger-filter-form {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.scan-panel {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.scan-panel .form-field {
  min-width: min(100%, 320px);
}

.barcode-label-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.product-label {
  min-height: 150px;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  background: #ffffff;
  padding: 0.65rem;
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.product-label strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.product-label span {
  color: var(--vod-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-label img {
  width: 100%;
  height: 56px;
  object-fit: contain;
}

.barcode-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
  width: 100%;
}

.barcode-selection-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  background: var(--vod-surface);
  padding: 0.7rem;
}

.barcode-selection-item small {
  display: block;
  color: var(--vod-muted);
}

.btn.disabled,
.btn:disabled {
  pointer-events: none;
  opacity: 0.55;
  transform: none;
}

.entity-form {
  display: grid;
  gap: 1rem;
}

.form-section {
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--vod-border);
}

.form-section-heading {
  margin-bottom: 1rem;
}

.form-section-heading h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid-wide {
  grid-column: 1 / -1;
}

.required::after {
  color: var(--vod-danger);
  content: " *";
}

.form-help {
  margin-top: 0.35rem;
  color: var(--vod-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.form-actions {
  justify-content: flex-end;
  padding-top: 0.15rem;
}

.readonly-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.status-check {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  padding: 0.65rem 0.8rem;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-top: 3px solid rgba(0, 153, 215, 0.3);
}

.profile-summary > div {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  border-left: 1px solid var(--vod-border);
  padding-left: 0.95rem;
}

.profile-summary > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.record-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--vod-border);
  border-left: 4px solid var(--vod-primary);
  border-radius: var(--vod-radius);
  background: var(--vod-surface);
  padding: 1.15rem;
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.06);
}

.record-hero-main {
  min-width: 0;
}

.record-kicker {
  display: inline-flex;
  color: var(--vod-primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.record-hero h2 {
  margin: 0.25rem 0 0.55rem;
  color: var(--vod-text);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.08;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.record-code-pill,
.record-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 0.42rem;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.record-code-pill {
  border: 1px solid rgba(0, 153, 215, 0.22);
  background: var(--vod-primary-soft);
  color: var(--vod-primary-dark);
}

a.record-code-pill {
  text-decoration: none;
}

a.record-code-pill:hover {
  border-color: var(--vod-primary);
  color: var(--vod-primary-dark);
}

.record-status.is-active {
  border: 1px solid rgba(21, 128, 61, 0.22);
  background: #eaf7ef;
  color: var(--vod-success);
}

.record-status.is-inactive {
  border: 1px solid #fed7c3;
  background: #fff1eb;
  color: var(--vod-danger);
}

.record-status.is-warning {
  border: 1px solid #ffe2a8;
  background: #fff7e6;
  color: var(--vod-warning);
}

.record-status.is-danger {
  border: 1px solid #fed7c3;
  background: #fff1eb;
  color: var(--vod-danger);
}

.record-hero-note {
  display: grid;
  min-width: 155px;
  align-content: center;
  border-radius: var(--vod-radius);
  background: #f7fbfe;
  padding: 0.8rem 0.9rem;
}

.record-hero-note span,
.record-metric p {
  color: var(--vod-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.record-hero-note strong {
  color: var(--vod-text);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.record-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.record-metric {
  display: flex;
  min-width: 0;
  min-height: 96px;
  align-items: flex-start;
  gap: 0.8rem;
  border: 1px solid var(--vod-border);
  border-radius: var(--vod-radius);
  background: var(--vod-surface);
  padding: 0.85rem;
  box-shadow: 0 1px 2px rgba(16, 32, 51, 0.04);
}

.record-metric-icon,
.detail-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--vod-radius);
  background: var(--vod-primary-soft);
  color: var(--vod-primary-dark);
}

.record-metric-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  font-size: 1.05rem;
}

.record-metric-icon.success {
  background: #eaf7ef;
  color: var(--vod-success);
}

.record-metric-icon.muted {
  background: #eef2f6;
  color: #667085;
}

.record-metric strong {
  display: block;
  margin: 0.12rem 0 0.25rem;
  color: var(--vod-text);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.record-metric p {
  margin: 0;
  line-height: 1.35;
}

.detail-label,
.detail-item span {
  color: var(--vod-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cylinder-detail-grid {
  margin-top: 1.25rem;
}

.detail-card {
  padding: 1.2rem;
}

.detail-card-feature {
  border-left: 4px solid var(--vod-primary);
}

.detail-card-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.detail-card-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  font-size: 0.98rem;
}

.detail-card h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 900;
}

.detail-card-heading h3 {
  margin: 0;
}

.detail-card > h3::before {
  content: "";
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: var(--vod-radius);
  background: var(--vod-primary-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 153, 215, 0.08);
}

.audit-list {
  position: relative;
}

.detail-list {
  display: grid;
  gap: 0.85rem;
}

.detail-item {
  display: grid;
  gap: 0.2rem;
}

.detail-item strong {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pre-line {
  margin: 0;
  color: var(--vod-muted);
  white-space: pre-line;
}

.auth-body {
  min-height: 100vh;
  background: #f4f4f6;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 0;
  align-items: stretch;
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0;
}

.auth-visual-panel {
  position: relative;
  min-height: calc(100vh - 3rem);
  overflow: hidden;
  border-radius: 20px 0 0 20px;
  background: #dfe6ec;
}

.auth-visual-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 64% center;
}

.auth-visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 19, 32, 0.06), rgba(5, 19, 32, 0.18)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08) 55%, rgba(0, 124, 175, 0.16));
  pointer-events: none;
}

.auth-visual-overlay {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  width: min(360px, calc(100% - 2.5rem));
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  padding: 1rem;
  color: var(--vod-text);
  box-shadow: 0 18px 45px rgba(16, 32, 51, 0.12);
  backdrop-filter: blur(12px);
}

.auth-visual-overlay span,
.auth-logo-lockup .eyebrow {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--vod-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-visual-overlay strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 3rem);
  border: 1px solid #e1e6ee;
  border-left: 0;
  border-radius: 0 20px 20px 0;
  background: #ffffff;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.auth-form-shell {
  width: min(100%, 430px);
}

.auth-logo-lockup {
  margin-bottom: 2.1rem;
}

.auth-logo {
  display: block;
  width: min(100%, 280px);
  height: auto;
  object-fit: contain;
}

.logout-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 22, 37, 0.42);
  backdrop-filter: blur(8px);
}

.logout-confirm-overlay.is-open {
  display: flex;
}

body.logout-modal-open .app-shell {
  filter: blur(2px);
}

.logout-confirm-dialog {
  width: min(100%, 430px);
  border: 1px solid rgba(210, 220, 232, 0.95);
  border-radius: var(--vod-radius);
  background: #ffffff;
  padding: 1.75rem;
  box-shadow: 0 24px 70px rgba(10, 22, 37, 0.2);
  text-align: center;
}

.logout-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: #fff1eb;
  color: var(--vod-danger);
  font-size: 1.35rem;
}

.logout-confirm-dialog h2 {
  margin: 0;
  color: var(--vod-text);
  font-size: 1.55rem;
  font-weight: 900;
}

.logout-confirm-dialog p:not(.eyebrow) {
  margin: 0.7rem 0 0;
  color: var(--vod-muted);
}

.logout-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.logout-confirm-actions form {
  margin: 0;
}

.auth-form-header { margin-bottom: 1.55rem; }

.auth-form-header h2 {
  margin: 0;
  color: var(--vod-text);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.08;
}

.auth-form-header p {
  margin: 0.6rem 0 0;
  color: var(--vod-muted);
  font-size: 0.98rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.auth-form .form-label {
  margin-bottom: 0.42rem;
  font-size: 0.86rem;
  font-weight: 750;
}

.auth-form .form-control {
  min-height: 48px;
  border-color: #dfe5ec;
  border-radius: 10px;
  background: #ffffff;
  padding-inline: 0.95rem;
  font-size: 0.95rem;
}

.auth-form .form-control:hover {
  border-color: #c9d4df;
}

.auth-form .form-control:focus {
  border-color: var(--vod-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 153, 215, 0.15);
}

.auth-form .field-validation-error,
.auth-form .text-danger {
  margin-top: 0.35rem;
}

.validation-summary {
  border: 1px solid #f5c2b8;
  border-radius: 10px;
  background: #fff6f3;
  padding: 0.75rem 0.85rem;
}

.password-field { position: relative; }
.password-field .form-control { padding-right: 4.9rem; }

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  background: transparent;
  color: var(--vod-primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.password-toggle:focus-visible {
  border-radius: 8px;
  outline: 2px solid rgba(0, 153, 215, 0.32);
  outline-offset: 2px;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
  padding-left: 0;
  margin-left: 0;
}

.auth-check .form-check-input {
  float: none;
  margin: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
}

.auth-check .form-check-label {
  color: var(--vod-text);
  font-size: 0.95rem;
}

.auth-submit {
  min-height: 50px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
}

.auth-submit:active {
  transform: translateY(0);
}

.table {
  --bs-table-hover-bg: #f6fbfe;
  border-color: var(--vod-border);
}

.table thead th {
  border-bottom-color: var(--vod-border-strong);
  background: #f8fbfd;
  color: var(--vod-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.sidebar-collapsed .app-sidebar {
  flex-basis: var(--vod-sidebar-collapsed-width);
  width: var(--vod-sidebar-collapsed-width);
  min-width: var(--vod-sidebar-collapsed-width);
}
body.sidebar-collapsed .app-sidebar { align-items: center; }
body.sidebar-collapsed .brand-lockup { min-height: 64px; padding: 0 0 0.65rem; }
body.sidebar-collapsed .brand-logo { max-width: 52px; }
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .sidebar-section-label,
body.sidebar-collapsed .sidebar-copyright { display: none; }
body.sidebar-collapsed .sidebar-link { justify-content: center; }

@media (max-width: 1180px) {
  .status-grid,
  .module-grid,
  .metric-grid,
  .dashboard-priority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .today-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .attention-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .app-shell { display: block; }

  .app-content {
    min-height: 100vh;
    width: 100%;
  }

  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    flex-basis: auto;
    width: min(320px, calc(100% - 2rem));
    min-width: 0;
    transform: translateX(-110%);
  }

  body.sidebar-open .app-sidebar { transform: translateX(0); }

  body.sidebar-open .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1030;
    display: block;
    background: rgba(16, 32, 51, 0.42);
  }

  body.sidebar-collapsed .app-sidebar {
    width: min(320px, calc(100% - 2rem));
    min-width: 0;
  }
  body.sidebar-collapsed .brand-logo { max-width: 220px; }
  body.sidebar-collapsed .nav-label,
  body.sidebar-collapsed .sidebar-section-label,
  body.sidebar-collapsed .sidebar-copyright { display: inline; }

  body.sidebar-open {
    overflow: hidden;
  }

  .dashboard-intro { grid-template-columns: 1fr; }
  .dashboard-actions { justify-content: flex-start; }
  .topbar {
    flex-wrap: wrap;
  }
  .topbar-search {
    order: 4;
    grid-template-columns: 20px minmax(0, 1fr) 34px;
    width: 100%;
  }
  .auth-shell {
    grid-template-columns: 1fr;
    width: min(720px, calc(100% - 2rem));
  }

  .auth-visual-panel {
    min-height: 260px;
    border-radius: 18px 18px 0 0;
  }

  .auth-panel {
    min-height: auto;
    border-top: 0;
    border-left: 1px solid #e1e6ee;
    border-radius: 0 0 18px 18px;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .scan-line {
    grid-template-columns: 1fr;
  }

  .details-grid,
  .profile-summary,
  .record-metric-grid,
  .form-grid,
  .readonly-grid {
    grid-template-columns: 1fr;
  }

  .record-hero {
    flex-direction: column;
  }

  .record-hero-note {
    min-width: 0;
  }

  .profile-summary > div,
  .profile-summary > div:first-child {
    border-left: 0;
    border-top: 1px solid var(--vod-border);
    padding-top: 0.85rem;
    padding-left: 0;
  }

  .profile-summary > div:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .form-actions,
  .page-actions,
  .pagination-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-actions,
  .page-actions .btn,
  .form-actions .btn {
    width: 100%;
  }

  .pagination-actions .btn,
  .form-actions .btn {
    flex: 1;
  }
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  body {
    background: #ffffff;
  }

  .app-shell {
    display: block;
    min-height: auto;
  }

  .app-sidebar,
  .topbar,
  .sidebar-backdrop,
  .logout-confirm-overlay,
  .no-print,
  .app-alert {
    display: none !important;
  }

  .app-content,
  .content-frame {
    display: block;
    padding: 0;
  }

  .print-document {
    max-width: none;
    border: 0;
    padding: 0;
  }

  .barcode-label-sheet {
    grid-template-columns: repeat(3, 1fr);
    gap: 6mm;
  }

  .product-label {
    box-shadow: none;
    break-inside: avoid;
  }

  .print-header img {
    width: 210px;
  }

}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    padding: 0.85rem 1rem;
  }

  .topbar-actions { gap: 0.5rem; }
  .user-chip { display: none; }
  .content-frame { padding: 1rem; }

  .status-grid,
  .module-grid,
  .metric-grid,
  .record-metric-grid,
  .dashboard-priority-grid { grid-template-columns: 1fr; }

  .today-strip,
  .attention-grid,
  .search-input-row {
    grid-template-columns: 1fr;
  }

  .search-input-row .btn {
    width: 100%;
  }

  .dashboard-kpi {
    min-height: auto;
  }

  .dashboard-bar-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .dashboard-bar-row b,
  .dashboard-summary-table td:last-child {
    text-align: left;
  }

  .quick-action-list {
    grid-template-columns: 1fr;
  }

  .dashboard-intro,
  .content-section,
  .empty-state,
  .error-state,
  .page-header,
  .form-section,
  .record-hero,
  .detail-card { padding: 1rem; }

  .dashboard-intro,
  .content-section,
  .page-header,
  .form-section {
    padding-inline: 0;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .auth-shell {
    width: min(100% - 1rem, 520px);
    padding: 1rem 0;
  }

  .auth-visual-panel {
    min-height: 130px;
  }

  .auth-visual-overlay {
    left: 0.8rem;
    bottom: 0.8rem;
    width: min(310px, calc(100% - 1.6rem));
    padding: 0.65rem 0.75rem;
  }

  .auth-visual-overlay span,
  .auth-logo-lockup .eyebrow {
    margin-bottom: 0.28rem;
    font-size: 0.72rem;
  }

  .auth-visual-overlay strong {
    font-size: 0.92rem;
  }

  .auth-panel {
    padding: 0.95rem 1rem 1.05rem;
  }

  .auth-logo-lockup {
    margin-bottom: 1rem;
  }

  .auth-logo {
    width: min(100%, 190px);
  }

  .auth-form-header {
    margin-bottom: 0.95rem;
  }

  .auth-form-header h2 {
    font-size: 1.55rem;
  }

  .auth-form-header p {
    font-size: 0.9rem;
  }

  .auth-form {
    gap: 0.82rem;
  }

  .auth-form .form-control,
  .auth-submit {
    min-height: 44px;
  }

  .logout-confirm-dialog { padding: 1.25rem; }

  .logout-confirm-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .logout-confirm-actions .btn,
  .logout-confirm-actions form {
    width: 100%;
  }
}
