:root {
  --admin-bg: #f4f6fb;
  --admin-side: #0b1f3a;
  --admin-side-2: #102846;
  --admin-accent: #1e88e5;
}
body.admin-body { background: var(--admin-bg); font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--admin-side), var(--admin-side-2));
  min-height: 100vh;
  color: #d7e3f5;
  position: fixed;
  inset: 0 auto 0 0;
  overflow-y: auto;
  z-index: 20;
}
.admin-sidebar a {
  color: #d7e3f5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.admin-brand { padding: 22px 18px 10px; }
.admin-brand img { height: 36px; background: #fff; border-radius: 8px; padding: 4px 6px; }
.admin-main { margin-left: 260px; min-height: 100vh; }
.admin-top {
  background: #fff;
  border-bottom: 1px solid #e6ebf2;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-content { padding: 24px; }
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.kpi {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid #e6ebf2;
  box-shadow: 0 10px 30px rgba(7,20,40,.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 112px;
  height: 100%;
}
.kpi-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: #6b7280;
  min-height: 2.7em;
}
.kpi-label i { margin-top: 2px; flex-shrink: 0; color: #1e88e5; }
.kpi .n {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0b1f3a;
  line-height: 1.1;
  white-space: nowrap;
}
.table-card, .form-admin {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e6ebf2;
  box-shadow: 0 10px 30px rgba(7,20,40,.05);
  padding: 18px;
}
.login-wrap { min-height: 100vh; background: #071428; display: flex; align-items: center; padding: 24px 12px; }
.table-responsive { overflow-x: auto; }
@media (max-width: 991px) {
  .admin-sidebar {
    position: fixed;
    width: 260px;
    min-height: 100vh;
    transform: translateX(-110%);
    transition: transform .25s ease;
    z-index: 40;
  }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 16px; }
  .admin-top { padding: 12px 14px; }
}

.admin-image-preview {
  border: 1px dashed #cdd6e4;
  border-radius: 12px;
  background: #f7f9fc;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  gap: 8px;
}
.admin-image-preview img {
  max-width: 100%;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.admin-image-preview.is-logo img { max-height: 80px; }
.admin-image-preview.is-favicon img { max-height: 64px; }
.admin-image-preview.is-avatar img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}
.admin-image-preview-label,
.admin-image-preview-empty {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}
.ck.ck-editor { width: 100%; }
.ck.ck-editor__main > .ck-editor__editable {
  min-height: 180px;
}
.col-lg-4 .ck.ck-editor__main > .ck-editor__editable,
.col-lg-5 .ck.ck-editor__main > .ck-editor__editable {
  min-height: 140px;
}
.hours-picker .form-control[type="time"] {
  min-width: 150px;
}
