/* Minimal layout so admin is usable without CoolAdmin vendor assets locally */
body { margin:0; font-family: system-ui, Segoe UI, sans-serif; background:#f7f5f0; color:#0b334d; }
.page-wrapper { min-height:100vh; }
.container { max-width:1140px; margin:0 auto; padding:0 1rem; }
.row { display:flex; flex-wrap:wrap; gap:1rem; }
.col-xl-3 { flex:0 0 240px; }
.col-xl-9 { flex:1 1 480px; }
.col-md-12 { width:100%; }
.card { background:#fff; border:1px solid #e4e0d8; border-radius:8px; margin-bottom:1rem; }
.card-header { padding:.75rem 1rem; border-bottom:1px solid #e4e0d8; font-weight:600; }
.card-body { padding:1rem; }
.table { width:100%; border-collapse:collapse; }
.table th, .table td { border:1px solid #e4e0d8; padding:.5rem; vertical-align:top; }
.btn { display:inline-block; padding:.45rem .9rem; border-radius:6px; border:0; cursor:pointer; text-decoration:none; color:#fff; background:#0b334d; }
.btn-primary, .hv-login-submit { background:#f58220; }
.btn-danger { background:#b91c1c; }
.btn-secondary { background:#6b7280; }
.btn-sm { padding:.25rem .5rem; font-size:.85rem; }
.alert { padding:.75rem 1rem; border-radius:6px; margin-bottom:1rem; }
.alert-success { background:#d1fae5; }
.alert-danger { background:#fee2e2; }
.form-control, .au-input, input[type=text], input[type=password], input[type=email], input[type=date], textarea, select {
  width:100%; padding:.55rem .7rem; border:1px solid #e4e0d8; border-radius:6px; box-sizing:border-box;
}
.form-group { margin-bottom:1rem; }
.welcome2 { background:linear-gradient(135deg,#0b334d,#072536); color:#fff; padding:2rem 0; }
.welcome2 a { color:#fff; }
.list-unstyled { list-style:none; padding:0; margin:0; }
.hv-admin-sidebar { background:#fff; border:1px solid #e4e0d8; border-radius:8px; padding:.5rem 0; }
.hv-admin-sidebar a { display:block; padding:.65rem 1rem; color:#0b334d; text-decoration:none; }
.hv-admin-sidebar li.active a, .hv-admin-sidebar a:hover { background:#f7f5f0; border-left:3px solid #f58220; }
.hv-login-body { background:#0b334d; min-height:100vh; display:flex; align-items:center; justify-content:center; }
.hv-login-wrap { max-width:400px; margin:1.5rem auto; width:100%; }
.hv-login-card { background:#fff; padding:2rem; border-radius:12px; box-shadow:0 10px 40px rgba(0,0,0,.2); }
.hv-login-logo img { max-height:64px !important; max-width:200px !important; }
.hv-login-title { font-size:1.4rem; margin:.75rem 0 .25rem; color:#0b334d; }
.hv-login-sub { color:#6b7280; margin-bottom:1.25rem; }
.hv-login-error { color:#b91c1c; margin-top:.5rem; }
.hv-login-footer { margin-top:1rem; font-size:.9rem; }
.hv-stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:1rem; }
.hv-stat-card { background:#fff; border:1px solid #e4e0d8; border-radius:8px; padding:1.25rem; }
.hv-stat-card strong { display:block; font-size:1.8rem; color:#f58220; }
.float-right { float:right; }
.text-muted { color:#6b7280; }
.mb-4 { margin-bottom:1.5rem; }
.mt-3 { margin-top:1rem; }
.p-t-40 { padding-top:2rem; }
.p-b-55 { padding-bottom:2.5rem; }


/* Force compact logos on all webadmin pages */
.hv-admin-header .hv-brand-img,
.hv-brand-logo img.hv-brand-img,
.header__logo img {
  max-height: 28px !important;
  max-width: 110px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
.hv-admin-header .account-item .image img,
.hv-admin-header .account-dropdown .image img {
  max-height: 36px !important;
  max-width: 36px !important;
  width: 36px !important;
  height: 36px !important;
  object-fit: cover !important;
  border-radius: 50%;
}
.hv-login-logo img { max-height:64px !important; max-width:200px !important; }
.hv-admin-header .header4-wrap {
  min-height: 52px !important;
}

/* === CLEAN ADMIN CHROME (declutter) === */
.hv-topbar {
  background: #fff;
  border-bottom: 1px solid #e4e0d8;
  position: sticky;
  top: 0;
  z-index: 100;
}
.hv-topbar__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hv-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none !important;
  color: inherit;
}
.hv-topbar .hv-brand-img {
  max-height: 52px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}
.hv-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.hv-brand-name { font-weight: 700; color: #0b334d; font-size: 0.95rem; }
.hv-brand-sub { font-size: 0.75rem; color: #6b7280; }
.hv-topbar__user { position: relative; }
.hv-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e4e0d8;
  background: #f7f5f0;
  border-radius: 999px;
  padding: 0.25rem 0.7rem 0.25rem 0.25rem;
  cursor: pointer;
  font: inherit;
  color: #0b334d;
}
.hv-user-chip:hover { border-color: #f58220; }
.hv-user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #0b334d; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.hv-user-name { font-weight: 600; font-size: 0.9rem; }
.hv-user-caret { color: #6b7280; font-size: 0.7rem; }
.hv-user-dropdown {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 160px; background: #fff;
  border: 1px solid #e4e0d8; border-radius: 10px;
  box-shadow: 0 10px 28px rgba(11,51,77,.12);
  padding: 0.35rem; z-index: 200;
}
.hv-user-dropdown a {
  display: block; padding: 0.6rem 0.75rem;
  color: #0b334d !important; text-decoration: none !important;
  border-radius: 8px; font-weight: 600; font-size: 0.9rem;
}
.hv-user-dropdown a:hover { background: #f7f5f0; }
.hv-user-dropdown__danger { color: #b91c1c !important; }

/* Hide legacy CoolAdmin header leftovers if any page still emits them */
.header-desktop4, .header__tool .account-dropdown:not(.hv-user-dropdown) { }
.welcome2 { padding: 1.25rem 0 !important; }
.welcome2 .title-6, .welcome2 .hv-admin-section-title { font-size: 1.35rem !important; margin: 0 0 .25rem !important; }
.welcome2 .hv-admin-section-sub { opacity: .85; margin: 0; font-size: .9rem; }

.hv-side {
  background: #fff;
  border: 1px solid #e4e0d8;
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 2px 10px rgba(11,51,77,.04);
}
.hv-side__list { list-style: none; margin: 0; padding: 0; }
.hv-side__list a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 0.85rem; border-radius: 9px;
  color: #0b334d !important; text-decoration: none !important;
  font-weight: 600; font-size: 0.95rem;
}
.hv-side__list a i { width: 1.15rem; text-align: center; color: #6b7280; }
.hv-side__list li.is-active > a,
.hv-side__list a:hover {
  background: rgba(245,130,32,.12);
}
.hv-side__list li.is-active > a i { color: #f58220; }

/* Kill raw blue underlines in admin shell */
.page-wrapper a { text-decoration: none; }
.page-content a { text-decoration: underline; text-underline-offset: 2px; }
.page-content .btn { text-decoration: none !important; }
