:root {
  --brand: #1f3a63;
  --brand-2: #2e5490;
  --accent: #e8a33d;
  --ink: #152238;
  --muted: #6b7690;
  --line: #e7eaf1;
  --app-bg: #f4f6fa;
  --success: #1f9d6b;
  --success-bg: #e6f6ef;
  --danger: #d64550;
  --danger-bg: #fbe9ea;
  --info: #2f7bce;
  --info-bg: #e9f0fb;
  --card-shadow: 0 1px 2px rgba(21, 34, 56, .04), 0 8px 24px -12px rgba(21, 34, 56, .12);
}

html, body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  background: var(--app-bg);
  color: var(--ink);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}

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

html {
  font-size: 14px;
}

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

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--brand-2);
}

.form-control:focus, .form-select:focus {
  border-color: var(--brand-2);
}

.navbar {
  background: #ffffff !important;
}
.navbar-brand {
  font-weight: 800;
  color: var(--brand) !important;
}
.navbar .nav-link {
  font-weight: 600;
  color: var(--muted) !important;
}
.navbar .nav-link:hover {
  color: var(--brand) !important;
}

.navbar-elegant {
  box-shadow: var(--card-shadow);
  padding-top: 10px;
  padding-bottom: 10px;
}
.navbar-elegant .navbar-brand {
  font-size: 1.1rem;
}
.navbar-elegant .navbar-brand img {
  border-radius: 8px;
}
.navbar-elegant .navbar-nav {
  gap: 3px;
}

.nav-pill-link {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 10px;
  font-weight: 600; font-size: .875rem; color: var(--muted) !important;
  white-space: nowrap;
}
.nav-pill-link i { font-size: .95rem; }
.nav-pill-link:hover {
  background: #f0f2f7; color: var(--brand) !important; text-decoration: none;
}
.nav-pill-link.active {
  background: var(--brand); color: #fff !important;
}
.nav-pill-link.active:hover {
  background: var(--brand); color: #fff !important;
}
.nav-pill-link .badge { margin-left: 2px; }

.user-menu-toggle {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 12px !important; border-radius: 999px;
  background: #f4f6fa; border: 1px solid var(--line);
}
.user-menu-toggle:hover {
  background: #eef1f7; color: var(--brand) !important;
}
.user-menu-toggle::after { display: none; }
.user-menu-toggle .bi-chevron-down { font-size: .7rem; color: var(--muted); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800;
}
.user-name {
  font-size: .85rem; font-weight: 700; color: var(--ink);
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-menu .dropdown-menu {
  border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 200px;
  margin-top: 8px;
}
.user-menu .dropdown-item {
  border-radius: 8px; padding: 8px 10px; font-size: .875rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.user-menu .dropdown-item:hover { background: #f0f2f7; }
.user-menu .dropdown-item.text-danger:hover { background: var(--danger-bg); }

@media (max-width: 1199.98px) {
  .navbar-elegant .navbar-nav { gap: 2px; margin: 10px 0; }
  .user-menu-toggle { justify-content: flex-start; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-elegant .user-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.card {
  --bs-card-border-color: var(--line);
  border-radius: 16px;
}
.shadow-sm {
  box-shadow: var(--card-shadow) !important;
}

.table {
  --bs-table-border-color: var(--line);
}
.table > thead {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
}
.table > thead > tr > th {
  font-weight: 700;
  border-bottom-width: 1px;
}

.badge {
  font-weight: 700;
  padding: .4em .65em;
  border-radius: 999px;
}

.info-note {
  --note-accent: var(--info);
  --note-bg: var(--info-bg);
  --note-border: #d3e1f5;
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-left: 4px solid var(--note-accent);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 1rem;
  color: #3b4a63;
  font-size: .875rem;
  line-height: 1.5;
}
.info-note-icon { color: var(--note-accent); font-size: 1.1rem; line-height: 1.25; flex-shrink: 0; }
.info-note-body { flex: 1 1 auto; min-width: 0; }
.info-note-body > :last-child { margin-bottom: 0; }
.info-note-body ul { padding-left: 1.1rem; margin: .35rem 0 0; }
.info-note strong { color: var(--ink); }
.info-note-warning { --note-accent: var(--accent); --note-bg: #fdf6ea; --note-border: #f2e3bf; }
.info-note-danger { --note-accent: var(--danger); --note-bg: var(--danger-bg); --note-border: #f3cfd2; }
.info-note-success { --note-accent: var(--success); --note-bg: var(--success-bg); --note-border: #c7e9da; }

.table-total-row td {
  font-weight: 700;
  background: var(--app-bg);
  border-top: 2px solid var(--line);
}

.progress {
  border-radius: 999px;
  background-color: #eef1f6;
}
.progress-bar {
  background-color: var(--brand-2);
  border-radius: 999px;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.btn {
  --bs-btn-border-radius: 0.55rem;
  --bs-btn-font-weight: 600;
  padding: 0.5rem 1.1rem;
  letter-spacing: 0.01em;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn-sm {
  padding: 0.3rem 0.75rem;
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: #172d4e;
  --bs-btn-hover-border-color: #172d4e;
  --bs-btn-active-bg: #122340;
  --bs-btn-active-border-color: #122340;
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(31, 58, 99, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
}
.btn-primary:hover:not(:focus) {
  box-shadow: 0 4px 14px rgba(31, 58, 99, 0.35);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(31, 58, 99, 0.3);
}

.btn-danger {
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.22);
}
.btn-danger:hover {
  transform: translateY(-1px);
}
.btn-danger:hover:not(:focus) {
  box-shadow: 0 4px 14px rgba(220, 53, 69, 0.32);
}
.btn-danger:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(220, 53, 69, 0.28);
}

.btn-secondary:hover,
.btn-outline-secondary:hover {
  transform: translateY(-1px);
}
.btn-secondary:active,
.btn-outline-secondary:active {
  transform: translateY(0);
}

.btn-link {
  font-weight: 500;
}

.btn-outline-primary {
  --bs-btn-color: var(--brand-2);
  --bs-btn-border-color: var(--brand-2);
  --bs-btn-hover-bg: var(--brand-2);
  --bs-btn-hover-border-color: var(--brand-2);
  --bs-btn-active-bg: var(--brand-2);
  --bs-btn-active-border-color: var(--brand-2);
}
.btn-outline-primary:hover,
.btn-outline-danger:hover {
  transform: translateY(-1px);
}
.btn-outline-primary:active,
.btn-outline-danger:active {
  transform: translateY(0);
}

.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.row-actions .btn i { margin-right: 4px; }

.action-legend {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 12px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  font-size: .82rem; color: var(--muted);
}
.action-legend .legend-swatch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 7px; margin-right: 6px; font-size: .75rem;
}
.action-legend .legend-item { display: inline-flex; align-items: center; }
.action-legend .sw-primary { background: var(--brand); color: #fff; }
.action-legend .sw-secondary { background: #fff; border: 1.5px solid var(--brand-2); color: var(--brand-2); }
.action-legend .sw-danger { background: #fff; border: 1.5px solid var(--danger); color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn-primary:hover, .btn-danger:hover, .btn-secondary:hover, .btn-outline-secondary:hover,
  .btn-primary:active, .btn-danger:active, .btn-secondary:active, .btn-outline-secondary:active {
    transform: none;
  }
}

/* ---- Anasayfa (Hero) ---- */

.home-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border-radius: 20px;
  padding: 48px 40px;
  color: #fff;
  margin: 12px 0 28px;
  box-shadow: var(--card-shadow);
}
.home-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.15); color: #fff;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.home-hero h1 { color: #fff; font-size: 2.1rem; margin-bottom: 10px; }
.home-hero p.lead { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 640px; margin-bottom: 22px; }
.home-hero .btn-light { font-weight: 700; padding: 10px 22px; }

.home-jump { max-width: 640px; }
.home-jump-note { color: rgba(255,255,255,.8); font-size: .95rem; margin: 12px 0 0; }
.home-jump-note:empty { display: none; }
.home-jump-field[hidden] { display: none; }

.home-jump-field { position: relative; }
.home-jump-field i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.75); pointer-events: none; z-index: 1; }
.home-jump-field input { width: 100%; height: 50px; padding: 0 52px 0 46px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 1rem; backdrop-filter: blur(6px); }
.home-jump-field input::placeholder { color: rgba(255,255,255,.7); }
.home-jump-field input:focus { outline: none; background: rgba(255,255,255,.18); border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.home-jump-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.home-jump-field kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; padding: 2px 8px; font-size: .8rem; box-shadow: none; }
.home-jump-field:focus-within kbd { display: none; }

.home-jump-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.home-jump-list li { min-width: 0; max-width: 100%; }
.home-jump-list li a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; max-width: 100%; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.home-jump-list li a span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-jump-list li a small { min-width: 0; color: rgba(255,255,255,.7); font-weight: 500; font-size: .78rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-jump-list li a:hover,
.home-jump-list li a:focus-visible { background: #fff; color: var(--brand); border-color: #fff; }
.home-jump-list li a:hover small,
.home-jump-list li a:focus-visible small { color: var(--muted); }
.home-jump-list li a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.home-jump-list .home-jump-all a { background: transparent; border-style: dashed; }

@media (prefers-reduced-motion: reduce) {
  .home-jump-list li a { transition: none; }
}
@media (forced-colors: active) {
  .home-jump-field input:focus { outline: 2px solid CanvasText; }
}
@media (max-width: 575.98px) {
  .home-jump-field input { height: 46px; font-size: .95rem; }
  .home-jump-field kbd { display: none; }
  .home-jump-list li a { font-size: .85rem; padding: 7px 12px; }
}

.home-section-finans { --section-ink: var(--info); --section-bg: var(--info-bg); }
.home-section-satis { --section-ink: var(--success); --section-bg: var(--success-bg); }
.home-section-saha { --section-ink: #b26b00; --section-bg: #fdf1e2; }
.home-section-platform { --section-ink: var(--brand-2); --section-bg: #eef1f8; }

.home-section { margin-bottom: 28px; }
.home-section-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.home-section-head .home-section-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--section-bg); color: var(--section-ink); display: flex; align-items: center; justify-content: center; }
.home-section-head h2 { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.home-section-head p { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }

.home-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.home-feature-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px 20px; box-shadow: var(--card-shadow); height: 100%; transition: border-color 180ms ease, box-shadow 180ms ease; }
.home-feature-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--section-ink), color-mix(in srgb, var(--section-ink) 30%, #fff)); opacity: 0; transition: opacity 180ms ease; }
.home-feature-card:hover { border-color: color-mix(in srgb, var(--section-ink) 30%, var(--line)); box-shadow: 0 1px 2px rgba(21,34,56,.04), 0 14px 32px -16px color-mix(in srgb, var(--section-ink) 45%, transparent); }
.home-feature-card:hover::before { opacity: 1; }

.home-feature-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; margin-bottom: 14px; background: linear-gradient(135deg, var(--section-bg), #fff); color: var(--section-ink); border: 1px solid color-mix(in srgb, var(--section-ink) 15%, transparent); display: flex; align-items: center; justify-content: center; }
.home-feature-card h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: var(--ink); }
.home-feature-card p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.55; }

@supports selector(:has(*)) {
  @media (min-width: 1200px) {
    html:has(.home-features), body:has(.home-features) { overflow-x: hidden; overflow-x: clip; }
    .home-features { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  }
}

@media (min-width: 1200px) {
  .home-section { margin: 0; padding: 48px clamp(32px, 5vw, 96px); background: color-mix(in srgb, var(--section-bg) 45%, transparent); border-top: 1px solid color-mix(in srgb, var(--section-ink) 12%, transparent); }
  .home-section:nth-child(even) { background: transparent; }
  .home-section-inner { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 40px; align-items: start; max-width: 1760px; margin: 0 auto; }
  .home-section-head { position: sticky; top: 24px; flex-direction: column; align-items: flex-start; gap: 16px; margin: 0; }
  .home-section-head .home-section-icon { width: 56px; height: 56px; border-radius: 16px; font-size: 1.5rem; }
  .home-section-head h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
  .home-section-head p { margin-top: 6px; font-size: 1rem; line-height: 1.55; color: #56617a; }
  .home-feature-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
  .home-feature-card { padding: 26px 24px 24px; }
  .home-feature-icon { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-feature-card, .home-feature-card::before { transition: none; }
}

@media (max-width: 575.98px) {
  .home-feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-feature-card { padding: 18px 16px 16px; }
  .home-section-head h2 { font-size: 1.1rem; }
}

/* ---- Toast Bildirimleri ---- */

.toast-custom {
  border: none; border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(21, 34, 56, .18);
  min-width: 320px; max-width: 380px;
  display: flex; align-items: stretch;
  background: #fff;
}
.toast-custom .toast-bar { width: 5px; flex-shrink: 0; }
.toast-custom.toast-success .toast-bar { background: var(--success); }
.toast-custom.toast-danger .toast-bar { background: var(--danger); }
.toast-custom.toast-warning .toast-bar { background: var(--accent); }
.toast-custom.toast-info .toast-bar { background: var(--info); }
.toast-custom .toast-icon { font-size: 1.2rem; margin-top: 2px; }
.toast-custom.toast-success .toast-icon { color: var(--success); }
.toast-custom.toast-danger .toast-icon { color: var(--danger); }
.toast-custom.toast-warning .toast-icon { color: var(--accent); }
.toast-custom.toast-info .toast-icon { color: var(--info); }
.toast-custom .toast-body-custom { padding: 12px 8px 12px 10px; flex: 1; min-width: 0; }
.toast-custom .toast-title { font-weight: 700; font-size: .9rem; margin-bottom: 2px; color: var(--ink); }
.toast-custom .toast-msg { font-size: .82rem; color: var(--muted); }
.toast-custom .toast-undo-btn { margin-top: 8px; font-size: .8rem; font-weight: 700; padding: 4px 12px; }
.toast-custom .btn-close { margin: 10px 10px 0 0; font-size: .7rem; }

/* ---- Form Doğrulama ---- */

.required-field::after { content: " *"; color: var(--danger); }
.invalid-feedback-icon::before { content: "⚠ "; }

/* ---- Boş Durum (Empty State) ---- */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}
.empty-state-icon {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px dashed var(--brand-2);
  background: var(--info-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 18px;
}
.empty-state-title { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.empty-state-desc { color: var(--muted); max-width: 480px; margin: 0 auto 16px; }
.empty-state-hint {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--info-bg); border: 1px solid #d7e6f9;
  border-radius: 999px; padding: 7px 18px; font-size: .85rem; font-weight: 600;
  color: var(--brand-2); margin-bottom: 22px;
}
.empty-state-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 4px; }
.empty-state-tipbox {
  max-width: 420px; margin: 22px auto 0;
  background: #fdf6ea; border: 1px solid #f2e3bf; border-radius: 12px;
  padding: 12px 16px; font-size: .85rem; color: #7a5c17;
  display: flex; align-items: center; gap: 10px; text-align: left;
}
.empty-state-guide {
  max-width: 460px; margin: 22px auto 0; text-align: left;
}
.empty-state-guide-toggle {
  background: none; border: none; color: var(--brand-2); font-weight: 600; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 6px; padding: 0;
}
.empty-state-guide-steps {
  margin-top: 14px; padding: 16px 18px;
  background: var(--app-bg); border: 1px solid var(--line); border-radius: 12px;
}
.empty-state-guide-steps li { margin-bottom: 8px; font-size: .88rem; }
.empty-state-guide-steps li:last-child { margin-bottom: 0; }

/* ---- Rapor Sayfaları (Aylık Özet vb.) ---- */

.report-tabs {
  display: flex; gap: 4px; margin-bottom: 14px;
}
.report-tab {
  padding: 7px 16px; border-radius: 10px; font-weight: 600; font-size: .88rem;
  color: var(--muted); text-decoration: none;
}
.report-tab:hover { color: var(--brand-2); text-decoration: none; }
.report-tab.active {
  background: var(--brand); color: #fff;
}

.report-filter-bar {
  background: var(--info-bg);
  border: 1px solid #d7e6f9;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.report-summary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}
.report-summary-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; box-shadow: var(--card-shadow); min-width: 0;
}
.report-summary-lbl { color: var(--muted); font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.report-summary-num { font-size: 1.3rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.report-summary-danger { border-color: #f2c4c8; background: var(--danger-bg); }
.report-summary-success { border-color: #bfe6d3; background: var(--success-bg); }
@media (max-width: 576px) { .report-summary-grid { grid-template-columns: 1fr; } }

.cf-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .cf-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 576px) { .cf-summary { grid-template-columns: 1fr; } }
.cf-summary .report-summary-num { white-space: nowrap; }
.cf-summary-alert {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
}
.cf-alert-icon { font-size: 1.9rem; color: var(--danger); }
.report-summary-success .cf-alert-icon { color: var(--success); }
.cf-alert-facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-left: auto; }
.cf-alert-facts > div { display: flex; flex-direction: column; }
.cf-alert-facts span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.cf-alert-facts strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.cf-legend { display: flex; gap: 14px; }
.cf-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cf-swatch-positive { background: var(--brand); }
.cf-swatch-negative { background: var(--danger); }
.cf-swatch-zero { width: 14px; height: 0; border-radius: 0; border-top: 2px dashed var(--danger); vertical-align: 3px; }
.cf-chart { max-height: 260px; overflow: visible; }
.cf-grid { stroke: var(--line); stroke-width: 1; }
.cf-axis-zero { stroke: var(--danger); stroke-width: 1; stroke-dasharray: 4 4; }
.cf-axis-label { fill: var(--muted); font-size: 11px; font-weight: 600; }
.cf-area-positive { fill: var(--brand); fill-opacity: .10; }
.cf-area-negative { fill: var(--danger); fill-opacity: .14; }
.cf-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.cf-dot { fill: #fff; stroke: var(--brand); stroke-width: 2; }
.cf-dot-negative { fill: #fff; stroke: var(--danger); stroke-width: 2; }
.cf-table td, .cf-table th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cf-table > * > tr > :first-child { border-left: 3px solid transparent; }
.cf-table > tbody > tr.cf-deficit > td:first-child { border-left-color: var(--danger); }
.cf-period { font-weight: 600; color: var(--ink); }
.cf-meta { font-size: .78rem; color: var(--muted); }
.cf-zero, .cf-muted-num { color: var(--muted); }
.cf-balance { font-weight: 700; }
.cf-quiet td { background: var(--app-bg); }
.cf-quiet .cf-period { font-weight: 500; color: var(--muted); }
.cf-badge-deficit { background: var(--danger-bg); color: var(--danger); font-size: .7rem; }
.cf-toggle {
  border: 0; background: none; padding: 0; margin-top: 2px;
  font-size: .78rem; font-weight: 600; color: var(--brand-2);
}
.cf-toggle .bi { display: inline-block; transition: transform .15s ease; font-size: .7rem; }
.cf-toggle:not(.collapsed) .bi { transform: rotate(90deg); }
.cf-events > td { background: #fafbfd; padding-top: 0; padding-bottom: 0; white-space: normal; }
.cf-event-list { list-style: none; margin: 0; padding: 6px 0 10px 18px; }
.cf-event-list li {
  display: grid; grid-template-columns: 92px 150px 1fr auto; gap: 12px; align-items: center;
  padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .85rem;
}
.cf-event-list li:last-child { border-bottom: 0; }
.cf-event-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.cf-event-amount { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.cf-kind { justify-self: start; font-size: .72rem; font-weight: 700; padding: .2em .6em; border-radius: 999px; }
.cf-kind-in { background: var(--success-bg); color: var(--success); }
.cf-kind-out { background: var(--danger-bg); color: var(--danger); }
.cf-kind-budget { background: #fff4d6; color: #7a5a00; }
@media (max-width: 768px) {
  .cf-event-list { position: sticky; left: 0; max-width: calc(100vw - 72px); padding-left: 0; }
  .cf-event-list li { grid-template-columns: 1fr auto; grid-template-areas: "date amount" "kind kind" "desc desc"; gap: 4px 12px; }
  .cf-event-date { grid-area: date; }
  .cf-kind { grid-area: kind; }
  .cf-event-desc { grid-area: desc; }
  .cf-event-amount { grid-area: amount; }
}

/* ---- Uyarı Merkezi ---- */

.alert-hero { padding: 32px 40px; margin-bottom: 20px; }
.alert-hero p.lead { margin-bottom: 0; }

.alert-summary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.alert-summary-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; box-shadow: var(--card-shadow);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
}
.alert-summary-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.alert-summary-num { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.alert-summary-lbl { color: var(--muted); font-size: .85rem; font-weight: 600; }

.alert-filter-btn.active { font-weight: 700; }

.alert-row .fw-bold { color: var(--ink); }

/* ---- Proje Paneli (Dashboard) ---- */

.dash-banner { margin-bottom: 4px; }
.dash-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; color: var(--brand-2);
  letter-spacing: .04em; text-transform: uppercase;
}
.dash-banner h1 { margin: 2px 0 4px; font-size: 1.75rem; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.dash-addr { color: var(--muted); font-size: .95rem; display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.status-pill.status-success { background: var(--success-bg); color: var(--success); }
.status-pill.status-info { background: var(--info-bg); color: var(--info); }

.meta-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.meta-chip {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 14px;
  font-size: .85rem; box-shadow: var(--card-shadow);
}
.meta-chip i { color: var(--brand-2); font-size: .95rem; }
.meta-chip .lbl { color: var(--muted); font-weight: 500; }
.meta-chip .val { font-weight: 700; }

.tabs-pill {
  display: flex; gap: 4px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 5px; box-shadow: var(--card-shadow);
  list-style: none; overflow-x: auto;
}
.tabs-pill .nav-link {
  padding: 10px 18px; border-radius: 10px;
  font-size: .875rem; font-weight: 600; color: var(--muted);
  white-space: nowrap;
}
.tabs-pill .nav-link.active { background: var(--brand); color: #fff; }
.tabs-pill .nav-link:not(.active):hover { background: #f0f2f7; color: var(--ink); }

.project-nav-groups { flex-wrap: nowrap; }
.project-nav-groups .nav-link { display: flex; align-items: center; gap: 8px; }
.project-nav-groups .nav-link .bi { font-size: 1rem; line-height: 1; }

.project-subnav {
  --subnav-bg: #FFFFFF;
  --subnav-border: #DCE6F3;
  --subnav-ink: #5B7198;
  --subnav-hover-bg: #F5F8FD;
  --subnav-hover-border: #BED1EA;
  --subnav-active-bg: #E4EFFF;
  --subnav-active-border: #9FBEEC;
  --subnav-active-ink: #163D76;
  --subnav-accent: #1F4B8F;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 14px;
  margin: 10px 0 0;
  padding: 6px 10px 14px;
  border: none;
}
.project-subnav::-webkit-scrollbar { display: none; }
.project-subnav.fade-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.project-subnav.fade-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px); mask-image: linear-gradient(to right, transparent, #000 28px); }
.project-subnav.fade-start.fade-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.project-subnav .nav-item { flex: 1 0 0; min-width: 150px; }
.project-subnav .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 60px;
  padding: 0 16px;
  white-space: nowrap;
  font-size: .875rem;
  font-weight: 500;
  background: var(--subnav-bg);
  border: 1px solid var(--subnav-border);
  color: var(--subnav-ink);
  border-radius: 10px;
  overflow: hidden;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.project-subnav .nav-link .bi { flex: none; font-size: 1.1rem; line-height: 1; color: inherit; }
.project-subnav .nav-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.project-subnav .nav-link:not(.active):hover { background: var(--subnav-hover-bg); border-color: var(--subnav-hover-border); }
.project-subnav .nav-link.active {
  background: var(--subnav-active-bg);
  border-color: var(--subnav-active-border);
  color: var(--subnav-active-ink);
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(22, 61, 118, .10);
}
.project-subnav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--subnav-accent);
}
.project-subnav .nav-link:focus-visible { outline: 2px solid var(--subnav-accent); outline-offset: -5px; box-shadow: none; }
.project-subnav .nav-link.active:focus-visible { box-shadow: 0 3px 10px rgba(22, 61, 118, .10); }
@media (prefers-reduced-motion: reduce) {
  .project-subnav .nav-link { transition: none; }
}
@media (max-width: 575.98px) {
  .project-subnav { gap: 10px; }
  .project-subnav .nav-item { flex: 0 0 auto; min-width: 132px; }
  .project-subnav .nav-link { height: 52px; padding: 0 14px; }
}
.project-nav-groups .nav-link:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

@media (max-width: 575.98px) {
  .project-nav-groups { gap: 2px; padding: 4px; }
  .project-nav-groups .nav-item { flex: 1 1 0; min-width: 0; }
  .project-nav-groups .nav-link {
    flex-direction: column; gap: 2px; padding: 8px 4px;
    font-size: .75rem; text-align: center;
  }
  .project-nav-groups .nav-link .bi { font-size: 1.15rem; }
}

.page-header { --page-header-muted: #5B7198; margin-bottom: 22px; }
.page-header-context { font-size: 15px; font-weight: 500; color: var(--page-header-muted); }
.page-header-context ol {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  min-width: 0;
}
.page-header-context li { display: flex; min-width: 0; }
.page-header-context li:first-child { flex: none; }
.page-header-context li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--page-header-muted);
  opacity: .7;
}
.page-header-context li > * {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}
.page-header-context li a:hover { color: var(--ink); text-decoration: underline; }
.page-header-context li a:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
.page-header-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}
.page-header-text { min-width: 0; }
.page-header-title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.page-header-desc {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--page-header-muted);
  line-height: 1.45;
}
.page-header-actions {
  display: flex;
  gap: 10px;
  flex: none;
  align-items: center;
}
.page-header-actions .btn { white-space: nowrap; flex: none; }
@media (max-width: 991.98px) {
  .page-header-main { flex-direction: column; align-items: stretch; gap: 14px; }
  .page-header-actions {
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 4px;
    margin: -4px -4px 0;
    align-self: stretch;
    justify-content: flex-start;
  }
  .page-header-title { font-size: 28px; }
}
@media (max-width: 575.98px) {
  .page-header-title { font-size: 24px; }
  .page-header-desc { font-size: 15px; }
  .page-header-context { font-size: 14px; }
}
@media print {
  .page-header-actions { display: none; }
  .page-header-context a { text-decoration: none; }
}

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 22px; }
@media (max-width: 860px) { .kpi-grid { grid-template-columns: 1fr; } }

.m2-cost-toggle { display: flex; gap: 4px; background: var(--app-bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.m2-cost-toggle-btn {
  flex: 1; border: none; background: transparent; border-radius: 8px;
  padding: 6px 10px; font-size: .78rem; font-weight: 700; color: var(--muted);
}
.m2-cost-toggle-btn.active { background: #fff; color: var(--brand); box-shadow: var(--card-shadow); }

.kpi-card { padding: 20px; }
.kpi-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kpi-title { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.kpi-icon {
  width: 36px; height: 36px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex: 0 0 auto;
}
.kpi-icon.ic-blue { background: var(--info-bg); color: var(--brand-2); }
.kpi-icon.ic-amber { background: #fbf1de; color: var(--accent); }
.kpi-icon.ic-green { background: var(--success-bg); color: var(--success); }

.kpi-big { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; }
.kpi-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.kpi-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: .85rem; }
.kpi-row .lbl { color: var(--muted); flex: 1 1 auto; }
.kpi-row .val { font-weight: 700; text-align: right; margin-left: auto; }
.kpi-row .val.pos { color: var(--success); }

.bar-track { height: 9px; border-radius: 999px; background: #eef1f6; overflow: hidden; margin: 10px 0 4px; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.bar-fill.amber { background: linear-gradient(90deg, #f0b856, var(--accent)); }
.bar-fill.green { background: linear-gradient(90deg, #33b982, var(--success)); }
.bar-caption { font-size: .75rem; color: var(--muted); }

.section-title { font-size: 1rem; font-weight: 800; margin: 0 0 4px; }
.section-sub { font-size: .8rem; color: var(--muted); margin: 0 0 18px; }

.split { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.donut { width: 168px; height: 168px; border-radius: 50%; position: relative; }
.donut::after { content: ''; position: absolute; inset: 20px; border-radius: 50%; background: #fff; }
.donut-center {
  position: absolute; inset: 20px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.donut-center .n { font-size: 1.05rem; font-weight: 800; }
.donut-center .t { font-size: .65rem; color: var(--muted); font-weight: 700; }

.legend { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; display: inline-block; }
.legend-item .name { font-weight: 600; flex: 1; }
.legend-item .pct { color: var(--muted); font-weight: 700; }

.cat-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cat-row {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.cat-row.cat-total {
  font-weight: 800; background: var(--app-bg); border-style: dashed;
}

.cat-row-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.cat-name { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: .875rem; min-width: 0; }
.cat-bar-track { height: 7px; border-radius: 999px; background: #eef1f6; width: 100%; overflow: hidden; }
.cat-bar-fill { height: 100%; border-radius: 999px; }
.cat-pct { font-size: .78rem; color: var(--muted); font-weight: 800; white-space: nowrap; flex: 0 0 auto; }

.cat-figures {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 14px; min-width: 0;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.cat-row.cat-total .cat-figures { border-top-color: var(--line); }
.cat-figures .fig { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-figures .fig-lbl {
  font-size: .68rem; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
}
.cat-figures .fig-val { font-size: .85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 420px) {
  .cat-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; }
  .cat-figures .fig-val { font-size: .78rem; }
}

/* ---- Responsive Tablo Stratejileri ---- */

/* Strateji 1: Odemeler - 640px altinda tablo yerine kart */
.payment-cards { display: none; flex-direction: column; gap: 12px; }

@media (max-width: 639.98px) {
  .payment-table-wrap { display: none; }
  .payment-cards { display: flex; }
}

.payment-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; box-shadow: var(--card-shadow);
}
.payment-card-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.payment-card-vendor { font-weight: 800; font-size: .95rem; color: var(--ink); }
.payment-card-date { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.payment-card-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 12px;
}
.payment-card-field .lbl {
  font-size: .68rem; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px;
}
.payment-card-field .val { font-size: .88rem; font-weight: 700; color: var(--ink); }
.payment-card-field .val.bal-debt { color: var(--danger); }
.payment-card-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  border-top: 1px solid var(--line); padding-top: 10px;
}

/* Strateji 2: Malikler - yatay kaydirmada ilk kolon sabit (sticky) */
.sticky-col-table table { border-collapse: separate; border-spacing: 0; }
.sticky-col-table th:first-child,
.sticky-col-table td:first-child {
  position: sticky; left: 0; z-index: 1;
  background: #fff;
  box-shadow: 2px 0 6px -3px rgba(21, 34, 56, .18);
}
.sticky-col-table thead th:first-child { z-index: 2; }

/* ---- Aranabilir Secim Kutusu (Cari/Malik) ---- */
.searchable-select { position: relative; }
.searchable-select-menu {
  position: absolute; z-index: 20; top: 100%; left: 0; right: 0;
  margin-top: 4px; max-height: 240px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--card-shadow); padding: 4px;
}
.searchable-select-item {
  display: block; width: 100%; text-align: left; border: none; background: none;
  padding: 8px 10px; border-radius: 8px; font-size: .9rem; color: var(--ink);
}
.searchable-select-item:hover { background: #f0f2f7; }
.searchable-select-empty { padding: 8px 10px; font-size: .85rem; color: var(--muted); }
.cari-balance-readout { font-size: .95rem; font-weight: 700; }

/* ---- Akordeon (Is Ilerleme Ana Gruplari) ---- */
.progress-accordion { --bs-accordion-border-color: var(--line); --bs-accordion-btn-focus-box-shadow: none; }
.progress-accordion .accordion-item {
  border: 1px solid var(--line); border-radius: 16px !important; overflow: hidden;
  box-shadow: var(--card-shadow); margin-bottom: 12px;
}
.progress-accordion .accordion-item:last-child { margin-bottom: 0; }
.progress-accordion .accordion-header { margin: 0; }
.progress-accordion .accordion-button {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1rem; color: var(--ink);
  padding: 14px 18px; background: #fff;
}
.progress-accordion .accordion-button:not(.collapsed) {
  background: #fff; color: var(--ink); box-shadow: none;
}
.progress-accordion .accordion-button:not(.collapsed)::after,
.progress-accordion .accordion-button.collapsed::after {
  margin-left: 0;
}
.progress-accordion .accordion-body { padding: 0; }

/* ---- Yazdirma (Ekstre) ---- */
@page {
  size: landscape;
  margin: 10mm;
}
@media print {
  html { min-height: 0; }
  header, footer, .no-print, .tabs-pill, .project-nav { display: none !important; }
  body { margin: 0; background: #fff; }
  .container { max-width: 100%; width: 100%; padding: 0; margin: 0; }
  .card { box-shadow: none !important; border: 1px solid #ccc; }
  .table-responsive { overflow-x: visible !important; }
  .table { font-size: .68rem; width: 100%; table-layout: auto; }
  .table th, .table td {
    white-space: normal !important;
    word-break: break-word;
    padding: .3rem .35rem !important;
  }
}

.status-select { min-width: 140px; font-weight: 600; }
.status-select.status-0 { background-color: #f1f3f6; color: #5b6578; }
.status-select.status-1 { background-color: #fff4d6; color: #7a5a00; }
.status-select.status-2 { background-color: #e0f3e7; color: #1c6b3b; }

.login-badge {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; font-size: 1.5rem;
  box-shadow: 0 10px 24px -8px rgba(31, 58, 99, .45);
}

.photo-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
}
.photo-tile {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--line); background: #eef1f6;
  box-shadow: var(--card-shadow);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.photo-tile:hover img, .photo-tile:focus-visible img { transform: scale(1.04); }
.photo-tile:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.photo-tile-caption {
  position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px;
  padding: 18px 10px 8px; color: #fff; font-size: .78rem; line-height: 1.3;
  background: linear-gradient(to top, rgba(11, 18, 32, .78), rgba(11, 18, 32, 0));
}
.photo-tile-date { font-weight: 700; }
.photo-tile-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-lightbox-stage { position: relative; background: #0b1220; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.photo-lightbox-stage img { max-width: 100%; max-height: 72vh; object-fit: contain; }
.photo-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); border: none; border-radius: 999px;
  width: 42px; height: 42px; background: rgba(255, 255, 255, .85); color: var(--ink); font-size: 1.2rem;
}
.photo-lightbox-nav.prev { left: 12px; }
.photo-lightbox-nav.next { right: 12px; }
.photo-upload-status li + li { margin-top: 2px; }

.timesheet-table th,
.timesheet-table td {
    min-width: 2rem;
    font-variant-numeric: tabular-nums;
}

.timesheet-table .timesheet-weekend {
    background-color: var(--bs-tertiary-bg);
}

.timesheet-table .timesheet-full {
    background-color: rgba(var(--bs-success-rgb), .15);
    font-weight: 600;
}

.timesheet-table .timesheet-half {
    background-color: rgba(var(--bs-warning-rgb), .2);
    font-weight: 600;
}

.timesheet-table .timesheet-off {
    background-color: var(--bs-secondary-bg);
}
