.admin-body {
  background: radial-gradient(ellipse at top right, #e5edf8, transparent 48%), #f5f6f8;
  color: #181c24;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "IBM Plex Sans Arabic", sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
}
.admin-shell { grid-template-columns: 230px minmax(0, 1fr); }
.admin-rail {
  overflow-y: auto;
  background: #f7f9fce8;
  color: #181c24;
  border-inline-end: 1px solid #dbe2ec;
  backdrop-filter: blur(22px) saturate(150%);
}
.admin-brand img { filter: none; }
.admin-brand p { color: #536178; }
.admin-main { padding: clamp(18px, 4vw, 52px); }
.admin-rail, .admin-main { min-width: 0; }
.admin-top h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 750; letter-spacing: -.035em; }
.admin-menu { gap: 4px; }
.admin-menu button { color: #46546b; transition: background .2s, color .2s, transform .2s; }
.admin-menu button:hover { background: #e8eef7; color: #172641; transform: translateX(-2px); }
.admin-menu button.active { background: #dce9fa; color: #12396a; font-weight: 800; }
.admin-stat, .admin-view .panel, .admin-view .table-wrap {
  border: 1px solid #dce3ed;
  border-radius: 22px;
  background: #ffffffed;
  box-shadow: 0 8px 30px #22314a0a;
}
.admin-stat { padding: 22px; }
.admin-stat strong {
  font: 750 clamp(24px, 4vw, 40px)/1.1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.admin-stat span { display: block; margin-top: 8px; color: #536178; }
.admin-view.active { animation: admin-enter .32s cubic-bezier(.22,.68,.33,1) both; }
.admin-view .list-item, .admin-stat { transition: border-color .2s, box-shadow .2s, transform .2s; }
.admin-view .list-item:hover, .admin-stat:hover {
  transform: translateY(-2px);
  border-color: #b9cce6;
  box-shadow: 0 8px 22px #28426412;
}
@keyframes admin-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@supports (animation-timeline: view()) {
  .admin-view .panel { animation: admin-enter linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}
.admin-view > .panel { margin-block: 14px; }
.admin-view details > summary { cursor: pointer; font-weight: 750; }
.admin-view .list-item + .list-item { margin-top: 8px; }
#calendarDate, #calendarOrder { margin-block: 6px 14px; }
.owner-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.owner-actions button { justify-content: flex-start; }
.week-calendar { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 8px; overflow-x: auto; padding-block: 4px 14px; }
.week-day { min-height: 120px; padding: 9px; border: 1px solid #dce3ed; border-radius: 14px; background: #f7f9fc; }
.week-day p { font-size: 13px; }
.week-day button[aria-pressed="true"] { background: #dce9fa; color: #12396a; }
#adminNotificationsList { display: grid; gap: 10px; }
#adminNotificationsList .list-item:has(.under_review) { border-inline-start: 4px solid #526f9e; background: #f4f7fc; }
#adminUnread:not(:empty) { background: #245b9e; color: #fff; border-radius: 999px; padding: 2px 6px; }
.admin-view .empty-state { padding: 22px 16px; }
.owner-detail { width: min(680px, calc(100% - 30px)); max-height: 85vh; padding: 24px; border: 1px solid #dce3ed; border-radius: 22px; color: #181c24; }
.owner-detail::backdrop { background: #15213670; backdrop-filter: blur(4px); }
.owner-detail > form { display: flex; justify-content: flex-end; }
.owner-detail .list-item { margin-block: 8px; }
#customerQuery { margin-block: 6px 10px; }
@media (prefers-reduced-motion: reduce) {
  .admin-body .admin-view, .admin-body .admin-view .panel { animation: none; }
  .admin-body .admin-menu button, .admin-body .list-item, .admin-body .admin-stat { transition: none; transform: none; }
}
@media (max-width: 1000px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-rail {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px 14px;
    overflow: visible;
    box-shadow: 0 4px 20px #22314a12;
  }
  .admin-brand img { width: 74px; max-height: 40px; object-fit: contain; }
  .admin-brand p { display: none; }
  .admin-rail > a.btn { position: absolute; inset-block-start: 12px; inset-inline-end: 14px; margin: 0 !important; width: auto !important; }
  .admin-menu { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px; }
  .admin-menu button { flex: 0 0 auto; white-space: nowrap; padding: 8px 11px; }
  .admin-menu button:hover { transform: none; }
  .admin-body .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
