/* ==========================================================================
   UDOY ADMIN ERP DASHBOARD - DESIGN SYSTEM
   ========================================================================== */

:root {
  --admin-sidebar-bg: #0F172A;
  --admin-sidebar-hover: #1E293B;
  --admin-sidebar-active: #006A4E;
  --admin-text-light: #94A3B8;
  --admin-text-white: #F8FAFC;
  --admin-card-bg: #FFFFFF;
  --admin-border: #E2E8F0;
  --admin-primary: #006A4E;
}

body.admin-body {
  background-color: #F1F5F9;
  font-family: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
  color: #334155;
  margin: 0;
  padding: 0;
}

/* ERP Wrapper Layout */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 270px;
  background-color: var(--admin-sidebar-bg);
  color: var(--admin-text-light);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  overflow-y: auto;
}

.sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-nav {
  padding: 16px 12px;
  list-style: none;
  margin: 0;
  flex-grow: 1;
}

.sidebar-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748B;
  padding: 14px 12px 6px;
  font-weight: 700;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--admin-text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 3px;
  transition: all 0.2s ease;
}

.sidebar-link i {
  font-size: 17px;
  width: 22px;
  text-align: center;
  color: #64748B;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background-color: var(--admin-sidebar-hover);
  color: var(--admin-text-white);
}

.sidebar-link:hover i {
  color: #10B981;
}

.sidebar-link.active {
  background-color: var(--admin-sidebar-active);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.3);
}

.sidebar-link.active i {
  color: #FFFFFF;
}

/* Main Content Area */
.admin-main {
  margin-left: 270px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

/* Topbar */
.admin-topbar {
  height: 68px;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.admin-content-area {
  padding: 30px;
  flex-grow: 1;
}

/* KPI Cards */
.kpi-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.kpi-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
}

.kpi-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* Tables */
.admin-table-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid var(--admin-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.admin-table thead th {
  background-color: #F8FAFC;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--admin-border);
  padding: 14px 20px;
}

.admin-table tbody td {
  padding: 16px 20px;
  vertical-align: middle;
  border-bottom: 1px solid #F1F5F9;
  font-size: 14.5px;
}

/* Status Badges */
.badge-udoy-success {
  background-color: #DCFCE7;
  color: #166534;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
}

.badge-udoy-warning {
  background-color: #FEF3C7;
  color: #92400E;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
}

.badge-udoy-danger {
  background-color: #FFE4E6;
  color: #9F1239;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
}

.badge-udoy-info {
  background-color: #E0F2FE;
  color: #0369A1;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
}

/* Mobile Sidebar */
@media (max-width: 991px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.show {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
}

/* Refined workspace system */
:root {
  --admin-primary: #1b5b44;
  --admin-sidebar-bg: #133f32;
  --admin-sidebar-hover: #24513e;
  --admin-sidebar-active: #e4efb5;
  --admin-text-light: #c3d4c7;
  --admin-border: #e0e7da;
  --admin-ink: #233d2e;
  --admin-muted: #71806c;
}
body.admin-body { background: #f7f8f2; color: var(--admin-ink); font-size: 15px; line-height: 1.65; --bs-success-rgb: 27, 91, 68; --bs-primary-rgb: 27, 91, 68; --bs-border-color: var(--admin-border); }
.admin-body *, .auth-shell *, .registration-shell *, .public-form-shell * { box-sizing: border-box; }
.admin-body :focus-visible, .auth-shell :focus-visible, .registration-shell :focus-visible, .public-form-shell :focus-visible { outline: 3px solid #b7ce68; outline-offset: 4px; }
.admin-body a, .auth-shell a, .registration-shell a { text-underline-offset: 4px; }
.admin-body .text-dark { color: var(--admin-ink) !important; }
.admin-body .text-muted, .admin-body .text-secondary { color: var(--admin-muted) !important; }
.admin-body .text-warning { color: #936510 !important; }
.admin-body .bg-light { background-color: #f5f7ef !important; }
.admin-body h1, .admin-body h2, .admin-body h3, .admin-body h4, .admin-body h5, .admin-body h6 { line-height: 1.4; letter-spacing: -.02em; }
.admin-body h4 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
.admin-body h5 { font-size: 1.1rem; }
.admin-body .font-sans { font-family: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif; font-variant-numeric: tabular-nums; }
.admin-wrapper { min-height: 100dvh; }
.admin-sidebar { width: 260px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #426452 transparent; transition: transform .25s ease; }
.sidebar-header { padding: 28px 22px; }
.sidebar-brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: #fff; }
.sidebar-brand img { width: 40px; height: 40px; border-radius: 12px; background: white; padding: 5px; }
.sidebar-brand strong { display: block; font: 800 20px/1.2 'Plus Jakarta Sans', sans-serif; letter-spacing: .09em; color: #fff; }
.sidebar-brand small { display: block; font-size: 12px; color: #b2c7b9; margin-top: 4px; }
.sidebar-close { margin-left: auto; padding: 7px; background: transparent; border: 1px solid #ffffff30; border-radius: 8px; color: #fff; }
.sidebar-nav { padding: 10px 14px 26px; }
.sidebar-section-title { font-size: 11px; color: #92b39d; font-weight: 600; padding: 22px 12px 7px; letter-spacing: .025em; }
.sidebar-link { gap: 11px; padding: 10px 13px; margin-bottom: 4px; border-radius: 10px; font-size: 14px; transition: background-color .15s, color .15s; }
.sidebar-link i { width: 21px; flex-shrink: 0; color: #9abd9f; font-size: 15px; }
.sidebar-link:hover { color: #fff; }
.sidebar-link.active { color: #23402b; font-weight: 700; box-shadow: none; }
.sidebar-link.active i { color: #31553a; }
.admin-sidebar .sidebar-link.text-warning { color: #e5efb8 !important; }
.admin-sidebar .sidebar-link.text-danger { color: #ffc7bd !important; }
.sidebar-profile { margin: 18px 18px 0; padding: 16px 12px; display: flex; align-items: center; gap: 12px; border-radius: 12px; background: #ffffff0a; }
.sidebar-profile img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; border: 2px solid #ffffff60; }
.sidebar-profile strong { display: block; color: #fff; line-height: 1.4; overflow-wrap: anywhere; }
.sidebar-profile small { display: block; color: #bed4bf; text-transform: capitalize; font-size: 12px; }
.sidebar-logout { background: none; border: 0; width: 100%; text-align: left; }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: #102c2380; z-index: 1035; backdrop-filter: blur(3px); }
.admin-main { margin-left: 260px; width: calc(100% - 260px); min-height: 100dvh; }
.admin-topbar { height: auto; min-height: 82px; background: #fcfdf9ee; gap: 16px; padding: 14px 36px; backdrop-filter: blur(14px); }
.topbar-heading { min-width: 0; }
.topbar-heading h6 { max-width: 50vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.topbar-heading small { font-size: 11px; color: var(--admin-muted); }
.topbar-actions { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.admin-body .lang-switcher { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--admin-border); background: #f1f4ed; border-radius: 9px; }
.admin-body .lang-btn { padding: 4px 9px; border-radius: 6px; color: #627265; text-decoration: none; font-size: 12px; font-weight: 700; }
.admin-body .lang-btn.active { background: #fff; color: var(--admin-primary); box-shadow: 0 1px 4px #12382012; }
.topbar-avatar { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; }
.admin-content-area { padding: 30px 36px 48px; }
.admin-content-area > .container-fluid { padding: 0; }
.admin-flash { padding: 0 36px; }
.admin-flash:has(.alert) { padding-top: 22px; }
.workspace-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.workspace-intro .eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .13em; color: var(--admin-primary); margin-bottom: 6px; }
.workspace-intro h1 { font-size: clamp(1.6rem, 2.7vw, 2.1rem); font-weight: 700; margin-bottom: 4px; }
.workspace-intro p { color: var(--admin-muted); margin: 0; font-size: 14px; }
.workspace-date { color: var(--admin-muted); background: #fff; border: 1px solid var(--admin-border); border-radius: 10px; padding: 10px 14px; font-size: 12px; white-space: nowrap; }
.admin-body .card, .admin-table-card { background: #fff; border: 1px solid var(--admin-border) !important; border-radius: 18px !important; box-shadow: 0 3px 14px #18352304 !important; }
.kpi-card { height: 100%; min-height: 150px; align-items: flex-start; gap: 12px; padding: 24px; border-radius: 18px; box-shadow: none; }
.kpi-card:hover { transform: none; box-shadow: none; }
.kpi-title { color: var(--admin-muted); font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.kpi-value { color: var(--admin-ink); font-size: clamp(24px, 2.6vw, 33px); line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-icon-box { width: 42px; height: 42px; flex-shrink: 0; font-size: 17px; }
.admin-body .table { --bs-table-color: var(--admin-ink); --bs-table-bg: transparent; --bs-table-hover-bg: #f6f8f2; margin-bottom: 0; }
.admin-body .table thead th { background: #f6f8f2; color: #647366; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--admin-border); padding: 15px 20px; white-space: nowrap; letter-spacing: 0; text-transform: none; }
.admin-body .table tbody td { border-color: #edf0e9; padding: 17px 20px; vertical-align: middle; font-size: 14px; }
.admin-body .table tbody tr:last-child > * { border-bottom: 0; }
.admin-body .table-responsive { scrollbar-width: thin; scrollbar-color: #b8c8b5 #f5f7f1; }
.admin-body .table-responsive:focus-visible { outline-offset: -3px; }
.admin-body .table td[colspan] { padding: 38px 20px !important; }
.admin-body .table td .d-flex { min-width: max-content; }
.admin-body .badge { font-weight: 600; line-height: 1.4; }
[class^="badge-udoy-"], [class*=" badge-udoy-"] { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.5; border-radius: 6px; padding: 4px 9px; white-space: nowrap; }
.badge-udoy-success { background: #e8f3e9; color: #2b673e; }
.badge-udoy-warning { background: #fbf1d5; color: #85631d; }
.badge-udoy-danger { background: #fcece7; color: #9c4937; }
.badge-udoy-info { background: #eaf0fa; color: #416491; }
.admin-body .btn { border-radius: 9px !important; font-size: 14px; padding: 9px 16px; font-weight: 600; min-height: 40px; box-shadow: none; }
.admin-body .btn-sm { font-size: 12px; min-height: 36px; padding: 7px 12px; }
.admin-body .btn-udoy-primary, .admin-body .btn-success { background: var(--admin-primary); border: 1px solid var(--admin-primary); color: #fff; }
.admin-body .btn-udoy-primary:hover, .admin-body .btn-success:hover { background: #104632; border-color: #104632; color: #fff; }
.admin-body .btn-outline-success { --bs-btn-color: var(--admin-primary); --bs-btn-border-color: #b4cabc; --bs-btn-hover-bg: var(--admin-primary); --bs-btn-hover-border-color: var(--admin-primary); }
.admin-body .btn-light { background: #f5f7f1; border-color: var(--admin-border); }
.admin-body .form-control, .admin-body .form-select, .auth-shell .form-control, .registration-shell .form-control, .registration-shell .form-select, .public-form-shell .form-control, .public-form-shell .form-select { min-height: 46px; border: 1px solid #d7e0d3; border-radius: 9px; padding: 10px 13px; font-size: 14px; color: #294131; background-color: #fcfdf9; box-shadow: none; }
.admin-body .form-control:focus, .admin-body .form-select:focus, .auth-shell .form-control:focus, .registration-shell .form-control:focus, .registration-shell .form-select:focus, .public-form-shell .form-control:focus, .public-form-shell .form-select:focus { border-color: #7eaa85; box-shadow: 0 0 0 3px #146b5012; background-color: #fff; }
.admin-body .form-control::placeholder, .auth-shell .form-control::placeholder, .registration-shell .form-control::placeholder { color: #8a9782; font-size: 13px; }
.admin-body .form-label { color: #3b5041; font-weight: 600; margin-bottom: 7px; }
.admin-body .form-check-input:checked, .auth-shell .form-check-input:checked, .registration-shell .form-check-input:checked { background-color: var(--admin-primary); border-color: var(--admin-primary); }
.admin-body input[type=file], .registration-shell input[type=file] { font-size: 12px; }
.admin-body textarea.form-control { min-height: 100px; }
.admin-body .modal { --bs-modal-width: 760px; }
.admin-body .modal-xl { --bs-modal-width: 1100px; }
.admin-body .modal-content { border-radius: 20px; overflow: hidden; border: 1px solid var(--admin-border); }
.admin-body .modal-header, .admin-body .modal-footer { background: #f8faf4; padding: 20px 26px; }
.admin-body .modal-body { max-height: 70dvh; overflow-y: auto; }
.admin-body .dropdown-menu { padding: 8px; border: 1px solid var(--admin-border) !important; border-radius: 12px !important; box-shadow: 0 15px 35px #17351d14 !important; }
.admin-body .dropdown-item { border-radius: 6px; font-size: 14px; }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.overview-item { padding: 18px; background: #f6f8f1; border-radius: 12px; border: 1px solid #e8eddf; }
.overview-item strong { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 28px; line-height: 1.4; color: var(--admin-ink); }
.overview-item span { display: block; font-size: 12px; color: var(--admin-muted); }
.overview-item small { color: var(--admin-primary); font-size: 11px; }
.workspace-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--admin-border); text-decoration: none; color: var(--admin-ink); }
.workspace-action:last-child { border-bottom: 0; padding-bottom: 0; }
.workspace-action:hover { color: var(--admin-primary); }
.workspace-action span { display: block; font-size: 14px; font-weight: 600; }
.workspace-action small { display: block; color: var(--admin-muted); font-size: 12px; }
.field-row-item { background: #f8faf4 !important; }
.field-builder-empty { padding: 20px; color: var(--admin-muted); text-align: center; border: 1px dashed #b8c8b5; border-radius: 10px; }
.field-counter { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; color: #79906f; }
.admin-body .progress-track { overflow: hidden; border-radius: 10px; background: #edf2e6; }
.admin-body .progress-fill { height: 100%; border-radius: inherit; background: #69964c; }
.admin-body .id-card-item { max-width: 100%; min-height: 520px; height: auto; }
.admin-body .id-member-name-en, .admin-body .id-info-val { overflow-wrap: anywhere; }
.admin-body .skip-link { position: fixed; top: 12px; left: 280px; transform: translateY(-200%); background: #fff; color: var(--admin-primary); padding: 10px 18px; z-index: 2000; border-radius: 8px; }
.admin-body .skip-link:focus { transform: none; }
.admin-footer { padding: 16px 36px; border-top: 1px solid var(--admin-border); color: #7b8974; font-size: 11px; }

/* Scoped public authentication and application screens. */
.auth-shell { background: #f4f6ef; padding: 64px 20px; }
.auth-panel { display: grid; grid-template-columns: .95fr 1fr; max-width: 1040px; margin: 0 auto; background: white; border: 1px solid #e0e7da; border-radius: 24px; overflow: hidden; box-shadow: 0 15px 60px #24442608; }
.auth-story { background: #133f32; color: white; padding: 50px 42px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-story::after { content: ''; position: absolute; width: 320px; height: 320px; right: -140px; bottom: -155px; border: 1px solid #71916b50; border-radius: 50%; box-shadow: 0 0 0 55px #71916b12, 0 0 0 110px #71916b09; pointer-events: none; }
.auth-story .auth-wordmark { font: 800 22px 'Plus Jakarta Sans', sans-serif; letter-spacing: .08em; color: #e0ecb5; }
.auth-story h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.5; margin: 40px 0 18px; font-weight: 600; }
.auth-story p { color: #bbd0bc; line-height: 1.9; font-size: 14px; max-width: 340px; }
.auth-story .auth-promise { position: relative; z-index: 1; font-size: 12px; color: #c8dab9; margin-top: 40px; display: flex; align-items: center; gap: 10px; }
.auth-card { padding: 45px 48px; }
.auth-card .auth-eyebrow { display: block; color: #71815f; letter-spacing: .1em; font-size: 10px; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; margin-bottom: 10px; }
.auth-card h1 { color: #203c2c; font-size: 30px; font-weight: 700; margin: 0 0 8px; }
.auth-card .auth-description { color: #6b7a63; font-size: 13px; margin-bottom: 28px; }
.auth-card label { color: #3a513e; font-size: 13px; font-weight: 600; }
.auth-password { position: relative; }
.auth-password input { padding-right: 48px !important; }
.auth-password button { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border: 0; border-radius: 7px; background: transparent; color: #6b7d64; }
.auth-card .auth-submit { border: 0; background: #1b5b44; color: #fff; border-radius: 9px; width: 100%; padding: 13px; font-weight: 600; font-size: 15px; }
.auth-card .auth-submit:hover { background: #104632; }
.auth-card .auth-help { display: block; text-align: center; font-size: 12px; color: #6b7a63; margin-top: 15px; }
.auth-card .auth-register { margin: 27px 0 0; padding-top: 22px; border-top: 1px solid #e8eddf; color: #6b7a63; text-align: center; font-size: 12px; }
.auth-card .auth-register a { color: #1b5b44; font-weight: 600; }
.registration-shell { background: #f6f7f1; }
.registration-shell .card, .public-form-shell .card { border: 1px solid #dfe6d8 !important; box-shadow: 0 10px 35px #234b2805 !important; border-radius: 20px !important; }
.registration-shell h3 { color: #23462f !important; font-size: clamp(24px, 3vw, 32px); }
.registration-shell form h5 { color: #356342 !important; font-size: 16px; padding-top: 12px; padding-bottom: 14px !important; border-color: #e6ecdf !important; }
.registration-shell .form-label { color: #3a513e; }
.registration-shell .btn { border-radius: 10px !important; font-size: 15px !important; }
.registration-shell .btn-udoy-primary, .registration-shell .btn-udoy-accent, .public-form-shell .btn-udoy-primary { background: #1b5b44; color: white; border-color: #1b5b44; box-shadow: none !important; }
.registration-shell .btn-udoy-primary:hover, .registration-shell .btn-udoy-accent:hover, .public-form-shell .btn-udoy-primary:hover { background: #104632; }
.registration-shell .registration-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: #6f7e65; font-size: 12px; margin-bottom: 26px; }
.public-form-shell { background: #f6f7f1; }
.public-form-shell fieldset { min-width: 0; }
.public-form-shell legend { font-size: 15px; font-weight: 600; }
.public-form-shell .form-choice { background: #f8faf4; border: 1px solid #e1e8d9; border-radius: 8px; padding: 10px 14px 10px 38px; margin: 0; display: block; }
.public-form-shell .choice-grid { display: grid; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.public-form-heading { padding: 46px 20px; background: #133f32; color: #fff; text-align: center; }
.public-form-heading h1 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0; }
.public-form-heading p { color: #bed3be; font-size: 15px; line-height: 1.8; max-width: 650px; margin: auto; }
.public-form-heading span { color: #d8e9a9; font: 700 10px 'Plus Jakarta Sans', sans-serif; letter-spacing: .15em; }
.public-form-shell .form-note { color: #6c7b61; font-size: 12px; border-bottom: 1px solid #e4eadc; padding-bottom: 20px; margin-bottom: 24px; }
.form-submit-status { font-size: 13px; color: #9a483b; margin: 10px 0; }

@media (min-width: 1600px) { .admin-content-area { max-width: 1540px; width: 100%; margin: auto; } }
@media (max-width: 1199px) { .admin-content-area { padding: 25px; } .admin-topbar { padding: 14px 25px; } .kpi-card { padding: 19px; } .kpi-title { font-size: 12px; } }
@media (max-width: 991px) {
  .admin-sidebar { width: 280px; }
  .admin-sidebar.show { box-shadow: 15px 0 40px #102c2330; }
  .admin-body.sidebar-is-open { overflow: hidden; }
  .admin-body.sidebar-is-open .sidebar-backdrop { display: block; }
  .admin-main { margin-left: 0; width: 100%; }
  .admin-topbar { min-height: 74px; }
  .admin-body .skip-link { left: 20px; }
  .auth-panel { max-width: 800px; grid-template-columns: .85fr 1fr; }
  .auth-story { padding: 35px 28px; }
  .auth-card { padding: 38px 30px; }
}
@media (max-width: 767px) {
  .admin-content-area { padding: 22px 17px 32px; }
  .admin-topbar { padding: 12px 17px; gap: 10px; }
  .topbar-actions { gap: 8px; }
  .topbar-heading h6 { max-width: 36vw; font-size: 13px; }
  .topbar-heading small { display: none; }
  .admin-flash { padding-left: 17px; padding-right: 17px; }
  .workspace-intro { margin-bottom: 23px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .workspace-date { display: none; }
  .admin-content-area .d-flex.justify-content-between:not(.kpi-card):not(.workspace-action) { flex-wrap: wrap; gap: 14px; }
  .admin-content-area .d-flex.justify-content-end { flex-wrap: wrap; }
  .admin-content-area .card.p-4 { padding: 22px !important; }
  .admin-body .table { min-width: 580px; }
  .admin-body .table thead th, .admin-body .table tbody td { padding: 13px 16px; }
  .admin-body .modal-dialog { margin: 12px; }
  .admin-body .modal-body { max-height: 65dvh; padding: 20px !important; }
  .admin-body .modal-header, .admin-body .modal-footer { padding: 16px 20px; }
  .admin-body .modal-footer > .btn { flex: 1; padding-left: 12px !important; padding-right: 12px !important; }
  .admin-body .row.g-4 { --bs-gutter-x: 16px; --bs-gutter-y: 16px; }
  .overview-grid { gap: 8px; }
  .overview-item { padding: 14px 10px; }
  .overview-item strong { font-size: 23px; }
  .admin-footer { padding: 16px 17px; }
  .auth-shell { padding: 30px 16px; }
  .auth-panel { display: block; max-width: 460px; border-radius: 18px; }
  .auth-story { padding: 28px 30px; }
  .auth-story h2 { font-size: 24px; margin: 22px 0 10px; }
  .auth-story p { margin-bottom: 0; font-size: 12px; }
  .auth-story .auth-promise { display: none; }
  .auth-card { padding: 30px; }
  .auth-card h1 { font-size: 26px; }
  .registration-shell { padding-top: 30px !important; padding-bottom: 30px !important; }
  .registration-shell .card { padding: 24px 20px !important; }
  .registration-shell .form-control, .registration-shell .form-select, .public-form-shell .form-control, .auth-shell .form-control, .admin-body .form-control { font-size: 16px; }
  .registration-shell .registration-note { align-items: flex-start; font-size: 11px; }
  .public-form-shell .choice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .admin-body .lang-switcher { display: none; } .auth-card { padding: 26px 22px; } .overview-grid { grid-template-columns: 1fr; } .overview-item { display: flex; align-items: center; gap: 14px; } .overview-item small { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .admin-sidebar, .sidebar-link, .form-control { transition: none !important; } }
@media print {
  .admin-sidebar, .admin-topbar, .admin-footer, .sidebar-backdrop, .admin-body .btn, .admin-body .skip-link { display: none !important; }
  .admin-main { width: 100%; margin: 0; }
  .admin-content-area { padding: 0; }
  .admin-body, .public-form-shell { background: #fff; }
  .admin-body .card, .admin-table-card { box-shadow: none !important; break-inside: avoid; }
  .admin-body .table { min-width: 0; }
  .admin-body .table-responsive { overflow: visible; }
}
