.aman-distribution {
  --aman-navy: #102f39;
  --aman-navy-2: #0a2530;
  --aman-teal: #087a76;
  --aman-teal-light: #dff1ef;
  --aman-gold: #cda451;
  --aman-gold-light: #f5ead2;
  --sidebar-width: 286px;
  background: #f2f5f3;
}

.aman-sidebar {
  background:
    radial-gradient(circle at 5% 5%, rgba(205, 164, 81, 0.16), transparent 28%),
    linear-gradient(165deg, var(--aman-navy) 0%, var(--aman-navy-2) 100%);
}

.official-brand {
  position: relative;
  z-index: 1;
  padding: 16px 15px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.authority-logos {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.authority-logo {
  display: grid;
  height: 55px;
  place-items: center;
  overflow: hidden;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #fff;
}

.authority-logo.command img {
  width: 49px;
  height: 45px;
  object-fit: contain;
}

.authority-logo.agency img {
  width: 100%;
  max-height: 39px;
  object-fit: contain;
}

.aman-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  padding: 10px 8px 2px;
}

.aman-symbol {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #e6bd6a;
}

.aman-identity strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.aman-identity span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
}

.aman-sidebar .nav-item.active {
  box-shadow: inset -3px 0 var(--aman-gold);
}

.aman-sidebar .nav-item.active .icon {
  color: #efc876;
}

.aman-sidebar .sidebar-footer {
  padding-top: 7px;
}

.authority-note {
  margin: 0 4px 10px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
  line-height: 1.65;
  text-align: center;
}

.aman-topbar {
  height: 78px;
}

.official-topbar-mark {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.official-topbar-mark img {
  width: 86px;
  height: 31px;
  object-fit: contain;
}

.official-topbar-mark span {
  max-width: 130px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.gov-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #dfe7e3;
  border-radius: 999px;
  background: #fff;
  color: #486159;
  font-size: 9px;
  font-weight: 700;
}

.gov-chip::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a8a69;
  content: "";
  box-shadow: 0 0 0 3px rgba(26, 138, 105, 0.11);
}

.aman-page-head {
  align-items: center;
}

.aman-page-head h2 {
  color: #183239;
}

.aman-kpi-grid .kpi-card.featured {
  background:
    radial-gradient(circle at 15% 120%, rgba(205, 164, 81, 0.25), transparent 38%),
    linear-gradient(145deg, #0c7772, #10525a);
}

.aman-kpi-grid .kpi-icon {
  background: var(--aman-teal-light);
  color: var(--aman-teal);
}

.aman-kpi-grid .featured .kpi-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #f0cb7d;
}

.control-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  overflow: hidden;
  margin-bottom: 17px;
  padding: 25px 27px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 110%, rgba(205, 164, 81, 0.24), transparent 42%),
    linear-gradient(135deg, #103b44, #0a2731);
  color: #fff;
  box-shadow: 0 18px 44px rgba(16, 47, 57, 0.15);
}

.control-banner h3 {
  margin: 8px 0 5px;
  font-size: 23px;
}

.control-banner p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.control-banner .hero-eyebrow {
  color: #efd28f;
}

.banner-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.banner-flow-step {
  display: grid;
  min-width: 78px;
  min-height: 68px;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
}

.banner-flow-step .icon {
  color: #e7c16d;
}

.banner-flow-step span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 8px;
}

.flow-arrow {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

.aman-content-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.7fr);
}

.pipeline-list {
  display: grid;
  gap: 9px;
}

.pipeline-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.pipeline-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--aman-teal-light);
  color: var(--aman-teal);
}

.pipeline-item strong,
.pipeline-item span {
  display: block;
}

.pipeline-item strong {
  font-size: 11px;
}

.pipeline-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.region-list {
  display: grid;
  gap: 18px;
}

.region-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.region-row-head strong {
  font-size: 11px;
}

.region-row-head span {
  color: var(--muted);
  font-size: 9px;
}

.region-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ef;
}

.region-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a7772, #3ca59b);
}

.region-row.south .region-bar span {
  background: linear-gradient(90deg, #b88732, #e4ba6d);
}

.request-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--aman-teal);
  font-size: 8px;
  font-weight: 700;
}

.request-source::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.request-row-new {
  background: #fbfdfc;
}

.amount-due {
  color: #ad3f3f;
  font-weight: 800;
}

.amount-paid {
  color: #147359;
  font-weight: 800;
}

.finance-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 17px;
}

.finance-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.finance-card span {
  color: var(--muted);
  font-size: 9px;
}

.finance-card strong {
  display: block;
  margin-top: 6px;
  font-size: 21px;
}

.finance-card small {
  color: var(--muted-2);
  font-size: 8px;
}

.allocation-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
  padding: 12px;
  border-radius: 12px;
  background: #f4f7f5;
}

.allocation-detail span {
  color: var(--muted);
  font-size: 8px;
}

.allocation-detail strong {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

.bakery-registry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.registry-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.registry-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.registry-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--aman-teal-light);
  color: var(--aman-teal);
  font-weight: 800;
}

.registry-card-head div {
  min-width: 0;
  flex: 1;
}

.registry-card-head strong,
.registry-card-head span {
  display: block;
}

.registry-card-head strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registry-card-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.registry-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.registry-meta div {
  padding: 9px;
  border-radius: 10px;
  background: #f6f8f7;
}

.registry-meta span,
.registry-meta strong {
  display: block;
}

.registry-meta span {
  color: var(--muted);
  font-size: 8px;
}

.registry-meta strong {
  margin-top: 3px;
  font-size: 10px;
}

.registry-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.document-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 2px;
}

.document-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid #d9e5df;
  border-radius: 9px;
  background: #f5f9f7;
  color: var(--aman-teal);
  font-size: 8px;
  font-weight: 700;
}

.bakery-file-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.bakery-file-summary > div {
  padding: 10px;
  border-radius: 11px;
  background: #f5f7f6;
}

.bakery-file-summary span,
.bakery-file-summary strong {
  display: block;
}

.bakery-file-summary span {
  color: var(--muted);
  font-size: 8px;
}

.bakery-file-summary strong {
  margin-top: 4px;
  font-size: 10px;
}

.portal-account-box {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  padding: 12px;
  border: 1px solid #cfe3da;
  border-radius: 12px;
  background: var(--aman-teal-light);
  color: var(--aman-teal);
}

.portal-account-box > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 10px;
  background: #fff;
}

.portal-account-box small,
.portal-account-box strong,
.portal-account-box p {
  display: block;
  margin: 0;
}

.portal-account-box small,
.portal-account-box p {
  color: var(--muted);
  font-size: 8px;
}

.portal-account-box strong {
  margin: 2px 0;
  font-size: 12px;
}

.field input[type="file"] {
  height: auto;
  min-height: 42px;
  padding: 8px;
}

.field input[type="file"]::file-selector-button {
  margin-left: 9px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--aman-teal-light);
  color: var(--aman-teal);
  font-family: inherit;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.modal-wide {
  width: min(720px, 100%);
}

.link-back-bakery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  text-decoration: none;
}

.link-back-bakery:hover {
  color: #fff;
}

@media (max-width: 1180px) {
  .aman-content-grid {
    grid-template-columns: 1fr;
  }

  .bakery-registry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .official-topbar-mark {
    display: none;
  }
}

@media (max-width: 680px) {
  .aman-topbar {
    height: 64px;
  }

  .control-banner {
    grid-template-columns: 1fr;
    padding: 21px;
  }

  .banner-flow {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .banner-flow::-webkit-scrollbar {
    display: none;
  }

  .banner-flow-step {
    flex: 0 0 78px;
  }

  .finance-overview,
  .bakery-registry-grid {
    grid-template-columns: 1fr;
  }

  .allocation-detail {
    grid-template-columns: 1fr 1fr;
  }

  .bakery-file-summary {
    grid-template-columns: 1fr;
  }
}
