/* SMK Bina Mandiri - Admin UI V32
   Satu stylesheet final untuk panel admin dan halaman login. */
:root {
  --ui-primary: #096fcb;
  --ui-primary-dark: #075da8;
  --ui-success: #147a58;
  --ui-warning: #f4b126;
  --ui-danger: #b42318;
  --ui-info: #0f7892;
  --ui-purple: #6e4eb4;
  --ui-navy: #0b2c4d;
  --ui-heading: #12283d;
  --ui-text: #263c51;
  --ui-muted: #5f7388;
  --ui-bg: #f1f5f9;
  --ui-surface: #ffffff;
  --ui-soft: #f7fafc;
  --ui-line: #d7e1ea;
  --ui-sidebar: 248px;
  --ui-radius-sm: 8px;
  --ui-radius: 11px;
  --ui-radius-lg: 14px;
  --ui-shadow: 0 7px 22px rgba(16, 43, 70, 0.07);
  --ui-shadow-lg: 0 15px 38px rgba(12, 38, 65, 0.14);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body,
button,
input,
select,
textarea {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
body.admin-body {
  margin: 0;
  background: var(--ui-bg);
  color: var(--ui-text);
  font-size: 13px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body,
main,
section,
article,
aside,
header,
footer,
nav,
.row > *,
.card-body,
.d-flex > * {
  min-width: 0;
}
p,
li,
td,
th,
label,
small,
span,
a,
button,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ui-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
h1 {
  font-size: 23px;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 17px;
}
h4 {
  font-size: 16px;
}
h5 {
  font-size: 14px;
}
h6 {
  font-size: 13px;
}
a {
  color: var(--ui-primary-dark);
}
a:hover {
  color: #06477e;
}
.text-muted {
  color: var(--ui-muted) !important;
}
.text-primary {
  color: var(--ui-primary-dark) !important;
}
.text-success {
  color: #0f674a !important;
}
.text-danger {
  color: var(--ui-danger) !important;
}
.bg-white,
.bg-light {
  color: var(--ui-text);
}

/* Shell */
.admin-shell {
  min-height: 100vh;
  display: flex;
}
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  width: var(--ui-sidebar);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid var(--ui-line);
  box-shadow: 6px 0 20px rgba(17, 45, 73, 0.05);
}
.sidebar-brand {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-heading);
  text-decoration: none;
}
.sidebar-brand:hover {
  color: var(--ui-heading);
}
.sidebar-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: var(--ui-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}
.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  background: #fff;
}
.sidebar-brand-text {
  min-width: 0;
  line-height: 1.2;
}
.sidebar-brand-text b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ui-heading);
  font-size: 13px;
}
.sidebar-brand-text small {
  display: block;
  margin-top: 2px;
  color: var(--ui-muted);
  font-size: 10.5px;
}
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 11px 13px 5px;
  padding: 9px 10px;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: var(--ui-soft);
}
.sidebar-avatar,
.top-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ui-primary);
  color: #fff;
  font-weight: 700;
}
.sidebar-avatar {
  width: 32px;
  height: 32px;
}
.sidebar-profile-info {
  min-width: 0;
  line-height: 1.22;
}
.sidebar-profile-info b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ui-heading);
  font-size: 11.5px;
}
.sidebar-profile-info small {
  display: block;
  color: var(--ui-muted);
  font-size: 10.5px;
  text-transform: capitalize;
}
.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 5px 12px 14px;
  scrollbar-width: thin;
  scrollbar-color: #b9cad9 transparent;
}
.admin-nav {
  display: grid;
  gap: 4px;
}
.nav-section-label {
  margin: 14px 9px 5px;
  color: #6b7f92;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.admin-nav > a,
.admin-nav .nav-action,
.nav-group summary {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #314b62;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.admin-nav > a i,
.admin-nav .nav-action i,
.nav-group summary i {
  width: 18px;
  flex: 0 0 18px;
  color: #58738d;
  font-size: 14px;
  text-align: center;
}
.admin-nav > a:hover,
.admin-nav .nav-action:hover,
.nav-group summary:hover {
  border-color: #d4e2ee;
  background: #f2f7fb;
  color: var(--ui-primary-dark);
}
.admin-nav > a.active {
  border-color: var(--ui-primary);
  background: var(--ui-primary);
  color: #fff;
}
.admin-nav > a.active i {
  color: #fff;
}
.nav-group {
  border: 0;
}
.nav-group summary {
  list-style: none;
  border-color: var(--ui-line);
  background: #fbfcfd;
}
.nav-group summary::-webkit-details-marker {
  display: none;
}
.nav-group summary .chevron {
  width: auto;
  margin-left: auto;
  font-size: 10px;
  transition: transform 0.16s ease;
}
.nav-group[open] summary {
  border-color: #b8d3e8;
  color: var(--ui-heading);
}
.nav-group[open] summary .chevron {
  transform: rotate(180deg);
}
.nav-group-items {
  display: grid;
  gap: 3px;
  padding: 4px 0 2px 12px;
}
.nav-group-items a {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #506b83;
  font-size: 10.5px;
  font-weight: 550;
  text-decoration: none;
}
.nav-group-items a i {
  width: 16px;
  flex: 0 0 16px;
  text-align: center;
  color: #6d8397;
}
.nav-group-items a:hover {
  background: #f1f6fa;
  color: var(--ui-primary-dark);
}
.nav-group-items a.active {
  border-color: #c7ddec;
  background: #eaf3f9;
  color: var(--ui-primary-dark);
  font-weight: 700;
}
.nav-logout-form {
  margin: 0;
}
.nav-action {
  border: 0 !important;
  font: inherit;
}
.admin-sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--ui-line);
  color: #7d8d9d;
  font-size: 10px;
  text-align: center;
}
.menu-search-hidden {
  display: none !important;
}
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1030;
  background: rgba(7, 24, 41, 0.48);
}
.admin-main {
  width: calc(100% - var(--ui-sidebar));
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--ui-sidebar);
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 19px;
  border-bottom: 1px solid var(--ui-line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 3px 12px rgba(18, 46, 74, 0.04);
}
.sidebar-toggle {
  display: none !important;
  width: 38px;
  height: 38px;
  min-height: 38px !important;
  padding: 0 !important;
}
.top-search {
  position: relative;
  width: min(620px, 55vw);
}
.top-search > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: #6b8196;
}
.top-search input {
  min-height: 40px;
  padding: 8px 39px 8px 36px;
  border-radius: 9px;
  background: #f8fafc;
}
.search-clear {
  display: none;
  position: absolute;
  right: 5px;
  top: 5px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: #e8eef4;
  color: #455e75;
}
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.topbar-icon-btn {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd8e3;
  border-radius: 8px;
  background: #fff;
  color: #34536d;
  text-decoration: none;
}
.topbar-icon-btn:hover {
  border-color: #91b9d8;
  background: #eaf3f9;
  color: var(--ui-primary-dark);
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 3px;
}
.topbar-user-info {
  min-width: 0;
  line-height: 1.2;
  text-align: right;
}
.topbar-user-info b {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ui-heading);
  font-size: 11.5px;
}
.topbar-user-info small {
  display: block;
  color: var(--ui-muted);
  font-size: 10.5px;
  text-transform: capitalize;
}
.top-avatar {
  width: 34px;
  height: 34px;
}
.admin-content {
  flex: 1;
  width: 100%;
  padding: 21px;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.page-heading h1 {
  margin: 0;
  color: var(--ui-heading);
  font-size: 21px;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
  color: var(--ui-muted);
  font-size: 10.5px;
}
.page-breadcrumb i {
  color: #6c8498;
  font-size: 10px;
}
.page-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}
.admin-footer {
  padding: 13px 21px;
  border-top: 1px solid var(--ui-line);
  background: #fff;
  color: #718294;
  font-size: 10.5px;
  text-align: center;
}

/* Controls */
.btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.25;
  white-space: normal;
  box-shadow: none !important;
}
.btn i {
  color: currentColor !important;
}
.btn-sm {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 10.5px;
}
.btn-primary {
  background: var(--ui-primary) !important;
  border-color: var(--ui-primary) !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--ui-primary-dark) !important;
  border-color: var(--ui-primary-dark) !important;
  color: #fff !important;
}
.btn-success {
  background: var(--ui-success) !important;
  border-color: var(--ui-success) !important;
  color: #fff !important;
}
.btn-warning {
  background: var(--ui-warning) !important;
  border-color: var(--ui-warning) !important;
  color: #302100 !important;
}
.btn-danger {
  background: var(--ui-danger) !important;
  border-color: var(--ui-danger) !important;
  color: #fff !important;
}
.btn-dark {
  background: #23394e !important;
  border-color: #23394e !important;
  color: #fff !important;
}
.btn-light {
  background: #fff !important;
  border-color: #cbd7e1 !important;
  color: #2b4359 !important;
}
.btn-light:hover {
  background: #edf3f7 !important;
  color: #173149 !important;
}
.btn-outline-primary {
  border-color: var(--ui-primary) !important;
  color: var(--ui-primary-dark) !important;
  background: #fff !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--ui-primary) !important;
  color: #fff !important;
}
.btn-outline-success {
  border-color: var(--ui-success) !important;
  color: #0f674a !important;
  background: #fff !important;
}
.btn-outline-success:hover,
.btn-outline-success:focus {
  background: var(--ui-success) !important;
  color: #fff !important;
}
.btn-outline-secondary {
  border-color: #74889a !important;
  color: #344d63 !important;
  background: #fff !important;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: #344d63 !important;
  color: #fff !important;
}
.btn-outline-danger {
  border-color: var(--ui-danger) !important;
  color: var(--ui-danger) !important;
  background: #fff !important;
}
.btn-outline-danger:hover,
.btn-outline-danger:focus {
  background: var(--ui-danger) !important;
  color: #fff !important;
}
.btn-link {
  color: var(--ui-primary-dark);
}
.form-label {
  margin-bottom: 5px;
  color: #30485e;
  font-size: 11px;
  font-weight: 650;
}
.form-control,
.form-select {
  min-height: 39px;
  border: 1px solid #b9c8d6;
  border-radius: 8px;
  background: #fff;
  color: #1f374c;
  font-size: 12px;
  line-height: 1.4;
}
textarea.form-control {
  min-height: 92px;
  resize: vertical;
}
.form-control::placeholder {
  color: #728397;
  opacity: 1;
}
.form-control:focus,
.form-select:focus {
  border-color: #4d96d4;
  box-shadow: 0 0 0 3px rgba(9, 111, 203, 0.12);
  color: #1f374c;
}
.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
  background: #edf1f5;
  color: #647487;
  opacity: 1;
}
.form-control-sm,
.form-select-sm {
  min-height: 32px;
  font-size: 11px;
}
.form-control-color {
  width: 100%;
  min-height: 39px;
  padding: 4px;
}
.form-check-input {
  border-color: #8798a8;
}
.form-check-input:checked {
  background-color: var(--ui-primary);
  border-color: var(--ui-primary);
}
.form-check-label {
  color: #30485e;
  font-size: 11px;
}
.form-text {
  margin-top: 4px;
  color: var(--ui-muted);
  font-size: 10.5px;
}
.input-group-text {
  border-color: #b9c8d6;
  background: #edf3f7;
  color: #405a70;
  font-size: 11px;
}
.editor,
.editor-fallback {
  min-height: 230px;
}

/* Cards, tables and alerts */
.card,
.card-soft,
.quick-card,
.soft-panel {
  min-width: 0;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: #fff;
  color: var(--ui-text);
  box-shadow: var(--ui-shadow);
}
.card-header {
  padding: 13px 16px;
  border-bottom-color: var(--ui-line);
  background: #f7f9fb;
  color: var(--ui-heading);
}
.card-body {
  padding: 17px;
}
.card h3,
.card h4,
.card h5,
.card h6 {
  color: var(--ui-heading);
}
.card p,
.card small,
.card .text-muted {
  color: var(--ui-muted) !important;
}
.quick-card {
  padding: 17px;
}
.soft-panel {
  padding: 14px;
  box-shadow: none;
  background: #fbfcfd;
}
.alert {
  border-radius: 8px;
  color: var(--ui-text);
  font-size: 11.5px;
}
.alert-success {
  background: #e9f7f1;
  border-color: #aad9c6;
  color: #0b5b40;
}
.alert-warning {
  background: #fff7dd;
  border-color: #e6cb77;
  color: #604700;
}
.alert-danger {
  background: #fff0ef;
  border-color: #e8b4ae;
  color: #8b1d16;
}
.alert-info {
  background: #eaf5fb;
  border-color: #b8d9e8;
  color: #174d68;
}
.alert-light {
  background: #f7f9fb;
  border-color: var(--ui-line);
  color: #40576d;
}
.badge {
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.2;
  white-space: normal;
}
.bg-primary-subtle {
  background: #e6f1fa !important;
  color: #075590 !important;
}
.bg-success-subtle {
  background: #e7f5ef !important;
  color: #0d6748 !important;
}
.text-bg-light {
  background: #eef3f7 !important;
  color: #31495f !important;
}
.text-bg-secondary {
  background: #53697d !important;
  color: #fff !important;
}
.text-bg-info {
  background: #0f7892 !important;
  color: #fff !important;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
}
.table {
  --bs-table-color: #263c51;
  --bs-table-bg: #fff;
  --bs-table-border-color: #d8e1ea;
  margin-bottom: 0;
  font-size: 11px;
}
.table th {
  padding: 10px 9px;
  background: #f1f5f8;
  color: #2a4055;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table td {
  padding: 10px 9px;
  color: #30475c;
}
.table td,
.table th {
  vertical-align: middle;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: #fbfcfd;
  color: #30475c;
}
.table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: #f0f6fa;
  color: #243c51;
}
.progress {
  height: 7px;
  border-radius: 999px;
  background: #dce5ed;
}
.progress-bar {
  background: var(--ui-primary);
}
.pagination {
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.pagination .page-link {
  min-width: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border-color: #cbd7e1;
  border-radius: 7px !important;
  background: #fff;
  color: var(--ui-primary-dark);
  font-size: 10.5px;
}
.pagination .active > .page-link,
.pagination .page-item.active .page-link {
  background: var(--ui-primary);
  border-color: var(--ui-primary);
  color: #fff;
}

/* Dashboard and page components */
.hero-admin {
  position: relative;
  overflow: hidden;
  border: 1px solid #c7dcec;
  border-radius: var(--ui-radius-lg);
  background: linear-gradient(120deg, #eef6fc, #fff);
}
.hero-admin::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(9, 111, 203, 0.07);
}
.hero-admin .row {
  position: relative;
  z-index: 1;
}
.hero-admin h3 {
  font-size: 17px;
}
.hero-admin p {
  color: var(--ui-muted) !important;
  font-size: 11.5px;
}
.dashboard-card {
  position: relative;
  overflow: hidden;
  color: var(--ui-text);
}
.dashboard-card .card-body {
  min-height: 115px;
  gap: 12px;
}
.dashboard-card small {
  font-size: 10.5px;
}
.dashboard-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--stat-color, var(--ui-primary));
}
.dashboard-icon {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(
    in srgb,
    var(--stat-color, var(--ui-primary)) 11%,
    white
  );
  color: var(--stat-color, var(--ui-primary));
  font-size: 20px;
}
.stat-blue {
  --stat-color: #096fcb;
}
.stat-green {
  --stat-color: #147a58;
}
.stat-orange {
  --stat-color: #a96800;
}
.stat-purple {
  --stat-color: #6e4eb4;
}
.stat-cyan {
  --stat-color: #0f7892;
}
.stat-red {
  --stat-color: #b42318;
}
.quick-action {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 11px;
  border: 1px solid var(--ui-line);
  border-radius: 9px;
  background: #fbfcfd;
  color: #30495f;
  text-decoration: none;
}
.quick-action:hover {
  border-color: #9fc1da;
  background: #eef6fb;
  color: var(--ui-primary-dark);
}
.quick-action .ico {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e5f0f8;
  color: var(--ui-primary-dark);
  font-size: 16px;
}
.quick-action b {
  display: block;
  color: var(--ui-heading);
  font-size: 11.5px;
}
.quick-action small {
  font-size: 10.5px;
  line-height: 1.45;
}
.form-section {
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ui-line);
}
.form-section:last-of-type {
  margin-bottom: 15px;
}
.form-section-title {
  margin-bottom: 12px;
  color: var(--ui-heading);
  font-size: 13px;
  font-weight: 700;
}
.preview-image {
  display: block;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: #edf2f6;
}
.empty-state {
  color: var(--ui-muted);
}
.empty-state i {
  display: block;
  margin-bottom: 5px;
  color: #7890a4;
  font-size: 24px;
}
.empty-state small {
  color: var(--ui-muted);
}
.ppdb-status-card {
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
  box-shadow: none;
}
.ppdb-status-card:hover {
  border-color: #9fc1da;
  background: #f5f9fc;
}
.ppdb-status-card.is-active {
  border-color: var(--ui-primary);
  background: #eaf3f9;
}
.ppdb-status-card .fs-4 {
  color: var(--ui-heading);
  font-size: 20px !important;
}
.action-stack {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}
.timeline {
  color: var(--ui-text);
}
.timeline .border-start {
  border-color: #b7c9d8 !important;
}

/* Login */
body.unified-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 22px;
  background: #eef3f7;
  color: var(--ui-text);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 13px;
}
.unified-login-card {
  width: min(410px, 100%);
  padding: 24px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--ui-shadow-lg);
}
.unified-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ui-line);
}
.unified-login-logo {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 9px;
  background: #fff;
  color: var(--ui-primary);
  font-weight: 750;
}
.unified-login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}
.unified-login-brand b {
  display: block;
  color: var(--ui-heading);
  font-size: 13px;
}
.unified-login-brand small {
  display: block;
  margin-top: 2px;
  color: var(--ui-muted);
  font-size: 10.5px;
}
.unified-login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  color: var(--ui-primary-dark);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.unified-login-title {
  margin: 0 0 5px;
  color: var(--ui-heading);
  font-size: 21px;
}
.unified-login-subtitle {
  margin: 0 0 17px;
  color: var(--ui-muted);
  font-size: 11.5px;
  line-height: 1.6;
}
.auth-field {
  position: relative;
}
.auth-field > i {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #6c8194;
}
.auth-field .form-control {
  padding-left: 36px;
}
.auth-password-toggle {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: #edf2f6;
  color: #405a70;
}
.unified-login-note {
  margin-top: 14px;
  padding: 10px;
  border: 1px solid #c3d9e9;
  border-radius: 8px;
  background: #eef6fb;
  color: #31566f;
  font-size: 10.5px;
}
.unified-login-links {
  margin-top: 10px;
}
.unified-login-footer {
  margin-top: 15px;
  color: #758596;
  font-size: 10.5px;
  text-align: center;
}

/* Responsive */
@media (max-width: 1199.98px) {
  .admin-content {
    padding: 18px;
  }
  .top-search {
    width: min(480px, 48vw);
  }
}
@media (max-width: 991.98px) {
  .admin-sidebar {
    transform: translateX(-102%);
    transition: transform 0.2s ease;
    box-shadow: var(--ui-shadow-lg);
  }
  body.sidebar-open .admin-sidebar {
    transform: none;
  }
  body.sidebar-open .admin-overlay {
    display: block;
  }
  .admin-main {
    width: 100%;
    margin-left: 0;
  }
  .sidebar-toggle {
    display: inline-grid !important;
  }
  .admin-topbar {
    padding: 9px 14px;
  }
  .top-search {
    width: min(560px, 100%);
  }
  .page-heading {
    align-items: flex-start;
  }
}
@media (max-width: 767.98px) {
  .admin-topbar {
    gap: 8px;
  }
  .top-search {
    flex: 1;
    width: auto;
  }
  .hide-mobile,
  .topbar-user-info {
    display: none !important;
  }
  .admin-content {
    padding: 14px;
  }
  .page-heading {
    display: block;
    margin-bottom: 14px;
  }
  .page-heading-actions {
    justify-content: flex-start;
    margin-top: 10px;
  }
  .page-heading h1 {
    font-size: 19px;
  }
  .hero-admin {
    padding: 17px !important;
  }
  .card-body {
    padding: 14px;
  }
  .table {
    min-width: 720px;
  }
  .action-stack {
    justify-content: flex-start;
  }
}
@media (max-width: 575.98px) {
  .admin-topbar {
    min-height: 60px;
    padding: 8px 10px;
  }
  .top-search input {
    min-height: 38px;
    font-size: 11px;
  }
  .admin-content {
    padding: 11px;
  }
  .page-breadcrumb {
    display: none;
  }
  .page-heading-actions .btn {
    flex: 1 1 140px;
  }
  .dashboard-card .card-body {
    min-height: 100px;
    padding: 13px;
  }
  .dashboard-card .display-6 {
    font-size: 22px !important;
  }
  .dashboard-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 17px;
  }
  .unified-login-card {
    padding: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
@media print {
  .admin-sidebar,
  .admin-topbar,
  .admin-footer,
  .page-heading-actions,
  .no-print {
    display: none !important;
  }
  .admin-main {
    width: 100% !important;
    margin: 0 !important;
  }
  .admin-content {
    padding: 0 !important;
  }
  body.admin-body {
    background: #fff !important;
    color: #000 !important;
  }
  .card,
  .card-soft,
  .quick-card,
  .soft-panel {
    box-shadow: none !important;
    border-color: #999 !important;
  }
}

/* Status colors with guaranteed contrast */
.text-bg-primary {
  background: #096fcb !important;
  color: #fff !important;
}
.text-bg-success {
  background: #147a58 !important;
  color: #fff !important;
}
.text-bg-info {
  background: #0f7892 !important;
  color: #fff !important;
}
.text-bg-warning {
  background: #f4b126 !important;
  color: #302100 !important;
}
.text-bg-danger {
  background: #b42318 !important;
  color: #fff !important;
}
.text-bg-secondary {
  background: #53697d !important;
  color: #fff !important;
}
.text-bg-dark {
  background: #23394e !important;
  color: #fff !important;
}

/* V32 final consistency helpers */
.dashboard-metric-value {
  color: var(--ui-heading);
  font-size: 24px;
  font-weight: 750;
  line-height: 1.08;
}
.dashboard-metric-label {
  color: #30475d;
  font-size: 11.5px;
  font-weight: 700;
}
.system-metric-icon {
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
}
.system-metric-value {
  color: var(--ui-heading);
  font-size: 22px;
  font-weight: 750;
  line-height: 1.1;
}
.profile-logo-preview,
.profile-favicon-preview {
  display: block;
  object-fit: contain;
  border: 1px solid var(--ui-line);
  background: #fff;
}
.profile-logo-preview {
  width: 86px;
  height: 86px;
  padding: 9px;
  border-radius: 10px;
}
.profile-favicon-preview {
  width: 62px;
  height: 62px;
  padding: 7px;
  border-radius: 9px;
}
@media (max-width: 575.98px) {
  .dashboard-metric-value {
    font-size: 21px;
  }
  .system-metric-value {
    font-size: 20px;
  }
}
