:root {
  --brand: #2F4738;
  --accent: #8C2E6E;
  --accent-600: #73255C;
  --muted: #6B7280;
  --soft: #E2EAE6;
  --bg: #F8F9F8;
  --ok: #007C72;
  --warn: #C47A00;
}

.brand-card {
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  margin-bottom: 1.25rem;
}

.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.metric-card {
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 22px;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  border-top: 4px solid transparent;
}

.metric--orders::before {
  border-top-color: var(--accent);
}

.metric--amount::before {
  border-top-color: var(--brand);
}

.metric--pending::before {
  border-top-color: var(--warn);
}

.metric--fulfilled::before {
  border-top-color: var(--ok);
}

.metric-title {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.metric-value {
  color: var(--brand);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.1;
}

.metric-note {
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.8rem;
}

.info-grid .label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-grid .value {
  color: var(--brand);
  font-weight: 700;
}

.notice-bar {
  background: linear-gradient(180deg, #E8F4F0 0%, #FFFFFF 100%);
  border: 1px solid var(--soft);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  color: var(--brand);
}

.notice-bar .dot {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: rgba(140, 46, 110, 0.18);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.quick-pill {
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px dashed var(--soft);
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.quick-pill .title {
  color: var(--brand);
  font-weight: 700;
}

.quick-pill .desc {
  color: #4b5563;
  font-size: 0.9rem;
}

.quick-pill:hover {
  border-color: var(--accent);
  background: rgba(140, 46, 110, 0.03);
}

.hover-soft:hover {
  background: #FAFAFA;
}

.stat-chip {
  background: #F9FAFB;
  border: 1px solid var(--soft);
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
}

.section-card {
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.section-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

a:focus,
button:focus,
.brand-card:focus {
  outline: 2px solid rgba(140, 46, 110, 0.45);
  outline-offset: 2px;
  border-radius: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .brand-card,
  .reveal,
  .reveal.in {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

.action-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .action-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.action-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #E2EAE6;
  border-left: 4px solid transparent;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  background: #FAFAFA;
}

.action-card .title {
  font-weight: 700;
  color: #2F4738;
}

.action-card .desc {
  color: #4B5563;
  font-size: 0.92rem;
}

.action--review {
  border-left-color: #8C2E6E;
  background: linear-gradient(180deg, #FDF3F8 0%, #FFFFFF 60%);
}

.action--create {
  border-left-color: #2F4738;
  background: linear-gradient(180deg, #F5F8F6 0%, #FFFFFF 60%);
}

.action--explore {
  border-left-color: #C47A00;
  background: linear-gradient(180deg, #FFF6E9 0%, #FFFFFF 60%);
}

.icon-badge {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F3F4F6;
  color: #2F4738;
}

.icon-badge.purple {
  background: rgba(140, 46, 110, 0.12);
  color: #8C2E6E;
}

.icon-badge.green {
  background: rgba(47, 71, 56, 0.12);
  color: #2F4738;
}

.icon-badge.amber {
  background: rgba(196, 122, 0, 0.12);
  color: #C47A00;
}

.quick-panel {
  background: #fff;
  border: 1px solid #E2EAE6;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.quick-panel .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.quick-panel .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in {
    transition: none;
    transform: none;
  }
}

.page-head {
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.page-head h1 {
  margin: 0;
  color: var(--brand);
  font-weight: 800;
  font-size: 1.35rem;
}

.page-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 720px) {
  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .header-actions a {
    flex: 1;
    text-align: center;
  }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--soft);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  transition: all 0.18s ease;
  text-decoration: none;
}

.chip.active,
.chip:hover {
  background: rgba(140, 46, 110, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}

.table-card {
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.brand-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.brand-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f9fafb;
  color: #374151;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--soft);
}

.brand-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--soft);
  color: #111827;
}

.brand-table tbody tr:hover {
  background: #f6f8f6;
}

.brand-table tbody tr.row-alt {
  background: #fcfdfb;
}

.num {
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
}

.badge .pill {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.badge-draft {
  background: #eef2f7;
  color: #475569;
}

.badge-pending {
  background: #fff3e6;
  color: var(--warn);
}

.badge-approved {
  background: #e6f5f3;
  color: var(--ok);
}

.badge-changes {
  background: #f7ecf4;
  color: var(--accent);
}

.td-actions .btn-outline {
  padding: 8px 12px;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .brand-table thead {
    display: none;
  }

  .brand-table,
  .brand-table tbody,
  .brand-table tr,
  .brand-table td {
    display: block;
    width: 100%;
  }

  .brand-table tbody tr {
    margin: 10px 12px;
    background: #fff;
    border: 1px solid var(--soft);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  }

  .brand-table tbody td {
    border: none;
    padding: 10px 14px;
  }

  .brand-table tbody td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .td-actions {
    padding-top: 6px;
  }
}

.detail-head {
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.detail-head h1 {
  font-weight: 800;
  color: var(--brand);
  font-size: 1.3rem;
  margin: 0;
}

.detail-head .subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.detail-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .detail-actions {
    width: 100%;
    justify-content: stretch;
  }

  .detail-actions a,
  .detail-actions button {
    flex: 1;
    text-align: center;
  }
}

.brand-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.brand-card table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.brand-card th {
  text-align: left;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #374151;
  border-bottom: 1px solid var(--soft);
  padding: 10px 6px;
}

.brand-card td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--soft);
  font-size: 0.92rem;
}

.brand-card tr:last-child td {
  border-bottom: none;
}

.note-box {
  background: #f9fafb;
  border: 1px dashed var(--soft);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.page-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--soft);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  padding: 18px;
}

.card h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 0.75rem;
}

.header-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
}

.header-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-title h1 {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--brand);
  margin: 0;
}

.header-title small {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.input,
.select,
textarea.input {
  border: 1px solid var(--soft);
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  color: var(--brand);
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input:focus,
.select:focus,
textarea.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(140, 46, 110, 0.12);
  outline: none;
}

.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
}

.kv dt {
  color: #374151;
  font-size: 0.85rem;
}

.kv dd {
  margin: 0;
  color: #111827;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.badge-draft {
  background: #eef2f7;
  color: #475569;
}

.badge-approved {
  background: #e6f5f3;
  color: var(--ok);
}

.badge-pending {
  background: #fff3e6;
  color: var(--warn);
}

.badge-changes {
  background: #f7ecf4;
  color: var(--accent);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background: var(--bg);
  color: var(--brand);
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 10px;
  border-bottom: 1px solid var(--soft);
}

.table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--soft);
}

.table tbody tr:hover {
  background: #fafbfb;
}

.note {
  background: #f9fafb;
  border: 1px dashed var(--soft);
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.fade {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.fade.in {
  opacity: 1;
  transform: none;
}
