:root {
  --bg: #f6f4df;
  --bg-strong: #f8e08a;
  --paper: rgba(255, 253, 245, 0.9);
  --paper-strong: #fffdf7;
  --line: rgba(2, 116, 57, 0.16);
  --text: #103222;
  --muted: #47624e;
  --brand: #027439;
  --brand-deep: #014f28;
  --accent: #fdc405;
  --warn: #ce9900;
  --danger: #9b2c2c;
  --shadow: 0 24px 60px rgba(1, 79, 40, 0.14);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(2, 116, 57, 0.18), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(253, 196, 5, 0.26), transparent 22rem),
    linear-gradient(180deg, #fffef2 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Instrument Sans", sans-serif;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img,
svg,
canvas,
video {
  max-width: 100%;
  height: auto;
}

.landing-body {
  min-height: 100vh;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.landing-brand img {
  width: 96px;
  height: auto;
  object-fit: contain;
}

.landing-brand p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

h1, h2, h3, strong {
  font-family: "Space Grotesk", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 2rem;
}

.login-hero,
.login-card,
.sidebar,
.content-panel {
  border: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.login-hero {
  border-radius: 32px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-hero h1 {
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 0.98;
  margin: 0.7rem 0 1rem;
  max-width: 11ch;
}

.login-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 48ch;
}

.eyebrow,
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--brand);
  font-weight: 700;
}

.login-badges {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.login-badges span,
.overview-pill {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(253, 196, 5, 0.18);
  border: 1px solid var(--line);
  color: var(--brand-deep);
  font-weight: 600;
}

.login-card {
  border-radius: 32px;
  padding: 2rem;
  align-self: center;
}

.panel-head h2 {
  margin: 0.3rem 0 0.4rem;
  font-size: 1.5rem;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
}

.stack-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stack-form label {
  display: grid;
  gap: 0.45rem;
}

.stack-form span {
  font-weight: 600;
}

input,
button {
  font: inherit;
}

input[type="text"],
input[type="password"],
input[type="search"] {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.primary-btn,
.ghost-btn {
  padding: 0.95rem 1.2rem;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 56%, #159652 100%);
  color: #fffdf7;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(1, 79, 40, 0.22);
}

.ghost-btn {
  background: rgba(253, 196, 5, 0.18);
  color: var(--brand-deep);
  border: 1px solid var(--line);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.feedback {
  min-height: 1.2rem;
  margin: 0;
  color: var(--danger);
}

.landing-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
}

.landing-hero,
.landing-section,
.story-card,
.benefit-card,
.final-cta {
  border: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.landing-hero {
  min-height: 84vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem;
  border-radius: 34px;
}

.landing-copy h1 {
  margin: 0.45rem 0 1rem;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 0.96;
  max-width: 10ch;
}

.landing-lead {
  max-width: 56ch;
  font-size: 1.08rem;
  color: var(--muted);
}

.landing-cta-row,
.landing-badges {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.landing-cta-row {
  margin-top: 1.5rem;
}

.landing-badges {
  margin-top: 1.2rem;
}

.landing-badges span {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(253, 196, 5, 0.18);
  color: var(--brand-deep);
  font-weight: 700;
}

.landing-visual img,
.story-card img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-section {
  margin-top: 1.2rem;
  padding: 1.8rem;
  border-radius: 30px;
}

.landing-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1rem;
}

.story-card,
.benefit-card {
  border-radius: 24px;
  padding: 1.2rem;
}

.story-card h2,
.story-card h3,
.section-intro h2 {
  margin: 0.35rem 0 0.8rem;
}

.story-card p,
.benefit-card p,
.section-intro p,
.final-cta p {
  color: var(--muted);
}

.section-intro {
  max-width: 70ch;
  margin-bottom: 1rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.benefit-card strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.final-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.login-footer-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
}

.role-canvas {
  min-height: 100vh;
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.role-canvas--overview,
.role-canvas--sales,
.role-canvas--governance,
.role-canvas--growth {
  grid-template-columns: 290px 1fr;
}

.role-canvas--cashier,
.role-canvas--super-admin,
.role-canvas--operations,
.role-canvas--support,
.role-canvas--audit {
  grid-template-columns: 1fr;
}

.role-side,
.rail-panel {
  border: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 1.15rem;
}

.compact-side {
  align-self: start;
}

.rail-panel--wide {
  min-width: 320px;
}

.role-main {
  min-width: 0;
}

.role-grid {
  display: grid;
  gap: 1rem;
}

.role-grid--cashier,
.role-grid--support,
.role-grid--audit {
  grid-template-columns: 320px 1fr;
}

.role-grid--operations {
  grid-template-columns: 1fr 300px;
}

.role-grid--super-admin {
  grid-template-columns: 340px 1fr;
}

.role-stack {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.hero-panel {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(1, 79, 40, 0.9), rgba(2, 116, 57, 0.86) 58%, rgba(253, 196, 5, 0.66));
  color: #fffdf7;
  border-radius: 30px;
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-panel .kicker,
.hero-panel .workspace-description,
.hero-panel h1 {
  color: #fffdf7;
}

.hero-panel .ghost-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #fffdf7;
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-panel--cashier {
  background: linear-gradient(135deg, rgba(1, 79, 40, 0.96), rgba(2, 116, 57, 0.84) 52%, rgba(253, 196, 5, 0.78));
}

.hero-panel--super-admin {
  background: linear-gradient(120deg, rgba(16, 50, 34, 0.98), rgba(2, 116, 57, 0.9) 48%, rgba(253, 196, 5, 0.72));
}

.hero-panel--operations {
  background: linear-gradient(135deg, rgba(1, 79, 40, 0.94), rgba(10, 99, 58, 0.88), rgba(248, 224, 138, 0.86));
}

.hero-panel--support {
  background: linear-gradient(135deg, rgba(1, 79, 40, 0.88), rgba(2, 116, 57, 0.8), rgba(255, 253, 245, 0.55));
}

.hero-panel--growth {
  background: linear-gradient(135deg, rgba(253, 196, 5, 0.9), rgba(2, 116, 57, 0.84), rgba(1, 79, 40, 0.92));
}

.hero-panel--audit {
  background: linear-gradient(135deg, rgba(16, 50, 34, 0.98), rgba(65, 97, 75, 0.9), rgba(253, 196, 5, 0.6));
}

.hero-panel--overview {
  background: linear-gradient(140deg, rgba(1, 79, 40, 0.94), rgba(2, 116, 57, 0.82), rgba(253, 196, 5, 0.7));
}

.module-nav-shell {
  display: grid;
  gap: 1.25rem;
  height: 100%;
}

.sidebar {
  margin: 1.2rem;
  border-radius: 28px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand-logo {
  width: 74px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-block p {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.sidebar-nav {
  display: grid;
  gap: 0.45rem;
}

.sidebar-nav a,
.sidebar-nav button {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  color: var(--muted);
  font-weight: 600;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sidebar-nav a.active,
.sidebar-nav a:hover,
.sidebar-nav button.active,
.sidebar-nav button:hover {
  background: rgba(253, 196, 5, 0.22);
  color: var(--brand-deep);
}

.module-nav-header h3 {
  margin: 0.3rem 0 0;
  font-size: 1.15rem;
}

.module-nav-header {
  padding: 0.2rem 0 0.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 0.8rem;
}

.user-mini-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}

.user-mini-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.workspace {
  padding: 1.4rem 1.4rem 2rem 0;
}

.workspace-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
  padding: 1rem 0 1.2rem;
}

.workspace-header h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0.35rem 0;
}

.workspace-description {
  max-width: 70ch;
  color: var(--muted);
  margin: 0;
}

.overview-strip {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-span-2 {
  min-height: 260px;
}

.content-panel {
  border-radius: 28px;
  padding: 1.4rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.metric-card {
  padding: 1.15rem;
  border-radius: 22px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.metric-card .label {
  color: var(--muted);
  font-size: 0.88rem;
}

.metric-card .value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0.45rem 0 0.2rem;
}

.metric-card .hint {
  color: var(--brand-deep);
  font-size: 0.88rem;
}

.summary-card {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  color: var(--muted);
}

.summary-card p {
  margin: 0;
}

.table-toolbar {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.resource-tabs {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.resource-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 0.72rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}

.resource-tab.active {
  background: rgba(253, 196, 5, 0.24);
  color: var(--brand-deep);
}

.resource-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-right: auto;
}

.secondary-btn,
.tiny-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  cursor: pointer;
}

.secondary-btn {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-weight: 700;
}

.tiny-btn {
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.tiny-btn.is-danger {
  color: var(--danger);
}

.actions-cell {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.resource-feedback {
  margin-top: 1rem;
  min-height: 1.2rem;
  color: var(--muted);
}

.form-panel {
  margin-top: 1rem;
}

.resource-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.resource-form .field {
  display: grid;
  gap: 0.45rem;
}

.resource-form .field.span-2 {
  grid-column: 1 / -1;
}

.resource-form label {
  font-weight: 700;
}

.resource-form textarea,
.resource-form select,
.resource-form input[type="number"],
.resource-form input[type="date"],
.resource-form input[type="datetime-local"],
.resource-form input[type="time"] {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
}

.lookup-shell {
  position: relative;
}

.lookup-hidden {
  display: none;
}

.lookup-panel {
  position: absolute;
  z-index: 15;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lookup-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.85rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(78, 58, 36, 0.08);
}

.lookup-option:last-child {
  border-bottom: 0;
}

.lookup-option:hover {
  background: rgba(253, 196, 5, 0.18);
}

.lookup-option strong,
.lookup-selected strong {
  display: block;
}

.lookup-option span,
.lookup-selected span {
  color: var(--muted);
  font-size: 0.85rem;
}

.lookup-selected {
  margin-top: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: rgba(253, 196, 5, 0.18);
  border: 1px solid rgba(2, 116, 57, 0.18);
}

.resource-form textarea {
  min-height: 130px;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

.form-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.field-help {
  color: var(--muted);
  font-size: 0.84rem;
}

.table-shell {
  overflow: auto;
  margin-top: 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: auto;
}

thead {
  background: rgba(38, 23, 12, 0.04);
}

th, td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(78, 58, 36, 0.08);
  text-align: left;
  vertical-align: top;
}

tbody tr:hover {
  background: rgba(253, 196, 5, 0.14);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag.is-success {
  background: rgba(2, 116, 57, 0.14);
  color: var(--brand-deep);
}

.tag.is-warning {
  background: rgba(253, 196, 5, 0.28);
  color: #7f5e00;
}

.tag.is-danger {
  background: rgba(187, 63, 47, 0.12);
  color: var(--danger);
}

.tag.is-neutral {
  background: rgba(38, 23, 12, 0.08);
  color: var(--muted);
}

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 2rem 1rem;
}

@media (max-width: 1080px) {
  .landing-hero,
  .landing-grid,
  .benefit-grid,
  .login-shell,
  .app-shell,
  .dashboard-grid,
  .role-canvas,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .workspace {
    padding: 0 1rem 2rem;
  }

  .sidebar {
    margin: 1rem;
  }
}

@media (max-width: 720px) {
  .landing-shell {
    width: min(100% - 1rem, 100%);
  }

  .landing-hero,
  .landing-section,
  .login-shell {
    padding: 1rem;
  }

  .landing-hero,
  .login-hero,
  .login-card,
  .content-panel,
  .sidebar {
    border-radius: 24px;
  }

  .final-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-header {
    flex-direction: column;
    align-items: start;
  }

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

.resource-form {
    grid-template-columns: 1fr;
  }
}

.cashier-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(15, 123, 108, 0.16), transparent 28%),
    linear-gradient(135deg, #f6f3ea 0%, #fbfaf6 42%, #edf7f4 100%);
}

.executive-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(239, 125, 87, 0.14), transparent 25%),
    linear-gradient(135deg, #faf7f2 0%, #f6f8fb 50%, #eef6f2 100%);
}

.executive-sidebar,
.executive-main {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.executive-sidebar {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1.5rem;
  height: calc(100vh - 3rem);
}

.executive-main {
  padding: 1.5rem;
}

.executive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.executive-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.executive-chart-card {
  min-height: 320px;
}

.executive-chart-span-2 {
  grid-column: span 2;
}

.executive-line-chart,
.executive-area-chart,
.executive-column-chart,
.executive-donut-shell,
.executive-coverage-grid {
  margin-top: 1rem;
}

.executive-line-chart svg,
.executive-area-chart svg {
  width: 100%;
  height: 220px;
  display: block;
}

.executive-line-grid,
.executive-line-path,
.executive-area-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.executive-line-grid {
  stroke: rgba(15, 23, 42, 0.14);
  stroke-width: 1.5;
}

.executive-line-path {
  stroke: #0f7b6c;
  stroke-width: 3;
}

.executive-line-chart circle {
  fill: #ef7d57;
  stroke: #fff;
  stroke-width: 1.2;
}

.executive-area-fill {
  fill: rgba(239, 125, 87, 0.18);
}

.executive-area-path {
  stroke: #ef7d57;
  stroke-width: 3;
}

.executive-axis-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
}

.executive-axis-labels strong,
.executive-column strong,
.executive-coverage-row strong,
.executive-donut-legend strong {
  display: block;
  font-size: 0.88rem;
}

.executive-axis-labels span,
.executive-column em,
.executive-coverage-row em,
.executive-donut-legend span {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.executive-column-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 0.9rem;
  align-items: end;
  min-height: 240px;
}

.executive-column {
  display: grid;
  gap: 0.5rem;
  align-items: end;
}

.executive-column-value {
  font-weight: 700;
  font-size: 0.85rem;
}

.executive-column-track {
  height: 170px;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, rgba(15, 123, 108, 0.08), rgba(29, 78, 216, 0.08));
  position: relative;
  overflow: hidden;
}

.executive-column-track span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, #efb366 0%, #ef7d57 100%);
}

.executive-donut-shell {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.executive-donut-visual {
  position: relative;
  width: 180px;
  height: 180px;
}

.executive-donut-visual svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.executive-donut-base,
.executive-donut-segment {
  fill: none;
  stroke-width: 6;
}

.executive-donut-base {
  stroke: rgba(15, 23, 42, 0.08);
}

.executive-donut-total {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.executive-donut-total strong {
  font-size: 2rem;
  line-height: 1;
}

.executive-donut-total span {
  color: var(--muted);
  font-size: 0.85rem;
}

.executive-donut-legend {
  display: grid;
  gap: 0.75rem;
}

.executive-donut-legend div {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.executive-donut-legend i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: block;
}

.executive-coverage-grid {
  display: grid;
  gap: 0.85rem;
}

.executive-coverage-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.executive-coverage-track {
  display: flex;
  min-width: 120px;
  height: 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.executive-coverage-regionals,
.executive-coverage-locals {
  display: block;
  height: 100%;
}

.executive-coverage-locals {
  background: linear-gradient(90deg, #0f7b6c 0%, #1d4ed8 100%);
}

.linkish-btn {
  background: none;
  border: none;
  padding: 0;
  color: #0f7b6c;
  font: inherit;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}

.executive-nav {
  margin-top: 0.5rem;
}

.cashier-main,
.cashier-sidebar {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 123, 108, 0.12);
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(30, 41, 59, 0.08);
  backdrop-filter: blur(12px);
}

.cashier-main {
  padding: 1.5rem;
}

.cashier-sidebar {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 1.5rem;
  height: calc(100vh - 3rem);
}

.cashier-hero,
.cashier-top-grid,
.cashier-charts-grid,
.cashier-page-content {
  display: grid;
  gap: 1rem;
}

.cashier-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin-bottom: 1.25rem;
}

.cashier-top-grid {
  grid-template-columns: 320px minmax(0, 1fr);
  margin-bottom: 1rem;
}

.cashier-kpi-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.cashier-withdrawal-hero {
  gap: 1rem;
}

.cash-amount-display {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1;
  color: #0f7b6c;
  letter-spacing: -0.04em;
}

.cashier-placeholder-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

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

.cashier-agency-card h2,
.chart-card h2 {
  margin: 0;
}

.agency-meta,
.chart-legend,
.cashier-session-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cashier-nav {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.cashier-nav-link {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  color: #1f2937;
  text-decoration: none;
  font-weight: 700;
  background: rgba(15, 123, 108, 0.05);
  border: 1px solid transparent;
}

.cashier-nav-link.is-active {
  background: linear-gradient(135deg, #0f7b6c, #169a86);
  color: #fff;
  border-color: rgba(15, 123, 108, 0.32);
}

.cashier-sidebar-note {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cashier-session-list {
  display: grid;
  gap: 0.85rem;
}

.cashier-session-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: #f7faf9;
  border: 1px solid rgba(15, 123, 108, 0.1);
}

.cashier-chart {
  width: 100%;
  height: 180px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  margin-right: 0.4rem;
}

.legend-dot--primary {
  background: #0f7b6c;
}

.legend-dot--secondary {
  background: #ef7d57;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
  align-items: end;
  gap: 0.75rem;
  min-height: 220px;
}

.bar-chart-item {
  text-align: center;
}

.bar-chart-column {
  height: 150px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.bar-chart-column span {
  width: 100%;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, #22c1a7 0%, #0f7b6c 100%);
}

.horizontal-bars {
  display: grid;
  gap: 0.8rem;
}

.horizontal-bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.horizontal-bar-track {
  height: 12px;
  border-radius: 999px;
  background: #e5ece9;
  overflow: hidden;
}

.horizontal-bar-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #efb366 0%, #ef7d57 100%);
}

@media (max-width: 1080px) {
  .cashier-shell {
    grid-template-columns: 1fr;
  }

  .executive-shell {
    grid-template-columns: 1fr;
  }

  .cashier-sidebar {
    position: static;
    height: auto;
  }

  .executive-sidebar {
    position: static;
    height: auto;
  }

  .cashier-top-grid,
  .cashier-charts-grid,
  .cashier-hero {
    grid-template-columns: 1fr;
  }

  .executive-grid {
    grid-template-columns: 1fr;
  }

  .executive-chart-grid {
    grid-template-columns: 1fr;
  }

  .executive-chart-span-2 {
    grid-column: span 1;
  }

  .executive-donut-shell {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .executive-coverage-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .cashier-shell,
  .cashier-main,
  .cashier-sidebar,
  .executive-shell,
  .executive-main,
  .executive-sidebar {
    padding: 1rem;
  }

  .cashier-session-card,
  .horizontal-bar-row {
    grid-template-columns: 1fr;
  }
}

:root[data-backoffice-theme="dark"] {
  --bg: #0b1020;
  --paper: rgba(15, 23, 42, 0.92);
  --paper-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.2);
  --text: #e5eef8;
  --muted: #94a3b8;
  --brand: #7bc386;
  --brand-deep: #b6e2bb;
  --accent: #ffd95e;
  --danger: #ff8080;
  --shadow: 0 20px 45px rgba(2, 6, 23, 0.42);
}

body[data-backoffice-theme="dark"] {
  background: #0b1020;
  color: var(--text);
}

#super-admin-root,
#super-admin-root * {
  font-family: "Inter", "Instrument Sans", sans-serif;
}

#super-admin-root {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.superadmin-workspace,
.superadmin-workspace > *,
.superadmin-workspace .content-panel,
.superadmin-workspace .table-shell,
.superadmin-workspace .table-toolbar,
.superadmin-workspace .resource-form,
.superadmin-workspace .cashier-kpi-grid,
.superadmin-workspace .executive-chart-grid {
  min-width: 0;
  max-width: 100%;
}

body[data-backoffice-theme="dark"] .content-panel,
body[data-backoffice-theme="dark"] .executive-main,
body[data-backoffice-theme="dark"] .executive-sidebar,
body[data-backoffice-theme="dark"] .cashier-main,
body[data-backoffice-theme="dark"] .cashier-sidebar {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
}

.superadmin-workspace .content-panel {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.superadmin-workspace .panel-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.superadmin-workspace .panel-head h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
  color: #0f172a;
}

.superadmin-workspace .panel-head p {
  color: #64748b;
}

.superadmin-workspace .metric-card {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.superadmin-workspace .metric-card .label {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
}

.superadmin-workspace .metric-card .value {
  color: #0f172a;
  font-size: clamp(1.6rem, 2vw, 2.3rem);
}

.superadmin-workspace .table-toolbar {
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
}

.superadmin-workspace .table-toolbar input[type="search"] {
  max-width: 360px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #f8fafc;
}

.superadmin-workspace .table-shell {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff;
  overflow-x: hidden;
}

.superadmin-workspace table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.superadmin-workspace thead {
  background: #f8fafc;
}

.superadmin-workspace th,
.superadmin-workspace td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.superadmin-workspace tbody tr {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.superadmin-workspace tbody tr:hover {
  background: rgba(26, 107, 42, 0.05);
}

.superadmin-sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 1.8rem;
}

.superadmin-sortable::after {
  content: "↕";
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #94a3b8;
}

.superadmin-sortable[aria-sort="ascending"]::after {
  content: "↑";
  color: #1a6b2a;
}

.superadmin-sortable[aria-sort="descending"]::after {
  content: "↓";
  color: #1a6b2a;
}

.superadmin-table a,
.superadmin-workspace .linkish-btn {
  color: #1a6b2a;
  font-weight: 700;
}

.superadmin-workspace .primary-btn,
.superadmin-workspace .ghost-btn,
.superadmin-workspace .tiny-btn {
  border-radius: 14px;
}

.superadmin-workspace .resource-form {
  gap: 1.25rem;
}

.superadmin-workspace .resource-form textarea,
.superadmin-workspace .resource-form select,
.superadmin-workspace .resource-form input[type="number"],
.superadmin-workspace .resource-form input[type="date"],
.superadmin-workspace .resource-form input[type="datetime-local"],
.superadmin-workspace .resource-form input[type="time"],
.superadmin-workspace .resource-form input[type="text"],
.superadmin-workspace .resource-form input[type="email"],
.superadmin-workspace .resource-form input[type="file"] {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #f8fafc;
}

body[data-backoffice-theme="dark"] .superadmin-workspace .content-panel,
body[data-backoffice-theme="dark"] .superadmin-workspace .metric-card,
body[data-backoffice-theme="dark"] .superadmin-workspace .table-shell {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
}

body[data-backoffice-theme="dark"] .superadmin-workspace thead {
  background: rgba(30, 41, 59, 0.76);
}

body[data-backoffice-theme="dark"] .superadmin-workspace .panel-head h2,
body[data-backoffice-theme="dark"] .superadmin-workspace .metric-card .value,
body[data-backoffice-theme="dark"] .superadmin-workspace th,
body[data-backoffice-theme="dark"] .superadmin-workspace td {
  color: #e5eef8;
}

body[data-backoffice-theme="dark"] .superadmin-workspace .panel-head p,
body[data-backoffice-theme="dark"] .superadmin-workspace .metric-card .label,
body[data-backoffice-theme="dark"] .superadmin-workspace .empty-state {
  color: #94a3b8;
}

body[data-backoffice-theme="dark"] .superadmin-workspace tbody tr:hover {
  background: rgba(123, 195, 134, 0.08);
}

body[data-backoffice-theme="dark"] .superadmin-workspace .table-toolbar input[type="search"],
body[data-backoffice-theme="dark"] .superadmin-workspace .resource-form textarea,
body[data-backoffice-theme="dark"] .superadmin-workspace .resource-form select,
body[data-backoffice-theme="dark"] .superadmin-workspace .resource-form input[type="number"],
body[data-backoffice-theme="dark"] .superadmin-workspace .resource-form input[type="date"],
body[data-backoffice-theme="dark"] .superadmin-workspace .resource-form input[type="datetime-local"],
body[data-backoffice-theme="dark"] .superadmin-workspace .resource-form input[type="time"],
body[data-backoffice-theme="dark"] .superadmin-workspace .resource-form input[type="text"],
body[data-backoffice-theme="dark"] .superadmin-workspace .resource-form input[type="email"],
body[data-backoffice-theme="dark"] .superadmin-workspace .resource-form input[type="file"] {
  background: rgba(15, 23, 42, 0.9);
  color: #e5eef8;
  border-color: rgba(148, 163, 184, 0.18);
}

@media (max-width: 900px) {
  .superadmin-workspace .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .superadmin-workspace .table-toolbar input[type="search"] {
    max-width: none;
  }
}

@media (min-width: 1200px) {
  .superadmin-workspace .cashier-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .superadmin-workspace .executive-chart-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .superadmin-workspace .executive-chart-card {
    grid-column: span 4;
    min-height: 340px;
  }

  .superadmin-workspace .executive-chart-span-2 {
    grid-column: span 8;
  }

  .superadmin-workspace .resource-form {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }
}

@media (min-width: 1440px) {
  .superadmin-workspace {
    padding: 2rem;
  }

  .superadmin-workspace .content-panel {
    padding: 1.75rem;
  }

  .superadmin-workspace .cashier-kpi-grid {
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 1rem;
  }

  .superadmin-workspace .table-shell {
    overflow-x: hidden;
  }
}

@media (min-width: 1680px) {
  .superadmin-workspace .cashier-kpi-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .superadmin-workspace .executive-chart-grid {
    gap: 1.25rem;
  }

  .superadmin-workspace .executive-chart-card {
    min-height: 360px;
  }

  .superadmin-workspace .panel-head h2 {
    font-size: 1.55rem;
  }
}

/* Ergonomie responsive backoffice */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
}

.login-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: center;
}

.login-hero,
.login-card,
.landing-hero,
.landing-section,
.story-card,
.benefit-card,
.final-cta,
.content-panel,
.sidebar {
  border-radius: 8px;
}

.login-card {
  width: min(100%, 460px);
  justify-self: center;
}

.stack-form input,
.primary-btn,
.ghost-btn {
  border-radius: 8px;
  min-height: 48px;
}

.primary-btn:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.feedback:not(:empty) {
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: rgba(155, 44, 44, 0.08);
}

@media (max-width: 1080px) {
  .login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .login-hero {
    min-height: auto;
    padding: 1.5rem;
  }

  .login-hero h1 {
    max-width: 18ch;
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .login-card {
    align-self: stretch;
    padding: 1.35rem;
  }
}

@media (max-width: 720px) {
  .login-shell {
    gap: 0.85rem;
    padding: 0.75rem;
  }

  .landing-brand img {
    width: 68px;
  }

  .login-hero,
  .login-card {
    padding: 1rem;
  }

  .login-hero h1 {
    line-height: 1.05;
  }

  .login-badges {
    gap: 0.45rem;
  }

  .login-badges span,
  .overview-pill {
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
  }
}
