:root {
  --primary: #0b3225;
  --secondary: #176444;
  --accent: #1f8a5b;
  --primary-fg: #fff;
  --body-bg: #f7f4ed;
  --body-quiet-color: #63716a;
  --link-fg: #176444;
  --link-selected-fg: #0d4e35;
  --hairline-color: #e5dfd3;
  --border-color: #ded7c9;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

#header {
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 173, 91, .25), transparent 30%),
    linear-gradient(135deg, #082b20, #176444);
  box-shadow: 0 14px 36px rgba(8, 43, 32, .22);
  color: #fff;
  min-height: 70px;
}

#site-name,
#site-name a:link,
#site-name a:visited {
  color: #fff;
}

.ih-admin-brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.ih-admin-logo {
  align-items: center;
  background: linear-gradient(135deg, #d9ad5b, #f4d88c);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #082b20;
  display: inline-flex;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  letter-spacing: .03em;
  padding: 0 14px;
}

.ih-admin-brand-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.ih-admin-brand-subtitle {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  margin-top: 2px;
}

.module h2,
.module caption,
.inline-group h2 {
  background: linear-gradient(135deg, #0b3225, #176444);
  border-radius: 12px 12px 0 0;
  font-weight: 700;
  letter-spacing: .01em;
}

div.breadcrumbs {
  background: #103d2d;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .72);
  padding: 12px 32px;
}

#content {
  padding: 24px 32px;
}

#content h1 {
  color: #0b3225;
  font-weight: 700;
}

#content-main .module,
.inline-group,
fieldset.module {
  border-radius: 12px;
  border: 1px solid #e5dfd3;
  box-shadow: 0 12px 32px rgba(31, 50, 40, .08);
  overflow: hidden;
}

.submit-row {
  border-radius: 12px;
  border: 1px solid #e5dfd3;
  box-shadow: 0 12px 32px rgba(31, 50, 40, .08);
}

.button,
input[type=submit],
input[type=button],
.submit-row input,
a.button {
  border-radius: 8px;
  font-weight: 700;
}

input[type=submit].default,
.submit-row input.default {
  background: linear-gradient(135deg, #176444, #1f8a5b);
}

.object-tools a:link,
.object-tools a:visited {
  background: linear-gradient(135deg, #176444, #1f8a5b);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(23, 100, 68, .18);
  font-weight: 700;
}

.object-tools a:hover {
  background: #0f8f5f;
}

.ih-admin-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  white-space: nowrap;
}

.ih-admin-badge--success {
  background: #dcfce7;
  color: #166534;
}

.ih-admin-badge--danger {
  background: #fee2e2;
  color: #991b1b;
}

.ih-admin-badge--warning {
  background: #fef3c7;
  color: #92400e;
}

.ih-admin-badge--muted {
  background: #e5e7eb;
  color: #374151;
}

.ih-admin-risk {
  color: #991b1b;
}

.ih-admin-muted {
  color: #6b7280;
}

.ih-admin-dashboard {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 0 0 22px;
}

.ih-admin-dashboard-card {
  background: #fff;
  border: 1px solid #e5dfd3;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(31, 50, 40, .08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
}

.ih-admin-dashboard-card--accent {
  border-left: 5px solid #d9ad5b;
}

.ih-admin-dashboard-card strong {
  color: #0b3225;
  font-size: 15px;
  font-weight: 700;
}

.ih-admin-dashboard-card span {
  color: #63716a;
  line-height: 1.45;
}

.ih-admin-import {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.ih-admin-import-card {
  background: #fff;
  border: 1px solid #e5dfd3;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(31, 50, 40, .09);
  padding: 24px;
}

.ih-admin-import-card h1,
.ih-admin-import-card h2 {
  color: #0b3225;
  font-weight: 700;
  margin-top: 0;
}

.ih-admin-import-card p {
  color: #63716a;
}

.ih-admin-import-card pre {
  background: #f7f4ed;
  border: 1px solid #e5dfd3;
  border-radius: 10px;
  color: #27382f;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.ih-admin-kicker {
  color: #c9973d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.ih-admin-hero {
  align-items: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(217, 173, 91, .28), transparent 32%),
    linear-gradient(135deg, #082b20, #176444);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(8, 43, 32, .18);
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 0 18px;
  overflow: hidden;
  padding: 26px;
}

.ih-admin-hero h1 {
  color: #fff !important;
  font-size: 30px;
  margin: 0 0 8px;
}

.ih-admin-hero p {
  color: rgba(255, 255, 255, .72);
  margin: 0;
  max-width: 720px;
}

.ih-admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ih-admin-hero-actions .button {
  background: #fff;
  color: #0b3225;
  white-space: nowrap;
}

.ih-admin-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0 0 18px;
}

.ih-admin-metric-card {
  background: #fff;
  border: 1px solid #e5dfd3;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(31, 50, 40, .08);
  color: inherit !important;
  display: block;
  min-height: 132px;
  padding: 18px;
  text-decoration: none;
}

.ih-admin-metric-card:hover {
  border-color: rgba(23, 100, 68, .4);
  box-shadow: 0 16px 38px rgba(31, 50, 40, .11);
}

.ih-admin-metric-card span {
  color: #63716a;
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ih-admin-metric-card strong {
  color: #0b3225;
  display: block;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
  margin: 14px 0 8px;
}

.ih-admin-metric-card small {
  color: #63716a;
}

.ih-admin-metric-card--warning {
  border-top: 4px solid #c77a10;
}

.ih-admin-metric-card--gold {
  border-top: 4px solid #c9973d;
}

#changelist {
  background: #fff;
  border: 1px solid #e5dfd3;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(31, 50, 40, .08);
  overflow: hidden;
}

#changelist-filter {
  background: #faf8f2;
  border-left: 1px solid #e5dfd3;
}

#changelist-filter h2 {
  background: #0b3225;
}

#changelist-filter h3 {
  color: #0b3225;
  font-weight: 700;
}

#changelist table thead th {
  background: #f7f4ed;
  color: #63716a;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

#changelist table tbody tr:hover {
  background: #fbf8ef;
}

.paginator,
#toolbar,
.actions {
  background: #fff;
  border-color: #e5dfd3;
}

#toolbar form input[type="submit"] {
  background: #176444;
}

.selector .selector-available h2,
.selector .selector-chosen h2 {
  background: #0b3225;
}

.aligned label {
  color: #27382f;
  font-weight: 700;
}

input[type=text],
input[type=password],
input[type=email],
input[type=url],
input[type=number],
textarea,
select,
.vTextField {
  border-color: #ded7c9;
  border-radius: 8px;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=number]:focus,
textarea:focus,
select:focus,
.vTextField:focus {
  border-color: #1f8a5b;
  box-shadow: 0 0 0 3px rgba(31, 138, 91, .12);
}

@media (max-width: 767px) {
  #content {
    padding: 16px;
  }

  .ih-admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .ih-admin-hero-actions {
    justify-content: flex-start;
  }

  .ih-admin-brand-subtitle {
    display: none;
  }
}

/* Jazzmin / AdminLTE skin */
.jazzmin-login-page,
body.login {
  background:
    radial-gradient(circle at 78% 12%, rgba(217, 173, 91, .22), transparent 28%),
    linear-gradient(135deg, #082b20 0%, #0b3225 48%, #176444 100%) !important;
}

.login-box .card,
.login-card-body {
  border: 1px solid rgba(217, 173, 91, .28);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(8, 43, 32, .28);
}

.login-logo a,
.register-logo a {
  color: #fff !important;
  font-weight: 700;
}

.ih-jazzmin-logo {
  background: #f7f4ed;
  border: 2px solid rgba(217, 173, 91, .55);
  border-radius: 14px !important;
  height: 36px !important;
  object-fit: contain;
  padding: 3px;
  width: 36px !important;
}

.main-header.navbar,
.navbar-dark {
  background:
    radial-gradient(circle at 90% 15%, rgba(217, 173, 91, .22), transparent 28%),
    linear-gradient(135deg, #082b20, #176444) !important;
  border: 0;
  box-shadow: 0 12px 34px rgba(8, 43, 32, .16);
}

.main-sidebar,
.main-sidebar::before,
.sidebar-dark-success {
  background: #092a20 !important;
}

.brand-link,
.sidebar-brand .brand-link {
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid rgba(217, 173, 91, .18) !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .02em;
}

.sidebar-dark-success .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-dark-success .nav-sidebar > .nav-item.menu-open > .nav-link {
  background: linear-gradient(135deg, #176444, #1f8a5b) !important;
  box-shadow: 0 10px 20px rgba(31, 138, 91, .22);
  color: #fff !important;
}

.nav-sidebar .nav-link {
  border-radius: 10px;
  margin-bottom: 3px;
}

.nav-sidebar .nav-link p {
  white-space: normal;
}

.nav-sidebar .nav-icon {
  color: rgba(244, 216, 140, .9);
}

.content-wrapper {
  background: #f7f4ed !important;
}

.content-header h1,
.content h1 {
  color: #0b3225;
  font-weight: 700;
}

.breadcrumb {
  background: transparent;
}

.breadcrumb-item a {
  color: #176444;
  font-weight: 700;
}

.card {
  border: 1px solid #e5dfd3;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(31, 50, 40, .08);
}

.card-header {
  background: #fff;
  border-bottom: 1px solid #e5dfd3;
  border-radius: 16px 16px 0 0 !important;
}

.card-title {
  color: #0b3225;
  font-weight: 700;
}

.btn-primary,
.btn-success,
input[type=submit].default,
.submit-row input.default {
  background: linear-gradient(135deg, #176444, #1f8a5b) !important;
  border-color: #176444 !important;
  color: #fff !important;
  font-weight: 700;
}

.btn-outline-secondary,
.btn-secondary {
  border-color: #ded7c9 !important;
  color: #0b3225 !important;
  font-weight: 700;
}

.btn-outline-secondary:hover,
.btn-secondary:hover {
  background: #f7f4ed !important;
}

.btn-warning {
  background: #d9ad5b !important;
  border-color: #c9973d !important;
  color: #0b3225 !important;
  font-weight: 700;
}

.btn-danger {
  background: #b42318 !important;
  border-color: #991b1b !important;
  font-weight: 700;
}

.table thead th,
#result_list thead th {
  background: #f7f4ed !important;
  border-bottom: 1px solid #e5dfd3 !important;
  color: #63716a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.table tbody tr:hover,
#result_list tbody tr:hover {
  background: #fbf8ef;
}

.form-control,
.form-select,
.select2-container--admin-autocomplete .select2-selection,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-color: #ded7c9 !important;
  border-radius: 9px !important;
}

.form-control:focus,
.form-select:focus,
.select2-container--focus .select2-selection {
  border-color: #1f8a5b !important;
  box-shadow: 0 0 0 3px rgba(31, 138, 91, .12) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: #176444 !important;
}

.nav-tabs .nav-link {
  border-radius: 10px 10px 0 0;
  color: #63716a;
  font-weight: 700;
}

.nav-tabs .nav-link.active {
  color: #0b3225;
}

.badge-success,
.bg-success {
  background-color: #176444 !important;
}

.badge-warning,
.bg-warning {
  background-color: #d9ad5b !important;
  color: #0b3225 !important;
}

.badge-danger,
.bg-danger {
  background-color: #b42318 !important;
}

.accent-success .btn-link,
.accent-success a:not(.btn):not(.nav-link):not(.dropdown-item) {
  color: #176444;
}

