:root {
  --bg: #f5f7fb;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --line: #e5e8f0;
  --text: #171c2a;
  --muted: #70778d;
  --accent: #34c97b;
  --accent-2: #5d63ff;
  --error: #8f2d2d;
  --success: #177f52;
  --shadow: 0 24px 80px rgba(26, 33, 52, 0.08);
  --shadow-soft: 0 8px 24px rgba(26, 33, 52, 0.06);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(93,99,255,0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(52,201,123,0.12), transparent 28%),
    linear-gradient(180deg, #f7f9fc, #f2f5fb);
}

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

.sidebar {
  padding: 28px 20px;
  border-right: 1px solid rgba(229, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #6fe49f);
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.brand h1, .panel h3, .hero h2 { margin: 0; font-family: "Space Grotesk", "Manrope", sans-serif; }
.brand p, .muted, small { color: var(--muted); }
.brand-logo-wrap {
  position: relative;
  width: 230px;
  height: 58px;
  overflow: hidden;
}

.brand-logo-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
}

.brand-logo {
  display: block;
  width: 256px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.user-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow-soft);
}

.switcher, .stack { display: grid; gap: 10px; }
.switcher { margin-bottom: 24px; }

.nav { display: grid; gap: 8px; }
.nav a {
  padding: 12px 14px;
  text-decoration: none;
  color: #48506a;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 600;
}
.nav a:hover {
  border-color: var(--line);
  background: rgba(255,255,255,0.72);
}

.nav a.active {
  color: var(--text);
  border-color: rgba(52, 201, 123, 0.18);
  background: linear-gradient(180deg, rgba(52,201,123,0.12), rgba(255,255,255,0.92));
}

.button-link {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  text-decoration: none;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #bf7445);
}

.content {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

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

.page-title {
  margin: 4px 0 0;
  font-size: 30px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  color: #4e5877;
  font-weight: 700;
}

.profile-menu {
  position: relative;
}

.profile-menu summary {
  list-style: none;
}

.profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  cursor: pointer;
}

.profile-name {
  font-weight: 700;
  color: #404861;
}

.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(52,201,123,0.16), rgba(93,99,255,0.12));
  color: #2c344e;
  font-weight: 800;
}

.profile-avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

.profile-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 8;
  width: 300px;
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow);
}

.profile-card-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
}

.danger-soft {
  background: linear-gradient(135deg, #f7d5cf, #f6e4df);
  color: #b24838;
  box-shadow: none;
}

.hero, .panel {
  background: var(--panel);
  border: 1px solid rgba(229, 232, 240, 0.95);
  box-shadow: var(--shadow);
}

.hero {
  border-radius: 30px;
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.hero-card {
  min-width: 240px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(155deg, #f3fff9, #ffffff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5d63ff;
  font-size: 12px;
  font-weight: 700;
}

.lead {
  max-width: 760px;
  line-height: 1.55;
  color: #4f4438;
}

.small { font-size: 15px; }

.grid {
  display: grid;
  gap: 18px;
}

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

.grid.two.compact {
  grid-template-columns: 1.2fr 1fr;
}

.panel {
  border-radius: 28px;
  padding: 24px;
}

.employee-form-panel {
  max-width: 900px;
}

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

.stat-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.stat-card.accent {
  background: linear-gradient(135deg, #34c97b, #4ae08e);
  color: white;
}

.stat-card.accent .stat-label,
.stat-card.accent .muted {
  color: rgba(255,255,255,0.82);
}

.stat-card strong {
  font-size: 34px;
  line-height: 1;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.balance-total-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.balance-total-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.balance-total-line strong {
  font-size: 28px;
}

.dashboard-balance-list {
  display: grid;
  gap: 6px;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th, td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(229, 232, 240, 0.9);
  vertical-align: top;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input, select, textarea, button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  font: inherit;
}

select[size] {
  min-height: 220px;
}

button {
  background: linear-gradient(135deg, var(--accent), #4ae08e);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

button.secondary {
  background: linear-gradient(135deg, var(--accent-2), #7d83ff);
}

.inline, .inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.compact-actions {
  gap: 8px;
  min-width: 210px;
  margin-bottom: 10px;
}

.compact-actions textarea {
  min-height: 60px;
}

.button-compact {
  width: auto;
  min-width: 108px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.1;
  box-shadow: none;
}

.compact-link {
  width: auto;
  padding: 9px 12px;
  border-radius: 12px;
}

.ghost-link {
  color: #5059a8;
  background: rgba(93, 99, 255, 0.08);
  border: 1px solid rgba(93, 99, 255, 0.16);
}

.settings-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.inline input,
.inline-form input,
.inline-form button {
  width: auto;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.week-panel { display: grid; gap: 18px; }

.subnav {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.84);
  width: fit-content;
}

.subnav a {
  text-decoration: none;
  color: #48506a;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
}

.subnav a.active {
  background: rgba(93,99,255,0.09);
  color: var(--text);
}

.alert {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid;
}

.alert.success {
  color: var(--success);
  background: rgba(36, 95, 69, 0.08);
  border-color: rgba(36, 95, 69, 0.2);
}

.alert.error {
  color: var(--error);
  background: rgba(143, 45, 45, 0.08);
  border-color: rgba(143, 45, 45, 0.2);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.65);
}

.status-submitted {
  color: #8b6500;
  background: rgba(245, 208, 73, 0.22);
}

.status-draft {
  color: #66708b;
  background: rgba(124, 133, 158, 0.14);
}

.status-approved {
  color: var(--success);
  background: rgba(36, 95, 69, 0.1);
}

.status-manual {
  color: #4056b8;
  background: rgba(93, 99, 255, 0.12);
}

.status-rejected,
.status-canceled {
  color: var(--error);
  background: rgba(143, 45, 45, 0.1);
}

.status-muted {
  color: #7c859e;
  background: rgba(124, 133, 158, 0.12);
}

.request-card-list {
  display: grid;
  gap: 16px;
}

.request-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,255,0.92));
  box-shadow: var(--shadow-soft);
}

.request-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.request-card-head h4 {
  margin: 6px 0 0;
  font-size: 24px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.request-card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.comment-box {
  border: 1px solid var(--line);
  background: rgba(245,247,251,0.9);
  border-radius: 18px;
  padding: 14px 16px;
}

.comment-box p {
  margin: 8px 0 0;
}

.comment-thread {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.comment-thread-item {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(245,247,251,0.85);
}

.comment-thread-item-rejected {
  border-color: rgba(143, 45, 45, 0.18);
  background: rgba(143, 45, 45, 0.06);
  color: #a24a4a;
}

.comment-thread-item small {
  color: var(--muted);
}

.request-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 12px;
  margin: 12px 0 18px;
}

.toolbar-block {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.74);
}

.toolbar-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.toolbar-controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  gap: 10px;
}

.toolbar-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  min-width: 180px;
}

.toolbar-total {
  display: grid;
  gap: 4px;
  min-width: 170px;
  align-self: end;
}

.toolbar-total strong {
  font-size: 18px;
  line-height: 1.1;
  color: var(--ink);
}

.toolbar-controls--statements {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  align-items: end;
  gap: 10px;
  width: 100%;
}

.toolbar-controls--statements label {
  min-width: 0;
}

.statement-stats {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.toolbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 96px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #5059a8;
  background: rgba(93, 99, 255, 0.08);
  border: 1px solid rgba(93, 99, 255, 0.16);
  white-space: nowrap;
}

.bulk-toolbar {
  margin: 0;
}

.bulk-controls {
  gap: 8px;
}

.bulk-controls label {
  min-width: 180px;
}

.status-inline-form {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.status-select {
  min-width: 180px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.inline-error {
  margin-top: 8px;
  color: var(--error);
  font-size: 13px;
  line-height: 1.4;
}

.create-request-popover {
  width: min(560px, 80vw);
}

.bulk-toolbar button,
.compact-actions button {
  justify-self: start;
}

.request-filter-bar,
.bulk-toolbar {
  width: 100%;
  min-width: 0;
}

.requests-table th:nth-child(2) {
  min-width: 260px;
}

.request-main-cell {
  display: grid;
  gap: 4px;
}

.request-main-cell strong {
  font-size: 14px;
  line-height: 1.35;
}

.request-main-cell .muted {
  font-size: 12px;
  line-height: 1.4;
}

.request-detail-snippet {
  color: #55607c;
  font-size: 12px;
  line-height: 1.45;
}

.request-row td {
  transition: background 0.18s ease;
}

.request-row-draft td {
  background: rgba(255, 255, 255, 0.96);
}

.request-row-submitted td {
  background: rgba(248, 224, 140, 0.16);
}

.request-row-approved td {
  background: rgba(116, 200, 138, 0.14);
}

.request-row-manual_approved td {
  background: rgba(142, 191, 255, 0.16);
}

.request-row-rejected td,
.request-row-canceled td {
  background: rgba(214, 112, 112, 0.11);
}

.comment-cell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  min-width: 220px;
}

.comment-preview-list {
  display: grid;
  gap: 6px;
}

.comment-preview {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(245,247,251,0.85);
  font-size: 13px;
}

.comment-preview span {
  color: var(--muted);
  line-height: 1.35;
}

.comment-preview-rejected {
  border-color: rgba(143, 45, 45, 0.24);
  background: rgba(143, 45, 45, 0.08);
}

.comment-preview-rejected span,
.comment-preview-rejected strong {
  color: #a24a4a;
}

.request-status-cell {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.employee-hero-actions {
  align-items: center;
}

.hero-create-button {
  width: auto;
  min-width: 128px;
  justify-content: center;
  padding-inline: 20px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(93, 99, 255, 0.16);
  background: rgba(93, 99, 255, 0.08);
  color: #5059a8;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.icon-link-danger {
  border-color: rgba(203, 86, 86, 0.18);
  background: rgba(203, 86, 86, 0.08);
  color: #b24848;
}

.accounting-success {
  border-color: rgba(42, 163, 93, 0.2);
  background: rgba(42, 163, 93, 0.1);
  color: #1f8a55;
}

.dashboard-grid {
  align-items: start;
}

.dashboard-gauges {
  display: grid;
  gap: 16px;
}

.gauge-card {
  display: grid;
  gap: 16px;
}

.gauge-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.gauge-ring {
  --progress: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--progress) * 1%), rgba(229, 232, 240, 0.95) 0);
  display: grid;
  place-items: center;
}

.gauge-ring-secondary {
  background: conic-gradient(var(--accent-2) calc(var(--progress) * 1%), rgba(229, 232, 240, 0.95) 0);
}

.gauge-inner {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: rgba(255,255,255,0.98);
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 12px;
}

.gauge-inner strong {
  font-size: 20px;
  line-height: 1.2;
}

.gauge-inner span,
.gauge-details {
  color: var(--muted);
}

.gauge-details {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.hidden {
  display: none !important;
}

.bulk-hidden-inputs {
  display: none;
}

.comment-dialog {
  width: min(620px, calc(100vw - 32px));
  border: none;
  padding: 0;
  background: transparent;
}

.comment-dialog::backdrop {
  background: rgba(17, 24, 39, 0.36);
}

.comment-dialog-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.comment-dialog textarea {
  min-height: 110px;
}

.comment-dialog-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.danger-button {
  background: linear-gradient(135deg, #df6a6a, #c94848);
}

.request-card-actions {
  margin-top: 14px;
}

.secondary-link {
  background: linear-gradient(135deg, var(--accent-2), #7d83ff);
}

.finance-requests-layout {
  align-items: start;
}

.rule-create-grid,
.rule-update-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}

.compact-form {
  margin-bottom: 18px;
}

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

.login-card {
  width: min(100%, 460px);
  padding: 30px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid rgba(216, 202, 182, 0.9);
  box-shadow: var(--shadow);
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.login-logo {
  display: block;
  width: min(100%, 220px);
  height: auto;
}

.credentials {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.compact-hero {
  align-items: center;
}

.setup-panel {
  display: grid;
  gap: 16px;
}

.setup-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.setup-block-head h4 {
  margin: 0 0 4px;
  font-size: 18px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.inline-create {
  position: relative;
}

.inline-create[open] summary {
  background: #eef1ff;
  color: #4a51b8;
}

.inline-create summary {
  list-style: none;
}

.inline-create summary::-webkit-details-marker {
  display: none;
}

.create-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(93, 99, 255, 0.18);
  background: linear-gradient(135deg, #6d72f6, #7f86ff);
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.compact-create-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
  gap: 6px;
  align-items: end;
}

.compact-create-row--stack {
  grid-template-columns: minmax(180px, 1fr) auto;
}

.compact-create-row--mini {
  grid-template-columns: minmax(180px, 1fr) auto;
  margin-top: 8px;
}

.compact-create-row--float {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 4;
  min-width: 520px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-soft);
}

.compact-create-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.compact-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
}

.compact-table th,
.compact-table td {
  padding: 6px 8px;
}

.compact-table th {
  background: rgba(245, 247, 251, 0.9);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.compact-table td input,
.compact-table td select {
  min-width: 0;
  padding: 6px 9px;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
}

.actions-col {
  width: 96px;
  white-space: nowrap;
  text-align: center;
}

.row-actions {
  display: inline-flex !important;
  justify-content: center;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

.row-actions-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.row-actions form,
.row-actions button {
  width: auto;
  margin: 0;
}

.row-actions .inline-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.button-sm {
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 !important;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1;
  box-shadow: none;
  font-weight: 700;
  flex: 0 0 28px !important;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  padding: 0;
  font-size: 13px;
}

button.ghost {
  background: rgba(93, 99, 255, 0.08);
  color: #5059a8;
  border: 1px solid rgba(93, 99, 255, 0.16);
  box-shadow: none;
}

button.secondary.button-sm {
  background: #6d72f6;
}

button.toggle-on {
  background: #dff4e7;
  color: #18784d;
  border: 1px solid #b9e7c9;
}

button.toggle-off {
  background: #fff1df;
  color: #9b5a14;
  border: 1px solid #f0d0a6;
}

.is-archived {
  background: rgba(117, 126, 147, 0.06);
}

.is-archived td {
  color: #8188a0;
}

.is-archived input,
.is-archived select {
  background: rgba(244, 246, 250, 0.95);
  color: #767f97;
}

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

.fund-name-cell {
  min-width: 160px;
  font-weight: 700;
}

.row-form-anchor {
  display: none;
}

.week-month-panel {
  display: grid;
  gap: 18px;
}

.week-stack {
  display: grid;
  gap: 16px;
}

.week-sheet {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.76);
}

.fund-balance-group {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.funds-layout {
  align-items: start;
}

.week-sheet h4,
.week-subsection h5 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.week-subsection {
  display: grid;
  gap: 12px;
}

.week-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.switcher-inline {
  display: inline-flex;
  align-items: end;
  gap: 8px;
}

.switcher-inline label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.user-form-grid {
  min-width: 720px;
}

.country-scope-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.country-scope-grid label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.country-scope-grid--inline {
  margin-top: 8px;
}

.inline-create--password {
  position: relative;
}

.statement-upload-form {
  min-width: 620px;
}

.statement-inline-form {
  display: contents;
}

.statement-unassigned {
  background: rgba(255, 244, 214, 0.5);
}

.statement-status-approved {
  background: rgba(219, 245, 227, 0.8);
}

.statement-status-pending {
  background: rgba(255, 244, 214, 0.7);
}

.statement-status-ignore {
  background: rgba(224, 235, 255, 0.8);
}

.remember-rule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.compact-stack {
  gap: 10px;
}

.statement-fund-shell {
  display: flex;
  align-items: center;
  min-height: 34px;
}

@media (max-width: 980px) {
  .shell, .grid.two, .grid.two.compact, .hero, .metric-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(216, 202, 182, 0.8);
  }

  .topbar,
  .request-card-head,
  .row-between {
    grid-template-columns: 1fr;
    display: grid;
  }

  .request-card-grid {
    grid-template-columns: 1fr;
  }

  .week-metrics {
    grid-template-columns: 1fr;
  }

  .switcher-inline {
    width: 100%;
  }

  .rule-create-grid,
  .rule-update-grid {
    grid-template-columns: 1fr;
  }

  .request-filter-bar,
  .bulk-toolbar {
    grid-template-columns: 1fr;
  }

  .request-toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-controls--statements {
    grid-template-columns: 1fr;
  }

  .toolbar-controls label {
    min-width: 0;
  }

  .compact-create-row,
  .compact-create-row--stack {
    grid-template-columns: 1fr;
  }

  .compact-create-row--float {
    position: static;
    min-width: 0;
  }

  .user-form-grid {
    min-width: 0;
  }

  .statement-upload-form {
    min-width: 0;
  }

  .row-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
