﻿:root {
  color-scheme: light;
  --surface: #f6f8fb;
  --surface-muted: #edf2f8;
  --surface-strong: #ffffff;
  --border: #e3e8ef;
  --text-muted: #6c757d;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  background: var(--surface);
  color: #212529;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bg-surface {
  background: var(--surface);
}

.accounting-shell {
  min-height: 100vh;
}

.accounting-sidebar {
  width: 260px;
  min-width: 260px;
  position: sticky;
  top: 0;
  box-shadow: 0 0 24px rgba(16, 24, 40, 0.08);
  z-index: 100;
}

.sidebar-brand {
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.08), transparent);
}

.sidebar-nav .list-group-item {
  border: none;
  color: #495057;
  font-weight: 500;
}

.sidebar-nav .list-group-item.active {
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
}

.accounting-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
}

.accounting-content {
  background: transparent;
}

.summary-card {
  border-radius: 1rem;
}

.dashboard-grid .card {
  min-height: 175px;
}

.voucher-form,
.card {
  border-radius: 1rem;
}

.cashbook-page {
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--border);
}

.cashbook-toolbar {
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 1rem;
}

.cashbook-filter-card {
  border-radius: 1rem;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid #e7eef6;
}

.cashbook-summary-card {
  border-radius: 1rem;
  padding: 1.2rem 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #e7eef6;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.summary-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.summary-amount {
  font-size: 1.45rem;
  font-weight: 700;
  color: #102a43;
}

.summary-footer {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.report-panel .card-header {
  padding: 1rem 1.25rem 0.75rem;
}

.report-panel .table thead th {
  background: #f8fafc;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.report-panel .table tbody tr:nth-child(odd) {
  background: #fcfdff;
}

.voucher-list-table,
.cash-book-table {
  width: 100%;
  border-collapse: collapse;
}

.voucher-list-table th,
.voucher-list-table td,
.cash-book-table th,
.cash-book-table td {
  border: 1px solid #d9e2ec;
  border-left: 1px solid #d9e2ec;
  border-right: 1px solid #d9e2ec;
  vertical-align: middle;
}

.voucher-list-table thead th,
.cash-book-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  border-bottom: 1px solid #cbd5e1;
}

.cash-book-section-header th {
  background: #eef6ff;
  color: #1d4ed8;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #dbeafe;
}

.voucher-list-table tbody tr,
.cash-book-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
}

.voucher-list-table tbody td,
.cash-book-table tbody td,
.voucher-list-table tfoot td,
.cash-book-table tfoot td {
  background: #ffffff;
}

.table-hover tbody tr:hover {
  background: rgba(13, 110, 253, 0.05);
}

.entry-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
  line-height: 1.5;
}

.entry-particular {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.entry-amount {
  white-space: nowrap;
  margin-left: 0;
  text-align: right;
  flex-shrink: 0;
}

.login-page {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 58%);
}

.login-card {
  border-radius: 1.25rem;
}

.form-control,
.form-select {
  border-radius: 0.75rem;
}

.btn-primary,
.btn-outline-primary {
  border-radius: 0.75rem;
}

@media (max-width: 991px) {
  .accounting-sidebar {
    position: relative;
    width: 100%;
    min-width: auto;
  }
}

@media print {
  .btn,
  .form-control,
  .form-select,
  .navbar,
  .footer,
  .accounting-sidebar,
  .accounting-topbar {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
