:root {
  --ink: #191919;
  --muted: #626262;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #e8e2d8;
  --brand: #1c4b34;
  --brand-strong: #103522;
  --accent: #d96b34;
  --instagram: #c13584;
  --facebook: #1877f2;
  --shadow: 0 18px 50px rgba(31, 31, 31, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(251, 250, 247, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand img {
  width: 148px;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.6rem;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 98px) clamp(18px, 5vw, 72px);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.82) 44%, rgba(251, 250, 247, 0.16) 78%);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 6.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.hero-panel p:not(.eyebrow),
.redirect-card p,
.system-band p,
.simple-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.btn-instagram {
  color: #fff;
  background: linear-gradient(135deg, #f58529, var(--instagram), #515bd4);
}

.btn-facebook {
  color: #fff;
  background: var(--facebook);
}

.redirect-section,
.system-band {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-title {
  max-width: 800px;
  margin-bottom: 28px;
}

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

.redirect-card {
  min-height: 250px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 28px;
  border-radius: 8px;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 160ms ease;
}

.redirect-card:hover {
  transform: translateY(-3px);
}

.card-logo {
  width: 66px;
  height: 66px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
}

.store-logo {
  width: 132px;
  height: auto;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.redirect-card strong {
  font-size: 1.7rem;
  line-height: 1;
}

.redirect-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.instagram-card {
  background: linear-gradient(135deg, #f58529, var(--instagram), #515bd4);
}

.facebook-card {
  background: linear-gradient(135deg, #0b5fc9, var(--facebook));
}

.store-card {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.system-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  color: #fff;
  background: var(--brand-strong);
}

.system-band .eyebrow {
  color: #f4d35e;
}

.system-band p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.system-band .btn-primary {
  background: var(--accent);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 120px;
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  font-size: 0.92rem;
  font-weight: 800;
}

.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.simple-card {
  width: min(620px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.simple-logo {
  width: 150px;
  margin: 0 auto 22px;
}

.simple-card h1 {
  max-width: none;
  font-size: clamp(2.3rem, 8vw, 4rem);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

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

  .system-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 124px;
  }

  .hero {
    min-height: 76vh;
  }

  .hero::after {
    background: rgba(251, 250, 247, 0.86);
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .hero-actions .btn,
  .system-band .btn {
    width: 100%;
  }

  .redirect-grid,
  .system-band,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  color: #1d2520;
  background: #f6f7f4;
}

.is-hidden {
  display: none !important;
}

.system-app {
  min-height: 100vh;
  background: #f6f7f4;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef3ef;
}

.login-card {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid #dde3dc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(39, 55, 47, 0.1);
}

.login-logo {
  width: 132px;
  margin-bottom: 20px;
}

.login-card h1 {
  max-width: none;
  margin-bottom: 22px;
  font-size: 2rem;
}

.login-form,
.cash-form {
  display: grid;
  gap: 14px;
}

.login-form label,
.form-grid label {
  display: grid;
  gap: 6px;
  color: #647069;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-form input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.editable-table input {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  color: #1d2520;
  background: #fff;
  font: inherit;
  font-weight: 750;
}

.form-grid textarea {
  resize: vertical;
  text-transform: none;
}

.form-grid select[multiple] {
  min-height: 96px;
  padding: 8px;
}

.check-field {
  display: flex !important;
  min-height: 42px;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

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

.form-note {
  min-height: 22px;
  margin: 0;
  color: #9b4d22;
  font-weight: 800;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  background: #ffffff;
  border-right: 1px solid #dde3dc;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 18px;
  border-bottom: 1px solid #dde3dc;
  font-weight: 900;
}

.app-brand img {
  width: 104px;
}

.app-brand span {
  color: #244a38;
}

.app-menu {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.app-menu a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  color: #5f6b64;
  font-weight: 800;
}

.app-menu button {
  min-height: 42px;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  color: #5f6b64;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.app-menu button:disabled {
  color: #a0aaa4;
  cursor: not-allowed;
}

.app-menu a:hover,
.app-menu a.is-active,
.app-menu button:hover:not(:disabled),
.app-menu button.is-active {
  color: #183528;
  background: #e7efe9;
}

.sub-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.sub-menu button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d7e0d9;
  border-radius: 8px;
  color: #526158;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.sub-menu button:hover,
.sub-menu button.is-active {
  color: #183528;
  background: #e7efe9;
  border-color: #b9cabe;
}

.session-box {
  display: grid;
  gap: 4px;
  margin-top: 26px;
  padding: 14px 8px 0;
  border-top: 1px solid #dde3dc;
  color: #5f6b64;
  font-weight: 800;
}

.session-box span {
  color: #183528;
}

.session-box small {
  overflow-wrap: anywhere;
  color: #66736c;
  font-weight: 700;
}

.link-button {
  width: max-content;
  margin-top: 6px;
  padding: 0;
  border: 0;
  color: #9b4d22;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.dashboard,
.workspace {
  width: min(1480px, 100%);
  padding: 24px;
}

.workspace-header {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.workspace-header h1 {
  max-width: none;
  font-size: 2.15rem;
}

.module-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border: 1px solid #dde3dc;
  border-radius: 8px;
  color: #1d2520;
  background: #fff;
  box-shadow: 0 10px 24px rgba(39, 55, 47, 0.06);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.module-card:hover {
  border-color: #bfd1c5;
  background: #f7faf7;
}

.module-card strong {
  color: #183528;
  font-size: 1.2rem;
}

.module-card span {
  color: #66736c;
  font-weight: 750;
}

.close-status {
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid #dde3dc;
  border-radius: 8px;
  background: #fff;
}

.close-status span {
  color: #647069;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.close-status strong {
  color: #385070;
}

.dashboard-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.dashboard-header h1 {
  max-width: none;
  font-size: 2.15rem;
}

.screen-reader-status {
  min-height: 0;
  margin: 0;
  color: #9b4d22;
  font-weight: 800;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dashboard-actions label {
  display: grid;
  gap: 5px;
  color: #647069;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-actions select {
  min-width: 180px;
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  color: #1d2520;
  background: #fff;
  font-weight: 800;
}

.dashboard-actions select:disabled {
  color: #54615a;
  background: #edf1ee;
  cursor: not-allowed;
}

.status-strip,
.kpi-grid,
.dashboard-grid {
  display: grid;
  gap: 14px;
}

.status-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.status-strip article,
.metric-card,
.panel {
  border: 1px solid #dde3dc;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(39, 55, 47, 0.06);
}

.status-strip article {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
}

.status-strip span,
.metric-card span,
.sales-types span,
.goal-list span {
  color: #66736c;
  font-size: 0.86rem;
  font-weight: 800;
}

.status-strip strong {
  font-size: 2rem;
  line-height: 1;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.metric-card {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 18px;
}

.metric-card strong {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.metric-card small {
  color: #6c7871;
  font-weight: 700;
}

.progress-track,
.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ece8;
}

.progress-track span,
.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2d6b4f;
}

.progress-track.accent span {
  background: #3867b7;
}

.progress-track.teal span {
  background: #1b8a8f;
}

.progress-track.warning span,
.bar.warning span {
  background: #d78a22;
}

.dashboard-grid {
  grid-template-columns: 1.45fr 0.8fr;
  align-items: start;
}

.panel {
  padding: 18px;
}

.form-panel {
  padding: 14px;
  border: 1px solid #dde3dc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(39, 55, 47, 0.06);
}

.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(25, 35, 31, 0.48);
}

.modal-overlay.is-hidden {
  display: none;
}

.modal-panel {
  width: min(980px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 18px;
  border: 1px solid #d7dfd8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(19, 31, 26, 0.28);
}

.compact-modal {
  width: min(620px, 100%);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #cbd7cf;
  border-radius: 8px;
  background: #f7faf8;
  color: #1c2720;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.icon-button:hover {
  background: #eef5f0;
}

.small-icon-button {
  width: 30px;
  height: 30px;
  font-size: 0.82rem;
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.activity-filters {
  flex-wrap: nowrap;
  align-items: end;
}

.activity-filters .search-field {
  min-width: 132px;
}

.activity-filters .search-field:first-child {
  min-width: 160px;
}

.activity-row,
.activity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dde3dc;
  border-radius: 8px;
  background: #fbfcfb;
}

.activity-card {
  align-items: flex-start;
}

.mini-icon {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}

.activity-card.is-done {
  opacity: 0.68;
}

.activity-row strong,
.activity-card strong {
  display: block;
  color: #1d2520;
  font-size: 0.98rem;
}

.activity-row span,
.activity-card span,
.activity-card small {
  display: block;
  color: #66726c;
  font-size: 0.84rem;
  font-weight: 800;
}

.activity-card p {
  margin: 6px 0;
  color: #39443d;
  font-size: 0.9rem;
}

.subactivity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #dde3dc;
  border-radius: 8px;
  background: #fbfcfb;
}

.subactivity-summary {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #bfd1c5;
  border-radius: 8px;
  color: #1d4e36;
  background: #eef6f1;
}

.subactivity-summary span {
  color: #536159;
  font-size: 0.84rem;
  font-weight: 900;
}

.subactivity-row strong {
  color: #1d2520;
}

.subactivity-row span,
.subactivity-row small {
  color: #66726c;
  font-size: 0.84rem;
  font-weight: 800;
}

.progress-form {
  margin-top: 14px;
}

.activity-progress {
  display: grid;
  gap: 6px;
}

.activity-progress small {
  color: #536159;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 14px;
}

.stores-admin-layout {
  display: grid;
  gap: 14px;
}

.close-funds-panel {
  order: 1;
}

.close-inventory-panel {
  order: 2;
}

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

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

.wide-field {
  grid-column: 1 / -1;
}

.editable-table input[readonly] {
  color: #5f6b64;
  background: #edf1ee;
}

[data-money-input] {
  text-align: right;
}

.inline-total {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 11px 12px;
  border: 1px solid #d7e0d9;
  border-radius: 8px;
  color: #183528;
  background: #f7faf7;
  font-weight: 950;
}

.calculation-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.compact-total {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e4e9e5;
}

.calculation-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e9e5;
}

.calculation-list div:last-child {
  border-bottom: 0;
}

.calculation-list dt {
  color: #647069;
  font-weight: 800;
}

.calculation-list dd {
  margin: 0;
  color: #183528;
  font-weight: 950;
}

.note-field {
  display: grid;
  gap: 6px;
  color: #647069;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.note-field textarea {
  width: 100%;
  min-height: 250px;
  padding: 11px;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  color: #1d2520;
  background: #fff;
  font: inherit;
  font-weight: 700;
  resize: vertical;
  text-transform: none;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.summary-grid div {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid #dde3dc;
  border-radius: 8px;
  background: #f7faf7;
}

.summary-grid dt {
  color: #647069;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-grid dd {
  margin: 0;
  color: #183528;
  font-size: 1rem;
  font-weight: 950;
}

.form-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(246, 247, 244, 0), #f6f7f4 32%);
}

.panel-wide {
  grid-row: span 2;
}

.panel-full {
  grid-column: 1 / -1;
}

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

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.search-field {
  min-width: min(320px, 100%);
  display: grid;
  gap: 5px;
  color: #647069;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-field input,
.search-field select {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  color: #1d2520;
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: none;
}

.search-field input:focus,
.search-field select:focus {
  outline: 2px solid rgba(35, 82, 54, 0.2);
  border-color: #235236;
}

.is-muted {
  opacity: 0.78;
}

.inline-result {
  max-width: 340px;
  color: #5f6b64;
  font-size: 0.86rem;
  font-weight: 800;
}

.panel-head h2 {
  font-size: 1.08rem;
}

.ghost-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #bfd1c5;
  border-radius: 8px;
  color: #1d4e36;
  background: #eef6f1;
  cursor: pointer;
  font-weight: 900;
}

.ghost-button:disabled {
  color: #6c7871;
  background: #edf1ee;
  cursor: wait;
}

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th,
.data-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #e4e9e5;
  text-align: left;
}

.users-table th,
.users-table td,
.compact-table th,
.compact-table td {
  padding: 7px 8px;
  font-size: 0.9rem;
  vertical-align: middle;
}

.data-table th {
  color: #647069;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.data-table td {
  font-weight: 750;
}

.status-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pill.closed {
  color: #1f5a3d;
  background: #dff0e6;
}

.status-pill.review {
  color: #7b5315;
  background: #fff0cf;
}

.status-pill.draft {
  color: #385070;
  background: #e4edf9;
}

.status-pill.reabierto {
  color: #843b2d;
  background: #ffe3d8;
}

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

.row-actions button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #bfd1c5;
  border-radius: 8px;
  color: #1d4e36;
  background: #eef6f1;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.row-actions a {
  width: 28px;
  height: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #9ad6aa;
  border-radius: 8px;
  background: #e8f8ed;
  color: #128c3a;
  text-decoration: none;
}

.row-actions a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.row-actions a:hover {
  background: #d8f2df;
}

.row-actions .text-action {
  width: auto;
  min-width: 76px;
  padding: 0 10px;
}

.row-actions button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.row-actions .danger-action {
  color: #8a2f2f;
  border-color: #efc0c0;
  background: #fff0f0;
}

.goal-list,
.sales-types,
.event-list,
.alert-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.goal-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
}

.goal-list .bar {
  grid-column: 1 / -1;
}

.sales-types div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e4e9e5;
}

.sales-types div:last-child {
  border-bottom: 0;
}

.event-list li,
.alert-list li {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid #e4e9e5;
}

.event-list li:last-child,
.alert-list li:last-child {
  border-bottom: 0;
}

.event-list span,
.alert-list {
  color: #66736c;
  font-weight: 700;
}

.alert-list li {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
}

.warning-dot {
  background: #d78a22;
}

.danger-dot {
  background: #c64747;
}

.info-dot {
  background: #2d6b4f;
}

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

  .app-sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
  }

  .app-brand {
    border-bottom: 0;
    padding-bottom: 8px;
  }

  .app-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 0;
  }

  .status-strip,
  .kpi-grid,
  .module-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .dashboard,
  .workspace {
    padding: 16px;
  }

  .dashboard-header,
  .workspace-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .dashboard-actions,
  .dashboard-actions label,
  .dashboard-actions select {
    width: 100%;
  }

  .activity-filters {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .activity-row,
  .activity-card {
    grid-template-columns: 1fr;
  }

  .activity-progress small {
    text-align: left;
  }

  .status-strip,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    grid-template-columns: 1fr;
  }

  .app-menu {
    justify-content: flex-start;
  }

  .form-grid,
  .form-grid.two,
  .summary-grid,
  .module-cards {
    grid-template-columns: 1fr;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
  }

  .app-sidebar,
  .form-actions,
  .close-status,
  .panel-actions,
  .site-header {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .workspace {
    padding: 0;
  }

  .module-view.is-hidden {
    display: none !important;
  }

  .form-panel,
  .summary-grid div {
    break-inside: avoid;
    box-shadow: none;
  }
}
