/* VANKI Consulting design system */
:root {
  --brand-950: #062f36;
  --brand-900: #083d44;
  --brand-800: #0a4d55;
  --brand-700: #0d5f67;
  --brand-600: #137980;
  --brand-500: #1b9598;
  --brand-100: #dff3f1;
  --brand-50: #eff9f7;
  --gold-600: #b97812;
  --gold-500: #dc9e2d;
  --gold-100: #fff3d6;
  --ink-950: #13272b;
  --ink-800: #294246;
  --ink-600: #526a6d;
  --ink-500: #6b8082;
  --ink-400: #91a2a3;
  --line: #dce7e6;
  --line-soft: #ecf2f1;
  --surface: #ffffff;
  --surface-soft: #f7faf9;
  --bg: #f2f7f6;
  --success: #16856f;
  --danger: #c84e4e;
  --warning: #bf7a12;
  --info: #2e719d;
  --primary: var(--brand-700);
  --accent: var(--gold-500);
  --green: var(--success);
  --amber: var(--warning);
  --red: var(--danger);
  --muted: var(--ink-500);
  --shadow-xs: 0 1px 2px rgba(11, 45, 48, 0.04);
  --shadow-sm: 0 8px 24px rgba(11, 45, 48, 0.06);
  --shadow-md: 0 18px 44px rgba(11, 45, 48, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink-950);
  background:
    radial-gradient(circle at 4% 0%, rgba(27, 149, 152, 0.09), transparent 25rem),
    linear-gradient(180deg, #f8fbfa 0, var(--bg) 300px);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.34;
  background-image: radial-gradient(rgba(8, 61, 68, 0.11) 0.65px, transparent 0.65px);
  background-size: 18px 18px;
}

a {
  color: var(--brand-700);
}

a:hover {
  color: var(--brand-500);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline: none;
}

:focus-visible {
  outline: 3px solid rgba(27, 149, 152, 0.3);
  outline-offset: 2px;
}

::selection {
  color: var(--brand-950);
  background: #bde9e4;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #fff;
  background:
    radial-gradient(circle at 10% -80%, rgba(92, 210, 201, 0.42), transparent 29rem),
    linear-gradient(110deg, var(--brand-950), var(--brand-800) 57%, #0d3c45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 9px 30px rgba(6, 47, 54, 0.16);
}

.app-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(220, 158, 45, 0.74), transparent);
}

.app-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100% - 40px, 1460px);
  height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 11px;
  align-items: center;
  min-width: 210px;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.brand-mark img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.58);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.nav {
  display: flex;
  flex: 1 1 auto;
  gap: 3px;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 9px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.nav .nav-admin {
  color: #bde9e4;
}

.nav .nav-divider {
  flex: 0 0 1px;
  width: 1px;
  height: 24px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.14);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.user-chip {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 7px 10px 7px 7px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.user-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--brand-950);
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #e8fbf7, #bde7e2);
  border-radius: 8px;
}

.user-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.user-copy strong {
  max-width: 92px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-copy small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
}

.logout-link {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 9px 10px;
  color: #ffd7d3;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.logout-link:hover {
  color: #fff;
  background: rgba(224, 90, 82, 0.16);
}

/* Page shell */
.page-shell {
  width: min(100% - 48px, 1400px);
  margin: 0 auto;
  padding: 22px 0 36px;
}

.page-shell--login {
  width: 100%;
  padding: 0;
}

.page-context {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 22px;
  margin: 0 2px 15px;
  color: var(--ink-500);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.page-context a {
  color: var(--brand-600);
  font-weight: 600;
  text-decoration: none;
}

.page-context .sep {
  color: #b6c5c4;
}

.page-context strong {
  color: var(--ink-800);
  font-weight: 700;
}

/* Shared surfaces */
.card {
  position: relative;
  margin-bottom: 18px;
  padding: 22px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: #cbdcda;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  margin: 0 0 16px;
  padding: 0 0 12px;
  color: var(--ink-950);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--line-soft);
}

.card-header > span:first-child {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.card p {
  color: var(--ink-600);
}

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

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

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

/* Buttons */
.btn,
button.btn {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 15px;
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.btn:hover {
  color: var(--brand-700);
  border-color: #b9d5d2;
  box-shadow: 0 5px 14px rgba(11, 45, 48, 0.08);
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500)) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(13, 95, 103, 0.2) !important;
}

.btn-primary:hover {
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600)) !important;
  box-shadow: 0 8px 20px rgba(13, 95, 103, 0.26) !important;
}

.btn-success {
  color: #fff !important;
  background: linear-gradient(135deg, #137762, #24a184) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(22, 133, 111, 0.18) !important;
}

.btn-success:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #0f6957, #198e75) !important;
}

.btn-danger {
  color: #fff !important;
  background: linear-gradient(135deg, #b74242, #d6615b) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(200, 78, 78, 0.18) !important;
}

.btn-danger:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #a03939, #c5524c) !important;
}

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

.btn-outline:hover {
  color: var(--brand-700);
  background: var(--brand-50);
  border-color: #b8d7d4;
}

.btn-sm {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 7px;
}

/* Forms */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  min-height: 38px;
  padding: 8px 11px;
  color: var(--ink-950);
  background-color: #fff;
  border: 1px solid #cfdddb;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(11, 45, 48, 0.02);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(27, 149, 152, 0.11);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-400);
}

input[type="file"] {
  padding: 8px;
  color: var(--ink-600);
  font-size: 12px;
  background: var(--surface-soft);
  border: 1px dashed #b9cecb;
  border-radius: 8px;
}

input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 6px 11px;
  color: var(--brand-700);
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand-600);
}

label {
  color: var(--ink-800);
}

/* Tables */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  font-variant-numeric: tabular-nums;
}

th {
  padding: 12px 13px;
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.02em;
  background: #f5f9f8;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
}

th:first-child {
  border-top-left-radius: 8px;
}

th:last-child {
  border-top-right-radius: 8px;
}

td {
  padding: 12px 13px;
  color: var(--ink-800);
  font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
}

tbody tr,
table > tr {
  transition: background 0.14s ease;
}

tbody tr:hover,
table > tr:hover {
  background: #f8fbfa;
}

td a {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: none;
}

td a:hover {
  color: var(--brand-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.data-table-wrap {
  max-height: 570px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f4f9f8;
}

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table .center {
  text-align: center;
}

.pos {
  color: var(--success) !important;
  font-weight: 700;
}

.neg {
  color: var(--danger) !important;
  font-weight: 700;
}

.muted {
  color: var(--ink-400) !important;
}

/* Badges and messages */
.badge,
.tag {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 6px;
}

.badge-green,
.tag-green {
  color: #086b59;
  background: #e2f6ef;
}

.badge-red,
.tag-red {
  color: #a33e3e;
  background: #fcebea;
}

.badge-gray {
  color: var(--ink-500);
  background: #f2f6f5;
  border: 1px solid var(--line);
}

.flash {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px 15px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid;
  border-radius: 10px;
  animation: slideDown 0.25s ease;
}

.flash-success {
  color: #086b59;
  background: #effaf6;
  border-color: #cbece2;
}

.flash-error {
  color: #9d3636;
  background: #fff5f4;
  border-color: #f3d5d2;
}

.flash-warning {
  color: #8f5d0e;
  background: #fffaf0;
  border-color: #f1dfb8;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dashboard and metric surfaces */
.stat-box {
  padding: 20px;
  color: #fff;
  background: linear-gradient(140deg, var(--brand-800), var(--brand-500));
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(13, 95, 103, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-box:hover {
  box-shadow: 0 14px 30px rgba(13, 95, 103, 0.2);
  transform: translateY(-2px);
}

.stat-box.green {
  background: linear-gradient(140deg, #126f5e, #25a184);
}

.stat-box.orange {
  background: linear-gradient(140deg, #9d6512, #dda034);
}

.stat-box.blue {
  background: linear-gradient(140deg, #285f82, #3e8db5);
}

.stat-value {
  margin-top: 6px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  opacity: 0.84;
}

/* Common states */
.empty-state {
  padding: 44px 20px !important;
  color: var(--ink-400) !important;
  text-align: center;
}

.empty-state .icon {
  margin-bottom: 9px;
  font-size: 36px;
  filter: grayscale(0.25);
}

.error-state {
  display: grid;
  min-height: 62vh;
  padding: 24px;
  place-items: center;
  text-align: center;
}

.error-state__card {
  width: min(100%, 520px);
  padding: 44px 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.error-state__mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  color: var(--brand-700);
  font-size: 25px;
  font-weight: 900;
  background: var(--brand-50);
  border-radius: 16px;
}

.error-state h1 {
  margin: 0 0 8px;
  color: var(--ink-950);
  font-size: 22px;
}

.error-state p {
  margin: 0 0 22px;
  color: var(--ink-600);
  font-size: 14px;
}

.app-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 14px 4px 0;
  color: var(--ink-400);
  font-size: 10px;
  border-top: 1px solid rgba(185, 204, 201, 0.52);
}

.app-footer strong {
  color: var(--brand-700);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.12em;
}

/* Login */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 12%, rgba(36, 173, 170, 0.3), transparent 31rem),
    linear-gradient(118deg, #062f36 0%, #07434b 47%, #0c5960 100%);
}

.login-page::before {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: center;
  width: min(100% - 64px, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 46px 0;
}

.login-shell > * {
  min-width: 0;
}

.login-brand-panel {
  position: relative;
  max-width: 650px;
  padding: 38px 52px 38px 12px;
  color: #fff;
}

.login-brand-panel::after {
  position: absolute;
  top: 50%;
  right: 34px;
  width: 1px;
  height: 68%;
  content: "";
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateY(-50%);
}

.login-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.login-logo-card img {
  width: 238px;
  height: auto;
}

.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #b5e9e4;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.login-eyebrow::before {
  width: 24px;
  height: 1px;
  content: "";
  background: var(--gold-500);
}

.login-brand-panel h1 {
  max-width: 560px;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.login-brand-panel p {
  max-width: 530px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.9;
}

.login-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.login-feature {
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 410px;
  margin-left: auto;
  padding: 34px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 18, 22, 0.3);
}

.login-card form,
.login-field {
  min-width: 0;
}

.login-card::before {
  position: absolute;
  top: 0;
  right: 34px;
  left: 34px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  border-radius: 0 0 3px 3px;
}

.login-card__eyebrow {
  margin-bottom: 7px;
  color: var(--brand-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.login-card h2 {
  margin: 0 0 7px;
  color: var(--ink-950);
  font-size: 22px;
  font-weight: 800;
}

.login-card .sub {
  margin-bottom: 24px;
  color: var(--ink-500);
  font-size: 12px;
}

.login-field {
  margin-bottom: 15px;
}

.login-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-800);
  font-size: 12px;
  font-weight: 700;
}

.login-field input {
  width: 100%;
  height: 43px;
  padding: 10px 12px;
  font-size: 14px;
}

.login-submit {
  width: 100%;
  height: 44px;
  margin-top: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  border: 0;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(13, 95, 103, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.login-submit:hover {
  box-shadow: 0 13px 30px rgba(13, 95, 103, 0.29);
  transform: translateY(-1px);
}

.login-security {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  color: var(--ink-400);
  font-size: 10px;
}

.login-security::before {
  width: 6px;
  height: 6px;
  content: "";
  background: #31a68b;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(49, 166, 139, 0.1);
}

/* Misc */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #c5d4d2;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9fb6b3;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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

  body::before,
  .app-header,
  .page-context,
  .app-footer,
  .btn,
  .flash {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .card {
    overflow: visible;
    break-inside: avoid;
    border-color: #cfdddb;
    box-shadow: none;
  }
}

@media (max-width: 1180px) {
  .app-header__inner {
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy small,
  .user-copy {
    display: none;
  }

  .nav a {
    padding-right: 9px;
    padding-left: 9px;
  }
}

@media (max-width: 900px) {
  .app-header__inner {
    position: relative;
    flex-wrap: wrap;
    width: min(100% - 28px, 1400px);
    height: auto;
    min-height: 66px;
    padding: 10px 0 8px;
  }

  .brand {
    order: 1;
  }

  .header-actions {
    position: absolute;
    top: 13px;
    right: 0;
    order: 2;
    margin-left: 0;
  }

  .nav {
    order: 3;
    width: 100%;
    padding-top: 5px;
  }

  .nav a {
    padding: 8px 10px;
  }

  .page-shell {
    width: min(100% - 28px, 1400px);
    padding-top: 16px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .login-shell {
    grid-template-columns: 1fr;
    width: min(100% - 36px, 620px);
    padding: 34px 0;
  }

  .login-brand-panel {
    padding: 10px 0 30px;
  }

  .login-brand-panel::after {
    display: none;
  }

  .login-logo-card {
    margin-bottom: 22px;
  }

  .login-brand-panel h1 {
    font-size: 31px;
  }

  .login-card {
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1400px);
  }

  .card {
    padding: 16px;
    border-radius: 11px;
  }

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

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .user-chip {
    display: none;
  }

  .logout-link {
    padding: 8px 10px;
    font-size: 11px;
  }

  .logout-link::before {
    content: "";
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-shell {
    width: min(100% - 24px, 620px);
  }

  .login-logo-card {
    max-width: 100%;
  }

  .login-logo-card img {
    max-width: 100%;
    width: 210px;
  }

  .login-card {
    padding: 26px 22px;
  }

  .login-brand-panel h1 {
    font-size: 27px;
  }

  .login-features {
    display: none;
  }
}

/* Light pastel workspace theme */
body {
  background:
    radial-gradient(circle at 8% 4%, rgba(122, 205, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 92% 7%, rgba(255, 197, 217, 0.18), transparent 26rem),
    radial-gradient(circle at 62% 40%, rgba(195, 226, 255, 0.16), transparent 32rem),
    linear-gradient(180deg, #fbfcff 0, #f5f8fc 280px, #f7f9fc 100%);
}

body::before {
  opacity: 0.18;
  background-image: radial-gradient(rgba(98, 122, 154, 0.14) 0.55px, transparent 0.55px);
}

.app-header {
  color: var(--ink-950);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(205, 216, 231, 0.8);
  box-shadow: 0 8px 28px rgba(74, 93, 122, 0.08);
  backdrop-filter: blur(18px);
}

.app-header::after {
  height: 2px;
  background: linear-gradient(90deg, #5fc9c3 0%, #7fa7ff 34%, #c79af4 65%, #f4b76d 100%);
}

.brand {
  color: var(--ink-950);
}

.brand:hover {
  color: var(--brand-700);
}

.brand-mark {
  background: #fff;
  border-color: #e5ecf4;
  box-shadow: 0 7px 18px rgba(72, 102, 139, 0.12);
}

.brand-copy strong {
  color: #1d2d44;
}

.brand-copy small {
  color: #93a1b4;
}

.nav a {
  color: #718096;
  background: transparent;
  border-color: transparent;
}

.nav a:hover {
  color: #34445c;
  background: #f4f7fb;
}

.nav a.active {
  color: #3e4c62;
  background: #f1f5fa;
  border-color: #e6edf5;
  box-shadow: none;
}

.nav-dashboard.active {
  color: #087d78;
  background: #e9f9f6;
  border-color: #d3f1eb;
}

.nav-stores.active {
  color: #1686ad;
  background: #eaf8fe;
  border-color: #d3effa;
}

.nav-finance.active {
  color: #426ce0;
  background: #eef3ff;
  border-color: #dce6ff;
}

.nav-bank.active {
  color: #7860d7;
  background: #f3efff;
  border-color: #e5dcff;
}

.nav-cost.active {
  color: #c07a16;
  background: #fff8e8;
  border-color: #f6e7c4;
}

.nav-invoice.active {
  color: #d15f7e;
  background: #fff0f4;
  border-color: #f8dce5;
}

.nav-reports.active {
  color: #28946e;
  background: #ebfaf3;
  border-color: #d5f2e5;
}

.nav-config.active,
.nav-users.active {
  color: #5e6f8c;
  background: #eef2f8;
  border-color: #e0e6ef;
}

.nav .nav-admin {
  color: #718096;
}

.nav .nav-divider {
  background: #e3e9f1;
}

.user-chip {
  color: #45536b;
  background: #f7f9fc;
  border-color: #e5ebf3;
}

.user-avatar {
  color: #fff;
  background: linear-gradient(135deg, #75cfc8, #7398ef);
}

.user-copy strong {
  color: #34445c;
}

.user-copy small {
  color: #93a1b4;
}

.logout-link {
  color: #c85f68;
  background: #fff5f6;
}

.logout-link:hover {
  color: #a6414c;
  background: #ffebee;
}

.page-context {
  color: #8290a4;
}

.page-context a {
  color: #5374a2;
}

.page-context strong {
  color: #435069;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  border-color: #e5eaf2;
  box-shadow: 0 6px 22px rgba(67, 88, 119, 0.05);
}

.card:hover {
  border-color: #d9e2ee;
  box-shadow: 0 10px 30px rgba(67, 88, 119, 0.075);
}

.card-header {
  border-bottom-color: #edf1f6;
}

th {
  color: #66758b;
  background: #f7f9fc;
  border-top-color: #edf1f6;
  border-bottom-color: #e5eaf2;
}

td {
  color: #4d5b70;
  border-bottom-color: #f0f3f7;
}

.data-table thead th {
  background: #f7f9fc;
}

.btn-outline:hover {
  color: #4d68a4;
  background: #f3f6ff;
  border-color: #d4def5;
}

.badge-green,
.tag-green {
  color: #07806d;
  background: #e7faf3;
}

.badge-red,
.tag-red {
  color: #bd4656;
  background: #fff0f2;
}

.badge-gray {
  color: #728198;
  background: #f4f7fb;
  border-color: #e5eaf2;
}

.flash-success {
  color: #08715f;
  background: #edfbf7;
  border-color: #d2f1e8;
}

.flash-error {
  color: #a43c49;
  background: #fff4f5;
  border-color: #f4dadd;
}

.flash-warning {
  color: #946313;
  background: #fffaf0;
  border-color: #f1e3c4;
}

.app-footer {
  color: #9ca8b8;
  border-top-color: #e4e9f1;
}

.app-footer strong {
  color: #7284a0;
}

.login-page {
  background:
    radial-gradient(circle at 12% 14%, rgba(110, 210, 201, 0.33), transparent 27rem),
    radial-gradient(circle at 86% 14%, rgba(143, 167, 255, 0.27), transparent 28rem),
    radial-gradient(circle at 57% 88%, rgba(255, 186, 209, 0.25), transparent 28rem),
    linear-gradient(135deg, #f9fbff 0%, #f1f7fb 50%, #fbf8ff 100%);
}

.login-page::before {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(98, 124, 155, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 124, 155, 0.08) 1px, transparent 1px);
}

.login-brand-panel {
  color: #273850;
}

.login-brand-panel::after {
  background: linear-gradient(transparent, #dce5f0, transparent);
}

.login-logo-card {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(86, 106, 140, 0.14);
}

.login-eyebrow {
  color: #7186b4;
}

.login-eyebrow::before {
  background: linear-gradient(90deg, #6bcac3, #8fa7ea);
}

.login-brand-panel h1 {
  color: #25364d;
}

.login-brand-panel p {
  color: #6d7d93;
}

.login-feature {
  color: #64758b;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(202, 214, 228, 0.8);
}

.login-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 68px rgba(86, 106, 140, 0.16);
}

.login-card::before {
  background: linear-gradient(90deg, #70d2ca, #91a8f2, #e9adca);
}

.login-card__eyebrow {
  color: #687eb5;
}

.login-submit {
  background: linear-gradient(135deg, #58bdb8, #688ee4);
  box-shadow: 0 10px 24px rgba(93, 131, 194, 0.23);
}

.login-submit:hover {
  box-shadow: 0 13px 30px rgba(93, 131, 194, 0.3);
}

.login-security {
  color: #8b98aa;
}
