:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-alt: #edf4f0;
  --ink: #17201e;
  --muted: #64706c;
  --line: #d9e0db;
  --sidebar: #111714;
  --gold: #b7891f;
  --teal: #0f766e;
  --wine: #8a3242;
  --blue: #335c9a;
  --danger: #b42318;
  --shadow: 0 18px 55px rgba(17, 23, 20, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.10), transparent 34%),
    linear-gradient(45deg, rgba(183, 137, 31, 0.12), transparent 36%),
    var(--bg);
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.login-panel {
  width: min(560px, 100%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.login-intro {
  margin: -10px 0 24px;
  color: #3f4b47;
  font-size: 0.94rem;
  line-height: 1.55;
}

.brand-stack,
.sidebar-brand,
.user-box,
.panel-header,
.toolbar,
.inline-form,
.chip,
.item-row,
.field-row {
  display: flex;
  align-items: center;
}

.brand-stack {
  gap: 16px;
  margin-bottom: 30px;
}

.brand-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark.small {
  width: 48px;
  height: 48px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 2vw, 2.35rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 1.75rem;
  line-height: 1.15;
}

h3 {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.login-form,
.form-panel {
  display: grid;
  gap: 12px;
}

label {
  color: #293632;
  font-size: 0.82rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd6d0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  padding: 9px 11px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.primary-action,
.secondary-action,
.ghost-action,
.mini-action,
.danger-action,
.icon-action {
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
}

.primary-action {
  background: var(--teal);
  color: #fff;
  padding: 0 16px;
}

.primary-action:hover {
  background: #0b615a;
}

.secondary-action {
  background: #fff;
  border-color: #b8c8c1;
  color: #1f332f;
  padding: 0 14px;
}

.secondary-action:hover,
.ghost-action:hover,
.mini-action:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.ghost-action,
.mini-action,
.icon-action {
  background: transparent;
  border-color: transparent;
  color: #53605c;
  padding: 0 12px;
}

.mini-action {
  min-height: 32px;
  font-size: 0.82rem;
}

.danger-action {
  background: #fff5f3;
  border-color: #ffd0c8;
  color: var(--danger);
  padding: 0 12px;
}

.icon-action {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-weight: 700;
}

.form-error.success-message {
  color: var(--teal);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
  min-height: 100vh;
  padding: 22px 18px;
  background: var(--sidebar);
  color: #f6f3ea;
  position: sticky;
  top: 0;
}

.sidebar-brand {
  gap: 12px;
  margin-bottom: 26px;
}

.sidebar-brand span {
  display: block;
  color: #b8c5bd;
  font-size: 0.78rem;
  font-weight: 700;
}

.sidebar-brand strong {
  display: block;
  margin-top: 2px;
  font-size: 1.02rem;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-link {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #dce5df;
  text-align: left;
}

.nav-link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.10);
}

.nav-link.active .nav-symbol {
  background: var(--gold);
  color: #121815;
}

.nav-symbol {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8e4a5;
  font-size: 0.78rem;
  font-weight: 800;
}

.workspace {
  min-width: 0;
  padding: 26px;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.user-box {
  gap: 12px;
  color: var(--muted);
}

.subtle-action {
  min-height: auto;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.subtle-action:hover {
  color: var(--teal);
}

#current-user {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
  color: var(--ink);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 23, 20, 0.42);
}

.modal-panel {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.view-section {
  display: none;
}

.view-section.active {
  display: grid;
  gap: 18px;
}

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

.compact-kpis {
  margin-top: 14px;
}

.kpi-card,
.panel,
.document-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 23, 20, 0.06);
}

.kpi-card {
  min-height: 112px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.kpi-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kpi-value {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 850;
  line-height: 1.1;
}

.kpi-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.reference-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dce6df;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #3f4b47;
  font-size: 0.9rem;
  font-weight: 800;
}

.kpi-card.teal {
  border-top: 4px solid var(--teal);
}

.kpi-card.gold {
  border-top: 4px solid var(--gold);
}

.kpi-card.wine {
  border-top: 4px solid var(--wine);
}

.kpi-card.blue {
  border-top: 4px solid var(--blue);
}

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

.dashboard-finance-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: stretch;
}

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

.dashboard-events-panel {
  min-height: 100%;
}

.agenda-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.panel {
  padding: 18px;
  min-width: 0;
}

.shortcut-grid,
.finance-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.shortcut-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 16px;
  border: 1px solid #dbe5de;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.shortcut-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.10);
}

.shortcut-card strong,
.finance-entry h3 {
  font-size: 1rem;
}

.shortcut-card span:last-child,
.finance-entry .item-meta {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.shortcut-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--teal);
  font-weight: 850;
}

.finance-entry {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 270px;
}

.finance-entry h3 {
  margin: 12px 0 8px;
}

.finance-gate {
  display: grid;
  gap: 10px;
}

.finance-area {
  display: grid;
  gap: 18px;
}

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

.secretary-list {
  display: grid;
  gap: 12px;
}

.secretary-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid #e2e9e4;
  border-radius: 8px;
  background: #fff;
}

.secretary-record-main {
  min-width: 0;
}

.secretary-record-main h3 {
  margin: 10px 0 6px;
}

.secretary-record-main p:not(.item-meta) {
  margin: 12px 0;
  color: #293632;
  line-height: 1.45;
  white-space: pre-wrap;
}

.worker-profile-grid {
  display: block;
}

.worker-profile-text {
  margin: 0;
  padding: 16px;
  border: 1px solid #e2e9e4;
  border-radius: 8px;
  background: #fbfdfb;
  color: #293632;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.65;
}

.worker-profile-text span {
  display: block;
}

.worker-profile-text span + span {
  margin-top: 6px;
}

.form-hint {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

#secretary-minute-body {
  min-height: 260px;
}

.section-return {
  display: flex;
  justify-content: flex-start;
}

.panel-header {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.toolbar {
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.toolbar > div {
  min-width: 170px;
}

.toolbar .grow {
  flex: 1 1 260px;
}

.toolbar label {
  display: block;
  margin-bottom: 6px;
}

.compact-select,
.compact-month {
  width: auto;
  min-width: 150px;
}

.form-panel {
  align-content: start;
}

.wide-form {
  gap: 14px;
}

.field-row {
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.field-row > div {
  flex: 1 1 170px;
}

.inline-form {
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.inline-form input {
  width: min(320px, 100%);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  gap: 8px;
  min-height: 36px;
  padding: 6px 8px 6px 12px;
  border: 1px solid #cbd6d0;
  border-radius: 999px;
  background: #fff;
}

.chip button {
  width: 24px;
  height: 24px;
  min-height: 24px;
  border-radius: 50%;
  border: 0;
  background: #eef3ef;
  color: #53605c;
  font-weight: 850;
}

.worker-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #d9e0db;
  border-radius: 8px;
  background: #fbfdfb;
}

.worker-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #e2e9e4;
  border-radius: 6px;
  background: #fff;
}

.worker-check input {
  width: auto;
  min-height: auto;
}

.agape-card h3 {
  min-height: auto;
}

.chart-area {
  min-height: 160px;
}

.bar-list {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 2fr) minmax(88px, auto);
  align-items: center;
  gap: 12px;
}

.bar-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #293632;
  font-weight: 700;
}

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

.bar-fill {
  height: 100%;
  width: 0;
  min-width: 4px;
  border-radius: inherit;
  background: var(--teal);
}

.bar-fill.gold {
  background: var(--gold);
}

.bar-fill.wine {
  background: var(--wine);
}

.bar-fill.blue {
  background: var(--blue);
}

.bar-value {
  text-align: right;
  color: var(--muted);
  font-weight: 800;
}

.budget-chart {
  display: grid;
  gap: 16px;
}

.budget-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.budget-summary span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid #dce6df;
  border-radius: 999px;
  background: #fff;
}

.budget-bars {
  display: grid;
  gap: 12px;
}

.budget-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(180px, 2fr) minmax(110px, auto);
  gap: 12px;
  align-items: center;
}

.budget-label {
  color: #293632;
  font-weight: 800;
}

.budget-track {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eee9;
}

.budget-fill {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
}

.budget-fill.budget {
  background: var(--blue);
}

.budget-fill.actual {
  background: var(--teal);
}

.budget-fill.deficit {
  background: var(--wine);
}

.budget-fill.surplus {
  background: var(--gold);
}

.budget-value {
  text-align: right;
  color: #293632;
}

.dues-grid {
  display: grid;
  gap: 16px;
}

.dues-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.dues-summary span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid #dce6df;
  border-radius: 999px;
  background: #fff;
}

.dues-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.dues-card {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 14px 30px rgba(32, 45, 40, 0.11);
}

.dues-card.paid {
  background: linear-gradient(135deg, #0f766e, #15803d);
}

.dues-card.unpaid {
  background: linear-gradient(135deg, #8a3242, #b42318);
}

.dues-card strong,
.dues-card span,
.dues-card small {
  display: block;
  overflow-wrap: anywhere;
}

.dues-card strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

.dues-card span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dues-card small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 750;
}

.abc-chart {
  display: grid;
  gap: 14px;
}

.abc-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.abc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #dce6df;
  border-radius: 999px;
  background: #fff;
}

.abc-list {
  display: grid;
  gap: 12px;
}

.abc-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(180px, 2fr) 72px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e9e4;
  border-radius: 8px;
  background: #fff;
}

.abc-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.abc-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eee9;
}

.abc-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.abc-percent {
  color: #293632;
  text-align: right;
}

.abc-class-A {
  background: rgba(15, 118, 110, 0.14);
  color: #0b615a;
}

.abc-bar.abc-class-A {
  background: var(--teal);
}

.abc-class-B {
  background: rgba(183, 137, 31, 0.18);
  color: #765610;
}

.abc-bar.abc-class-B {
  background: var(--gold);
}

.abc-class-C {
  background: rgba(138, 50, 66, 0.14);
  color: #7a2838;
}

.abc-bar.abc-class-C {
  background: var(--wine);
}

.line-chart {
  min-height: 220px;
}

.line-chart-frame {
  width: 100%;
  overflow-x: auto;
  padding: 8px 0;
}

.line-chart-frame svg {
  width: 100%;
  min-width: 520px;
  min-height: 220px;
}

.line-chart-path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-chart-circle {
  fill: var(--gold);
  stroke: #fff;
  stroke-width: 3;
}

.line-chart-text,
.line-chart-label {
  fill: #293632;
  font-size: 0.76rem;
  font-weight: 800;
}

.line-chart-label {
  fill: var(--muted);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(64px, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 190px;
  padding-top: 8px;
}

.flow-month {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 8px;
  min-height: 170px;
}

.flow-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  height: 130px;
  border-bottom: 1px solid var(--line);
}

.flow-bar {
  width: 16px;
  min-height: 3px;
  border-radius: 4px 4px 0 0;
}

.flow-bar.income {
  background: var(--teal);
}

.flow-bar.expense {
  background: var(--wine);
}

.flow-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.flow-values {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.flow-values .income {
  color: var(--teal);
}

.flow-values .expense {
  color: var(--wine);
}

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

.item-row {
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid #e2e9e4;
  border-radius: 8px;
  background: #fff;
}

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

.item-title {
  margin: 0 0 4px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef3ef;
  color: #394642;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.tag.income {
  background: rgba(15, 118, 110, 0.12);
  color: #0b615a;
}

.tag.expense {
  background: rgba(138, 50, 66, 0.12);
  color: #7a2838;
}

.tag.gold {
  background: rgba(183, 137, 31, 0.16);
  color: #765610;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid #e6ece8;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  color: #26322f;
}

td:last-child,
th:last-child {
  text-align: right;
}

.compact-table table {
  min-width: 420px;
}

.status-select {
  max-width: 170px;
}

.empty-state {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px dashed #cbd6d0;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.document-card {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.document-card h3 {
  min-height: 42px;
  overflow-wrap: anywhere;
}

.document-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(34px, 1fr));
  gap: 6px;
}

.calendar-cell,
.calendar-head {
  min-height: 62px;
  border: 1px solid #e2e9e4;
  border-radius: 6px;
  background: #fff;
  padding: 7px;
  overflow: hidden;
}

.calendar-head {
  min-height: 32px;
  display: grid;
  place-items: center;
  background: #edf4f0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.calendar-day {
  display: block;
  margin-bottom: 5px;
  color: #293632;
  font-weight: 850;
}

.calendar-dot {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.permission-note {
  padding: 14px 16px;
  border: 1px solid rgba(183, 137, 31, 0.35);
  border-radius: 8px;
  background: rgba(183, 137, 31, 0.11);
  color: #5b4816;
  font-weight: 750;
}

.permissions-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px;
  min-width: 300px;
}

.permission-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #293632;
  font-size: 0.78rem;
  font-weight: 750;
}

.permission-toggle input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  padding: 0;
}

.amount-positive {
  color: var(--teal);
  font-weight: 850;
}

.amount-negative {
  color: var(--wine);
  font-weight: 850;
}

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

  .sidebar {
    min-height: auto;
    position: static;
    padding: 14px;
  }

  .sidebar-brand {
    margin-bottom: 12px;
  }

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

  .nav-link {
    min-height: 42px;
  }

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

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

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

  .user-box {
    width: 100%;
    justify-content: space-between;
  }

  .split-layout,
  .form-grid,
  .agenda-layout,
  .dashboard-finance-layout,
  .secretary-management,
  .secretary-record {
    grid-template-columns: 1fr;
  }

  .nav-list {
    grid-template-columns: 1fr 1fr;
  }

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

  .flow-grid {
    grid-template-columns: repeat(3, minmax(70px, 1fr));
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .bar-value {
    text-align: left;
  }

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

  .budget-value {
    text-align: left;
  }

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

  .abc-percent {
    text-align: left;
  }

  .calendar-cell {
    min-height: 54px;
    padding: 5px;
  }
}

@media (max-width: 480px) {
  .login-panel {
    padding: 22px;
  }

  .brand-stack {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar > div,
  .compact-select,
  .compact-month {
    width: 100%;
  }
}
