/* Dashboard layout */
:root {
  --color-primary-50: #f2f6ff;
  --color-primary-100: #dbe7ff;
  --color-primary-200: #b7ceff;
  --color-primary-300: #8ab1ff;
  --color-primary-400: #5b8ffd;
  --color-primary-500: #3d75f6;
  --color-primary-600: #285cda;
  --color-primary-700: #1f48b3;
  --color-primary-800: #193a8d;
  --color-primary-900: #132a63;
  --color-primary-950: #0b1a3d;
  --color-primary-50-rgb: 242, 246, 255;
  --color-primary-100-rgb: 219, 231, 255;
  --color-primary-200-rgb: 183, 206, 255;
  --color-primary-300-rgb: 138, 177, 255;
  --color-primary-400-rgb: 91, 143, 253;
  --color-primary-500-rgb: 61, 117, 246;
  --color-primary-600-rgb: 40, 92, 218;
  --color-primary-700-rgb: 31, 72, 179;
  --color-primary-800-rgb: 25, 58, 141;
  --color-primary-900-rgb: 19, 42, 99;
  --color-primary-950-rgb: 11, 26, 61;
  --color-primary-soft: rgba(var(--color-primary-500-rgb), 0.12);
  --color-primary-softer: rgba(var(--color-primary-400-rgb), 0.08);
  --color-primary-border: rgba(var(--color-primary-500-rgb), 0.24);
  --color-primary-focus: rgba(var(--color-primary-500-rgb), 0.28);
}

.dashboard-body {
  background-color: var(--color-primary-50);
}

.dashboard-wrapper {
  display: flex;
  min-height: calc(100vh - 57px);
  /* header height approx */
  align-items: stretch;
}

.dashboard-sidebar {
  flex: 0 0 260px;
  width: 260px;
  background: none;
  border-right: 1px solid rgba(var(--color-primary-200-rgb), 0.6);
  padding: 12px;
  position: sticky;
  top: 0;
  height: calc(100vh - 57px);
  min-height: calc(100vh - 57px);
  overflow-y: auto;
}

.dashboard-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 24px;
}

.sidebar-toggle {
  color: var(--color-primary-700);
  background-color: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
}

.sidebar-toggle:hover {
  background-color: var(--color-primary-soft);
}

.sidebar-links {
  margin-top: 6px;
  padding-left: 8px;
}

.sidebar-group+.sidebar-group {
  margin-top: 12px;
}

.sidebar-subheading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--color-primary-700-rgb), 0.7);
  margin: 12px 0 4px;
  padding: 0 10px;
}

.sidebar-link {
  display: block;
  color: rgba(var(--color-primary-800-rgb), 0.9);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
}

.sidebar-link:hover {
  color: var(--color-primary-900);
  background-color: var(--color-primary-soft);
}

.sidebar-link.active {
  color: var(--color-primary-900);
  background-color: var(--color-primary-soft);
  box-shadow: inset 0 0 0 1px rgba(var(--color-primary-500-rgb), 0.35);
  font-weight: 600;
}

.sidebar-toggle[aria-expanded="true"] {
  color: var(--color-primary-800);
  background-color: var(--color-primary-soft);
  font-weight: 600;
}

.dashboard-sidebar .btn {
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-700));
  border: none;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.75rem;
  box-shadow: 0 10px 24px rgba(var(--color-primary-500-rgb), 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-sidebar .btn:hover,
.dashboard-sidebar .btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(var(--color-primary-500-rgb), 0.35);
}

.dashboard-sidebar .badge {
  background-color: var(--color-primary-soft);
  color: var(--color-primary-800);
  border: 1px solid rgba(var(--color-primary-500-rgb), 0.25);
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 991.98px) {
  .dashboard-wrapper {
    flex-direction: column;
  }

  .dashboard-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
  }
}

/* Blue theme helpers */
.theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-primary-800, #193a8d);
  background: rgba(var(--color-primary-200-rgb, 183, 206, 255), 0.4);
  border: 1px solid rgba(var(--color-primary-400-rgb, 91, 143, 253), 0.28);
}

.theme-badge--light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.32);
}

.theme-badge--outline {
  background: transparent;
  color: var(--color-primary-700, #1f48b3);
  border-color: rgba(var(--color-primary-600-rgb, 40, 92, 218), 0.45);
}

.btn.theme-btn-primary {
  background: linear-gradient(135deg, var(--color-primary-500, #3d75f6), var(--color-primary-700, #1f48b3));
  border: none;
  color: #ffffff;
  padding: 0.75rem 1.6rem;
  border-radius: 0.85rem;
  font-weight: 600;
  box-shadow: 0 16px 32px rgba(var(--color-primary-700-rgb, 31, 72, 179), 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.theme-btn-primary:hover,
.btn.theme-btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(var(--color-primary-700-rgb, 31, 72, 179), 0.3);
}

.btn.theme-btn-ghost {
  background: rgba(var(--color-primary-50-rgb, 242, 246, 255), 0.15);
  border: 1px solid rgba(var(--color-primary-50-rgb, 242, 246, 255), 0.3);
  color: rgba(var(--color-primary-50-rgb, 242, 246, 255), 0.9);
  padding: 0.65rem 1.4rem;
  border-radius: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn.theme-btn-ghost:hover,
.btn.theme-btn-ghost:focus-visible {
  transform: translateY(-1px);
  background: rgba(var(--color-primary-50-rgb, 242, 246, 255), 0.25);
  box-shadow: 0 12px 26px rgba(var(--color-primary-900-rgb, 19, 42, 99), 0.2);
}

.btn.theme-btn-outline {
  background: rgba(var(--color-primary-50-rgb, 242, 246, 255), 0.9);
  border: 1px solid rgba(var(--color-primary-400-rgb, 91, 143, 253), 0.45);
  color: var(--color-primary-800, #193a8d);
  padding: 0.65rem 1.35rem;
  border-radius: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn.theme-btn-outline:hover,
.btn.theme-btn-outline:focus-visible {
  transform: translateY(-1px);
  background: rgba(var(--color-primary-100-rgb, 219, 231, 255), 1);
  box-shadow: 0 12px 26px rgba(var(--color-primary-700-rgb, 31, 72, 179), 0.18);
}

.btn-sm.theme-btn-primary,
.btn-sm.theme-btn-outline,
.btn-group-sm>.btn.theme-btn-primary,
.btn-group-sm>.btn.theme-btn-outline {
  padding: 0.45rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.85rem;
}

.theme-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: clamp(1.75rem, 2vw + 1rem, 2.75rem);
  background: linear-gradient(135deg, rgba(var(--color-primary-800-rgb, 25, 58, 141), 0.95), rgba(var(--color-primary-500-rgb, 61, 117, 246), 0.92));
  color: #ffffff;
  box-shadow: 0 24px 52px rgba(var(--color-primary-950-rgb, 11, 26, 61), 0.25);
}

.theme-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 58%);
  opacity: 0.85;
  pointer-events: none;
}

.theme-hero--light {
  background: linear-gradient(135deg, rgba(var(--color-primary-50-rgb, 242, 246, 255), 0.92), rgba(var(--color-primary-100-rgb, 219, 231, 255), 0.92));
  color: var(--color-primary-900, #132a63);
  border: 1px solid rgba(var(--color-primary-200-rgb, 183, 206, 255), 0.8);
  box-shadow: 0 22px 46px rgba(var(--color-primary-900-rgb, 19, 42, 99), 0.12);
}

.theme-hero--light::after {
  background: radial-gradient(circle at top right, rgba(var(--color-primary-400-rgb, 91, 143, 253), 0.2), transparent 60%);
}

.theme-hero--compact {
  padding: clamp(1.5rem, 2vw + 0.75rem, 2.25rem);
}

.theme-hero__badge {
  position: relative;
  z-index: 1;
}

.theme-hero__badge--brand {
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.theme-hero__title {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1.65rem, 2vw + 1.15rem, 2.4rem);
  font-weight: 700;
}

.theme-hero__text {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 100%;
}

.theme-hero--light .theme-hero__text {
  color: rgba(var(--color-primary-800-rgb, 25, 58, 141), 0.75);
}

.theme-hero__actions {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.theme-hero__actions--stacked {
  flex-direction: column;
  align-items: stretch;
  min-width: clamp(260px, 28vw, 320px);
}

.theme-hero__summary {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
}

.theme-hero__summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(var(--color-primary-500-rgb, 61, 117, 246), 0.12);
  color: var(--color-primary-700, #1f48b3);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.theme-hero__summary-content {
  flex: 1 1 auto;
}

.theme-hero__summary-title {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--color-primary-800-rgb, 25, 58, 141), 0.75);
}

.theme-hero__summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.theme-hero__summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.theme-hero__summary-item:not(:last-child) {
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(var(--color-primary-300-rgb, 138, 177, 255), 0.65);
}

.theme-hero__summary-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: rgba(var(--color-primary-800-rgb, 25, 58, 141), 0.7);
}

.theme-hero__summary-value {
  font-size: clamp(1.5rem, 2vw + 0.75rem, 2rem);
  font-weight: 700;
  color: var(--color-primary-900, #132a63);
}

.theme-hero__summary-subtext {
  font-size: 0.85rem;
  color: rgba(var(--color-primary-800-rgb, 25, 58, 141), 0.65);
}

@media (max-width: 991.98px) {
  .theme-hero__actions--stacked {
    width: 100%;
    min-width: 0;
  }

  .theme-hero__summary {
    padding: 1.25rem;
  }
}

@media (min-width: 768px) {
  .theme-hero__summary-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .theme-hero__summary-item {
    padding-bottom: 0;
    border-bottom: none;
  }
}

.theme-hero__logo {
  position: relative;
  z-index: 1;
  width: 64px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.theme-hero--light .theme-hero__logo {
  box-shadow: none;
}

.theme-callout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 1.25rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(var(--color-primary-400-rgb, 91, 143, 253), 0.2);
  background: rgba(var(--color-primary-50-rgb, 242, 246, 255), 0.9);
  color: var(--color-primary-900, #132a63);
}

.theme-callout__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-callout__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(var(--color-primary-500-rgb, 61, 117, 246), 0.18);
  color: var(--color-primary-600, #285cda);
  font-size: 1.35rem;
}

.theme-callout__title {
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.theme-callout__text {
  margin-bottom: 0;
  color: rgba(var(--color-primary-800-rgb, 25, 58, 141), 0.75);
}

.theme-callout--warning {
  background: rgba(255, 244, 229, 0.9);
  border-color: rgba(242, 153, 74, 0.35);
  color: #7f3d00;
}

.theme-callout--warning .theme-callout__icon {
  background: rgba(242, 153, 74, 0.22);
  color: #e67e22;
}

.theme-callout--warning .theme-callout__text {
  color: rgba(127, 61, 0, 0.82);
}

.theme-card {
  border-radius: 1.5rem;
  background: #ffffff;
  padding: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  border: 1px solid rgba(var(--color-primary-200-rgb, 183, 206, 255), 0.7);
  box-shadow: 0 22px 46px rgba(var(--color-primary-900-rgb, 19, 42, 99), 0.12);
}

/* When theme-card contains header/body structure, remove padding from card */
/* Using :has() for modern browsers - fallback handled by setting padding on children */
.theme-card:has(.theme-card__header),
.theme-card:has(.theme-card__body) {
  padding: 0;
}

/* Fallback for older browsers: children have their own padding */
.theme-card__header {
  padding: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  padding-bottom: clamp(1rem, 2vw + 0.5rem, 1.5rem);
}

.theme-card__body {
  padding: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  padding-top: clamp(1rem, 2vw + 0.5rem, 1.5rem);
}

/* When both header and body are present, adjust spacing */
.theme-card__header + .theme-card__body {
  padding-top: 0;
}

.theme-card__title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw + 0.75rem, 1.75rem);
  font-weight: 700;
  color: var(--color-primary-900, #132a63);
}

.theme-card--soft {
  background: rgba(var(--color-primary-50-rgb, 242, 246, 255), 0.75);
  box-shadow: 0 12px 26px rgba(var(--color-primary-900-rgb, 19, 42, 99), 0.1);
}

.theme-card--glow {
  box-shadow: 0 24px 52px rgba(var(--color-primary-900-rgb, 19, 42, 99), 0.16);
}

.theme-card--bordered {
  border: 2px solid rgba(var(--color-primary-300-rgb, 138, 177, 255), 0.5);
}

.theme-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.theme-form .form-label {
  font-weight: 600;
  color: var(--color-primary-900, #132a63);
}

.theme-form .form-control {
  border-radius: 0.85rem;
  border: 1px solid rgba(var(--color-primary-300-rgb, 138, 177, 255), 0.7);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-form .form-control:focus {
  border-color: var(--color-primary-500, #3d75f6);
  box-shadow: 0 0 0 0.25rem rgba(var(--color-primary-500-rgb, 61, 117, 246), 0.2);
}

.theme-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.theme-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.theme-quick-links__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(var(--color-primary-50-rgb, 242, 246, 255), 0.75);
  border: 1px solid rgba(var(--color-primary-300-rgb, 138, 177, 255), 0.35);
  color: var(--color-primary-800, #193a8d);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.theme-quick-links__item:hover,
.theme-quick-links__item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(var(--color-primary-900-rgb, 19, 42, 99), 0.15);
  color: var(--color-primary-900, #132a63);
  text-decoration: none;
}

.theme-quick-links__item i {
  font-size: 1.1rem;
}

.theme-table {
  border-radius: 1.25rem;
  border: 1px solid rgba(var(--color-primary-200-rgb, 183, 206, 255), 0.8);
  box-shadow: 0 18px 42px rgba(var(--color-primary-900-rgb, 19, 42, 99), 0.12);
  background: #ffffff;
}

.theme-table .table-responsive {
  border-radius: inherit;
}

.theme-table table {
  margin-bottom: 0;
}

.theme-table thead th {
  background: rgba(var(--color-primary-100-rgb, 219, 231, 255), 0.95);
  color: var(--color-primary-900, #132a63);
  border-bottom: 1px solid rgba(var(--color-primary-200-rgb, 183, 206, 255), 0.85);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-table tbody tr {
  transition: background-color 0.2s ease;
}

.theme-table tbody tr:hover {
  background: rgba(var(--color-primary-50-rgb, 242, 246, 255), 0.9);
}

.theme-table tbody td {
  color: var(--color-primary-900, #132a63);
}

.theme-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg,
      rgba(var(--color-primary-50-rgb, 242, 246, 255), 0.95),
      rgba(var(--color-primary-200-rgb, 183, 206, 255), 0.65));
  color: rgba(var(--color-primary-800-rgb, 25, 58, 141), 0.9);
  border: 1px solid rgba(var(--color-primary-400-rgb, 91, 143, 253), 0.45);
  box-shadow: 0 10px 22px rgba(var(--color-primary-500-rgb, 61, 117, 246), 0.15);
}

.theme-status-badge--success {
  background: linear-gradient(135deg,
      rgba(var(--color-primary-100-rgb, 219, 231, 255), 0.95),
      rgba(var(--color-primary-400-rgb, 91, 143, 253), 0.75));
  color: var(--color-primary-950, #0b1a3d);
  border-color: rgba(var(--color-primary-500-rgb, 61, 117, 246), 0.5);
  box-shadow: 0 14px 30px rgba(var(--color-primary-600-rgb, 40, 92, 218), 0.22);
}

.theme-status-badge--warning {
  background: linear-gradient(135deg,
      rgba(var(--color-primary-200-rgb, 183, 206, 255), 0.95),
      rgba(var(--color-primary-600-rgb, 40, 92, 218), 0.7));
  color: #ffffff;
  border-color: rgba(var(--color-primary-700-rgb, 31, 72, 179), 0.55);
  box-shadow: 0 16px 34px rgba(var(--color-primary-800-rgb, 25, 58, 141), 0.3);
}

.theme-status-badge--info {
  background: linear-gradient(135deg,
      rgba(var(--color-primary-50-rgb, 242, 246, 255), 0.95),
      rgba(var(--color-primary-300-rgb, 138, 177, 255), 0.7));
  color: var(--color-primary-900, #132a63);
  border-color: rgba(var(--color-primary-500-rgb, 61, 117, 246), 0.42);
  box-shadow: 0 12px 28px rgba(var(--color-primary-500-rgb, 61, 117, 246), 0.2);
}

.theme-status-badge--neutral {
  background: linear-gradient(135deg,
      rgba(var(--color-primary-50-rgb, 242, 246, 255), 0.85),
      rgba(var(--color-primary-200-rgb, 183, 206, 255), 0.4));
  color: rgba(var(--color-primary-800-rgb, 25, 58, 141), 0.8);
  border-color: rgba(var(--color-primary-300-rgb, 138, 177, 255), 0.45);
  box-shadow:
    inset 0 0 0 1px rgba(var(--color-primary-50-rgb, 242, 246, 255), 0.65),
    0 8px 20px rgba(var(--color-primary-400-rgb, 91, 143, 253), 0.18);
}

.theme-empty-state {
  border-radius: 1.25rem;
  border: 1px dashed rgba(var(--color-primary-400-rgb, 91, 143, 253), 0.35);
  background: rgba(var(--color-primary-50-rgb, 242, 246, 255), 0.5);
  padding: 2rem 1.5rem;
  color: rgba(var(--color-primary-800-rgb, 25, 58, 141), 0.75);
}

/* Request Cards Layout */
.theme-request-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.theme-request-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(var(--color-primary-200-rgb, 183, 206, 255), 0.8);
  box-shadow: 0 10px 30px rgba(var(--color-primary-900-rgb, 19, 42, 99), 0.1);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.theme-request-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(var(--color-primary-900-rgb, 19, 42, 99), 0.15);
}

.theme-request-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(var(--color-primary-200-rgb, 183, 206, 255), 0.5);
}

.theme-request-card__date {
  font-size: 0.875rem;
  color: rgba(var(--color-primary-700-rgb, 31, 72, 179), 0.8);
  font-weight: 500;
}

.theme-request-card__company {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary-900, #132a63);
  line-height: 1.4;
}

.theme-request-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.theme-request-card__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.theme-request-card__status-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.theme-request-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(var(--color-primary-700-rgb, 31, 72, 179), 0.7);
}

.theme-request-card__value {
  font-size: 0.9375rem;
  color: var(--color-primary-900, #132a63);
}

.theme-request-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--color-primary-200-rgb, 183, 206, 255), 0.5);
}

.theme-request-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.theme-request-card__actions .btn {
  border-radius: 0.85rem;
}

/* User Cards Layout */
.theme-user-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.theme-user-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(var(--color-primary-200-rgb, 183, 206, 255), 0.8);
  box-shadow: 0 10px 30px rgba(var(--color-primary-900-rgb, 19, 42, 99), 0.1);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.theme-user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(var(--color-primary-900-rgb, 19, 42, 99), 0.15);
}

.theme-user-card--expired {
  background: rgba(255, 193, 7, 0.05);
  border-color: rgba(255, 193, 7, 0.3);
}

.theme-user-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(var(--color-primary-200-rgb, 183, 206, 255), 0.5);
}

.theme-user-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary-900, #132a63);
  line-height: 1.4;
}

.theme-user-card__subtitle {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.theme-user-card__username {
  font-size: 0.875rem;
  color: rgba(var(--color-primary-700-rgb, 31, 72, 179), 0.7);
  font-weight: 500;
}

.theme-user-card__name {
  font-size: 0.9375rem;
  color: var(--color-primary-800, #193a8d);
  font-weight: 500;
}

.theme-user-card__email {
  font-size: 0.875rem;
  color: rgba(var(--color-primary-700-rgb, 31, 72, 179), 0.8);
  font-weight: 500;
}

.theme-user-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.theme-user-card__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.theme-user-card__status-row,
.theme-user-card__dates-row,
.theme-user-card__package-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.theme-user-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(var(--color-primary-700-rgb, 31, 72, 179), 0.7);
}

.theme-user-card__value {
  font-size: 0.9375rem;
  color: var(--color-primary-900, #132a63);
}

.theme-user-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--color-primary-200-rgb, 183, 206, 255), 0.5);
}

.theme-user-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.theme-user-card__actions .btn {
  border-radius: 0.85rem;
}

@media (max-width: 575.98px) {

  .theme-hero,
  .theme-card {
    border-radius: 1.1rem;
  }

  .theme-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .theme-request-cards {
    grid-template-columns: 1fr;
  }

  .theme-request-card {
    border-radius: 1rem;
  }

  .theme-request-card__status-row {
    grid-template-columns: 1fr;
  }

  .theme-request-card__footer {
    flex-direction: column;
  }

  .theme-request-card__actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .theme-request-card__actions .btn {
    width: 100%;
  }

  .theme-user-cards {
    grid-template-columns: 1fr;
  }

  .theme-user-card {
    border-radius: 1rem;
  }

  .theme-user-card__status-row,
  .theme-user-card__dates-row,
  .theme-user-card__package-row {
    grid-template-columns: 1fr;
  }

  .theme-user-card__footer {
    flex-direction: column;
  }

  .theme-user-card__actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .theme-user-card__actions .btn {
    width: 100%;
  }
}

/* Package status styling improvements - Unified structure */
/* Only remove padding from cards that contain package-status-content */
.theme-card.bg-danger:has(.package-status-content),
.theme-card.bg-success:has(.package-status-content),
.theme-card.theme-card--soft:has(.package-status-content) {
  padding: 0;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-card.bg-danger {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.theme-card.bg-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
}

/* Unified package status content structure */
.package-status-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  align-items: center;
  justify-items: center;
}

.package-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
  border-radius: 1rem;
  font-size: 1.5rem;
  flex-shrink: 0;
  font-size: 4rem;
}

.bg-danger .package-status-icon {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.bg-success .package-status-icon {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}

.theme-card--soft .package-status-icon {
  background: rgba(var(--color-primary-500-rgb, 61, 117, 246), 0.12);
  color: var(--color-primary-700, #1f48b3);
}

.package-status-details {
  /* No flex here - content stacks vertically naturally */
  min-width: 0;
}

.package-status-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.bg-danger .package-status-title {
  color: #991b1b;
}

.bg-success .package-status-title {
  color: #15803d;
}

.theme-card--soft .package-status-title {
  color: var(--color-primary-900, #132a63);
}

.package-status-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

.package-status-item {
  /* Items within the column - can be stacked naturally */
}

.package-status-item--with-progress {
  /* Progress items display inline */
}

.package-status-label {
  font-weight: 600;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.5rem;
}

.bg-danger .package-status-label {
  color: #7f1d1d;
}

.bg-success .package-status-label {
  color: #166534;
}

.theme-card--soft .package-status-label {
  color: var(--color-primary-700, #1f48b3);
}

.package-status-value {
  font-weight: 700;
  font-size: 1.125rem;
}

.bg-danger .package-status-value {
  color: #991b1b;
}

.bg-success .package-status-value {
  color: #14532d;
}

.theme-card--soft .package-status-value {
  color: var(--color-primary-800, #193a8d);
}

.package-status-subtext {
  font-size: 0.875rem;
  opacity: 0.75;
}

.bg-success .package-status-subtext {
  color: #166534;
}

.package-status-message {
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.package-status-message:last-child {
  margin-bottom: 0;
}

.bg-danger .package-status-message {
  color: #7f1d1d;
}

.bg-danger .package-status-message.text-muted {
  opacity: 0.75;
}

/* Circular Progress Bar - Larger size for more impact */
.circular-progress {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Default state (neutral/blue) */
.circular-progress {
  background: conic-gradient(var(--color-primary-500, #3d75f6) calc(var(--progress) * 1%),
      rgba(0, 0, 0, 0.1) 0);
}

/* Success state (green) - progress fills as quota is consumed */
.bg-success .circular-progress {
  background: conic-gradient(#16a34a calc(var(--progress) * 1%),
      rgba(34, 197, 94, 0.15) 0);
}

/* Danger state (red) - when blocked */
.bg-danger .circular-progress {
  background: conic-gradient(#dc2626 calc(var(--progress) * 1%),
      rgba(220, 38, 38, 0.15) 0);
}

.circular-progress__content {
  position: relative;
  z-index: 1;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  font-size: 5rem;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  height: 76px;
  width: 76px;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}

.circular-progress__value {
  font-size: 1.75rem;
  font-weight: 700;
}

.bg-success .circular-progress__value {
  color: #14532d;
}

.bg-danger .circular-progress__value {
  color: #991b1b;
}

.theme-card--soft .circular-progress__value {
  color: var(--color-primary-800, #193a8d);
}

.circular-progress__separator {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0.25rem;
  opacity: 0.5;
}

.bg-success .circular-progress__separator {
  color: #166534;
}

.bg-danger .circular-progress__separator {
  color: #7f1d1d;
}

.theme-card--soft .circular-progress__separator {
  color: var(--color-primary-700, #1f48b3);
}

.circular-progress__total {
  font-size: 1.125rem;
  font-weight: 600;
  opacity: 0.7;
}

.bg-success .circular-progress__total {
  color: #166534;
}

.bg-danger .circular-progress__total {
  color: #7f1d1d;
}

.theme-card--soft .circular-progress__total {
  color: var(--color-primary-700, #1f48b3);
}

/* Ensure consistent width for actions area */
.theme-hero__actions--stacked {
  width: 50%;
  max-width: 100%;
}

.theme-hero__actions--stacked .d-grid {
  width: 100%;
}