/* Signed-in operations workspace. The staff sign-in page is intentionally untouched. */
#app .page {
  max-width: 1660px;
  padding: 36px clamp(18px, 3vw, 48px) 72px;
}
#app .workspace-kicker {
  display: block;
  margin-bottom: 8px;
  color: #9a681c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
#app .page-heading:before { content: none; }
#app .page-heading { margin-top: 0; margin-bottom: 27px; }
#app .page-heading h1 { font-size: clamp(27px, 2.8vw, 39px); letter-spacing: -.05em; }
#app .page-heading h1 { display: flex; align-items: center; gap: 13px; }
#app .page-heading__icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #f4dfb8;
  border-radius: 11px;
  background: #fff7e8;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}
#app .nav__icon { display: inline-grid; flex: none; place-items: center; width: 22px; font-size: 16px; line-height: 1; }
#app .nav__item { gap: 10px; }
#app .nav__item.active { background: #ffffff1c; }
#app .page-heading p { margin-top: 6px; font-size: 13px; }
#app .button--primary { box-shadow: 0 3px 0 #c69238; }
#app .button--primary:hover { box-shadow: 0 1px 0 #c69238; transform: translateY(2px); }

/* Overview: prioritize real work and make every metric actionable. */
#dashboardView .summary-grid { gap: 16px; margin-bottom: 18px; }
#dashboardView .summary-card {
  min-height: 179px;
  padding: 19px 20px 16px;
  border: 1px solid #e2e8ee;
  box-shadow: 0 5px 20px #0921370b;
}
#dashboardView .summary-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#dashboardView .summary-card__top > span:last-child { color: #8a98a5; font-size: 9px; letter-spacing: .12em; }
#dashboardView .summary-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff1d9;
  color: #a66a15;
  font-size: 18px;
  font-weight: 700;
}
#dashboardView .summary-card--contact .summary-icon { background: #eaf3ff; color: #3473bd; }
#dashboardView .summary-card--progress .summary-icon { background: #f3ebff; color: #7855ad; }
#dashboardView .summary-card--completed .summary-icon { background: #e5f7ed; color: #218755; }
#dashboardView .summary-card strong { margin: 14px 0 2px; color: #112d41; font-size: 34px; }
#dashboardView .summary-card small { margin: 0; color: #5f7081; font-size: 12px; }
#dashboardView .summary-card button {
  margin-top: auto;
  padding: 11px 0 0;
  border: 0;
  background: none;
  color: #75602f;
  text-align: left;
  font-size: 11px;
  font-weight: 750;
}
#dashboardView .summary-card button:hover { color: #092137; text-decoration: underline; }
.dashboard-workbench { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 18px; margin-bottom: 18px; }
.dashboard-workbench > .panel { min-width: 0; padding: 24px; }
.dashboard-workbench .section-heading { align-items: flex-start; }
.dashboard-workbench .section-heading h2 { font-size: 18px; }
.activity-total { padding: 6px 10px; border-radius: 6px; background: #fff4df; color: #805815; font-size: 11px; font-weight: 800; white-space: nowrap; }
.activity-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 28px);
  height: 205px;
  margin: 24px 4px 0;
  padding: 0 10px;
  border-bottom: 1px solid #e4e9ed;
}
.activity-chart__day { display: flex; min-width: 0; flex-direction: column; align-items: center; }
.activity-chart__value { margin-bottom: 8px; color: #607184; font-size: 11px; font-weight: 800; }
.activity-chart__track { display: flex; flex: 1; width: min(100%, 38px); align-items: end; }
.activity-chart__bar { display: block; width: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #f8d17a, #e9ae43); min-height: 4px; }
.activity-chart__label { padding: 11px 0 0; color: #6a7c8d; font-size: 10px; font-weight: 700; }
.activity-foot { margin-top: 32px; padding-top: 14px; border-top: 1px solid #eef1f4; }
.activity-foot .empty { min-height: auto; padding: 0; color: #718293; font-size: 11px; }
.activity-foot .ops-event-list { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.activity-foot .ops-event-list li { border: 0; background: #f7f9fa; }
.attention-panel .section-heading { margin-bottom: 20px; }
.attention-row { display: flex; width: 100%; align-items: center; gap: 13px; padding: 15px 2px; border: 0; border-top: 1px solid #e8edf0; background: #fff; color: #183044; text-align: left; }
.attention-row:hover { background: #fbfcfd; }
.attention-row__icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #fff3dc; color: #a57425; font-size: 19px; }
.attention-row:nth-of-type(2) .attention-row__icon { background: #e8f3fa; color: #377ca4; }
.attention-row > span:nth-child(2) { flex: 1; min-width: 0; }
.attention-row strong, .attention-row small { display: block; }
.attention-row strong { font-size: 12px; }
.attention-row small { margin-top: 3px; color: #7a8996; font-size: 10px; }
.attention-row b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #f1f4f6; font-size: 11px; }
.attention-panel__footer { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.attention-panel__footer button { min-height: 59px; padding: 10px; border: 1px solid #e7ebee; border-radius: 8px; background: #f8fafb; color: #51667a; text-align: left; font-size: 10px; font-weight: 700; }
.attention-panel__footer button:hover { border-color: #e6bc71; }
.attention-panel__footer span { display: block; color: #153248; font-size: 18px; font-weight: 800; }
.dashboard-recent { margin-bottom: 18px; padding: 22px 24px 12px; }
.dashboard-recent .section-heading { margin-bottom: 16px; }
.dashboard-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 20px 24px; }
.dashboard-offer__copy { flex: 1 1 230px; }
.dashboard-offer h2 { margin: 0; font-size: 16px; }
.dashboard-offer .offer-direction { margin: 5px 0 0; color: #677a8b; font-size: 11px; }
.dashboard-offer__figures { display: grid; flex: 2 1 390px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.dashboard-offer__figures div { padding-left: 14px; border-left: 1px solid #e5ebef; }
.dashboard-offer__figures small { display: block; color: #8291a0; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.dashboard-offer__figures strong { display: block; margin-top: 5px; color: #173349; font-size: 15px; }
.dashboard-offer .button { margin-left: auto; }

/* Work tables and filters. */
.request-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.request-overview button { display: flex; min-width: 0; min-height: 115px; flex-direction: column; padding: 18px; border: 1px solid #e2e8ee; border-radius: 11px; background: #fff; color: #153248; text-align: left; box-shadow: var(--shadow); }
.request-overview button:hover { border-color: #e6bc71; background: #fffcf7; }
.request-overview span { color: #8796a4; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.request-overview strong { margin: 6px 0; font-size: 27px; line-height: 1; }
.request-overview small { margin-top: auto; color: #8a692d; font-size: 10px; font-weight: 700; }
#requestsView .requests-panel, #usersView .ops-panel, #kycView .ops-panel { padding: 22px 24px; }
#requestsView .filters { gap: 11px; margin-bottom: 20px; padding: 14px; border: 1px solid #e7edf1; border-radius: 10px; background: #f8fafb; }
#requestsView .table, #usersView .table, #kycView .table, #staffView .table { width: 100%; }
#app .table th { background: #f7f9fb; color: #718293; font-size: 9px; letter-spacing: .1em; }
#app .table td { border-color: #edf0f3; }
#app .table tbody tr:hover { background: #fff9ef; }
#usersView .ops-toolbar, #kycView .ops-toolbar { padding: 13px; border-radius: 9px; background: #f7f9fb; }
#userDetail:not(.hidden), #kycDetail:not(.hidden) { margin-top: 18px; }
#app .empty--illustrated { display: flex; min-height: 190px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 25px; color: #637587; text-align: center; }
#app .empty--illustrated strong { color: #19364b; font-size: 15px; }
#app .empty--illustrated > span:last-child:not(.empty__icon) { max-width: 340px; color: #788a9a; font-size: 11px; }
#app .empty__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 4px; border: 1px solid #e9edf0; border-radius: 14px; background: #f7f9fa; font-size: 23px; }
#usersView .table__customer-avatar { background: #f9ecd3; color: #946315; }
#app .ops-list-row__identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
#app .ops-list-row__identity > span:last-child { min-width: 0; }
#app .list-icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #f4f7f9; font-size: 19px; }
#app .list-icon img { display: block; width: 34px; height: 34px; object-fit: contain; }
#app .list-icon__code { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #dceaf0; color: #16435b; font-size: 11px; font-weight: 850; letter-spacing: -.03em; }
#app .list-state { display: inline-block; margin-left: 7px; padding: 3px 6px; border-radius: 999px; background: #f5f0e9; color: #8f6c35; font-size: 9px; font-style: normal; font-weight: 800; vertical-align: middle; }
#app .list-state.is-active { background: #e4f5e9; color: #218356; }

/* Configuration pages use an intentional two-column workspace. */
#currenciesView:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
#currenciesView > .page-heading { grid-column: 1 / -1; margin-bottom: 6px; }
#currenciesView > .ops-two-col { display: contents; }
#currenciesView #offerList { grid-column: 1; grid-row: 2; }
#currenciesView #offerForm { grid-column: 2; grid-row: 2; }
#currenciesView .ops-two-col > section { grid-column: 1; grid-row: 3; }
#currenciesView #currencyForm { grid-column: 2; grid-row: 3; }
#currenciesView .ops-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#currenciesView .ops-panel { margin: 0; }
#currenciesView .ops-panel h2 { padding-bottom: 12px; border-bottom: 1px solid #edf0f3; }
#currenciesView #offerForm > .button, #currenciesView #currencyForm > .button { width: 100%; }
#settingsView .settings-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border: 0; background: transparent; box-shadow: none; }
#settingsView .form-section { min-width: 0; padding: 23px; border: 1px solid #e1e8ed; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
#settingsView .form-section--last { grid-column: 1 / -1; }
#settingsView .form-section h2 { margin-bottom: 10px; }
#staffView:not(.hidden) { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); gap: 18px; align-items: start; }
#staffView > .page-heading { grid-column: 1 / -1; margin-bottom: 6px; }
#staffView .staff-panel { grid-column: 1; grid-row: 2; min-width: 0; padding: 22px; }
#staffView #staffForm { grid-column: 2; grid-row: 2; min-width: 0; }
#staffView #staffForm .row { grid-template-columns: 1fr; }
#staffView #staffForm .form-section { padding: 22px; }
#staffView #staffForm .settings-actions .button { width: 100%; }

@media (max-width: 1150px) {
  #dashboardView .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-workbench { grid-template-columns: minmax(0, 1fr); }
  #currenciesView:not(.hidden), #staffView:not(.hidden) { grid-template-columns: minmax(0, 1fr); }
  #currenciesView #offerList, #currenciesView #offerForm, #currenciesView .ops-two-col > section, #currenciesView #currencyForm, #staffView .staff-panel, #staffView #staffForm { grid-column: 1; grid-row: auto; }
  #currenciesView #offerList { order: 1; }
  #currenciesView #offerForm { order: 2; }
  #currenciesView .ops-two-col > section { order: 3; }
  #currenciesView #currencyForm { order: 4; }
  #staffView .staff-panel { order: 1; }
  #staffView #staffForm { order: 2; }
  #settingsView .settings-panel { grid-template-columns: minmax(0, 1fr); }
  #settingsView .form-section--last { grid-column: 1; }
}
@media (max-width: 650px) {
  #app .page { padding: 23px 13px 45px; }
  #app .page-heading__icon { width: 34px; height: 34px; border-radius: 9px; font-size: 17px; }
  #app .page-heading h1 { gap: 9px; }
  #dashboardView .summary-grid { gap: 9px; }
  #dashboardView .summary-card { min-height: 161px; padding: 13px; }
  #dashboardView .summary-card__top > span:last-child { font-size: 7px; }
  #dashboardView .summary-card strong { font-size: 28px; }
  .dashboard-workbench > .panel, .dashboard-recent, .dashboard-offer { padding: 17px; }
  .activity-chart { gap: 7px; height: 160px; margin: 20px 0 0; padding: 0; }
  .activity-foot .ops-event-list { grid-template-columns: 1fr; }
  .dashboard-offer__figures { grid-template-columns: 1fr 1fr; }
  .dashboard-offer .button { width: 100%; margin-left: 0; }
  #currenciesView .ops-form-grid { grid-template-columns: 1fr; }
  #requestsView .requests-panel, #usersView .ops-panel, #kycView .ops-panel { padding: 13px; }
  .request-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .request-overview button { min-height: 100px; padding: 12px; }
  .request-overview button:last-child { grid-column: 1 / -1; min-height: 78px; }
  .request-overview span { font-size: 8px; }
  .request-overview strong { font-size: 23px; }
  .request-overview small { font-size: 9px; }
}
.sidebar-backdrop { display: none; }
.sidebar__close { display: none; }
@media (max-width: 900px) {
  body.sidebar-open { overflow: hidden; }
  .sidebar-backdrop.is-visible { position: fixed; z-index: 9; inset: 0; display: block; width: 100%; border: 0; background: #081e31a8; cursor: pointer; }
  .sidebar__top { position: relative; }
  .sidebar__close { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #ffffff38; border-radius: 8px; background: #ffffff12; color: #fff; font-size: 24px; line-height: 1; }
  .sidebar__close:hover { background: #ffffff24; }
}
