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-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(255, 122, 0, 0.35);
}

.form-select:focus {
  border-color: rgba(255, 122, 0, 0.45);
}

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

body {
  margin-bottom: 60px;
}

:root {
  --brand-orange: #ff7a00;
  --brand-orange-hover: #e86f00;
  --brand-orange-active: #d96500;
  --anthracite: #2b2b2b;
  --surface: #ffffff;
  --muted: #6c757d;

  /* Finans turuncusu — modal sayfa dışında olduğu için :root'ta da tanımlı olmalı */
  --finans-accent: var(--brand-orange);
  --finans-accent-hover: var(--brand-orange-hover);
  --finans-accent-active: var(--brand-orange-active);
  --finans-accent-soft: rgba(255, 122, 0, 0.12);

  /* Bootstrap ile gelen bileşenlerde maviyi kapat; turuncu birincil */
  --bs-primary: #ff7a00;
  --bs-primary-rgb: 255, 122, 0;
  --bs-blue: #ff7a00;
  --bs-link-color: #e86f00;
  --bs-link-hover-color: #d96500;
  --bs-focus-ring-color: rgba(255, 122, 0, 0.35);
  /* Üst çubuk profil menüsü (2000) ile aynı katman; tablo başlıklarının üstünde kalsın */
  --bs-dropdown-zindex: 2000;
}

/* Bootstrap sabit kodlu mavi sınıflarını tema ile uyumlu hale getir */
.btn-primary {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--brand-orange-hover) !important;
  border-color: var(--brand-orange-hover) !important;
  color: #fff !important;
}

.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--brand-orange-active) !important;
  border-color: var(--brand-orange-active) !important;
  color: #fff !important;
}

.btn-check:focus + .btn-primary:focus,
.btn-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 122, 0, 0.35) !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  opacity: 0.55;
}

.btn-outline-primary {
  color: var(--brand-orange) !important;
  border-color: rgba(255, 122, 0, 0.55) !important;
  background: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #fff !important;
}

.btn-check:checked + .btn-outline-primary:active,
.btn-outline-primary:active {
  background-color: var(--brand-orange-active) !important;
  border-color: var(--brand-orange-active) !important;
  color: #fff !important;
}

.link-primary {
  color: var(--brand-orange-hover) !important;
}

.link-primary:hover,
.link-primary:focus {
  color: var(--brand-orange-active) !important;
}

.text-primary {
  color: var(--brand-orange) !important;
}

.bg-primary {
  background-color: var(--brand-orange) !important;
}

.border-primary {
  border-color: var(--brand-orange) !important;
}

.text-bg-primary {
  color: #fff !important;
  background-color: var(--brand-orange) !important;
}

.form-check-input:checked {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
}

.form-check-input[type="checkbox"]:indeterminate {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
}

.form-check-input:focus {
  border-color: rgba(255, 122, 0, 0.55) !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 122, 0, 0.25) !important;
}

/* form-switch: knob konumu background-image + position ile; :focus kuralı :checked ile çakışmasın */
.form-switch .form-check-input {
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:focus {
  background-image: var(--bs-form-switch-bg);
  background-position: left center;
}

.form-switch .form-check-input:checked {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  background-position: right center;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked:focus {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  background-position: right center;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-range::-webkit-slider-thumb {
  background-color: var(--brand-orange) !important;
}

.form-range::-moz-range-thumb {
  background-color: var(--brand-orange) !important;
}

.form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(255, 122, 0, 0.25) !important;
}

.form-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(255, 122, 0, 0.25) !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff !important;
  background-color: var(--brand-orange) !important;
}

.dropdown-item:active,
.dropdown-item.active {
  color: var(--anthracite) !important;
  background-color: rgba(255, 122, 0, 0.12) !important;
}

.pagination .page-item.active .page-link {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff !important;
}

.pagination .page-link {
  color: var(--anthracite);
}

.pagination .page-link:hover {
  color: var(--brand-orange-hover);
  background-color: rgba(255, 122, 0, 0.08);
  border-color: rgba(255, 122, 0, 0.22);
}

.list-group-item.active {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
}

.badge.bg-primary {
  background-color: var(--brand-orange) !important;
}

.alert-primary {
  --bs-alert-bg: rgba(255, 122, 0, 0.12);
  --bs-alert-border-color: rgba(255, 122, 0, 0.35);
  --bs-alert-color: var(--anthracite);
  background-color: rgba(255, 122, 0, 0.12);
  border-color: rgba(255, 122, 0, 0.26);
  color: var(--anthracite);
}

.progress .progress-bar.bg-primary {
  background-color: var(--brand-orange) !important;
}

.btn-link {
  color: var(--brand-orange-hover) !important;
}

.btn-link:hover,
.btn-link:focus {
  color: var(--brand-orange-active) !important;
}

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand-orange);
  --bs-btn-border-color: var(--brand-orange);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #e86f00;
  --bs-btn-hover-border-color: #e86f00;
  --bs-btn-active-bg: #d96500;
  --bs-btn-active-border-color: #d96500;
  --bs-btn-focus-shadow-rgb: 255, 122, 0;
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 18px -8px rgba(255, 122, 0, 0.55);
}

.btn-brand:hover,
.btn-brand:focus {
  background-color: #e86f00;
  border-color: #e86f00;
  color: #fff;
}

.btn-brand:active {
  background-color: #d96500 !important;
  border-color: #d96500 !important;
  color: #fff !important;
}

/* Auth pages */
.auth-html,
.auth-body {
  height: 100%;
  min-height: 100%;
}

.auth-body {
  min-height: 100dvh;
  margin-bottom: 0;
  margin: 0;
  position: relative;
  background-image: url('../images/auth-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #111;
}

.auth-shell {
  min-height: 100dvh;
}

.auth-body::before {
  content: "";
  position: absolute;
  inset: 0;
  /* No pure black blocks: anthracite blend + soft orange glow */
  background:
    linear-gradient(120deg, rgba(43, 43, 43, 0.55) 0%, rgba(43, 43, 43, 0.28) 48%, rgba(43, 43, 43, 0.12) 100%),
    radial-gradient(720px 460px at 18% 82%, rgba(255, 122, 0, 0.24), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.00) 55%);
  pointer-events: none;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  position: relative;
  z-index: 1;
}

.auth-center {
  width: min(520px, 100%);
  display: grid;
  gap: 18px;
}

.auth-brandblock {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.auth-logo {
  width: 240px;
  max-width: 78%;
  height: auto;
  /* keep transparent background feel */
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.35));
}

.auth-applogo {
  width: 300px;
  max-width: 80%;
  height: auto;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 22px 46px -28px rgba(16, 20, 28, 0.55);
}

.auth-applogo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.18));
}

/* LOGIN — panel + footer ekrana sığsın */
.auth-page-login.auth-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  min-height: 100svh;
  padding: 24px 16px 16px;
  box-sizing: border-box;
  gap: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-page-login .auth-footer {
  flex-shrink: 0;
  margin-top: 16px;
}

.auth-form {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form--glass {
  border-radius: 22px;
  border: 1px solid rgba(43, 43, 43, 0.12);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 46px -26px rgba(16, 20, 28, 0.45);
}

.auth-brandtitle {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.15;
  font-size: 1.35rem;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.auth-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.92rem;
}

.auth-chipdot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.18);
  flex: 0 0 auto;
}

@media (max-width: 576px) {
  .auth-form {
    padding: 28px 22px;
  }
}

/* ── Register page — split layout (sol tanıtım + sağ form) ─────────────── */
.auth-page-register {
  align-items: stretch;
  padding: 24px 16px 16px 16px;
}

.auth-page-register .auth-split {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
  gap: 22px;
  align-items: stretch;
}

.auth-page-register .auth-split-side {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(12, 14, 18, 0.74) 0%, rgba(12, 14, 18, 0.44) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px 24px 22px 24px;
  color: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.auth-page-register .auth-split-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 18% 20%, rgba(0, 0, 0, 0.46), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.08) 65%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

.auth-page-register .auth-split-side-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  position: relative;
  z-index: 1;
  padding-top: 8px;
}

.auth-page-register .auth-applogo--side {
  width: auto;
  max-width: 100%;
  margin-bottom: 84px;
  box-shadow: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.auth-page-register .auth-applogo--side + .auth-side-title {
  margin-top: 4px;
}

.auth-page-register .auth-applogo--side .auth-applogo-mark {
  width: 130px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.35));
}

.auth-page-register .auth-applogo-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 4px;
}

.auth-page-register .auth-applogo-name {
  color: #fff;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.2px;
  line-height: 1;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.auth-page-register .auth-applogo-tag {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.auth-page-register .auth-side-title {
  margin: 0 0 10px 0;
  font-weight: 800;
  letter-spacing: -0.2px;
  font-size: clamp(1.12rem, 0.96rem + 0.7vw, 1.55rem);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.98) !important;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.58);
}

.auth-page-register .auth-side-sub {
  margin: 0 0 22px 0;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: clamp(0.86rem, 0.82rem + 0.18vw, 0.94rem);
  line-height: 1.65;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.48);
}

.auth-page-register .auth-side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.auth-page-register .auth-side-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  letter-spacing: 0.1px;
  color: rgba(255, 255, 255, 0.90);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.auth-page-register .auth-side-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-orange);
  box-shadow:
    0 0 0 4px rgba(255, 122, 0, 0.16),
    0 10px 22px rgba(0, 0, 0, 0.32);
  flex: 0 0 auto;
  margin-top: 7px;
}

.auth-page-register .auth-side-foot {
  margin-top: auto;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.auth-page-register .auth-side-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.45);
}

.auth-page-register .auth-side-link:hover {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}

/* Form (sağ panel) */
.auth-page-register .auth-split-main {
  display: flex;
}

.auth-page-register .auth-form--register {
  padding: 22px 26px 22px 26px;
  width: 100%;
}

.auth-page-register .auth-form-head {
  margin-bottom: 6px;
}

.auth-page-register .auth-form-title {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.2px;
  margin: 0;
  line-height: 1.2;
}

.auth-page-register .auth-form-subtitle {
  margin: 2px 0 0 0;
  color: rgba(43, 43, 43, 0.66);
  font-size: 0.86rem;
}

.auth-page-register .auth-info-pill {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(255, 122, 0, 0.08);
  border: 1px solid rgba(255, 122, 0, 0.22);
  color: var(--anthracite);
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 8px 0 14px 0;
}

.auth-page-register .auth-info-pill i {
  color: var(--brand-orange);
  font-size: 1rem;
  margin-top: 1px;
  flex: 0 0 auto;
}

.auth-page-register .auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.auth-page-register .auth-grid-full {
  grid-column: 1 / -1;
}

.auth-page-register .auth-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.auth-page-register .auth-field .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.78);
  margin-bottom: 2px;
}

.auth-page-register .auth-field .form-control,
.auth-page-register .auth-field .form-select {
  padding: 8px 11px;
  font-size: 0.92rem;
  border-radius: 10px;
}

.auth-page-register .auth-field textarea.form-control {
  resize: none;
  min-height: 64px;
}

.auth-page-register .auth-form-grid .btn-brand {
  margin-top: 6px;
  padding-top: 11px;
  padding-bottom: 11px;
  font-size: 1rem;
  border-radius: 12px;
}

/* Mobil: tek kolon, side panel üstte küçük şerit */
@media (max-width: 920px) {
  .auth-page-register .auth-split {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .auth-page-register .auth-split-side {
    padding: 16px 18px;
  }
  .auth-page-register .auth-applogo--side .auth-applogo-mark {
    width: 88px;
    height: 88px;
  }
  .auth-page-register .auth-applogo-name {
    font-size: 1.25rem;
  }
  .auth-page-register .auth-applogo-tag {
    font-size: 0.62rem;
    letter-spacing: 3.5px;
  }
  .auth-page-register .auth-side-title {
    font-size: 1.35rem;
  }
  .auth-page-register .auth-side-list {
    display: none;
  }
  .auth-page-register .auth-side-foot {
    border-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  .auth-page-register .auth-form-grid {
    grid-template-columns: 1fr;
  }
  .auth-page-register .auth-form--register {
    padding: 18px 18px;
  }
}

/* Ekran kısa olduğunda (laptop, küçük dikey alan) — sığdır */
@media (max-height: 820px) {
  .auth-page-register {
    padding: 12px 14px 10px 14px;
  }
  .auth-page-register .auth-applogo--side .auth-applogo-mark {
    width: 96px;
    height: 96px;
  }
  .auth-page-register .auth-applogo-name {
    font-size: 1.3rem;
  }
  .auth-page-register .auth-applogo-tag {
    font-size: 0.64rem;
    letter-spacing: 3.8px;
  }
  .auth-page-register .auth-side-title {
    font-size: 1.18rem;
  }
  .auth-page-register .auth-side-sub {
    font-size: 0.86rem;
  }
  .auth-page-register .auth-side-list li {
    font-size: 0.84rem;
  }
  .auth-page-register .auth-form--register {
    padding: 14px 18px;
  }
  .auth-page-register .auth-form-title {
    font-size: 1.18rem;
  }
  .auth-page-register .auth-info-pill {
    margin: 6px 0 10px 0;
    font-size: 0.78rem;
    padding: 6px 10px;
  }
  .auth-page-register .auth-form-grid {
    gap: 8px 12px;
  }
  .auth-page-register .auth-field .form-control,
  .auth-page-register .auth-field .form-select {
    padding: 7px 10px;
    font-size: 0.9rem;
  }
  .auth-page-register .auth-field textarea.form-control {
    min-height: 56px;
    rows: 2;
  }
  .auth-page-register .auth-form-grid .btn-brand {
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 0.96rem;
  }
}

/* Compact mode: keep everything visible on short viewports */
@media (max-height: 820px) {
  .auth-shell {
    padding: 18px 14px;
  }

  .auth-center {
    gap: 12px;
  }

  .auth-brandblock {
    gap: 8px;
  }

  .auth-applogo {
    width: 240px;
    height: auto;
  }

  .auth-page-login.auth-shell {
    padding: 14px 12px 10px;
  }

  .auth-page-login .auth-footer {
    margin-top: 10px;
  }

  .auth-applogo-img {
    width: 100%;
    height: auto;
  }

  .auth-brandtitle {
    font-size: 1.18rem;
  }

  .auth-chips {
    gap: 8px;
    margin-top: 2px;
  }

  .auth-chip {
    padding: 8px 10px;
    gap: 8px;
    font-size: 0.86rem;
  }

  .auth-chipdot {
    width: 9px;
    height: 9px;
  }

  .auth-form {
    padding: 24px 22px;
  }

  /* Shrink large inputs & buttons a bit */
  .auth-form .form-control-lg {
    padding: 10px 12px;
    font-size: 0.98rem;
  }

  .auth-form .btn-lg {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1rem;
  }

  .auth-footer {
    margin-top: 12px;
    font-size: 0.82rem;
  }
}

@media (max-height: 720px) {
  .auth-applogo {
    width: 200px;
    height: auto;
  }

  /* Login: chip'ler görünsün (referans düzen) */
  .auth-page-login .auth-chips {
    display: flex;
  }

  .auth-applogo-img {
    width: 100%;
    height: auto;
  }

  .auth-brandtitle {
    font-size: 1.06rem;
  }

  .auth-chip {
    padding: 7px 9px;
    font-size: 0.83rem;
  }

  .auth-form {
    padding: 20px 18px;
  }

  /* On very short screens, hide chips to avoid overflow */
  .auth-chips {
    display: none;
  }

  /* Register has more fields: make it extra compact */
  .auth-page-register .auth-form {
    padding: 16px 14px;
  }

  .auth-page-register .auth-form .vstack.gap-3 {
    gap: 0.6rem !important;
  }

  .auth-page-register .auth-shell {
    padding: 12px 12px;
  }

  .auth-page-register .auth-center {
    gap: 10px;
  }

  .auth-page-register .auth-brandblock {
    gap: 6px;
  }

  .auth-page-register .auth-form h1,
  .auth-page-register .auth-form .h4 {
    margin-bottom: 0.15rem !important;
    font-size: 1.15rem;
  }

  .auth-page-register .auth-form p {
    margin-bottom: 0.55rem !important;
  }

  .auth-page-register .auth-form label {
    font-size: 0.86rem;
  }

  .auth-page-register .auth-form .form-control-lg {
    padding: 9px 11px;
    font-size: 0.94rem;
  }

  .auth-page-register .auth-footer {
    margin-top: 8px;
    font-size: 0.78rem;
  }
}

.auth-link {
  color: var(--anthracite);
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  color: var(--brand-orange);
  text-decoration: underline;
}

.auth-footer {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

/* App navbar */
.app-navbar {
  backdrop-filter: saturate(140%) blur(6px);
}

.app-brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--anthracite) !important;
  position: relative;
  padding-left: 14px;
}

.app-brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.15);
}

.app-navlink {
  color: rgba(43, 43, 43, 0.82) !important;
  font-weight: 600;
}

.app-navlink:hover {
  color: var(--brand-orange) !important;
}

/* Dashboard (sidebar layout) */
.dash-body {
  margin-bottom: 0;
  background: #f6f7f9;
}

.dash-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: clamp(248px, 19vw, 296px) 1fr;
}

.dash-sidebar {
  background: linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  flex: 0 0 auto;
  min-height: 56px;
}

.dash-brand-text {
  min-width: 0;
  overflow: hidden;
}

.dash-brand-mark {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
}

.dash-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dash-brand-title {
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.1;
  font-size: 0.98rem;
}

.dash-brand-subtitle {
  font-size: 0.74rem;
  opacity: 0.75;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

/* Sidebar item'ları her zaman aynı yükseklikte ve hizada kalsın */
.dash-nav > .dash-item,
.dash-nav .dash-group > .dash-item,
.dash-nav .dash-tree > .dash-item {
  flex: 0 0 auto;
}

.dash-nav::-webkit-scrollbar {
  width: 6px;
}

.dash-nav::-webkit-scrollbar-track {
  background: transparent;
}

.dash-nav::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.dash-sidebar:hover .dash-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
}

.dash-group {
  margin-top: 4px;
}

.dash-group-title {
  margin: 6px 10px 4px 10px;
  font-size: 0.66rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  opacity: 0.6;
}

.dash-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.15;
  min-height: 36px;
  height: 36px;
  flex: 0 0 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-item > span:not(.dash-ico):not(.dash-tree-caret) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dash-ico {
  width: 18px;
  display: inline-flex;
  justify-content: center;
  opacity: 0.9;
  font-size: 0.98rem;
}

.dash-item.is-active {
  background: rgba(255, 122, 0, 0.12);
  border-color: rgba(255, 122, 0, 0.28);
  color: #fff;
}

.dash-item.is-active .dash-ico {
  color: var(--brand-orange);
}

.dash-tree-toggle {
  width: 100%;
  background: transparent;
  text-align: left;
}

.dash-tree-caret {
  margin-left: auto;
  opacity: 0.75;
  transition: transform 160ms ease;
}

.dash-tree.is-open .dash-tree-caret {
  transform: rotate(180deg);
}

.dash-subnav {
  display: none;
  margin: 4px 4px 6px 22px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-tree.is-open .dash-subnav {
  display: grid;
  gap: 2px;
}

.dash-subitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.15;
  min-height: 32px;
  flex: 0 0 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-subitem > span:not(.dash-subico) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-subitem:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dash-subitem.is-active {
  background: rgba(255, 122, 0, 0.12);
  border-color: rgba(255, 122, 0, 0.28);
  color: #fff;
}

.dash-subico {
  width: 16px;
  display: inline-flex;
  justify-content: center;
  opacity: 0.9;
  font-size: 0.86rem;
}

/* İşletme Yönetimi alt menüsü: daha sade görünüm */
.dash-tree[data-tree="business"] .dash-subico {
  display: none;
}

.dash-tree[data-tree="business"] .dash-subnav {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
}

.dash-tree[data-tree="business"] .dash-subitem {
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 10px;
}

.dash-subsep {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 4px 6px;
}

.dash-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.dash-sidebar-footer .dash-license {
  font-size: 0.78rem;
  padding: 8px 10px;
  border-radius: 11px;
}

.dash-logout {
  padding: 8px 10px;
  border-radius: 11px;
  font-size: 0.88rem;
}

.dash-license {
  font-size: 0.86rem;
  opacity: 0.85;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.dash-license.is-expired {
  opacity: 1;
  border: 1px solid rgba(255, 122, 0, 0.35);
  background: rgba(255, 122, 0, 0.10);
}

/* Favorites section */
.dash-favorites {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: 8px;
}

.dash-favorites-list {
  display: flex;
  flex-direction: column;
}

.dash-fav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.dash-fav-item > .dash-item {
  flex: 1;
  min-width: 0;
}

.dash-fav-remove {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 150ms, background 150ms, color 150ms;
  font-size: 0.85rem;
}

.dash-fav-item:hover .dash-fav-remove {
  opacity: 1;
}

.dash-fav-remove:hover {
  background: rgba(255, 80, 80, 0.2);
  color: #ff6b6b;
}

.dash-fav-add-btn {
  width: 100%;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 150ms, border-color 150ms;
}

.dash-fav-add-btn:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Favorites modal */
.dash-fav-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
}

.dash-fav-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: all;
}

.dash-fav-modal {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 380px;
  max-width: 90vw;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 200ms;
}

.dash-fav-modal-backdrop.is-open .dash-fav-modal {
  transform: scale(1);
}

.dash-fav-modal h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--anthracite, #2b2b2b);
}

.dash-fav-modal-search {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 150ms;
  margin-bottom: 12px;
}

.dash-fav-modal-search:focus {
  border-color: var(--brand-orange, #ff7a00);
}

.dash-fav-modal-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-fav-modal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
  color: var(--anthracite, #2b2b2b);
  transition: background 150ms;
}

.dash-fav-modal-item:hover {
  background: #f5f5f5;
}

.dash-fav-modal-item.is-added {
  opacity: 0.5;
  pointer-events: none;
}

.dash-fav-modal-item i {
  font-size: 1rem;
  opacity: 0.7;
  width: 20px;
  text-align: center;
}

.dash-fav-modal-close {
  display: block;
  margin: 14px auto 0;
  padding: 8px 20px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background: transparent;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--anthracite, #2b2b2b);
  transition: background 150ms;
}

.dash-fav-modal-close:hover {
  background: #f5f5f5;
}

.dash-banner {
  margin: 12px 22px 0 22px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 122, 0, 0.25);
  background: rgba(255, 122, 0, 0.10);
  color: var(--anthracite);
  display: grid;
  gap: 2px;
}

.dash-banner-title {
  font-weight: 900;
}

.dash-banner-sub {
  font-size: 0.92rem;
  opacity: 0.85;
}

.dash-logout {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
}

.dash-logout:hover {
  border-color: rgba(255, 122, 0, 0.35);
  background: rgba(255, 122, 0, 0.10);
}

.dash-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-topbar {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(43, 43, 43, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1100;
  overflow: visible;
}

/* Modallar üst çubuktan (1100) ve kaydırmalı içerikten üstte kalsın */
:root {
  --dash-modal-zindex: 1205;
  --dash-modal-backdrop-zindex: 1200;
}

.modal {
  --bs-modal-zindex: var(--dash-modal-zindex);
  z-index: var(--bs-modal-zindex);
}

.modal-backdrop {
  --bs-backdrop-zindex: var(--dash-modal-backdrop-zindex);
  z-index: var(--bs-backdrop-zindex);
}

.validation-summary-valid {
  display: none !important;
}

/* Panel modalları: opak başlık, üst çubuk üstünde */
body.dash-body .modal-content {
  border-radius: 18px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  box-shadow: 0 28px 64px -32px rgba(16, 20, 28, 0.45);
  overflow: hidden;
}

body.dash-body .modal-header {
  background: #fff;
  border-bottom: 1px solid rgba(43, 43, 43, 0.08);
}

body.dash-body .modal-body {
  background: linear-gradient(180deg, #fafbfc 0%, #fff 96px);
}

body.dash-body .modal-footer {
  background: #fff;
  border-top: 1px solid rgba(43, 43, 43, 0.08);
}

.dash-mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.10);
  background: rgba(255, 255, 255, 0.94);
  color: var(--anthracite);
  font-size: 1.35rem;
}

.dash-mobile-menu-btn:hover,
.dash-mobile-menu-btn:focus-visible {
  border-color: rgba(255, 122, 0, 0.35);
  background: rgba(255, 122, 0, 0.10);
  color: var(--brand-orange);
}

.dash-sidebar-backdrop {
  display: none;
}

.dash-page-title {
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--anthracite);
}

.dash-page-subtitle {
  font-size: 0.9rem;
  color: rgba(43, 43, 43, 0.70);
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.16);
  border: 1px solid rgba(255, 122, 0, 0.35);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--anthracite);
}

.dash-user-name {
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.1;
}

.dash-user-role {
  font-size: 0.8rem;
  color: rgba(43, 43, 43, 0.65);
}

.dash-topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

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

.dash-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(43, 43, 43, 0.10);
  background: rgba(255, 255, 255, 0.92);
  color: var(--anthracite);
  display: grid;
  place-items: center;
}

.dash-icon-btn:hover {
  border-color: rgba(255, 122, 0, 0.35);
}

.dash-help-btn {
  color: #0f766e;
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.1), rgba(255, 255, 255, 0.95));
  border-color: rgba(13, 148, 136, 0.22);
}

.dash-help-btn:hover,
.dash-help-btn:focus-visible {
  color: #0d9488;
  border-color: rgba(255, 122, 0, 0.4);
  background: linear-gradient(145deg, rgba(255, 122, 0, 0.1), rgba(255, 255, 255, 0.98));
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}

/* ── Sayfa kılavuzu (offcanvas) ── */
.sayfa-klavuzu-panel {
  --sk-accent: #ff7a00;
  --sk-teal: #0d9488;
  width: min(440px, 96vw) !important;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
}

.sayfa-klavuzu-panel__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sk-teal), var(--sk-accent));
  z-index: 2;
}

.sayfa-klavuzu-panel__head {
  padding: 1.15rem 1.25rem 0.5rem !important;
  background: linear-gradient(165deg, rgba(13, 148, 136, 0.07) 0%, #fff 55%);
}

.sayfa-klavuzu-panel__head-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-right: 0.5rem;
}

.sayfa-klavuzu-panel__icon {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--sk-teal), #14b8a6);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.28);
}

.sayfa-klavuzu-panel__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.3;
}

.sayfa-klavuzu-panel__subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.2rem;
  line-height: 1.45;
}

.sayfa-klavuzu-panel__close {
  margin-top: 0.15rem;
}

.sayfa-klavuzu-panel__body {
  padding: 0.75rem 1.25rem 1.5rem !important;
  background: #f8fafc;
}

.sayfa-klavuzu-ozet {
  background: #fff;
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 0.85rem;
  padding: 0.85rem 0.95rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.sayfa-klavuzu-ozet__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sk-teal);
  margin-bottom: 0.45rem;
}

.sayfa-klavuzu-ozet__text {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.55;
}

.sayfa-klavuzu-block {
  margin-bottom: 1.1rem;
}

.sayfa-klavuzu-block__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 0.55rem;
}

.sayfa-klavuzu-block__title i {
  color: var(--sk-accent);
  font-size: 0.95rem;
}

.sayfa-klavuzu-cards {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sayfa-klavuzu-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-left: 3px solid rgba(255, 122, 0, 0.55);
}

.sayfa-klavuzu-card__term {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.2rem;
}

.sayfa-klavuzu-card__desc {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.5;
}

.sayfa-klavuzu-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sayfa-klavuzu-step {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
}

.sayfa-klavuzu-step__no {
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--sk-accent), #ff9f43);
}

.sayfa-klavuzu-step__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
}

.sayfa-klavuzu-step__text {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.45;
  margin-top: 0.1rem;
}

.sayfa-klavuzu-block--tips .sayfa-klavuzu-tips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sayfa-klavuzu-tips li {
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.5;
  padding: 0.55rem 0.7rem 0.55rem 2rem;
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.12), #fff);
  border: 1px solid rgba(255, 193, 7, 0.28);
  border-radius: 0.65rem;
  position: relative;
}

.sayfa-klavuzu-tips li::before {
  content: "\F46A";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0.65rem;
  top: 0.55rem;
  color: #d97706;
  font-size: 0.85rem;
}

.sayfa-klavuzu-footnote {
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
}

.dash-user-trigger {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(43, 43, 43, 0.10);
  background: transparent;
  padding: 2px;
  display: grid;
  place-items: center;
}

.dash-user-trigger:hover {
  border-color: rgba(255, 122, 0, 0.45);
}

.dash-avatar--top {
  width: 38px;
  height: 38px;
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.35);
}

.dash-avatar--sm {
  width: 34px;
  height: 34px;
}

.dash-user-menu {
  border-radius: 16px !important;
  overflow: hidden;
  min-width: 240px;
  margin-top: 10px !important;
  z-index: 2000;
}

.dash-user-menu-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(255, 255, 255, 1);
}

.dash-user-menu-meta {
  min-width: 0;
}

.dash-user-menu-name {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.1;
  color: var(--anthracite);
  word-break: break-word;
}

.dash-user-menu-sub {
  font-size: 0.8rem;
  color: rgba(43, 43, 43, 0.60);
  margin-top: 2px;
}

.dash-user-menu-item .dropdown-item {
  padding: 0;
}

.dash-user-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px !important;
  font-weight: 650;
  color: var(--anthracite) !important;
}

.dash-user-menu-link i {
  opacity: 0.75;
}

.dash-user-menu-link--danger {
  color: rgba(43, 43, 43, 0.88) !important;
}

.dash-user-menu-link:hover {
  background: rgba(255, 122, 0, 0.08) !important;
}

.dash-user-menu-link--danger:hover {
  background: rgba(255, 122, 0, 0.12) !important;
  color: var(--anthracite) !important;
}

/* İşletme ayarları (ayrı 2 sütun yerleşim) */
.biz-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: start;
}

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

.biz-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(43, 43, 43, 0.07);
  border-radius: 14px;
  overflow: clip;
  box-shadow: 0 8px 24px -18px rgba(16, 20, 28, 0.35);
}

.biz-panel--aside {
  align-self: start;
}

.biz-panel-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.07);
  background: linear-gradient(
    180deg,
    rgba(255, 122, 0, 0.04) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.biz-panel-titles {
  min-width: 0;
}

.biz-panel-title {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.012em;
  color: var(--anthracite);
}

.biz-panel-sub {
  margin-top: 3px;
  font-size: 0.79rem;
  line-height: 1.35;
  color: rgba(43, 43, 43, 0.58);
}

.biz-panel-body {
  padding: 12px 14px;
}

.biz-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(43, 43, 43, 0.09);
  background: rgba(246, 247, 249, 0.9);
  font-size: 0.73rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.75);
  white-space: nowrap;
}

.biz-chip i {
  opacity: 0.75;
}

.biz-chip-soft {
  background: rgba(255, 122, 0, 0.08);
  border-color: rgba(255, 122, 0, 0.18);
}

.biz-chip-green {
  background: rgba(25, 135, 84, 0.12);
  border-color: rgba(25, 135, 84, 0.24);
}

.biz-chip-shrink {
  flex: 0 0 auto;
}

.biz-form-grid {
  display: grid;
  gap: 12px;
}

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

@media (max-width: 720px) {
  .biz-form-grid--2 {
    grid-template-columns: 1fr;
  }
}

.biz-field {
  display: grid;
  gap: 6px;
}

.biz-field > span:first-child {
  font-size: 0.79rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.75);
}

.biz-field--full {
  grid-column: 1 / -1;
}

.biz-field-hint {
  font-size: 0.78rem;
  color: rgba(43, 43, 43, 0.55);
}

.biz-inline-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.biz-muted {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(43, 43, 43, 0.55);
  font-weight: 500;
}

.biz-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.biz-foot--solo {
  justify-content: flex-end;
}

.biz-foot--split {
  justify-content: space-between;
}

.biz-btn {
  border-radius: 10px;
  border: 1px solid rgba(43, 43, 43, 0.09);
  background: rgba(255, 255, 255, 0.95);
  padding: 7px 12px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--anthracite);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.biz-btn-primary {
  border-color: rgba(255, 122, 0, 0.26);
  background: rgba(255, 122, 0, 0.95);
  color: #fff;
}

.biz-btn-primary:hover {
  filter: brightness(1.02);
}

.biz-btn-soft:hover {
  border-color: rgba(255, 122, 0, 0.35);
}

.biz-btn-shrink {
  flex: 0 0 auto;
}

.biz-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(43, 43, 43, 0.02);
}

.biz-toggle-row--tight {
  padding: 10px 10px;
}

.biz-toggle-inline {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(255, 255, 255, 0.75);
  min-width: 220px;
  flex: 1 1 220px;
}

.biz-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.biz-chip-row-tight {
  gap: 6px;
}

.biz-tip-chip {
  font-size: 0.82rem;
  font-weight: 750;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(43, 43, 43, 0.18);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(43, 43, 43, 0.72);
}

.biz-table-wrap {
  border-radius: 16px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  overflow: auto;
  background: rgba(255, 255, 255, 0.75);
}

.biz-table-wrap--soft {
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.04);
}

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

.biz-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.5);
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(43, 43, 43, 0.07);
}

.biz-table tbody td {
  padding: 9px 11px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.05);
  vertical-align: top;
  color: rgba(43, 43, 43, 0.82);
  font-size: 0.87rem;
}

.biz-table tbody tr:last-child td {
  border-bottom: none;
}

.biz-actions-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.biz-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.10);
  background: rgba(255, 255, 255, 0.85);
  min-width: min(520px, 100%);
  flex: 1 1 320px;
}

.biz-search-wrap i {
  opacity: 0.55;
}

.biz-search-wrap .form-control {
  border: 0;
  box-shadow: none !important;
  padding-left: 0;
}

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

.biz-steps > span {
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid rgba(43, 43, 43, 0.09);
  text-align: center;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.52);
  background: rgba(43, 43, 43, 0.02);
}

.biz-steps > span.is-done {
  color: rgba(25, 135, 84, 0.95);
  border-color: rgba(25, 135, 84, 0.24);
  background: rgba(25, 135, 84, 0.10);
}

.biz-steps > span.is-active {
  color: rgba(255, 122, 0, 0.95);
  border-color: rgba(255, 122, 0, 0.22);
  background: rgba(255, 122, 0, 0.10);
}

.biz-aside-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.biz-aside-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(255, 255, 255, 0.75);
}

.biz-aside-list i {
  margin-top: 2px;
  opacity: 0.75;
}

.biz-aside-list span {
  display: block;
  font-size: 0.92rem;
  color: rgba(43, 43, 43, 0.75);
}

.biz-aside-list strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.15px;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.55);
  margin-bottom: 4px;
}

.biz-aside-mini {
  margin: 12px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.biz-aside-mini li {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(43, 43, 43, 0.02);
}

.biz-aside-mini strong {
  display: block;
  font-weight: 900;
  color: var(--anthracite);
  margin-bottom: 4px;
}

.biz-aside-mini span {
  display: block;
  font-size: 0.9rem;
  color: rgba(43, 43, 43, 0.65);
}

.biz-aside-soft {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(43, 43, 43, 0.16);
  background: rgba(255, 122, 0, 0.05);
  color: rgba(43, 43, 43, 0.70);
  font-size: 0.9rem;
}

.biz-aside-mt {
  margin-top: 12px;
}

.biz-aside-strong {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--anthracite);
}

.biz-aside-strong-sub {
  margin: 0;
}

.biz-aside-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: rgba(43, 43, 43, 0.72);
}

.biz-aside-steps strong {
  color: rgba(43, 43, 43, 0.90);
}

.dash-content {
  flex: 1 1 auto;
  padding: 22px;
}

.dash-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.4fr 1fr;
}

/* Masaüstü: gövdede kaydırma yok; sol menü hep görünür, yalnızca sağdaki içerik kaydırılır */
@media (min-width: 1101px) {
  html {
    height: 100%;
  }

  body.dash-body {
    height: 100%;
    overflow: hidden;
  }

  .dash-shell {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .dash-sidebar {
    min-height: 0;
    overflow: hidden;
  }

  .dash-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dash-main {
    min-height: 0;
    overflow: hidden;
  }

  .dash-content {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 1100px) {
  .dash-shell {
    display: block;
    min-height: 100vh;
  }

  .dash-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 340px);
    max-width: 340px;
    z-index: 1050;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 18px 0 42px -28px rgba(0, 0, 0, 0.75);
  }

  body.dash-sidebar-open .dash-sidebar {
    transform: translateX(0);
  }

  .dash-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  body.dash-sidebar-open .dash-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.dash-sidebar-open {
    overflow: hidden;
  }

  .dash-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    align-items: center;
    padding: 12px 14px;
    gap: 10px;
  }

  .dash-mobile-menu-btn {
    display: inline-flex;
  }

  .dash-topbar-left {
    min-width: 0;
  }

  .dash-page-title,
  .dash-page-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dash-content {
    padding: 14px;
  }

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

.dash-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(43, 43, 43, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 44px -28px rgba(16, 20, 28, 0.35);
  overflow: hidden;
}

/* Açık dropdown taşması: overflow:hidden menüyü keser veya tablo ile katman sırasını bozar */
.dash-panel:has(.dropdown-menu.show) {
  overflow: visible;
}

/* Araç çubuğundan hemen sonra gelen kaydırmalı tablo bloklarını alta sabitle */
.dash-panel > .table-responsive {
  position: relative;
  z-index: 0;
}

tr.gebelik-gecikme {
  background: rgba(255, 160, 0, 0.12) !important;
  border-left: 3px solid #ff7a00;
}

tr.gebelik-gecikme td {
  color: #7a3d00;
}

@keyframes gebelik-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

tr.gebelik-gecikme .badge.text-bg-danger {
  animation: gebelik-pulse 2s ease-in-out infinite;
}

.dash-panel-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
  position: relative;
  z-index: 2;
}

/* Avoid success/error alerts visually overlapping panel header */
.dash-panel > .p-3 > .alert {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

/* Açılır menüler: DOM’da sonra gelen tablo/panel katmanlarının altında kalmayı önler */
.hayvan-toolbar,
.pedo-filters,
.animal-toolbar,
.biz-actions-bar,
.pedo-toolbar,
.finans-toolbar {
  position: relative;
  z-index: 100;
}

.dropdown:has(.dropdown-menu.show),
.dropup:has(.dropdown-menu.show),
.dropend:has(.dropdown-menu.show),
.dropstart:has(.dropdown-menu.show),
.btn-group:has(.dropdown-menu.show) {
  position: relative;
  z-index: var(--bs-dropdown-zindex);
}

/* Bootstrap sürümü menüde sabit 1000 kullanıyor; üst üste binen tablo başlıklarının üstüne çıkar */
.dropdown-menu:not(.dash-user-menu) {
  z-index: var(--bs-dropdown-zindex);
}

.dash-panel-title {
  font-weight: 900;
  color: var(--anthracite);
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

.dash-panel-subtitle {
  margin-top: 2px;
  font-size: 0.86rem;
  color: rgba(43, 43, 43, 0.65);
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

.dash-panel--tight .dash-panel-header {
  padding: 14px 16px 12px 16px;
}

.profile-page {
  max-width: 960px;
  margin: 0 auto;
}

.profile-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(43, 43, 43, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 44px -28px rgba(16, 20, 28, 0.35);
  overflow: hidden;
}

.profile-card-head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
}

.profile-card-title {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--anthracite);
  letter-spacing: -0.01em;
}

.profile-card-sub {
  margin-top: 2px;
  font-size: 0.88rem;
  color: rgba(43, 43, 43, 0.65);
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.10);
  border: 1px solid rgba(255, 122, 0, 0.25);
  color: #b85b00;
  font-weight: 700;
  font-size: 0.82rem;
}

.profile-form {
  padding: 18px 20px 20px 20px;
  display: grid;
  gap: 18px;
}

.profile-section {
  display: grid;
  gap: 10px;
}

.profile-section-title {
  font-weight: 800;
  letter-spacing: 0.4px;
  color: rgba(43, 43, 43, 0.78);
  text-transform: uppercase;
  font-size: 0.74rem;
}

.profile-actions {
  display: flex;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(43, 43, 43, 0.06);
  padding-top: 16px;
}

.dash-home {
  display: grid;
  gap: 12px;
}

.dash-biz {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(43, 43, 43, 0.07);
  border-radius: 14px;
  box-shadow: 0 10px 28px -22px rgba(16, 20, 28, 0.38);
  overflow: hidden;
}

.dash-biz-head {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
}

.dash-biz-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--anthracite);
  letter-spacing: -0.012em;
}

.dash-biz-sub {
  margin-top: 2px;
  font-size: 0.78rem;
  color: rgba(43, 43, 43, 0.56);
}

.dash-biz-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dash-biz-body {
  display: block;
}

.dash-biz-cards {
  padding: 11px 14px 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .dash-biz-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .dash-biz-cards {
    grid-template-columns: 1fr;
  }
}

.dash-biz-card {
  border-radius: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(43, 43, 43, 0.07);
  background: #fff;
  position: relative;
  overflow: hidden;
  min-height: 72px;
}

.dash-biz-card-label {
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.52);
}

.dash-biz-card-value {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.dash-biz-card-num {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.12rem;
  color: var(--anthracite);
}

.dash-biz-card-unit {
  font-weight: 600;
  font-size: 0.8rem;
  color: rgba(43, 43, 43, 0.55);
}

.dash-biz-card-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(43, 43, 43, 0.12);
}

.dash-biz-card--ok .dash-biz-card-bar { background: rgba(23, 160, 90, 0.80); }
.dash-biz-card--warn .dash-biz-card-bar { background: rgba(220, 53, 69, 0.85); }
.dash-biz-card--info .dash-biz-card-bar { background: rgba(255, 122, 0, 0.85); }
.dash-biz-card--accent .dash-biz-card-bar { background: rgba(255, 122, 0, 0.88); }

.dash-biz-details {
  padding: 0 16px 16px 16px;
}

.dash-biz-details-grid {
  border-top: 1px dashed rgba(43, 43, 43, 0.14);
  padding-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1100px) {
  .dash-biz-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .dash-biz-details-grid {
    grid-template-columns: 1fr;
  }
}

.dash-biz-detail {
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(246, 247, 249, 0.65);
  padding: 12px;
}

.dash-biz-detail-k {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.5);
}

.dash-biz-detail-v {
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  color: rgba(43, 43, 43, 0.82);
}

.dash-home-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.55fr 1fr;
  align-items: start;
}

.dash-home-span2 {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .dash-home-grid {
    grid-template-columns: 1fr;
  }
  .dash-home-span2 {
    grid-column: auto;
  }
}

/* KPI strip */
.dash-kpi-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .dash-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .dash-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dash-kpi {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(43, 43, 43, 0.07);
  border-radius: 12px;
  padding: 10px 11px;
  box-shadow: 0 10px 26px -22px rgba(16, 20, 28, 0.35);
  overflow: hidden;
  min-height: 96px;
}

.dash-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dash-kpi-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(246, 247, 249, 0.9);
  color: rgba(43, 43, 43, 0.86);
}

.dash-kpi-ico img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 6px 10px rgba(16, 20, 28, 0.10));
}

.dash-kpi-title {
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: -0.01em;
  color: rgba(43, 43, 43, 0.78);
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

.dash-kpi-metric {
  margin-top: 4px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--anthracite);
  cursor: text;
  user-select: text;
}

.dash-kpi-hint {
  margin-top: 2px;
  font-size: 0.74rem;
  color: rgba(43, 43, 43, 0.55);
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

.dash-kpi-delta {
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.72rem;
  border: 1px solid rgba(43, 43, 43, 0.10);
  background: rgba(255, 255, 255, 0.65);
  color: rgba(43, 43, 43, 0.78);
}

.dash-kpi-delta.is-pos {
  border-color: rgba(23, 160, 90, 0.22);
  background: rgba(23, 160, 90, 0.10);
  color: rgba(23, 160, 90, 0.95);
}

.dash-kpi-delta.is-neg {
  border-color: rgba(220, 53, 69, 0.20);
  background: rgba(220, 53, 69, 0.10);
  color: rgba(220, 53, 69, 0.95);
}

.dash-kpi--milk .dash-kpi-ico { background: rgba(255, 122, 0, 0.10); border-color: rgba(255, 122, 0, 0.18); }
.dash-kpi--fertility .dash-kpi-ico { background: rgba(255, 122, 0, 0.10); border-color: rgba(255, 122, 0, 0.18); }
.dash-kpi--health .dash-kpi-ico { background: rgba(220, 53, 69, 0.08); border-color: rgba(220, 53, 69, 0.16); }
.dash-kpi--tasks .dash-kpi-ico { background: rgba(32, 201, 151, 0.10); border-color: rgba(32, 201, 151, 0.18); }
.dash-kpi--finance .dash-kpi-ico { background: rgba(43, 43, 43, 0.08); border-color: rgba(43, 43, 43, 0.16); }
.dash-kpi--ops .dash-kpi-ico { background: rgba(255, 122, 0, 0.10); border-color: rgba(255, 122, 0, 0.18); }
.dash-kpi--docs .dash-kpi-ico { background: rgba(255, 122, 0, 0.10); border-color: rgba(255, 122, 0, 0.18); }
.dash-kpi--safety .dash-kpi-ico { background: rgba(43, 43, 43, 0.08); border-color: rgba(255, 122, 0, 0.22); }

/* Segmented control (visual only, no JS yet) */
.dash-seg {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(246, 247, 249, 0.95);
  border: 1px solid rgba(43, 43, 43, 0.07);
}

.dash-seg-btn {
  border: 0;
  background: transparent;
  padding: 5px 9px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.76rem;
  color: rgba(43, 43, 43, 0.65);
}

.dash-seg-btn.is-active {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 122, 0, 0.35);
  box-shadow:
    0 12px 24px -18px rgba(16, 20, 28, 0.30),
    0 0 0 1px rgba(255, 122, 0, 0.12) inset;
  color: var(--anthracite);
}

/* Worklist */
.dash-worklist {
  padding: 0;
}

.dash-worklist-head {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
  background: rgba(246, 247, 249, 0.55);
}

.dash-worklist-cols {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 0.6fr 0.9fr;
  gap: 12px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.48);
}

.dash-worklist-body {
  padding: 6px 0;
}

.dash-workrow {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 0.6fr 0.9fr;
  gap: 12px;
  padding: 12px 16px;
  align-items: center;
}

.dash-workrow + .dash-workrow {
  border-top: 1px solid rgba(43, 43, 43, 0.06);
}

.dash-work-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(43, 43, 43, 0.88);
}

.dash-work-ref {
  color: rgba(255, 122, 0, 0.92);
  text-decoration: none;
  font-weight: 700;
}

.dash-work-ref:hover {
  text-decoration: underline;
}

.dash-work-meta {
  margin-top: 6px;
}

.dash-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.72rem;
  border: 1px solid rgba(43, 43, 43, 0.10);
  background: rgba(255, 255, 255, 0.65);
  color: rgba(43, 43, 43, 0.75);
}

.dash-pill--overdue {
  border-color: rgba(220, 53, 69, 0.22);
  background: rgba(220, 53, 69, 0.10);
  color: rgba(220, 53, 69, 0.95);
}

.dash-pill--duesoon {
  border-color: rgba(255, 122, 0, 0.22);
  background: rgba(255, 122, 0, 0.10);
  color: rgba(255, 122, 0, 0.95);
}

.dash-pill--planned {
  border-color: rgba(255, 122, 0, 0.18);
  background: rgba(255, 122, 0, 0.08);
  color: rgba(255, 122, 0, 0.92);
}

.dash-work-module,
.dash-work-when {
  color: rgba(43, 43, 43, 0.62);
  font-weight: 500;
  font-size: 0.79rem;
}

.dash-work-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 980px) {
  .dash-worklist-cols,
  .dash-workrow {
    grid-template-columns: 1.35fr 0.7fr 1fr;
  }
  .dash-worklist-cols > :nth-child(3),
  .dash-workrow > :nth-child(3) {
    display: none;
  }
}

@media (max-width: 620px) {
  .dash-worklist-cols {
    display: none;
  }
  .dash-workrow {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dash-work-actions {
    justify-content: flex-start;
  }
}

/* Alerts */
.dash-alerts {
  padding: 12px 16px;
  display: grid;
  gap: 10px;
}

.dash-alert {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: #fff;
  padding: 12px;
}

.dash-alert-ico {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(246, 247, 249, 0.9);
  color: rgba(43, 43, 43, 0.88);
}

.dash-alert-title {
  font-weight: 700;
  font-size: 0.86rem;
  color: rgba(43, 43, 43, 0.88);
  letter-spacing: -0.01em;
}

.dash-alert-detail {
  margin-top: 2px;
  color: rgba(43, 43, 43, 0.58);
  font-size: 0.78rem;
}

.dash-alert--critical {
  border-color: rgba(220, 53, 69, 0.18);
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.08), rgba(255, 255, 255, 1) 70%);
}

.dash-alert--critical .dash-alert-ico {
  background: rgba(220, 53, 69, 0.10);
  border-color: rgba(220, 53, 69, 0.18);
  color: rgba(220, 53, 69, 0.95);
}

.dash-alert--warning {
  border-color: rgba(255, 122, 0, 0.18);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.08), rgba(255, 255, 255, 1) 70%);
}

.dash-alert--warning .dash-alert-ico {
  background: rgba(255, 122, 0, 0.10);
  border-color: rgba(255, 122, 0, 0.18);
  color: rgba(255, 122, 0, 0.95);
}

.dash-alert--info {
  border-color: rgba(255, 122, 0, 0.14);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.06), rgba(255, 255, 255, 1) 70%);
}

.dash-alert--info .dash-alert-ico {
  background: rgba(255, 122, 0, 0.08);
  border-color: rgba(255, 122, 0, 0.16);
  color: rgba(255, 122, 0, 0.92);
}

@media (max-width: 620px) {
  .dash-alert {
    grid-template-columns: 40px 1fr;
  }
  .dash-alert-cta {
    grid-column: 1 / -1;
  }
}

.dash-home-shortcuts .dash-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.dash-home-shortcuts .dash-panel-header {
  display: none;
}

.dash-home-shortcuts .dash-shortcuts {
  padding: 11px 14px 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .dash-home-shortcuts .dash-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Charts */
.dash-charts {
  padding: 11px 14px 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.dash-chart-card {
  border-radius: 12px;
  border: 1px solid rgba(43, 43, 43, 0.07);
  background: #fff;
  overflow: hidden;
}

.dash-chart-head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.dash-chart-title {
  font-weight: 700;
  font-size: 0.86rem;
  color: rgba(43, 43, 43, 0.86);
  letter-spacing: -0.01em;
}

.dash-chart-sub {
  font-size: 0.74rem;
  color: rgba(43, 43, 43, 0.52);
  font-weight: 600;
}

.dash-chart-canvas {
  width: 100% !important;
  height: 240px !important;
  display: block;
  padding: 10px 12px 14px 12px;
}

@media (max-width: 620px) {
  .dash-chart-canvas {
    height: 220px !important;
  }
}

/* Animal overview (categories stacked, adaptive grids — no overlap) */
.dash-animal-grid {
  padding: 11px 14px 13px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.dash-animal-block {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(43, 43, 43, 0.06);
  border-radius: 12px;
  padding: 10px 11px 12px;
}

.dash-animal-block-title {
  font-weight: 700;
  color: rgba(43, 43, 43, 0.82);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-animal-block-title::before {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-orange), rgba(255, 122, 0, 0.45));
  box-shadow: 0 6px 14px -4px rgba(255, 122, 0, 0.55);
}

.dash-animal-tiles,
.dash-animal-tiles--wide {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  align-items: stretch;
}

/* Dashboard home: make overview tiles more "card-like" */
.dash-home .dash-animal-tiles,
.dash-home .dash-animal-tiles--wide {
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.dash-home .dash-animal-tile {
  min-height: 96px;
  padding: 12px 12px;
  grid-template-columns: 40px minmax(0, 1fr);
}

.dash-home .dash-animal-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.dash-home .dash-animal-ico img {
  width: 30px;
  height: 30px;
}

.dash-animal-tile {
  border-radius: 11px;
  border: 1px solid rgba(43, 43, 43, 0.07);
  background: #fff;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 74px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 22px -16px rgba(16, 20, 28, 0.3);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.dash-animal-tile:hover {
  border-color: rgba(255, 122, 0, 0.32);
  box-shadow: 0 18px 44px -28px rgba(255, 122, 0, 0.28);
  transform: translateY(-1px);
}

.dash-animal-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(43, 43, 43, 0.09);
  background: rgba(246, 247, 249, 0.9);
}

.dash-animal-ico img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.94;
  filter: drop-shadow(0 6px 10px rgba(16, 20, 28, 0.12));
}

.dash-animal-ico .bi {
  font-size: 1.02rem;
  color: rgba(43, 43, 43, 0.78);
}

.dash-animal-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-animal-title {
  font-weight: 600;
  color: rgba(43, 43, 43, 0.88);
  letter-spacing: -0.01em;
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-animal-metric {
  margin-top: 3px;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.6);
  font-size: 0.74rem;
  line-height: 1.25;
}

.dash-animal-sub {
  margin-top: 2px;
  font-size: 0.71rem;
  color: rgba(43, 43, 43, 0.52);
  font-weight: 500;
  line-height: 1.35;
}

.dash-animal-tile--add .dash-animal-ico { background: rgba(23, 160, 90, 0.10); border-color: rgba(23, 160, 90, 0.20); }
.dash-animal-tile--add .dash-animal-ico .bi { color: rgba(23, 160, 90, 0.92); font-size: 1.14rem; }
.dash-animal-tile--add:hover { border-color: rgba(23, 160, 90, 0.35); box-shadow: 0 18px 44px -28px rgba(23, 160, 90, 0.28); }
.dash-animal-tile--mint { background: linear-gradient(135deg, rgba(32, 201, 151, 0.10), rgba(255,255,255,0.95) 70%); }
.dash-animal-tile--mint2 { background: linear-gradient(135deg, rgba(32, 201, 151, 0.12), rgba(255,255,255,0.95) 70%); }
.dash-animal-tile--mint3 { background: linear-gradient(135deg, rgba(32, 201, 151, 0.08), rgba(255,255,255,0.95) 70%); }
.dash-animal-tile--sky { background: linear-gradient(135deg, rgba(255, 122, 0, 0.10), rgba(255,255,255,0.95) 70%); }
.dash-animal-tile--sky2 { background: linear-gradient(135deg, rgba(255, 122, 0, 0.12), rgba(255,255,255,0.95) 70%); }
.dash-animal-tile--sky3 { background: linear-gradient(135deg, rgba(255, 122, 0, 0.08), rgba(255,255,255,0.95) 70%); }
.dash-animal-tile--rose { background: linear-gradient(135deg, rgba(220, 53, 69, 0.10), rgba(255,255,255,0.95) 70%); }
.dash-animal-tile--rose2 { background: linear-gradient(135deg, rgba(220, 53, 69, 0.08), rgba(255,255,255,0.95) 70%); }
.dash-animal-tile--rose3 { background: linear-gradient(135deg, rgba(220, 53, 69, 0.12), rgba(255,255,255,0.95) 70%); }
.dash-animal-tile--violet { background: linear-gradient(135deg, rgba(43, 43, 43, 0.08), rgba(255,255,255,0.95) 70%); }
.dash-animal-tile--danger { background: linear-gradient(135deg, rgba(220, 53, 69, 0.14), rgba(255,255,255,0.95) 70%); }
.dash-animal-tile--sun { background: linear-gradient(135deg, rgba(255, 193, 7, 0.16), rgba(255,255,255,0.95) 70%); }
.dash-animal-tile--sun2 { background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(255,255,255,0.95) 70%); }
.dash-animal-tile--sun3 { background: linear-gradient(135deg, rgba(255, 193, 7, 0.18), rgba(255,255,255,0.95) 70%); }
.dash-animal-tile--green { background: linear-gradient(135deg, rgba(23, 160, 90, 0.12), rgba(255,255,255,0.95) 70%); }

/* Task board (kanban-like) — esnek ızgara; satırlar dengeli minimum yükseklikte */
.dash-board {
  padding: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  grid-auto-rows: minmax(400px, auto);
  align-items: stretch;
}

@media (max-width: 620px) {
  .dash-board {
    grid-template-columns: 1fr;
  }
}

.dash-col {
  border-radius: 12px;
  border: 1px solid rgba(43, 43, 43, 0.07);
  background: rgba(246, 247, 249, 0.75);
  overflow: hidden;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dash-col-head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 3px 8px;
  align-items: start;
  flex: 0 0 auto;
  min-height: 4.75rem;
}

.dash-col-title {
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
  color: rgba(43, 43, 43, 0.86);
  line-height: 1.25;
  min-height: 2.25rem;
  display: flex;
  align-items: flex-end;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

.dash-col-sub {
  grid-column: 1 / 2;
  font-weight: 600;
  font-size: 0.74rem;
  color: rgba(43, 43, 43, 0.55);
  min-height: 2.4rem;
  line-height: 1.25;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

.dash-col-actions {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  display: flex;
  gap: 8px;
}

.dash-col-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 220px;
}

.dash-col-empty {
  flex: 1 1 auto;
  min-height: 160px;
  border-radius: 14px;
  border: 1px dashed rgba(43, 43, 43, 0.18);
  background: rgba(255, 255, 255, 0.55);
  padding: 14px;
  display: grid;
  gap: 2px;
  place-items: center;
  align-content: center;
  text-align: center;
  color: rgba(43, 43, 43, 0.70);
}

.dash-col-empty-title {
  font-weight: 700;
  font-size: 0.84rem;
}

.dash-col-empty-sub {
  font-size: 0.76rem;
  color: rgba(43, 43, 43, 0.55);
}

.dash-task {
  flex: 0 0 auto;
  border-radius: 11px;
  border: 1px solid rgba(43, 43, 43, 0.07);
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 11px;
  box-shadow: 0 10px 28px -24px rgba(16, 20, 28, 0.28);
}

.dash-task:hover {
  border-color: rgba(43, 43, 43, 0.14);
}

.dash-task.is-dragging {
  opacity: 0.75;
  cursor: grabbing;
}

.dash-task.is-completing {
  opacity: 0.45;
  transform: scale(0.98);
  transition: 180ms ease;
}

.dash-task-top {
  display: grid;
  grid-template-columns: 22px 26px 1fr;
  gap: 6px 10px;
  align-items: start;
}

.dash-task-drag {
  display: grid;
  place-items: center;
  width: 22px;
  height: 26px;
  margin-top: 1px;
  border-radius: 7px;
  border: 1px solid rgba(43, 43, 43, 0.1);
  background: rgba(246, 247, 249, 0.92);
  color: rgba(43, 43, 43, 0.42);
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  flex-shrink: 0;
}

.dash-task-drag:hover {
  border-color: rgba(43, 43, 43, 0.16);
  color: rgba(43, 43, 43, 0.62);
}

.dash-task-drag:active,
.dash-task.is-dragging .dash-task-drag {
  cursor: grabbing;
}

.dash-task-idx {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  border: 1px solid rgba(43, 43, 43, 0.09);
  background: rgba(246, 247, 249, 0.95);
  color: rgba(43, 43, 43, 0.78);
}

.dash-task-text {
  font-weight: 600;
  font-size: 0.82rem;
  color: rgba(43, 43, 43, 0.88);
  line-height: 1.28;
  -webkit-user-select: text;
  user-select: text;
  cursor: text;
}

.dash-task-ref {
  color: rgba(255, 122, 0, 0.92);
  text-decoration: none;
  font-weight: 700;
  margin-right: 6px;
}

.dash-task-ref:hover { text-decoration: underline; }
.dash-task-sep { opacity: 0.55; margin-right: 6px; }

.dash-task-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  color: rgba(43, 43, 43, 0.58);
  font-weight: 600;
  font-size: 0.74rem;
}

.dash-task-date,
.dash-task-aging {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.dash-task-aging.is-overdue {
  color: rgba(220, 53, 69, 0.95);
}

.dash-task-btn {
  margin-left: auto;
  border: 0;
  background: rgba(23, 160, 90, 0.12);
  color: rgba(23, 160, 90, 0.95);
  border: 1px solid rgba(23, 160, 90, 0.20);
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.76rem;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.dash-task-btn:hover {
  background: rgba(23, 160, 90, 0.16);
}

.dash-task-btn--ghost {
  margin-left: 0;
  background: rgba(255, 122, 0, 0.10);
  color: rgba(255, 122, 0, 0.92);
  border-color: rgba(255, 122, 0, 0.18);
}

.dash-task-btn--ghost:hover {
  background: rgba(255, 122, 0, 0.14);
}

.dash-col--mint { background: linear-gradient(180deg, rgba(32, 201, 151, 0.10), rgba(246,247,249,0.70)); }
.dash-col--violet { background: linear-gradient(180deg, rgba(43, 43, 43, 0.07), rgba(246,247,249,0.70)); }
.dash-col--sky { background: linear-gradient(180deg, rgba(255, 122, 0, 0.10), rgba(246,247,249,0.70)); }
.dash-col--rose { background: linear-gradient(180deg, rgba(220, 53, 69, 0.10), rgba(246,247,249,0.70)); }
.dash-col--slate { background: linear-gradient(180deg, rgba(43, 43, 43, 0.06), rgba(246,247,249,0.70)); }

/* Edit mode (drag & drop) — sürükleme yalnızca .dash-drag-handle üzerinden */
.dash-edit .dash-kpi {
  position: relative;
}

.dash-edit .dash-kpi,
.dash-edit .dash-home-grid > section.dash-panel {
  outline: 2px dashed rgba(255, 122, 0, 0.38);
  outline-offset: 2px;
  cursor: default;
}

.dash-drag-handle {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0 10px 0 0;
  border: 1px solid rgba(43, 43, 43, 0.12);
  border-radius: 8px;
  background: rgba(246, 247, 249, 0.96);
  color: rgba(43, 43, 43, 0.5);
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.dash-edit .dash-kpi .dash-drag-handle {
  position: absolute;
  left: 7px;
  bottom: 6px;
  margin: 0;
  width: 28px;
  height: 28px;
  z-index: 2;
}

.dash-edit .dash-panel-header .dash-drag-handle {
  margin-right: 8px;
}

.dash-drag-handle:hover {
  border-color: rgba(255, 122, 0, 0.35);
  color: rgba(255, 122, 0, 0.85);
}

.dash-drag-handle:active,
.dash-kpi.is-dragging .dash-drag-handle,
.dash-home-grid > section.is-dragging .dash-drag-handle {
  cursor: grabbing;
}

.dash-kpi.is-dragging,
.dash-home-grid > section.is-dragging {
  opacity: 0.75;
}

.dash-edit #dashEditToggle {
  box-shadow: 0 18px 44px -28px rgba(255, 122, 0, 0.55);
}

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

@media (max-width: 1100px) {
  .dash-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dash-card {
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: #fff;
}

.dash-card-title {
  font-weight: 800;
  font-size: 0.92rem;
}

.dash-card-metric {
  font-size: 1.5rem;
  font-weight: 900;
  margin-top: 6px;
}

.dash-card-sub {
  margin-top: 2px;
  color: rgba(43, 43, 43, 0.65);
  font-size: 0.85rem;
}

.dash-card--neutral { background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(246,247,249,1) 100%); }
.dash-card--milk { background: linear-gradient(135deg, rgba(255,122,0,0.10) 0%, rgba(255,255,255,1) 70%); }
.dash-card--dry { background: linear-gradient(135deg, rgba(43,43,43,0.08) 0%, rgba(255,255,255,1) 70%); }
.dash-card--heat { background: linear-gradient(135deg, rgba(255,122,0,0.16) 0%, rgba(43,43,43,0.06) 70%); }

.dash-shortcuts {
  padding: 12px;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-shortcut {
  border-radius: 11px;
  padding: 10px 11px;
  border: 1px solid rgba(43, 43, 43, 0.07);
  background: #fff;
  text-decoration: none;
  color: var(--anthracite);
}

.dash-shortcut:hover {
  border-color: rgba(255, 122, 0, 0.28);
  box-shadow: 0 10px 28px -22px rgba(255, 122, 0, 0.35);
}

.dash-shortcut-title {
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: -0.01em;
}

.dash-shortcut-sub {
  margin-top: 2px;
  color: rgba(43, 43, 43, 0.55);
  font-size: 0.74rem;
  line-height: 1.35;
}

.dash-empty {
  border-radius: 16px;
  border: 1px dashed rgba(43, 43, 43, 0.20);
  padding: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.dash-empty-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--anthracite);
}

.dash-empty-sub {
  margin-top: 4px;
  font-size: 0.79rem;
  color: rgba(43, 43, 43, 0.58);
}

/* Tabs + table wrapper for task list */
.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.dash-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(43, 43, 43, 0.09);
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  color: rgba(43, 43, 43, 0.74);
  font-weight: 600;
  font-size: 0.78rem;
}

.dash-tab:hover {
  border-color: rgba(255, 122, 0, 0.28);
  color: rgba(43, 43, 43, 0.90);
}

.dash-tab.is-active {
  background: rgba(255, 122, 0, 0.10);
  border-color: rgba(255, 122, 0, 0.22);
  color: rgba(255, 122, 0, 0.92);
}

.dash-tab-badge {
  min-width: 22px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 247, 249, 0.95);
  border: 1px solid rgba(43, 43, 43, 0.09);
  font-weight: 700;
  font-size: 0.72rem;
}

.dash-tablewrap {
  border-radius: 16px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  overflow: hidden;
  background: #fff;
}

.dash-tablewrap thead th {
  background: rgba(246, 247, 249, 0.70);
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.52);
  font-weight: 600;
  padding: 9px 12px;
}

.dash-tablewrap tbody td {
  padding: 14px 14px;
  border-top: 1px solid rgba(43, 43, 43, 0.06);
}

.dash-link {
  color: rgba(255, 122, 0, 0.92);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.87rem;
}

.dash-link:hover { text-decoration: underline; }

/* Hayvan modülü — pedometre ile aynı kompakt dil */
.animal-page {
  margin: 0;
}

.dash-shortcuts--embed {
  display: grid;
}

.dash-animal-tile.dash-animal-tile--link {
  text-decoration: none !important;
  color: inherit;
}

.dash-animal-tile.dash-animal-tile--link:hover {
  transform: translateY(-1px);
}

.animal-alert {
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.animal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.animal-toolbar-text {
  margin: 0;
  max-width: 52ch;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(43, 43, 43, 0.58);
}

.animal-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.animal-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.animal-page-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--anthracite);
  letter-spacing: -0.01em;
}

.animal-page-lead {
  max-width: 56ch;
  font-size: 0.82rem;
  color: rgba(43, 43, 43, 0.6);
}

.animal-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.animal-kpi-strip {
  margin-bottom: 14px;
}

.animal-kpi {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px -14px rgba(16, 20, 28, 0.4);
  min-height: unset;
}

.animal-kpi--heat {
  border-color: rgba(157, 88, 255, 0.20);
  background: linear-gradient(135deg, rgba(157, 88, 255, 0.08), rgba(255, 255, 255, 0.96));
}

.animal-kpi--risk {
  border-color: rgba(220, 53, 69, 0.16);
}

.animal-kpi-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(43, 43, 43, 0.5);
}

.animal-kpi-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(43, 43, 43, 0.9);
  line-height: 1.05;
  margin-top: 5px;
}

.animal-hub-cards {
  margin-bottom: 14px;
}

.animal-hub-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  color: inherit;
  min-height: unset;
  box-shadow: 0 8px 22px -16px rgba(16, 20, 28, 0.35);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.animal-hub-card:hover {
  border-color: rgba(255, 122, 0, 0.24);
  transform: translateY(-1px);
  color: inherit;
}

.animal-hub-card--accent {
  border-color: rgba(255, 122, 0, 0.32);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.1), rgba(255, 255, 255, 0.98));
}

.animal-hub-card--accent .animal-hub-icon {
  background: rgba(255, 122, 0, 0.2);
  color: #d96500;
}

.animal-hub-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 0, 0.11);
  color: rgba(255, 122, 0, 0.92);
  font-size: 1.02rem;
  flex-shrink: 0;
}

.animal-hub-copy .animal-hub-title {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.animal-hub-copy .animal-hub-desc {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(43, 43, 43, 0.58);
}

/* Hayvan geçmiş ağacı — zaman çizelgesi + grafikler */
.hayvan-gecmis-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.14), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(255, 122, 0, 0.22);
  box-shadow: 0 12px 34px -22px rgba(16, 20, 28, 0.45);
}

.hayvan-gecmis-hero--landing .hayvan-gecmis-search {
  flex: 1 1 300px;
  max-width: 440px;
}

.hayvan-gecmis-info-strip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 122, 0, 0.08);
  border: 1px solid rgba(255, 122, 0, 0.18);
  font-size: 0.82rem;
  color: rgba(43, 43, 43, 0.72);
  line-height: 1.45;
}

.hayvan-gecmis-info-strip .bi {
  color: var(--brand-orange);
  margin-top: 0.1rem;
}

/* Hayvan seçili — iki sütun çalışma alanı (menü + içerik) */
.hayvan-gecmis.hayvan-gecmis--loaded {
  margin-top: -2px;
}

.hayvan-gecmis-workspace {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  overflow: hidden;
  isolation: isolate;
}

.hayvan-gecmis-workspace__rail {
  position: relative;
  z-index: 4;
  min-width: 0;
  max-width: 240px;
}

.hayvan-gecmis-workspace__rail-inner {
  position: sticky;
  top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: calc(100vh - 5.5rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.65rem 0.5rem 0.75rem 0.65rem;
  margin: -0.65rem -0.5rem -0.75rem -0.65rem;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 253, 0.98) 0%,
    rgba(255, 255, 255, 0.92) 42%,
    rgba(255, 122, 0, 0.04) 100%
  );
  border: 1px solid rgba(43, 43, 43, 0.08);
  box-shadow: 0 12px 32px -24px rgba(16, 20, 28, 0.35);
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 43, 43, 0.2) transparent;
}

.hayvan-gecmis-rail-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.hayvan-gecmis-rail-card {
  border-radius: 12px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: #fff;
  padding: 0.55rem 0.6rem 0.6rem;
  box-shadow: 0 6px 18px -16px rgba(16, 20, 28, 0.28);
}

.hayvan-gecmis-rail-card__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.hayvan-gecmis-rail-card__ico {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  color: var(--brand-orange);
  background: rgba(255, 122, 0, 0.1);
  border: 1px solid rgba(255, 122, 0, 0.18);
}

.hayvan-gecmis-rail-card__title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(43, 43, 43, 0.55);
}

.hayvan-gecmis-rail-kv {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.hayvan-gecmis-rail-kv > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.76rem;
}

.hayvan-gecmis-rail-kv dt {
  margin: 0;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.48);
}

.hayvan-gecmis-rail-kv dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  color: var(--anthracite);
  font-variant-numeric: tabular-nums;
}

.hayvan-gecmis-rail-alert {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #92400e;
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.35);
}

.hayvan-gecmis-rail-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hayvan-gecmis-rail-toc a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.4rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.72);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.hayvan-gecmis-rail-toc a .bi {
  font-size: 0.85rem;
  color: rgba(255, 122, 0, 0.75);
}

.hayvan-gecmis-rail-toc a:hover,
.hayvan-gecmis-rail-toc a:focus-visible {
  background: rgba(255, 122, 0, 0.08);
  color: var(--anthracite);
}

.hayvan-gecmis-rail-empty {
  margin: 0;
  font-size: 0.74rem;
  color: rgba(43, 43, 43, 0.45);
}

.hayvan-gecmis-rail-events {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.35rem;
  position: relative;
}

.hayvan-gecmis-rail-events::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.45), rgba(43, 43, 43, 0.1));
}

.hayvan-gecmis-rail-event {
  position: relative;
  padding: 0 0 0.45rem 0.85rem;
  display: grid;
  gap: 0.05rem;
}

.hayvan-gecmis-rail-event:last-child {
  padding-bottom: 0;
}

.hayvan-gecmis-rail-event__dot {
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 0 2px #fff;
}

.hayvan-gecmis-rail-event__date {
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.42);
  font-variant-numeric: tabular-nums;
}

.hayvan-gecmis-rail-event__title {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--anthracite);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hayvan-gecmis-rail-more {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-orange);
  text-decoration: none;
}

.hayvan-gecmis-rail-more:hover {
  text-decoration: underline;
}

.hayvan-gecmis-workspace__rail .hayvan-hub-nav {
  width: 100%;
  max-width: 100%;
}

.hayvan-gecmis-workspace__rail .hayvan-hub-nav__head {
  display: none;
}

.hayvan-gecmis-workspace__rail .hayvan-hub-nav {
  padding-top: 10px;
}

.hayvan-gecmis-workspace__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

.hayvan-gecmis-subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.09);
  background: #fff;
  box-shadow: 0 8px 22px -18px rgba(16, 20, 28, 0.28);
}

.hayvan-gecmis-subhead__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.hayvan-gecmis-subhead__badge {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--brand-orange);
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.22);
}

.hayvan-gecmis-subhead__kupe {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hayvan-gecmis-subhead__hint {
  font-size: 0.78rem;
  color: rgba(43, 43, 43, 0.55);
  font-weight: 600;
}

.hayvan-gecmis-subhead__search {
  flex: 1 1 240px;
  max-width: 360px;
  min-width: 200px;
}

.hayvan-gecmis-subhead__search .hayvan-gecmis-search {
  flex: none;
  max-width: none;
  margin: 0;
}

.hayvan-gecmis-subhead__search .hayvan-gecmis-reset {
  margin-top: 0.25rem !important;
}

.hayvan-gecmis-workspace .hayvan-hub-toolbar {
  margin-bottom: 0 !important;
}

.hayvan-gecmis-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.hayvan-gecmis-kpi {
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: linear-gradient(180deg, #fff 0%, rgba(248, 250, 253, 0.95) 100%);
}

.hayvan-gecmis-kpi__lbl {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(43, 43, 43, 0.48);
}

.hayvan-gecmis-kpi__val {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--anthracite);
  font-variant-numeric: tabular-nums;
}

.hayvan-gecmis-panel {
  border-radius: 18px;
  border: 1px solid rgba(43, 43, 43, 0.09);
  background: #fff;
  box-shadow: 0 10px 28px -22px rgba(16, 20, 28, 0.32);
  overflow: hidden;
}

.hayvan-gecmis-panel--arsiv {
  box-shadow: 0 12px 32px -20px rgba(73, 80, 87, 0.35);
}

.hayvan-gecmis-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(43, 43, 43, 0.08);
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.hayvan-gecmis-panel__head--compact {
  align-items: center;
}

.hayvan-gecmis-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hayvan-gecmis-panel__sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: rgba(43, 43, 43, 0.55);
}

.hayvan-gecmis-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hayvan-gecmis-panel__body {
  padding: 0.85rem 1rem 1rem;
  overflow-x: auto;
}

.hayvan-gecmis-panel--timeline .hayvan-gecmis-panel__body {
  padding-top: 0.65rem;
}

.hayvan-gecmis-workspace .hayvan-kimlik-head__main {
  display: none;
}

.hayvan-gecmis-workspace .hayvan-kimlik-head {
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.hayvan-gecmis-empty-landing {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-radius: 16px;
  border: 1px dashed rgba(43, 43, 43, 0.14);
  background: rgba(255, 255, 255, 0.85);
}

.hayvan-gecmis-empty-landing__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--brand-orange);
  background: rgba(255, 122, 0, 0.1);
}

@media (max-width: 991.98px) {
  .hayvan-gecmis-workspace {
    grid-template-columns: 1fr;
  }

  .hayvan-gecmis-workspace__rail {
    max-width: none;
  }

  .hayvan-gecmis-workspace__rail-inner {
    position: static;
    max-height: none;
    overflow: visible;
    margin: 0;
    padding: 0.75rem;
  }

  .hayvan-gecmis-rail-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.55rem;
  }

  .hayvan-gecmis-workspace__rail .hayvan-hub-nav {
    width: 100%;
    grid-column: 1 / -1;
  }

  .hayvan-gecmis-workspace__rail .hayvan-hub-nav__head {
    display: flex;
  }

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

  .hayvan-gecmis-subhead__search {
    flex: 1 1 100%;
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .hayvan-gecmis-kpi-strip {
    grid-template-columns: 1fr 1fr;
  }
}

.hayvan-gecmis-title {
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--anthracite, #2b2b2b);
}

.hayvan-gecmis-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(43, 43, 43, 0.62);
}

.hayvan-gecmis-search {
  flex: 1 1 280px;
  max-width: 440px;
}

.hayvan-gecmis-search .input-group-text.hayvan-gecmis-search-ico {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(43, 43, 43, 0.12);
  color: rgba(255, 122, 0, 0.85);
}

.hayvan-gecmis-search .form-control {
  border-color: rgba(43, 43, 43, 0.12);
  font-size: 0.88rem;
}

/* Autocomplete dropdown */
.hayvan-gecmis-ac-wrap {
  position: relative;
}

.hayvan-gecmis-ac-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: var(--bs-dropdown-zindex);
  margin-top: 4px;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(43, 43, 43, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 36px -14px rgba(16, 20, 28, 0.45),
              0 4px 12px -6px rgba(255, 122, 0, 0.12);
  backdrop-filter: blur(8px);
  animation: hayvanAcSlide 0.15s ease-out;
}

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

.hayvan-gecmis-ac-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--anthracite, #2b2b2b);
  font-size: 0.86rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(43, 43, 43, 0.05);
  transition: background 0.1s ease, padding-left 0.12s ease;
  cursor: pointer;
}

.hayvan-gecmis-ac-item:last-child {
  border-bottom: none;
}

.hayvan-gecmis-ac-item:hover,
.hayvan-gecmis-ac-item.is-active {
  background: rgba(255, 122, 0, 0.08);
  padding-left: 18px;
  color: var(--anthracite, #2b2b2b);
  text-decoration: none;
}

.hayvan-gecmis-ac-ico {
  color: rgba(255, 122, 0, 0.75);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.hayvan-gecmis-ac-kupe {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hayvan-gecmis-ac-ad {
  font-weight: 500;
  color: rgba(43, 43, 43, 0.55);
  margin-left: 2px;
}

.hayvan-gecmis-ac-mark {
  background: rgba(255, 122, 0, 0.18);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.hayvan-gecmis-ac-empty {
  padding: 12px 14px;
  font-size: 0.82rem;
  color: rgba(43, 43, 43, 0.48);
  text-align: center;
  font-weight: 500;
}

.hayvan-gecmis-reset .dash-link {
  font-size: 0.8rem;
}

.hayvan-gecmis-profile-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 18px;
  align-items: start;
}

@media (max-width: 880px) {
  .hayvan-gecmis-profile-inner {
    grid-template-columns: 1fr;
  }
}

.hayvan-gecmis-kupe {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--anthracite, #2b2b2b);
}

.hayvan-gecmis-ad {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.hayvan-gecmis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hayvan-gecmis-pill--ok {
  border-color: rgba(25, 135, 84, 0.22);
  background: rgba(25, 135, 84, 0.08);
  color: rgba(21, 96, 60, 0.95);
}

.hayvan-gecmis-pill--muted {
  opacity: 0.75;
}

.hayvan-gecmis-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px 18px;
  margin: 0;
}

.hayvan-gecmis-dl dt {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(43, 43, 43, 0.45);
  margin: 0;
}

.hayvan-gecmis-dl dd {
  margin: 2px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.88);
}

.hayvan-gecmis-profile-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Yaşam Özeti paneli ── */
.hayvan-yasam-ozeti {
  border-radius: 16px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px -16px rgba(16, 20, 28, 0.35);
  overflow: hidden;
}

.hayvan-yasam-ozeti-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.05), transparent);
}

.hayvan-yasam-ozeti-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--anthracite, #2b2b2b);
}

.hayvan-yasam-ozeti-title .bi {
  color: rgba(255, 122, 0, 0.75);
}

.hayvan-yasam-ozeti-sub {
  font-size: 0.76rem;
  color: rgba(43, 43, 43, 0.45);
  font-weight: 500;
}

.hayvan-yasam-ozeti-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 1100px) {
  .hayvan-yasam-ozeti-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hayvan-yasam-ozeti-grid {
    grid-template-columns: 1fr;
  }
}

.hayvan-yo-card {
  padding: 14px 16px 16px;
  border-right: 1px solid rgba(43, 43, 43, 0.05);
  border-bottom: 1px solid rgba(43, 43, 43, 0.05);
  border-left: 4px solid rgba(43, 43, 43, 0.12);
  transition: background 0.15s ease;
}

.hayvan-yo-card:last-child {
  border-right: none;
}

.hayvan-yo-card:hover {
  background: rgba(246, 247, 249, 0.6);
}

.hayvan-yo-card--ureme { border-left-color: #6f42c1; }
.hayvan-yo-card--sut   { border-left-color: #0d6efd; }
.hayvan-yo-card--kilo  { border-left-color: #fd7e14; }
.hayvan-yo-card--saglik { border-left-color: #198754; }

.hayvan-yo-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hayvan-yo-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.hayvan-yo-card--ureme .hayvan-yo-card-icon {
  background: rgba(111, 66, 193, 0.10);
  color: #6f42c1;
}
.hayvan-yo-card--sut .hayvan-yo-card-icon {
  background: rgba(13, 110, 253, 0.10);
  color: #0d6efd;
}
.hayvan-yo-card--kilo .hayvan-yo-card-icon {
  background: rgba(253, 126, 20, 0.10);
  color: #fd7e14;
}
.hayvan-yo-card--saglik .hayvan-yo-card-icon {
  background: rgba(25, 135, 84, 0.10);
  color: #198754;
}

.hayvan-yo-card-cat {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(43, 43, 43, 0.58);
}

.hayvan-yo-dl {
  margin: 0;
}

.hayvan-yo-dl-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(43, 43, 43, 0.04);
}

.hayvan-yo-dl-row:last-child {
  border-bottom: none;
}

.hayvan-yo-dl dt {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.52);
  margin: 0;
  white-space: nowrap;
}

.hayvan-yo-dl dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(43, 43, 43, 0.88);
  text-align: right;
}

.hayvan-yo-big {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--anthracite, #2b2b2b) !important;
}

.hayvan-yo-unit {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(43, 43, 43, 0.4);
  margin-left: 2px;
}

.hayvan-yo-date {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(43, 43, 43, 0.4);
  background: rgba(43, 43, 43, 0.04);
  padding: 1px 5px;
  border-radius: 4px;
}

.hayvan-yo-accent {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 122, 0, 0.88);
}

.hayvan-yo-positive {
  color: #198754;
  font-weight: 800;
}

.hayvan-yo-negative {
  color: #dc3545;
  font-weight: 800;
}

.hayvan-yo-warn {
  color: #dc3545;
  font-weight: 700;
  background: rgba(220, 53, 69, 0.08);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.76rem;
}

.hayvan-gecmis-chart--accent {
  border: 1px solid rgba(13, 110, 253, 0.12);
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.04), rgba(255, 255, 255, 0.98));
}

.hayvan-gecmis-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.hayvan-gecmis-chart-title {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.hayvan-gecmis-chart .card-body {
  padding: 14px 16px 14px;
}

.hayvan-gecmis-chart-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 280px;
  height: 32vh;
  max-height: 380px;
}

@media (min-width: 1200px) {
  .hayvan-gecmis-chart-canvas-wrap {
    min-height: 300px;
    height: 300px;
  }
}

.hayvan-gecmis-chart canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hayvan-gecmis-chart[data-chart-key] {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hayvan-gecmis-chart[data-chart-key]:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -16px rgba(16, 20, 28, 0.45) !important;
}

.hayvan-gecmis-chart-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.7rem;
  color: rgba(43, 43, 43, 0.38);
  font-weight: 500;
}

.hayvan-gecmis-chart-hint .bi {
  color: rgba(255, 122, 0, 0.45);
}

/* ── Fullscreen chart modal ── */
.hgc-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hgcFsIn 0.22s ease-out;
}

@keyframes hgcFsIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hgc-fullscreen-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 20, 28, 0.72);
  backdrop-filter: blur(10px);
}

.hgc-fullscreen-panel {
  position: relative;
  width: calc(100% - 40px);
  max-width: 1400px;
  height: calc(100vh - 60px);
  max-height: 900px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(16, 20, 28, 0.6),
              0 0 0 1px rgba(43, 43, 43, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: hgcPanelIn 0.28s ease-out;
}

@keyframes hgcPanelIn {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.hgc-fullscreen-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.07);
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.04), transparent);
}

.hgc-fullscreen-title {
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--anthracite, #2b2b2b);
}

.hgc-fullscreen-sub {
  display: block;
  font-size: 0.78rem;
  color: rgba(43, 43, 43, 0.5);
  font-weight: 500;
  margin-top: 2px;
}

.hgc-fullscreen-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hgc-fullscreen-dates {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hgc-fs-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(43, 43, 43, 0.48);
}

.hgc-fs-date {
  max-width: 140px;
  font-size: 0.82rem !important;
  border-radius: 8px !important;
}

.hgc-fullscreen-actions {
  display: flex;
  gap: 6px;
}

.hgc-fullscreen-body {
  flex: 1;
  position: relative;
  padding: 16px 24px;
  min-height: 0;
}

.hgc-fullscreen-body canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hgc-fullscreen-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px 14px;
  border-top: 1px solid rgba(43, 43, 43, 0.06);
  background: rgba(246, 247, 249, 0.5);
}

.hgc-fs-stats {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.65);
}

.hgc-fs-tip {
  font-size: 0.72rem;
  color: rgba(43, 43, 43, 0.38);
  font-weight: 500;
}

.hgc-fs-tip .bi {
  color: rgba(255, 122, 0, 0.5);
}

@media (max-width: 768px) {
  .hgc-fullscreen-panel {
    width: calc(100% - 16px);
    height: calc(100vh - 24px);
    border-radius: 14px;
  }
  .hgc-fullscreen-header {
    padding: 12px 14px 10px;
  }
  .hgc-fullscreen-body {
    padding: 10px 14px;
  }
  .hgc-fullscreen-footer {
    padding: 8px 14px 10px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hgc-fullscreen-dates {
    flex-wrap: wrap;
  }
  .hgc-fs-date {
    max-width: 120px;
  }
}

#zaman-cizelgesi {
  scroll-margin-top: 88px;
}

.hayvan-gecmis-tree-heading {
  font-weight: 800;
  font-size: 1.02rem;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.hayvan-gecmis-tree-heading .bi {
  color: var(--brand-orange, #ff7a00);
}

.hayvan-gecmis-tree {
  position: relative;
  padding-left: 22px;
  margin-top: 8px;
}

.hayvan-gecmis-tree::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.55), rgba(43, 43, 43, 0.12));
}

.hayvan-tree-node {
  position: relative;
  padding-left: 18px;
  padding-bottom: 14px;
}

.hayvan-tree-node:last-child {
  padding-bottom: 0;
}

.hayvan-tree-node-line {
  display: none;
}

.hayvan-tree-node-dot {
  position: absolute;
  left: -15px;
  top: 10px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand-orange, #ff7a00);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
  z-index: 1;
}

.hayvan-tree-card {
  border-radius: 14px;
  padding: 10px 12px 11px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px -18px rgba(16, 20, 28, 0.4);
  border-left: 4px solid rgba(43, 43, 43, 0.15);
}

.hayvan-tree-node--dogum .hayvan-tree-card,
.hayvan-tree-node--doguma .hayvan-tree-card {
  border-left-color: #20c997;
}

.hayvan-tree-node--kizginlik .hayvan-tree-card,
.hayvan-tree-node--pedo_heat .hayvan-tree-card {
  border-left-color: #d63384;
}

.hayvan-tree-node--tohum .hayvan-tree-card,
.hayvan-tree-node--gebelik .hayvan-tree-card {
  border-left-color: #6f42c1;
}

.hayvan-tree-node--tedavi .hayvan-tree-card,
.hayvan-tree-node--tirnak .hayvan-tree-card {
  border-left-color: #0d6efd;
}

.hayvan-tree-node--kilo .hayvan-tree-card {
  border-left-color: #fd7e14;
}

.hayvan-tree-node--sut .hayvan-tree-card {
  border-left-color: #0d6efd;
}

.hayvan-tree-node--kayit .hayvan-tree-card {
  border-left-color: rgba(43, 43, 43, 0.35);
}

.hayvan-tree-node--gorev .hayvan-tree-card,
.hayvan-tree-node--senk .hayvan-tree-card {
  border-left-color: rgba(255, 122, 0, 0.65);
}

.hayvan-tree-node--cikis_kesim .hayvan-tree-card {
  border-left-color: #6c757d;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.98), rgba(233, 236, 239, 0.85));
}

.hayvan-tree-node--cikis_olum .hayvan-tree-card {
  border-left-color: #842029;
  background: linear-gradient(135deg, rgba(248, 215, 218, 0.35), rgba(255, 255, 255, 0.96));
}

.hayvan-tree-node--cikis_satis .hayvan-tree-card {
  border-left-color: #146c43;
  background: linear-gradient(135deg, rgba(209, 231, 221, 0.35), rgba(255, 255, 255, 0.96));
}

.hayvan-tree-node--cikis-milestone .hayvan-tree-node-dot {
  width: 15px;
  height: 15px;
  left: -16px;
  border-width: 3px;
}

.hayvan-tree-node--cikis_kesim .hayvan-tree-node-dot {
  border-color: #495057;
  box-shadow: 0 0 0 4px rgba(73, 80, 87, 0.18);
}

.hayvan-tree-node--cikis_olum .hayvan-tree-node-dot {
  border-color: #b02a37;
  box-shadow: 0 0 0 4px rgba(176, 42, 55, 0.2);
}

.hayvan-tree-node--cikis_satis .hayvan-tree-node-dot {
  border-color: #198754;
  box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.2);
}

.hayvan-tree-card-ico {
  opacity: 0.85;
}

.hayvan-gecmis-tree-cikis-hint {
  color: rgba(43, 43, 43, 0.55);
  font-weight: 600;
}

.hayvan-gecmis-card--arsiv {
  box-shadow: 0 12px 32px -20px rgba(73, 80, 87, 0.35) !important;
}

.hayvan-cikis-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.1);
  position: relative;
  overflow: hidden;
}

.hayvan-cikis-banner--kesim {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95), rgba(233, 236, 239, 0.7));
  border-color: rgba(73, 80, 87, 0.2);
}

.hayvan-cikis-banner--olum {
  background: linear-gradient(135deg, rgba(248, 215, 218, 0.45), rgba(255, 255, 255, 0.9));
  border-color: rgba(176, 42, 55, 0.25);
}

.hayvan-cikis-banner--satis {
  background: linear-gradient(135deg, rgba(209, 231, 221, 0.45), rgba(255, 255, 255, 0.9));
  border-color: rgba(25, 135, 84, 0.25);
}

.hayvan-cikis-banner__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
}

.hayvan-cikis-banner--kesim .hayvan-cikis-banner__icon { color: #495057; }
.hayvan-cikis-banner--olum .hayvan-cikis-banner__icon { color: #b02a37; }
.hayvan-cikis-banner--satis .hayvan-cikis-banner__icon { color: #146c43; }

.hayvan-cikis-banner__body {
  flex: 1;
  min-width: 0;
}

.hayvan-cikis-banner__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
  margin-bottom: 2px;
}

.hayvan-cikis-banner__title {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.hayvan-cikis-banner__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.85;
}

.hayvan-cikis-banner__alt {
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 700;
}

.hayvan-cikis-banner__detay {
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(43, 43, 43, 0.72);
  line-height: 1.45;
}

.hayvan-cikis-banner__badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(43, 43, 43, 0.08);
}

.hayvan-gecmis-pill--kesim {
  background: rgba(73, 80, 87, 0.12);
  color: #343a40;
  border: 1px solid rgba(73, 80, 87, 0.2);
}

.hayvan-gecmis-pill--olum {
  background: rgba(220, 53, 69, 0.12);
  color: #b02a37;
  border: 1px solid rgba(220, 53, 69, 0.22);
}

.hayvan-gecmis-pill--satis {
  background: rgba(25, 135, 84, 0.12);
  color: #146c43;
  border: 1px solid rgba(25, 135, 84, 0.22);
}

.hayvan-gecmis-ac-cikis {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.hayvan-tree-card-date {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(43, 43, 43, 0.45);
  margin-bottom: 4px;
}

.hayvan-tree-card-title {
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  color: var(--anthracite, #2b2b2b);
}

.hayvan-tree-card-sub {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 122, 0, 0.92);
}

.hayvan-tree-card-detail {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(43, 43, 43, 0.62);
}

.animal-footnote {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 122, 0, 0.07);
  border: 1px solid rgba(255, 122, 0, 0.14);
  color: rgba(43, 43, 43, 0.68);
  font-size: 0.79rem;
  line-height: 1.45;
}

.animal-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  background: rgba(43, 43, 43, 0.06);
  border: 1px solid rgba(43, 43, 43, 0.1);
  color: rgba(43, 43, 43, 0.72);
}

.animal-table-responsive {
  border-radius: 0 0 12px 12px;
}

.animal-table thead th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(43, 43, 43, 0.5);
  font-weight: 600;
  border-bottom: 1px solid rgba(43, 43, 43, 0.07);
}

.animal-row-open-treatment {
  background: rgba(255, 193, 7, 0.10);
}

.animal-subform {
  padding-left: 12px !important;
  margin-left: 4px;
  border-left: 3px solid rgba(255, 122, 0, 0.32) !important;
}

/* Doğumlar — doğum seyri (radio kartlar) */
.dogum-outcome-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dogum-outcome-stack .dogum-outcome-label {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  border-width: 1.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dogum-outcome-stack .dogum-outcome-hint {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  opacity: 0.82;
  margin-top: 4px;
  white-space: normal;
}

.dogum-outcome-stack .btn-check:checked + .dogum-outcome-label {
  border-color: rgba(255, 122, 0, 0.95) !important;
  background: rgba(255, 122, 0, 0.1) !important;
  color: #1a1a1a !important;
  box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.16);
}

.dogum-outcome-footnote {
  font-size: 0.8rem;
  line-height: 1.45;
}

.animal-heat-list .list-group-item {
  padding: 10px 12px;
}

.animal-form-panel .dash-panel-title {
  font-weight: 700;
}

/* Hayvan listesi — çipler, araç çubuğu, yazdırma */
.hayvan-herd-page {
  margin: 0;
}

.hayvan-herd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hayvan-herd-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: #222;
}

.hayvan-herd-lead {
  font-size: 0.84rem;
  color: rgba(43, 43, 43, 0.58);
  max-width: 52rem;
}

.hayvan-herd-meta-ms::before {
  content: " ";
}

.hayvan-herd-add-btn {
  border-radius: 10px;
  font-weight: 700;
  padding: 0.45rem 1rem;
}

.hayvan-chip-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.hayvan-kpi-strip {
  margin: 0 0 12px;
}

.hayvan-summary {
  margin: 0 0 12px;
}

.hayvan-sum-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.hayvan-sum-head__left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hayvan-sum-head__title {
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(43, 43, 43, 0.72);
}

.hayvan-sum-scope {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hayvan-sum-scope-btn {
  border: 1px solid rgba(43, 43, 43, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: rgba(43, 43, 43, 0.78);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hayvan-sum-scope-btn:hover {
  border-color: rgba(255, 122, 0, 0.35);
}

.hayvan-sum-scope-btn.is-active {
  border-color: rgba(255, 122, 0, 0.55);
  background: rgba(255, 122, 0, 0.10);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.10);
  color: #6b3d00;
}

.hayvan-sum-scope-hint {
  font-size: 0.76rem;
  color: rgba(43, 43, 43, 0.60);
}

/* Hayvan listesi — hızlı filtre (arama yanı; tek satır, etiket içinde düğme yok) */
.hayvan-quick-filter {
  min-height: calc(1.5em + 0.5rem + 2px);
  border-color: rgba(43, 43, 43, 0.14) !important;
}

.hayvan-quick-filter-text {
  background: rgba(255, 255, 255, 0.98);
}

.hayvan-quick-filter-actions {
  background: rgba(246, 247, 249, 0.92);
}

.hayvan-quick-filter .form-check-input {
  cursor: pointer;
}

.hayvan-quick-filter .form-check-input:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* Hayvan listesi araç satırı — arama / hızlı filtre / padok / dışa aktarma hizası */
.hayvan-toolbar--herd {
  overflow: visible;
}

.hayvan-toolbar--herd > .hayvan-toolbar-col {
  min-width: 0;
}

.hayvan-toolbar--herd .hayvan-toolbar-col--quick {
  position: relative;
  z-index: 1;
}

.hayvan-toolbar--herd .farm-padok-filter-wrap {
  max-width: 100%;
}

.hayvan-toolbar--herd .hayvan-export-bar {
  flex-wrap: nowrap;
}

@media (min-width: 992px) {
  .hayvan-toolbar--herd .hayvan-export-bar {
    gap: 0.35rem !important;
  }

  .hayvan-toolbar--herd .hayvan-export-bar .btn-sm {
    padding-left: 0.42rem;
    padding-right: 0.42rem;
    font-size: 0.76rem;
  }
}

.hayvan-help {
  color: rgba(43, 43, 43, 0.55);
  line-height: 1;
}

.hayvan-help:hover {
  color: rgba(255, 122, 0, 0.95);
}

/* Hayvan Listesi — offcanvas quick panel */
.hayvan-offcanvas {
  width: min(720px, 92vw);
}

/* Hayvan kartı — modül geçişi (sol şerit) */
.hayvan-hub-page {
  align-items: flex-start;
}

.hayvan-hub-aside {
  flex: 0 0 auto;
  position: sticky;
  top: 12px;
  z-index: 2;
}

/* Eski hub satırı — geçmiş sayfası artık hayvan-gecmis-workspace kullanır */
.hayvan-gecmis .hayvan-hub-page {
  margin: 0;
}

.hayvan-hub-nav {
  width: min(220px, 100%);
  border-radius: 16px;
  padding: 12px 10px 14px;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 253, 0.97) 100%);
  border: 1px solid rgba(43, 43, 43, 0.09);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 36px -22px rgba(16, 24, 40, 0.18);
}

.hayvan-hub-nav__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 8px 10px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.08);
}

.hayvan-hub-nav__badge {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #ff7a00;
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.22);
  box-shadow: 0 4px 12px -6px rgba(255, 122, 0, 0.45);
}

.hayvan-hub-nav__head-text {
  min-width: 0;
}

.hayvan-hub-nav__kupe {
  display: block;
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
  color: rgba(43, 43, 43, 0.94);
  line-height: 1.2;
}

.hayvan-hub-nav__hint {
  display: block;
  font-size: 0.7rem;
  margin-top: 2px;
  color: rgba(43, 43, 43, 0.5);
}

.hayvan-hub-nav__links {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hayvan-hub-nav__link,
.hayvan-hub-nav__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 7px 8px;
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.78);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.hayvan-hub-nav__link:hover,
.hayvan-hub-nav__btn:hover {
  background: rgba(255, 122, 0, 0.07);
  border-color: rgba(255, 122, 0, 0.14);
  color: rgba(43, 43, 43, 0.95);
}

.hayvan-hub-nav__link.is-active {
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.14) 0%, rgba(255, 122, 0, 0.05) 100%);
  border-color: rgba(255, 122, 0, 0.28);
  color: rgba(43, 43, 43, 0.96);
  box-shadow: inset 3px 0 0 #ff7a00;
}

.hayvan-hub-nav__ico {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: rgba(43, 43, 43, 0.05);
  border: 1px solid rgba(43, 43, 43, 0.07);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hayvan-hub-nav__link.is-active .hayvan-hub-nav__ico {
  background: rgba(255, 122, 0, 0.14);
  border-color: rgba(255, 122, 0, 0.25);
  color: #e56a00;
}

.hayvan-hub-nav__ico--gecmis { color: #0d6efd; background: rgba(13, 110, 253, 0.1); border-color: rgba(13, 110, 253, 0.18); }
.hayvan-hub-nav__ico--kart { color: #ff7a00; background: rgba(255, 122, 0, 0.1); border-color: rgba(255, 122, 0, 0.2); }
.hayvan-hub-nav__ico--tedavi { color: #198754; background: rgba(25, 135, 84, 0.1); border-color: rgba(25, 135, 84, 0.18); }
.hayvan-hub-nav__ico--hastalik { color: #dc3545; background: rgba(220, 53, 69, 0.09); border-color: rgba(220, 53, 69, 0.18); }
.hayvan-hub-nav__ico--kilo { color: #198754; background: rgba(25, 135, 84, 0.1); border-color: rgba(25, 135, 84, 0.18); }
.hayvan-hub-nav__ico--sut { color: #0d6efd; background: rgba(13, 110, 253, 0.1); border-color: rgba(13, 110, 253, 0.18); }
.hayvan-hub-nav__ico--tohum { color: #6f42c1; background: rgba(111, 66, 193, 0.1); border-color: rgba(111, 66, 193, 0.18); }
.hayvan-hub-nav__ico--gebelik { color: #20c997; background: rgba(32, 201, 151, 0.1); border-color: rgba(32, 201, 151, 0.2); }
.hayvan-hub-nav__ico--kizgin { color: #ea580c; background: rgba(234, 88, 12, 0.11); border-color: rgba(234, 88, 12, 0.2); }
.hayvan-hub-nav__ico--cikis { color: rgba(43, 43, 43, 0.65); background: rgba(43, 43, 43, 0.06); border-color: rgba(43, 43, 43, 0.1); }

.hayvan-hub-nav__form {
  margin: 0;
}

.hayvan-hub-nav__btn {
  cursor: pointer;
}

.hayvan-hub-nav__btn--disabled {
  opacity: 0.52;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hub üst gezinme çubuğu */
.hayvan-hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 253, 0.95) 100%);
  box-shadow: 0 8px 24px -18px rgba(16, 20, 28, 0.35);
}

.hayvan-hub-toolbar__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
  font-size: 0.82rem;
}

.hayvan-hub-toolbar__crumb-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgba(43, 43, 43, 0.58);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.12s ease;
}

.hayvan-hub-toolbar__crumb-link:hover {
  color: #ff7a00;
}

.hayvan-hub-toolbar__crumb-link--kupe {
  font-weight: 700;
  color: rgba(43, 43, 43, 0.82);
}

.hayvan-hub-toolbar__sep {
  color: rgba(43, 43, 43, 0.28);
  user-select: none;
}

.hayvan-hub-toolbar__current {
  font-weight: 800;
  color: rgba(43, 43, 43, 0.9);
  letter-spacing: -0.01em;
}

.hayvan-hub-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hayvan-hub-toolbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(43, 43, 43, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(43, 43, 43, 0.78);
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.hayvan-hub-toolbar__btn:hover {
  border-color: rgba(255, 122, 0, 0.35);
  color: rgba(43, 43, 43, 0.92);
  background: rgba(255, 122, 0, 0.06);
}

.hayvan-hub-toolbar__btn--primary {
  background: linear-gradient(135deg, #ff8a1f 0%, #ff7a00 100%);
  border-color: rgba(255, 122, 0, 0.5);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(255, 122, 0, 0.65);
}

.hayvan-hub-toolbar__btn--primary:hover {
  background: linear-gradient(135deg, #ff961f 0%, #e86f00 100%);
  color: #fff;
  border-color: rgba(255, 122, 0, 0.6);
}

@media (max-width: 991.98px) {
  .hayvan-hub-aside {
    position: static;
  }

  .hayvan-hub-nav {
    width: 100%;
  }

  .hayvan-hub-nav__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .hayvan-hub-nav__link,
  .hayvan-hub-nav__btn,
  .hayvan-hub-nav__form {
    flex: 1 1 auto;
    min-width: 148px;
  }

  .hayvan-hub-nav__link.is-active {
    box-shadow: inset 0 -3px 0 #ff7a00;
  }
}

.hayvan-karantina-footer {
  border-top: 1px dashed rgba(43, 43, 43, 0.14);
  margin-top: 1rem;
  padding-top: 1rem;
}

.hayvan-karantina-footer__title {
  letter-spacing: 0.06em;
}

.hayvan-kimlik-panel {
  padding: 2px 2px 8px;
}

.hayvan-kimlik-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.hayvan-kimlik-kupe {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hayvan-kimlik-sub {
  color: rgba(43, 43, 43, 0.64);
  font-weight: 700;
  font-size: 0.88rem;
}

.hayvan-kimlik-dot {
  margin: 0 6px;
  opacity: 0.6;
}

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

@media (max-width: 760px) {
  .hayvan-kimlik-grid { grid-template-columns: 1fr; }
}

.hayvan-kimlik-box {
  border: 1px solid rgba(43, 43, 43, 0.10);
  border-radius: 14px;
  padding: 10px 10px 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.04);
  overflow: hidden;
  position: relative;
}

.hayvan-kimlik-box__title {
  font-weight: 900;
  font-size: 0.86rem;
  color: rgba(43, 43, 43, 0.78);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hayvan-kimlik-kv {
  display: grid;
  gap: 6px;
}

.hayvan-kimlik-kv > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
}

.hayvan-kimlik-kv span {
  color: rgba(43, 43, 43, 0.62);
  font-weight: 700;
}

.hayvan-kimlik-kv strong {
  color: rgba(43, 43, 43, 0.92);
  font-weight: 900;
  text-align: right;
}

.hayvan-kimlik-box--blue::before,
.hayvan-kimlik-box--green::before,
.hayvan-kimlik-box--pink::before,
.hayvan-kimlik-box--orange::before,
.hayvan-kimlik-box--teal::before,
.hayvan-kimlik-box--gray::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.95;
}

.hayvan-kimlik-box--blue::before { background: radial-gradient(700px 160px at 10% 0%, rgba(13,110,253,0.14), transparent 60%); }
.hayvan-kimlik-box--green::before { background: radial-gradient(700px 160px at 10% 0%, rgba(25,135,84,0.14), transparent 60%); }
.hayvan-kimlik-box--pink::before { background: radial-gradient(700px 160px at 10% 0%, rgba(255,0,122,0.10), transparent 60%); }
.hayvan-kimlik-box--orange::before { background: radial-gradient(700px 160px at 10% 0%, rgba(255,122,0,0.14), transparent 60%); }
.hayvan-kimlik-box--teal::before { background: radial-gradient(700px 160px at 10% 0%, rgba(0,193,255,0.12), transparent 60%); }
.hayvan-kimlik-box--gray::before { background: radial-gradient(700px 160px at 10% 0%, rgba(43,43,43,0.10), transparent 60%); }
.hayvan-kimlik-box--indigo::before { background: radial-gradient(700px 160px at 10% 0%, rgba(99, 102, 241, 0.16), transparent 60%); }

.hayvan-kimlik-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
  border-bottom: 1px dashed rgba(79, 70, 229, 0.45);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hayvan-kimlik-link:hover {
  color: #3730a3;
  border-bottom-color: rgba(55, 48, 163, 0.65);
}
.hayvan-kimlik-link__ico { font-size: 0.75rem; opacity: 0.85; }

.hayvan-soy-grid {
  display: grid;
  gap: 0.85rem;
}
.hayvan-soy-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(99, 102, 241, 0.12);
}
.hayvan-soy-item__role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.hayvan-soy-item__value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.hayvan-soy-semen {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #312e81;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.hayvan-soy-item__meta {
  font-size: 0.78rem;
  color: rgba(43, 43, 43, 0.55);
}
.hayvan-soy-item__empty {
  font-weight: 600;
  color: rgba(43, 43, 43, 0.45);
}

.hayvan-miknatis-block {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.06), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(255, 122, 0, 0.18);
}
.hayvan-miknatis-block__head {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}
.hayvan-miknatis-block__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 0, 0.12);
  color: #ea580c;
  flex-shrink: 0;
}
.hayvan-miknatis-block__title {
  font-weight: 700;
  font-size: 0.9rem;
}
.hayvan-miknatis-block__hint {
  font-size: 0.75rem;
  color: rgba(43, 43, 43, 0.55);
  line-height: 1.35;
}

.hayvan-miknatis-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  margin: 0;
}
.hayvan-miknatis-switch__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.hayvan-miknatis-switch__track {
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(43, 43, 43, 0.14);
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.hayvan-miknatis-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.18);
  transition: transform 0.2s ease;
}
.hayvan-miknatis-switch__input:checked + .hayvan-miknatis-switch__track {
  background: linear-gradient(135deg, #ff7a00, #ea580c);
}
.hayvan-miknatis-switch__input:checked + .hayvan-miknatis-switch__track::after {
  transform: translateX(1.25rem);
}
.hayvan-miknatis-switch__input:focus-visible + .hayvan-miknatis-switch__track {
  outline: 2px solid rgba(255, 122, 0, 0.45);
  outline-offset: 2px;
}
.hayvan-miknatis-switch__label {
  font-weight: 700;
  font-size: 0.88rem;
  color: rgba(43, 43, 43, 0.78);
}
.hayvan-miknatis-switch__input:checked ~ .hayvan-miknatis-switch__label {
  color: #c2410c;
}

.hayvan-miknatis-form-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 122, 0, 0.2);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.05), rgba(255, 255, 255, 0.98));
}
.hayvan-miknatis-form-card__copy {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  flex: 1 1 240px;
  max-width: 42rem;
}
.hayvan-miknatis-form-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 0, 0.12);
  color: #ea580c;
  flex-shrink: 0;
}
.hayvan-miknatis-form-switch {
  margin: 0;
  padding-left: 2.75em;
}
.hayvan-miknatis-form-switch .form-check-input {
  width: 2.75em;
  height: 1.4em;
  cursor: pointer;
}
.hayvan-miknatis-form-switch .form-check-input:checked {
  background-color: #ff7a00;
  border-color: #ff7a00;
}
.hayvan-miknatis-form-switch .form-check-label {
  font-weight: 600;
  cursor: pointer;
}

.hayvan-semen-field__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.hayvan-semen-field__badge {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  flex-shrink: 0;
}
.hayvan-semen-field__input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.02em;
}
.hayvan-semen-field__hint {
  color: rgba(43, 43, 43, 0.55);
}

.hayvan-ekle-soy-strip {
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(255, 255, 255, 0.98));
}
.hayvan-ekle-soy-strip__head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}
.hayvan-ekle-soy-strip__ico {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, 0.14);
  color: #4f46e5;
  flex-shrink: 0;
}
.hayvan-ekle-soy-strip__title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}
.hayvan-ekle-soy-strip__sub {
  font-size: 0.8rem;
  color: rgba(43, 43, 43, 0.55);
  line-height: 1.4;
  margin-top: 0.15rem;
}

.hayvan-ekle-soy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .hayvan-ekle-soy-field:first-child {
    padding-right: 1rem;
    border-right: 1px solid rgba(99, 102, 241, 0.14);
  }
  .hayvan-ekle-soy-field:last-child {
    padding-left: 1rem;
  }
}
@media (max-width: 767.98px) {
  .hayvan-ekle-soy-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem 0;
  }
  .hayvan-ekle-soy-field:first-child {
    padding-right: 0;
    border-right: none;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.12);
  }
  .hayvan-ekle-soy-field:last-child {
    padding-left: 0;
    padding-top: 0.15rem;
  }
}
.hayvan-ekle-soy-field {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0;
  min-width: 0;
}
.hayvan-ekle-soy-field__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.75rem;
  margin: 0 0 0.4rem;
  padding: 0;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25;
  color: rgba(43, 43, 43, 0.88);
}
.hayvan-ekle-soy-field__badge {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.hayvan-ekle-soy-field__badge--anne {
  background: rgba(236, 72, 153, 0.12);
  color: #db2777;
}
.hayvan-ekle-soy-field__badge--baba {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}
.hayvan-ekle-soy-field__input {
  width: 100%;
  min-height: calc(1.5em + 0.75rem + 2px);
}
.hayvan-ekle-soy-field__input--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.02em;
}
.hayvan-ekle-soy-field__hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(43, 43, 43, 0.55);
  min-height: 2.65rem;
}
.hayvan-ekle-soy-field .text-danger {
  display: block;
  min-height: 0;
  margin-top: 0.2rem;
}

.hayvan-soy-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}
.hayvan-soy-badge--ok {
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
}
.hayvan-soy-badge--infer {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}
.hayvan-soy-semen--inline {
  font-size: 0.95rem;
}
.hayvan-kimlik-kv--full {
  grid-column: 1 / -1;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(43, 43, 43, 0.1);
}

.hayvan-gebelik-semen-banner {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.65rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 0, 122, 0.06), rgba(255, 255, 255, 0.85));
  border: 1px solid rgba(255, 0, 122, 0.14);
}
.hayvan-gebelik-semen-banner__ico {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 0, 122, 0.1);
  color: #db2777;
  flex-shrink: 0;
}
.hayvan-gebelik-semen-banner__lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(43, 43, 43, 0.55);
}
.hayvan-gebelik-semen-banner__val {
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #9d174d;
  font-size: 1rem;
  line-height: 1.35;
}

/* Hayvan — Kayıt Defteri */
.hayvan-logbook {
  border: 1px solid rgba(43, 43, 43, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.04);
  padding: 12px;
}

.hayvan-logbook-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hayvan-logbook-title {
  font-weight: 900;
  font-size: 0.96rem;
  color: rgba(43, 43, 43, 0.88);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.hayvan-logbook-sub {
  font-weight: 700;
  font-size: 0.78rem;
  color: rgba(43, 43, 43, 0.55);
}

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

.hayvan-logbook-range .btn.is-active {
  border-color: rgba(255, 122, 0, 0.55);
  background: rgba(255, 122, 0, 0.10);
  color: #6b3d00;
  font-weight: 800;
}

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

.hayvan-logbook-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.hayvan-logbook-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.18);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.hayvan-logbook-ico i { font-size: 1.1rem; line-height: 1; color: rgba(255, 122, 0, 0.85); }

/* Type → color mapping */
.hayvan-logbook-ico--tohum { background: rgba(13,110,253,0.14); }
.hayvan-logbook-ico--tohum i { color: rgba(13,110,253,0.92); }

.hayvan-logbook-ico--dogum,
.hayvan-logbook-ico--doguma { background: rgba(25,135,84,0.14); }
.hayvan-logbook-ico--dogum i,
.hayvan-logbook-ico--doguma i { color: rgba(25,135,84,0.92); }

.hayvan-logbook-ico--gebelik { background: rgba(25,135,84,0.14); }
.hayvan-logbook-ico--gebelik i { color: rgba(25,135,84,0.92); }

.hayvan-logbook-ico--kizginlik { background: rgba(220,53,69,0.14); }
.hayvan-logbook-ico--kizginlik i { color: rgba(220,53,69,0.92); }

.hayvan-logbook-ico--sut { background: rgba(111,66,193,0.14); }
.hayvan-logbook-ico--sut i { color: rgba(111,66,193,0.92); }

.hayvan-logbook-ico--kilo { background: rgba(255,122,0,0.14); }
.hayvan-logbook-ico--kilo i { color: rgba(255,122,0,0.92); }

.hayvan-logbook-ico--tedavi { background: rgba(220,53,69,0.12); }
.hayvan-logbook-ico--tedavi i { color: rgba(220,53,69,0.92); }

.hayvan-logbook-ico--tirnak { background: rgba(32,201,151,0.12); }
.hayvan-logbook-ico--tirnak i { color: rgba(32,201,151,0.92); }

.hayvan-logbook-ico--pedo { background: rgba(13,202,240,0.14); }
.hayvan-logbook-ico--pedo i { color: rgba(13,202,240,0.92); }

.hayvan-logbook-ico--gorev { background: rgba(33,37,41,0.10); }
.hayvan-logbook-ico--gorev i { color: rgba(33,37,41,0.82); }

.hayvan-logbook-ico--kayit { background: rgba(255,193,7,0.16); }
.hayvan-logbook-ico--kayit i { color: rgba(255,193,7,0.95); }

.hayvan-logbook-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.hayvan-logbook-name {
  font-weight: 900;
  color: rgba(43, 43, 43, 0.92);
  font-size: 0.90rem;
}

.hayvan-logbook-date {
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(43, 43, 43, 0.55);
  white-space: nowrap;
}

.hayvan-logbook-desc {
  margin-top: 4px;
  display: grid;
  gap: 2px;
  color: rgba(43, 43, 43, 0.68);
  font-size: 0.84rem;
}

.hayvan-logbook-desc__sub { font-weight: 800; color: rgba(43, 43, 43, 0.75); }
.hayvan-logbook-desc__detail { color: rgba(43, 43, 43, 0.62); }

/* Hayvan Defter — sectioned tabs like reference UI */
.hayvan-defter {
  border: 1px solid rgba(43, 43, 43, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.04);
  overflow: hidden;
}

.hayvan-defter-tabs {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.96);
}

.hayvan-defter-tab {
  cursor: pointer;
  user-select: none;
  border: 1px solid rgba(43, 43, 43, 0.10);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(43, 43, 43, 0.78);
  white-space: nowrap;
}

.hayvan-defter-tab.is-active {
  border-color: rgba(255, 122, 0, 0.55);
  background: rgba(255, 122, 0, 0.10);
  color: #6b3d00;
}

.hayvan-defter-pane {
  display: none;
  padding: 10px;
}

.hayvan-defter-pane.is-active {
  display: block;
}

.hayvan-defter-pane[hidden] {
  display: none !important;
}

.hayvan-defter-card {
  border: 1px solid rgba(43, 43, 43, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px;
}

.hayvan-defter-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hayvan-defter-card__title {
  font-weight: 900;
  color: rgba(43, 43, 43, 0.88);
  font-size: 0.92rem;
}

.hayvan-defter .btn-group-sm .btn.is-active {
  border-color: rgba(255, 122, 0, 0.55);
  background: rgba(255, 122, 0, 0.10);
  color: #6b3d00;
  font-weight: 800;
}

.animal-row-due-this {
  background: rgba(25, 135, 84, 0.06);
}

.animal-row-due-next {
  background: rgba(255, 193, 7, 0.08);
}

.animal-row-due-plus2 {
  background: rgba(220, 53, 69, 0.06);
}

.hayvan-sum-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hayvan-sum-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.72rem;
  border: 1px solid rgba(43, 43, 43, 0.10);
  background: rgba(255, 255, 255, 0.96);
  color: rgba(43, 43, 43, 0.76);
}

.hayvan-sum-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(43, 43, 43, 0.22);
}

.hayvan-sum-pill--success::before {
  background: rgba(25, 135, 84, 0.85);
}

.hayvan-sum-pill--warning::before {
  background: rgba(255, 193, 7, 0.90);
}

.hayvan-sum-pill--danger::before {
  background: rgba(220, 53, 69, 0.85);
}

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

@media (max-width: 620px) {
  .hayvan-sum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

.hayvan-sum-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(43, 43, 43, 0.10);
  border-radius: 14px;
  padding: 12px 12px 10px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
  position: relative;
  overflow: hidden;
}

.hayvan-sum-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 160px at 10% 0%, rgba(255, 122, 0, 0.10), transparent 60%);
  pointer-events: none;
}

.hayvan-sum-card--danger::before {
  background: radial-gradient(800px 160px at 10% 0%, rgba(220, 53, 69, 0.14), transparent 60%);
}

.hayvan-sum-card--warning::before {
  background: radial-gradient(800px 160px at 10% 0%, rgba(255, 193, 7, 0.18), transparent 60%);
}

.hayvan-sum-card--success::before {
  background: radial-gradient(800px 160px at 10% 0%, rgba(25, 135, 84, 0.14), transparent 60%);
}

.hayvan-sum-card--info::before {
  background: radial-gradient(800px 160px at 10% 0%, rgba(13, 110, 253, 0.14), transparent 60%);
}

.hayvan-sum-card--brand::before {
  background: radial-gradient(800px 160px at 10% 0%, rgba(255, 122, 0, 0.14), transparent 60%);
}

.hayvan-sum-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: rgba(43, 43, 43, 0.64);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.hayvan-sum-value {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(43, 43, 43, 0.92);
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.hayvan-sum-sub {
  font-size: 0.80rem;
  color: rgba(43, 43, 43, 0.60);
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.hayvan-sum-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(43, 43, 43, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hayvan-sum-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.85);
}

.hayvan-sum-bar__fill--danger {
  background: rgba(220, 53, 69, 0.85);
}

.hayvan-sum-bar__fill--warning {
  background: rgba(255, 193, 7, 0.90);
}

.hayvan-sum-bar__fill--success {
  background: rgba(25, 135, 84, 0.85);
}

.hayvan-sum-bar__fill--info {
  background: rgba(13, 110, 253, 0.85);
}

.hayvan-sum-bar__fill--brand {
  background: rgba(255, 122, 0, 0.90);
}

/* Breakdown card (multiple ratio rows in a single panel) */
.hayvan-sum-card--bd .hayvan-bd-list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.hayvan-bd-row {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(43, 43, 43, 0.86);
}

.hayvan-bd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.85);
  display: inline-block;
}

.hayvan-bd-dot--success { background: rgba(25, 135, 84, 0.9); }
.hayvan-bd-dot--info    { background: rgba(13, 110, 253, 0.9); }
.hayvan-bd-dot--warning { background: rgba(255, 165, 0, 0.95); }
.hayvan-bd-dot--danger  { background: rgba(220, 53, 69, 0.9); }
.hayvan-bd-dot--brand   { background: rgba(255, 122, 0, 0.95); }

.hayvan-bd-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hayvan-bd-value {
  font-weight: 800;
  color: rgba(43, 43, 43, 0.92);
}

.hayvan-bd-count {
  font-size: 0.78rem;
  color: rgba(43, 43, 43, 0.55);
}

.hayvan-sum-inputs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hayvan-sum-input {
  max-width: 160px;
}

.hayvan-sum-clear {
  white-space: nowrap;
}

.hayvan-sum-sub-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.7);
  margin-top: 2px;
}

.hayvan-sum-sub-title i {
  margin-right: 4px;
  color: rgba(255, 122, 0, 0.85);
}

@media (max-width: 620px) {
  .hayvan-kpi-strip {
    margin-bottom: 10px;
  }
}

.hayvan-kpi-strip--top,
.hayvan-kpi-strip--bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .hayvan-kpi-strip--top,
  .hayvan-kpi-strip--bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hayvan-kpi-strip--top,
  .hayvan-kpi-strip--bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hayvan-kpi {
  position: relative;
}

.hayvan-kpi--line::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 9px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--kpi-line, rgba(255, 122, 0, 0.9)), rgba(255, 255, 255, 0));
  opacity: 0.95;
}

.hayvan-kpi .dash-kpi-hint {
  padding-bottom: 12px; /* underline için yer */
}

.hayvan-kpi .dash-kpi-metric {
  font-size: 1.08rem;
}

.hayvan-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hayvan-chip {
  border: 1px solid rgba(43, 43, 43, 0.10);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(43, 43, 43, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.hayvan-chip i {
  font-size: 0.95rem;
  opacity: 0.85;
}

.hayvan-chip strong {
  font-weight: 800;
  margin-left: 2px;
  color: rgba(43, 43, 43, 0.92);
}

.hayvan-chip:hover {
  border-color: rgba(255, 122, 0, 0.35);
}

.hayvan-chip.is-active {
  border-color: rgba(255, 122, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
  background: rgba(255, 122, 0, 0.08);
  color: #6b3d00;
}

.hayvan-chip--all.is-active {
  background: rgba(255, 248, 220, 0.95);
  border-color: rgba(212, 165, 58, 0.45);
}

.hayvan-chip--sagmal {
  background: rgba(173, 216, 230, 0.28);
}

.hayvan-chip--kuru {
  background: rgba(135, 176, 222, 0.28);
}

.hayvan-chip--bos-kuru {
  background: rgba(176, 208, 242, 0.35);
}

.hayvan-chip--bos {
  background: rgba(255, 182, 193, 0.28);
}

.hayvan-chip--tohum {
  background: rgba(244, 165, 193, 0.35);
}

.hayvan-chip--gebe {
  background: rgba(255, 143, 163, 0.34);
}

.hayvan-chip--taze {
  background: rgba(170, 235, 189, 0.42);
}

.hayvan-chip--heat {
  background: rgba(255, 209, 138, 0.42);
}

.hayvan-chip--ill {
  background: rgba(248, 113, 113, 0.22);
}

.hayvan-chip--inek {
  background: rgba(255, 235, 120, 0.42);
}

.hayvan-chip--duve {
  background: rgba(255, 204, 128, 0.42);
}

.hayvan-chip--tosun {
  background: rgba(178, 235, 178, 0.42);
}

.hayvan-chip--dana {
  background: rgba(255, 220, 160, 0.45);
}

.hayvan-chip--calf {
  background: rgba(170, 235, 189, 0.38);
}

.hayvan-chip--wean {
  background: rgba(220, 220, 220, 0.65);
}

.hayvan-chip--passive {
  background: rgba(233, 236, 239, 0.95);
  color: rgba(43, 43, 43, 0.65);
  border-style: dashed;
}

.hayvan-chip--passive strong {
  color: rgba(43, 43, 43, 0.75);
}
.hayvan-chip--type-neutral {
  background: rgba(248, 249, 250, 0.98);
}

.hayvan-chip-type.is-active {
  border-color: rgba(255, 122, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.hayvan-toolbar .farm-padok-dd-trigger {
  min-height: 31px;
  font-size: 0.875rem;
}

.hayvan-search-wrap .input-group-text {
  border-color: rgba(43, 43, 43, 0.12);
}

.hayvan-exp-print {
  background: #3a3f45;
  border-color: #3a3f45;
  color: #fff;
  font-weight: 600;
}

.hayvan-exp-print:hover {
  background: #2f343a;
  border-color: #2f343a;
  color: #fff;
}

.hayvan-exp-pdf {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
  font-weight: 600;
}

.hayvan-exp-pdf:hover {
  background: #a93226;
  border-color: #a93226;
  color: #fff;
}

.hayvan-exp-xls {
  background: #1e8449;
  border-color: #1e8449;
  color: #fff;
  font-weight: 600;
}

.hayvan-exp-xls:hover {
  background: #196f3d;
  border-color: #196f3d;
  color: #fff;
}

.hayvan-exp-csv {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
  font-weight: 600;
}

.hayvan-exp-csv:hover {
  background: #1b5e20;
  border-color: #1b5e20;
  color: #fff;
}

/* Excel Import Button */
.hayvan-excel-import-btn {
  background: linear-gradient(135deg, #2e7d32, #43a047);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25);
}

.hayvan-excel-import-btn:hover {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35);
  transform: translateY(-1px);
}

/* Excel Modal */
.hayvan-excel-modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.hayvan-excel-modal-header {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
  padding: 1.2rem 1.5rem;
  border-bottom: none;
}

.hayvan-excel-modal-header .modal-title {
  font-weight: 800;
  font-size: 1.15rem;
}

.hayvan-excel-modal-desc {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* Excel Tabs */
.hayvan-excel-tabs {
  border-bottom: 2px solid #e8f5e9;
  padding: 0 1rem;
  background: #fafffe;
}

.hayvan-excel-tabs .nav-link {
  border: none;
  color: #666;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.2rem;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.hayvan-excel-tabs .nav-link.active {
  color: #2e7d32;
  border-bottom-color: #2e7d32;
  background: transparent;
}

.hayvan-excel-tabs .nav-link:hover:not(.active) {
  color: #43a047;
  border-bottom-color: #c8e6c9;
}

/* Step indicators */
.hayvan-excel-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hayvan-excel-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.hayvan-excel-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hayvan-excel-step-body h6 {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 2px;
  color: #333;
}

.hayvan-excel-step-body p {
  font-size: 0.82rem;
  color: #777;
  margin-bottom: 6px;
}

.hayvan-excel-template-btn {
  background: #e8f5e9;
  border: 1px dashed #66bb6a;
  color: #2e7d32;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
}

.hayvan-excel-template-btn:hover {
  background: #c8e6c9;
  border-color: #43a047;
  color: #1b5e20;
}

/* Drop zone */
.hayvan-excel-drop-zone {
  border: 2px dashed #c8e6c9;
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fafffe;
  position: relative;
}

.hayvan-excel-drop-zone:hover {
  border-color: #66bb6a;
  background: #f1f8e9;
}

.hayvan-excel-drop-zone--hover {
  border-color: #2e7d32 !important;
  background: #e8f5e9 !important;
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
}

.hayvan-excel-drop-zone--has-file {
  border-color: #43a047;
  border-style: solid;
  background: #f1f8e9;
}

.hayvan-excel-drop-icon {
  font-size: 2.5rem;
  color: #66bb6a;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.hayvan-excel-drop-text {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.3rem;
}

.hayvan-excel-drop-hint {
  font-size: 0.78rem;
  color: #999;
}

/* File info display */
.hayvan-excel-file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #c8e6c9;
}

.hayvan-excel-file-icon {
  font-size: 2rem;
  color: #2e7d32;
  flex-shrink: 0;
}

.hayvan-excel-file-details {
  flex: 1;
  text-align: left;
  min-width: 0;
}

.hayvan-excel-file-name {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hayvan-excel-file-size {
  display: block;
  font-size: 0.78rem;
  color: #888;
}

.hayvan-excel-file-remove {
  border-radius: 8px;
}

/* Info cards */
.hayvan-excel-info-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hayvan-excel-info-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
}

.hayvan-excel-info-card--warn {
  background: #fff8e1;
  color: #f57f17;
  border: 1px solid #ffe082;
}

.hayvan-excel-info-card--info {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}

/* Submit button */
.hayvan-excel-submit-btn {
  background: linear-gradient(135deg, #2e7d32, #43a047);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.5rem 1.4rem;
  transition: all 0.2s;
}

.hayvan-excel-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.3);
}

.hayvan-excel-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: #fff;
}

/* Export cards */
.hayvan-excel-export-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hayvan-excel-export-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  background: #fff;
}

.hayvan-excel-export-card:hover {
  border-color: #c8e6c9;
  background: #f1f8e9;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.1);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}

.hayvan-excel-export-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hayvan-excel-export-card-icon--xlsx {
  background: #e8f5e9;
  color: #2e7d32;
}

.hayvan-excel-export-card-icon--csv {
  background: #e8f5e9;
  color: #43a047;
}

.hayvan-excel-export-card-icon--pdf {
  background: #fce4ec;
  color: #c62828;
}

.hayvan-excel-export-card-body {
  flex: 1;
}

.hayvan-excel-export-card-body h6 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: #333;
}

.hayvan-excel-export-card-body p {
  font-size: 0.82rem;
  color: #888;
  margin: 0;
}

.hayvan-excel-export-card-arrow {
  color: #bbb;
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.hayvan-excel-export-card:hover .hayvan-excel-export-card-arrow {
  color: #2e7d32;
  transform: translateX(3px);
}

.hayvan-link-name {
  font-weight: 600;
  color: #c46200;
  text-decoration: none;
}

.hayvan-link-name--with-ico {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.hayvan-row-ico {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(246, 247, 249, 0.9);
  flex: 0 0 auto;
}

.hayvan-row-ico img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.96;
  filter: drop-shadow(0 6px 10px rgba(16, 20, 28, 0.10));
}

.hayvan-row-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hayvan-link-name:hover {
  color: #a05200;
  text-decoration: underline;
}

.hayvan-ureme-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(43, 43, 43, 0.06);
  border: 1px solid rgba(43, 43, 43, 0.07);
}

.hayvan-ureme-badge--2 {
  background: rgba(255, 193, 7, 0.22);
}

.hayvan-ureme-badge--3 {
  background: rgba(233, 150, 176, 0.28);
}

.hayvan-ureme-badge--4 {
  background: rgba(231, 111, 137, 0.26);
}

.hayvan-ureme-badge--5 {
  background: rgba(142, 179, 224, 0.35);
}

.hayvan-ureme-badge--6 {
  background: rgba(152, 235, 167, 0.42);
}

.hayvan-dogum-gecikme-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  animation: gebelik-pulse 2s ease-in-out infinite;
  vertical-align: middle;
}

tr:has(.hayvan-dogum-gecikme-badge) {
  background: rgba(255, 100, 0, 0.06) !important;
  border-left: 3px solid #ff4d00;
}

.hayvan-status-btn {
  font-weight: 700;
  border-radius: 8px;
  background: rgba(255, 193, 7, 0.55);
  border: 1px solid rgba(212, 165, 58, 0.65);
  color: #4a3800;
}

.hayvan-status-btn:hover {
  background: rgba(255, 193, 7, 0.85);
  border-color: rgba(175, 130, 30, 0.85);
  color: #2d2100;
}

.hayvan-herd-panel {
  border-radius: 14px;
}

.hayvan-table-scroll {
  border-radius: 0 0 12px 12px;
}

.hayvan-herd-table thead th {
  vertical-align: middle;
  white-space: nowrap;
}

.hayvan-th-sort {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(43, 43, 43, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  text-align: left;
}

.hayvan-th-sort:hover {
  color: rgba(255, 122, 0, 0.95);
}

.hayvan-th-sort--center {
  justify-content: center;
  width: 100%;
}

.hayvan-sort-glyph {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  line-height: 1;
  font-size: 0.55rem;
  opacity: 0.42;
  flex-shrink: 0;
}

.hayvan-sort-up,
.hayvan-sort-down {
  display: block;
  margin: -1px 0;
}

.hayvan-th-sort.is-active .hayvan-sort-glyph {
  opacity: 1;
}

.hayvan-sort-up.is-on,
.hayvan-sort-down.is-on {
  color: #c46200;
  opacity: 1;
}

@media print {
  .hayvan-print-hide {
    display: none !important;
  }

  .hayvan-herd-panel {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  .hayvan-link-name {
    color: #000 !important;
    text-decoration: none !important;
  }

  .hayvan-sort-glyph {
    display: none !important;
  }

  .hayvan-th-sort {
    cursor: default;
    color: #222 !important;
  }
}

.hayvan-form-card.dash-panel {
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 36px -24px rgba(16, 20, 28, 0.4);
}

.hayvan-form-card .dash-panel-header {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.06) 0%, rgba(255, 255, 255, 0) 55%);
}

.hayvan-form-card .hayvan-form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(43, 43, 43, 0.5);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.07);
}

.hayvan-form-card .hayvan-form-section-title::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 99px;
  background: linear-gradient(180deg, #ff8a1f, #ff7a00);
  flex-shrink: 0;
}

.hayvan-form-card .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.68);
  margin-bottom: 5px;
}

.hayvan-form-card .form-control,
.hayvan-form-card .form-select {
  border-radius: 11px;
  border-color: rgba(43, 43, 43, 0.12);
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hayvan-form-card .form-control:focus,
.hayvan-form-card .form-select:focus {
  border-color: rgba(255, 122, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.14);
}

.hayvan-form-card .hayvan-save-btn {
  font-weight: 800;
  border-radius: 12px;
  padding: 0.55rem 1.35rem;
  box-shadow: 0 8px 20px -10px rgba(255, 122, 0, 0.65);
}

.hayvan-form-card .hayvan-form-actions .btn-outline-secondary {
  border-radius: 12px;
  font-weight: 600;
}

/* Hayvan ekle — sürüye giriş ve üreme durumu kartları */
.hayvan-ekle-page .hayvan-ekle-lead {
  font-size: 0.82rem;
  color: rgba(43, 43, 43, 0.62);
  margin: 0;
  max-width: 52rem;
}

.hayvan-ekle-hint-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(160, 82, 0, 0.1);
  color: #a05200;
  border: 1px solid rgba(160, 82, 0, 0.18);
}

.hayvan-ekle-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hayvan-ekle-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(43, 43, 43, 0.1);
  background: #fff;
  color: rgba(43, 43, 43, 0.85);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.hayvan-ekle-chip:hover {
  border-color: rgba(160, 82, 0, 0.35);
  background: rgba(160, 82, 0, 0.04);
}

.hayvan-ekle-chip.is-active {
  border-color: #a05200;
  background: rgba(160, 82, 0, 0.1);
  box-shadow: 0 0 0 1px rgba(160, 82, 0, 0.15);
  color: #7a3e00;
}

.hayvan-ekle-chip .bi {
  font-size: 1.1rem;
  opacity: 0.85;
}

.hayvan-ekle-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
}

.hayvan-ekle-callout--info {
  background: rgba(13, 110, 253, 0.07);
  border: 1px solid rgba(13, 110, 253, 0.15);
  color: rgba(43, 43, 43, 0.88);
}

.hayvan-ekle-callout--info > .bi {
  color: #0d6efd;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.hayvan-ekle-ureme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.hayvan-ekle-ureme-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1.5px solid rgba(43, 43, 43, 0.09);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.hayvan-ekle-ureme-card:hover {
  border-color: rgba(43, 43, 43, 0.2);
  transform: translateY(-1px);
}

.hayvan-ekle-ureme-card.is-active {
  border-color: #a05200;
  box-shadow: 0 4px 14px rgba(160, 82, 0, 0.12);
}

.hayvan-ekle-ureme-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 1rem;
}

.hayvan-ekle-ureme-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(43, 43, 43, 0.92);
}

.hayvan-ekle-ureme-card-desc {
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(43, 43, 43, 0.5);
}

.hayvan-ekle-detail {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(43, 43, 43, 0.03);
  border: 1px dashed rgba(43, 43, 43, 0.1);
}

/* Gebelik takibi — düzenleme modalı */
.gebelik-edit-modal .modal-content {
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.gebelik-edit-sonuc-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gebelik-edit-sonuc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(43, 43, 43, 0.1);
  background: #fff;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  margin: 0;
  transition: border-color 0.15s, background 0.15s;
}

.gebelik-edit-sonuc input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gebelik-edit-sonuc:has(input:checked) {
  border-color: #a05200;
  background: rgba(160, 82, 0, 0.08);
}

.gebelik-edit-sonuc--poz:has(input:checked) {
  border-color: #198754;
  background: rgba(25, 135, 84, 0.08);
  color: #146c43;
}

.gebelik-edit-sonuc--neg:has(input:checked) {
  border-color: rgba(43, 43, 43, 0.25);
  background: rgba(43, 43, 43, 0.05);
}

.gebelik-edit-sonuc .bi {
  font-size: 1.1rem;
}

/* Son doğum durumu — ana liste ve kartlar */
.hayvan-son-dogum {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
  max-width: 11rem;
  white-space: normal;
  text-align: center;
}

.hayvan-son-dogum--normal {
  background: rgba(25, 135, 84, 0.12);
  color: #146c43;
  border: 1px solid rgba(25, 135, 84, 0.22);
}

.hayvan-son-dogum--zor {
  background: rgba(255, 193, 7, 0.2);
  color: #856404;
  border: 1px solid rgba(255, 193, 7, 0.35);
}

.hayvan-son-dogum--olum {
  background: rgba(220, 53, 69, 0.1);
  color: #842029;
  border: 1px solid rgba(220, 53, 69, 0.22);
}

.hayvan-son-dogum--neutral {
  background: rgba(43, 43, 43, 0.06);
  color: rgba(43, 43, 43, 0.75);
  border: 1px solid rgba(43, 43, 43, 0.1);
}

.ureme-card-son-dogum .hayvan-son-dogum {
  max-width: none;
}

/* =====================================================================
   Süt yönetimi — pedometre / hayvan ile aynı kompakt tipografi ve turuncu vurgu
   ===================================================================== */

@media print {
  .sut-print-hide {
    display: none !important;
  }
}

.sut-page {
  margin: 0;
}

.sut-alert {
  border-radius: 10px;
  font-size: 0.82rem;
}

.sut-meta-line {
  font-size: 0.78rem;
  color: rgba(43, 43, 43, 0.55);
  margin: 0;
}

/* Üst sekme çubuğu — pedo-tabs ile paralel */
.sut-tabs-wrap {
  margin: 0 0 8px;
  -webkit-overflow-scrolling: touch;
}

.sut-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.sut-tabs::-webkit-scrollbar { display: none; }

.sut-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(43, 43, 43, 0.09);
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  color: rgba(43, 43, 43, 0.72);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}

.sut-tab i { font-size: 0.9rem; opacity: 0.88; }

.sut-tab:hover {
  border-color: rgba(255, 122, 0, 0.28);
  color: rgba(43, 43, 43, 0.9);
}

.sut-tab.is-active {
  background: rgba(255, 122, 0, 0.10);
  border-color: rgba(255, 122, 0, 0.26);
  color: #985000;
}

/* Alt sekme satırı — çiğ süt özeti / listeler */
.sut-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

.sut-sub {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(43, 43, 43, 0.1);
  color: rgba(43, 43, 43, 0.6);
  background: rgba(246, 247, 249, 0.75);
}

.sut-sub:hover {
  border-color: rgba(255, 122, 0, 0.35);
  color: rgba(43, 43, 43, 0.88);
}

.sut-sub.is-active {
  border-color: rgba(255, 122, 0, 0.45);
  background: rgba(255, 122, 0, 0.12);
  color: var(--anthracite);
}

.sut-kpi {
  border-radius: 11px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px -16px rgba(16, 20, 28, 0.3);
}

.sut-kpi--main {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  min-height: 88px;
  align-items: center;
}

.sut-kpi-ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.sut-kpi-ico--droplet {
  background: rgba(13, 110, 253, 0.10);
  color: rgba(13, 110, 253, 0.88);
}

.sut-kpi-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.5);
  display: block;
}

.sut-kpi-val {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.08;
}

.sut-kpi-val--accent { color: rgba(13, 110, 253, 0.92); }

.sut-kpi-hint {
  font-size: 0.71rem;
  color: rgba(43, 43, 43, 0.5);
}

.sut-kpi--calf {
  padding: 9px 11px;
  background: rgba(255, 122, 0, 0.12);
  border-color: rgba(255, 122, 0, 0.2);
}

.sut-kpi--waste {
  padding: 9px 11px;
  background: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.16);
}

.sut-kpi-lbl-sm {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.55);
  display: block;
}

.sut-kpi-num {
  font-size: 1.02rem;
  font-weight: 800;
  color: rgba(43, 43, 43, 0.9);
}

.sut-kpi-num--pink { color: rgba(214, 45, 70, 0.95); }

.sut-mini-h {
  font-size: 0.68rem;
  color: rgba(43, 43, 43, 0.45);
}

.sut-econ-panel {
  border-radius: 12px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px -20px rgba(16, 20, 28, 0.32);
  padding: 11px 12px;
}

.sut-econ-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(43, 43, 43, 0.75);
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sut-chip {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.22);
}

.sut-econ-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.sut-econ-item {
  border-radius: 9px;
  padding: 7px 9px;
  border: 1px solid rgba(43, 43, 43, 0.07);
  background: rgba(13, 110, 253, 0.08);
}

.sut-econ-item--muted {
  background: rgba(246, 247, 249, 0.85);
}

.sut-econ-item--ok {
  background: rgba(23, 160, 90, 0.1);
  border-color: rgba(23, 160, 90, 0.18);
}

.sut-econ-item--vio {
  background: rgba(157, 88, 255, 0.08);
}

.sut-econ-item .e-lbl {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.5);
}

.sut-econ-item .e-val {
  font-weight: 800;
  font-size: 0.88rem;
  color: rgba(43, 43, 43, 0.9);
}

.sut-econ-item .e-val--accent {
  color: rgba(255, 122, 0, 0.95);
}

.sut-panel-title-accent {
  color: rgba(23, 160, 90, 0.95) !important;
  font-size: var(--fs-md, 1rem) !important;
  font-weight: 700 !important;
}

.sut-badge-soft {
  font-size: 0.72rem;
  font-weight: 600;
}

.sut-fl {
  font-size: 0.7rem !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600 !important;
  margin-bottom: 3px !important;
  color: rgba(43, 43, 43, 0.5) !important;
}

.sut-form-panel .dash-panel-header {
  padding: 11px 14px;
}

.sut-sales-table thead th {
  font-size: 0.71rem !important;
  text-transform: uppercase;
}

.sut-tfoot-row {
  background: rgba(246, 247, 249, 0.55);
}

.sut-fl-total { font-weight: 600; font-size: 0.8rem; color: rgba(43, 43, 43, 0.65); }
.sut-fl-total-small { font-size: 0.72rem; }

.sut-list-panel .dash-panel-title {
  font-size: 0.94rem !important;
  font-weight: 700 !important;
}

.sut-list-head {
  flex-wrap: wrap;
  gap: 8px !important;
  align-items: flex-start !important;
}

.sut-record-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.5);
}

.sut-list-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.sut-list-ico--blue {
  background: rgba(13, 110, 253, 0.12);
  color: rgba(13, 110, 253, 0.9);
}

.sut-list-ico--danger {
  background: rgba(220, 53, 69, 0.12);
  color: rgba(220, 53, 69, 0.9);
}

.sut-data-table thead th {
  padding-top: 0.58rem !important;
  padding-bottom: 0.48rem !important;
}

.sut-detail-cell .muted {
  opacity: 0.55;
  font-weight: 500;
}

.sut-tiny { font-size: 0.74rem !important; }

.sut-actions {
  white-space: nowrap;
}

.sut-accent-soft {
  color: rgba(196, 100, 20, 0.95);
  font-weight: 700;
}

.sut-empty-big-ico {
  font-size: 2.75rem;
  color: rgba(43, 43, 43, 0.12);
}

.sut-empty-big .sut-empty-desc {
  max-width: 360px;
  margin-inline: auto;
}

.sut-imha-lit {
  font-size: 0.92rem;
}

.sut-placeholder-text {
  max-width: 52ch;
  line-height: 1.5;
}

.sut-list-ico--shop {
  background: rgba(255, 122, 0, 0.14);
  color: rgba(152, 80, 0, 0.95);
}

.sut-list-ico--lab {
  background: rgba(13, 110, 253, 0.12);
  color: rgba(38, 90, 200, 0.95);
}

.sut-side-hint {
  border-radius: 12px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  box-shadow: 0 12px 32px -26px rgba(16, 20, 28, 0.28);
}

.sut-side-hint-title {
  font-weight: 800;
  font-size: 0.82rem;
  color: rgba(43, 43, 43, 0.68);
  margin-bottom: 6px;
}

.sut-side-hint--shop {
  background: linear-gradient(162deg, rgba(255, 122, 0, 0.08) 0%, rgba(255, 255, 255, 0.94) 60%);
}

.sut-side-hint--lab {
  background: linear-gradient(170deg, rgba(13, 110, 253, 0.07) 0%, rgba(255, 255, 255, 0.94) 55%);
}

.sut-report-filter {
  border-radius: 12px;
}

.sut-report-form .form-control {
  min-width: 146px;
}

.sut-report-kpis .sut-kpi.h-100 {
  min-height: 96px !important;
}

/* Süt raporları — pano kartları ve grafikler */
.sut-dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 991.98px) {
  .sut-dash-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .sut-dash-kpi-row {
    grid-template-columns: 1fr;
  }
}

.sut-dash-kpi {
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 251, 0.92) 100%);
  box-shadow: 0 10px 28px -22px rgba(16, 20, 28, 0.45);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 96px;
}

.sut-dash-kpi-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.sut-dash-kpi-ico--milk {
  background: rgba(35, 137, 218, 0.12);
  color: #1a6fb3;
}

.sut-dash-kpi-ico--tl {
  background: rgba(23, 160, 90, 0.14);
  color: #137a45;
}

.sut-dash-kpi-ico--avg {
  background: rgba(23, 160, 90, 0.1);
  color: #1b7d4b;
}

.sut-dash-kpi-ico--peak {
  background: rgba(255, 122, 0, 0.14);
  color: #b55a00;
}

.sut-dash-kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(43, 43, 43, 0.5);
}

.sut-dash-kpi-value {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  color: #222;
}

.sut-dash-kpi-value--accent {
  color: #2389da;
}

.sut-dash-kpi-value--money {
  color: #157347;
}

.sut-dash-kpi-value--warm {
  color: #984b00;
}

.sut-dash-kpi-hint {
  font-size: 0.72rem;
  color: rgba(43, 43, 43, 0.48);
  margin-top: 2px;
}

.sut-dash-insights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.sut-dash-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(43, 43, 43, 0.1);
  background: rgba(255, 255, 255, 0.94);
}

.sut-dash-pill--up {
  border-color: rgba(23, 160, 90, 0.35);
  background: rgba(23, 160, 90, 0.08);
  color: #0d5730;
}

.sut-dash-pill--down {
  border-color: rgba(220, 53, 69, 0.28);
  background: rgba(220, 53, 69, 0.08);
  color: #8f1f2b;
}

.sut-dash-pill--muted {
  color: rgba(43, 43, 43, 0.6);
}

.sut-dash-chart-card {
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 36px -28px rgba(16, 20, 28, 0.4);
}

.sut-dash-chart-head {
  padding: 12px 14px 4px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
}

.sut-dash-chart-title {
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.sut-dash-chart-desc {
  font-size: 0.72rem;
  color: rgba(43, 43, 43, 0.5);
  margin: 2px 0 0;
}

.sut-dash-chart-body {
  padding: 12px;
  position: relative;
  min-height: 220px;
}

.sut-dash-chart-body--compact {
  min-height: 200px;
}

.sut-dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.sut-dash-toolbar .btn {
  font-weight: 600;
  border-radius: 9px;
  font-size: 0.75rem;
}

.sut-sort-th {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(43, 43, 43, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.sut-sort-th:hover {
  color: rgba(255, 122, 0, 0.92);
}

.sut-sort-glyphs {
  display: inline-flex;
  flex-direction: column;
  font-size: 0.52rem;
  line-height: 1;
  opacity: 0.45;
}

.sut-sort-th.is-active .sut-sort-glyphs {
  opacity: 1;
}

.sut-sort-up.is-on,
.sut-sort-down.is-on {
  color: #c46200;
}

.sut-cal-toolbar {
  border-radius: 12px;
  overflow: hidden;
}

.sut-cal-month-title {
  font-size: 0.94rem;
  color: rgba(43, 43, 43, 0.78);
}

.sut-cal-sub {
  max-width: 56ch;
  line-height: 1.45;
}

.sut-cal-shell {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(43, 43, 43, 0.07);
  background: rgba(255, 255, 255, 0.96);
}

.sut-cal-head {
  padding: 2px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
  background: rgba(246, 247, 249, 0.55);
}

.sut-cal-head-cell {
  padding: 7px 2px !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.04em !important;
}

.sut-cal-grid {
  padding: 4px 2px 6px;
}

.sut-cal-slot {
  flex: 0 0 14.285714%;
  max-width: 14.285714%;
}

.sut-cal-cell {
  min-height: 78px;
  border: 1px solid rgba(43, 43, 43, 0.07);
  border-radius: 10px;
  margin: 3px;
  padding: 5px 6px;
  background: rgba(253, 254, 255, 0.95);
  display: flex;
  flex-direction: column;
}

.sut-cal-cell--hot {
  border-color: rgba(255, 122, 0, 0.35);
  background: rgba(255, 248, 237, 0.78);
  box-shadow: 0 12px 28px -24px rgba(255, 122, 0, 0.55);
}

.sut-cal-cell--pad {
  border: none;
  visibility: hidden;
  min-height: 78px;
  margin: 3px;
  padding: 0;
  background: transparent;
}

.sut-cal-dayline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.sut-cal-daynum {
  font-weight: 800;
  font-size: 0.88rem;
  color: rgba(43, 43, 43, 0.75);
}

.sut-cal-micro {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(23, 160, 90, 0.95);
}

.sut-cal-tags {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.sut-cal-tag {
  font-size: 0.62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 7px;
  line-height: 1.1;
}

.sut-cal-tag--milk {
  background: rgba(13, 110, 253, 0.13);
  color: rgba(32, 80, 205, 0.95);
}

.sut-cal-tag--shop {
  background: rgba(255, 122, 0, 0.14);
  color: #984d00;
}

.sut-cal-tag--lab {
  background: rgba(23, 160, 90, 0.12);
  color: rgba(21, 110, 73, 0.98);
}

.sut-cal-legend {
  margin-bottom: 0.5rem !important;
}

@media (max-width: 576px) {
  .sut-cal-cell {
    min-height: 70px;
    margin: 2px;
    padding: 4px;
  }

  .sut-cal-micro {
    display: none;
  }
}

/* Pedometre modülü — turuncu ana tema ile uyumlu, kompakt */
.pedo-page {
  margin: 0;
}

.pedo-alert {
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.pedo-tabs-wrap {
  margin: 0 0 10px;
  -webkit-overflow-scrolling: touch;
}

.pedo-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 2px;
  margin: 0;
  scrollbar-width: none;
}

.pedo-tabs::-webkit-scrollbar {
  display: none;
}

.pedo-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(43, 43, 43, 0.09);
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  color: rgba(43, 43, 43, 0.74);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}

.pedo-tab i {
  font-size: 0.9rem;
  opacity: 0.85;
}

.pedo-tab:hover {
  border-color: rgba(255, 122, 0, 0.28);
  color: rgba(43, 43, 43, 0.9);
}

.pedo-tab.is-active {
  background: rgba(255, 122, 0, 0.10);
  border-color: rgba(255, 122, 0, 0.24);
  color: #985000;
}

.pedo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pedo-toolbar-text {
  margin: 0;
  max-width: 52ch;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(43, 43, 43, 0.58);
}

.pedo-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pedo-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.pedo-mini-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--anthracite);
  letter-spacing: -0.01em;
}

.pedo-mini-text {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(43, 43, 43, 0.6);
}

.pedo-split-pane {
  padding: 0;
}

@media (min-width: 992px) {
  .pedo-split-pane:first-child {
    border-right: 1px solid rgba(43, 43, 43, 0.07);
  }
}

@media (max-width: 991.98px) {
  .pedo-split-pane--second {
    border-top: 1px solid rgba(43, 43, 43, 0.07);
  }
}

.pedo-check--compact {
  gap: 4px;
}

.pedo-check--compact .pedo-check-item {
  font-size: 0.79rem;
  font-weight: 500;
}

.pedo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pedo-title {
  font-weight: 800;
  font-size: 1.125rem;
  margin: 0 0 4px;
  color: var(--anthracite);
  letter-spacing: -0.012em;
}

.pedo-lead {
  font-size: 0.82rem;
  max-width: 58ch;
  color: rgba(43, 43, 43, 0.6);
}

.pedo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pedo-kpi {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px -14px rgba(16, 20, 28, 0.4);
  min-height: unset;
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 5px;
}

.pedo-kpi:hover {
  border-color: rgba(255, 122, 0, 0.22);
  color: inherit;
}

.pedo-kpi--cta {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.11), rgba(255, 255, 255, 0.96));
}

.pedo-kpi--heat {
  border-color: rgba(157, 88, 255, 0.20);
}

.pedo-kpi--health {
  border-color: rgba(23, 160, 90, 0.16);
}

.pedo-kpi--warn {
  border-color: rgba(255, 193, 7, 0.22);
}

.pedo-kpi-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(43, 43, 43, 0.5);
}

.pedo-kpi-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(43, 43, 43, 0.9);
  line-height: 1.05;
}

.pedo-kpi-sub {
  font-size: 0.76rem;
  color: rgba(43, 43, 43, 0.55);
}

.pedo-check {
  display: grid;
  gap: 8px;
}

.pedo-check-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.8);
}

.pedo-check-item i {
  color: rgba(23, 160, 90, 0.88);
  flex-shrink: 0;
  margin-top: 2px;
}

.pedo-meter {
  display: inline-flex;
  min-width: 32px;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(43, 43, 43, 0.09);
  background: rgba(255, 122, 0, 0.09);
  font-weight: 700;
  font-size: 0.8rem;
}

.pedo-meter--rum {
  background: rgba(23, 160, 90, 0.11);
}

.pedo-meter--feed {
  background: rgba(255, 193, 7, 0.14);
}

.pedo-meter--rest {
  background: rgba(43, 43, 43, 0.06);
}

.pedo-row-heat {
  background: rgba(157, 88, 255, 0.05);
}

.pedo-row-health {
  background: rgba(23, 160, 90, 0.04);
}

.pedo-sev {
  font-weight: 700;
}

.pedo-report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.pedo-report-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 2px;
  color: var(--anthracite);
  letter-spacing: -0.01em;
}

.pedo-report-meta {
  font-size: 0.78rem;
}

.pedo-stat {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px -14px rgba(16, 20, 28, 0.4);
  min-height: unset;
  display: grid;
  gap: 4px;
}

.pedo-stat--rum {
  border-color: rgba(23, 160, 90, 0.16);
}

.pedo-stat--temp {
  border-color: rgba(255, 193, 7, 0.18);
}

.pedo-stat--wl {
  border-color: rgba(255, 122, 0, 0.18);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.08), rgba(255, 255, 255, 0.96));
}

.pedo-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(43, 43, 43, 0.5);
}

.pedo-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(43, 43, 43, 0.9);
  line-height: 1.05;
}

.pedo-stat-sub {
  font-size: 0.76rem;
  color: rgba(43, 43, 43, 0.55);
}

.pedo-spark-wrap {
  padding: 8px 12px 10px;
}

.pedo-spark {
  width: 100%;
  height: auto;
  display: block;
}

.pedo-spark-legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px;
  margin-top: 6px;
  font-size: 0.74rem;
  color: rgba(43, 43, 43, 0.55);
}

.pedo-spark-empty {
  font-size: 0.79rem;
  line-height: 1.45;
  color: rgba(43, 43, 43, 0.58);
}

/* Genel liste: grafik kartı + filtreler (turuncu tema, kompakt) */
.pedo-chart-panel-head {
  flex-direction: column;
  align-items: stretch !important;
  gap: 10px;
}

.pedo-chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.pedo-range-seg {
  flex-wrap: wrap;
}

.pedo-chart-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pedo-chart-dt {
  display: grid;
  gap: 4px;
  margin: 0;
  min-width: 0;
}

.pedo-chart-dt-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(43, 43, 43, 0.52);
}

.pedo-chart-dt .form-control-sm {
  min-width: 170px;
}

.pedo-chart-canvas-wrap {
  padding: 14px 16px 18px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(43, 43, 43, 0.06);
  background: rgba(246, 247, 249, 0.35);
}

.pedo-chart-placeholder {
  max-width: 48ch;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(43, 43, 43, 0.55);
}

.pedo-chart-placeholder--ok {
  color: rgba(43, 43, 43, 0.62);
}

.pedo-filter-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.5);
  margin-bottom: 4px;
}

/* Padok filtresi — sabit seçenekli açılır menü (Tüm Padoklar / Genel / Sağmal / Kuru) */
.farm-padok-filter-wrap {
  min-width: 0;
}

.farm-padok-filter-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.5);
  margin-bottom: 4px;
}

.farm-padok-dd-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid rgba(43, 43, 43, 0.12);
  border-radius: 10px;
  padding: 0.32rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--anthracite);
  line-height: 1.35;
}

.farm-padok-dd-trigger:hover {
  border-color: rgba(43, 43, 43, 0.16);
}

.farm-padok-dd-trigger:focus {
  outline: 0;
  border-color: rgba(255, 122, 0, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(255, 122, 0, 0.18);
}

.farm-padok-dd-caret {
  font-size: 0.7rem;
  opacity: 0.45;
  flex-shrink: 0;
}

.farm-padok-dd-selected {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.farm-padok-dd-menu {
  width: calc(100% + 2px);
  min-width: 100%;
  border-radius: 10px !important;
  margin-top: 4px !important;
  padding: 4px !important;
  border-color: rgba(43, 43, 43, 0.1) !important;
  z-index: 1085;
}

.farm-padok-dd-menu .farm-padok-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.42rem 0.65rem;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  color: rgba(43, 43, 43, 0.85);
}

.farm-padok-dd-menu .farm-padok-opt:hover,
.farm-padok-dd-menu .farm-padok-opt:focus {
  background: rgba(230, 236, 243, 0.75);
  color: var(--anthracite);
}

.farm-padok-dd-menu .farm-padok-opt.active {
  background: rgba(230, 236, 243, 0.95);
  color: var(--anthracite);
}

.farm-padok-check {
  font-size: 0.88rem;
  width: 1rem;
  flex-shrink: 0;
  color: rgba(43, 43, 43, 0.55);
}

.pedo-filters .input-group-text {
  border-color: rgba(43, 43, 43, 0.1);
}

.pedo-list-table thead th {
  font-size: 0.72rem;
}

.pedo-durum {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.pedo-durum--takili {
  background: rgba(255, 122, 0, 0.1);
  border-color: rgba(255, 122, 0, 0.22);
  color: #985000;
}

.pedo-durum--bos {
  background: rgba(43, 43, 43, 0.05);
  border-color: rgba(43, 43, 43, 0.1);
  color: rgba(43, 43, 43, 0.65);
}

.pedo-durum--pasif {
  background: rgba(108, 117, 125, 0.08);
  border-color: rgba(108, 117, 125, 0.2);
  color: rgba(43, 43, 43, 0.52);
}

@media (max-width: 768px) {
  .pedo-chart-dt .form-control-sm {
    width: 100%;
  }
}

.pedo-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid rgba(43, 43, 43, 0.10);
  background: rgba(246, 247, 249, 0.8);
  white-space: pre;
  overflow: auto;
}

/* =====================================================================
   GLOBAL TYPOGRAPHY & SPACING SYSTEM (sayfaları profesyonel tonda
   tutmak için en sonda, her şeyi geçersiz kılacak şekilde tanımlandı)
   ===================================================================== */

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  --fs-xs: 0.78rem;     /* meta, etiket */
  --fs-sm: 0.85rem;     /* yardımcı metin */
  --fs-base: 0.95rem;   /* gövde */
  --fs-md: 1.0rem;      /* küçük başlık */
  --fs-lg: 1.125rem;    /* panel başlığı */
  --fs-xl: 1.25rem;     /* sayfa başlığı */
  --fs-2xl: 1.5rem;     /* ekran başlığı (büyük) */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 800;
}

html {
  font-size: 15px;
}

@media (min-width: 1280px) {
  html {
    font-size: 15.5px;
  }
}

body,
body.dash-body,
.auth-body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11", "kern";
  font-size: var(--fs-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--anthracite);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-sans);
  letter-spacing: -0.012em;
  color: var(--anthracite);
  margin-bottom: 0.4rem;
}

h1, .h1 { font-size: var(--fs-2xl); font-weight: var(--fw-heavy); line-height: 1.2; }
h2, .h2 { font-size: var(--fs-xl);  font-weight: var(--fw-bold);  line-height: 1.25; }
h3, .h3 { font-size: var(--fs-lg);  font-weight: var(--fw-bold);  line-height: 1.3; }
h4, .h4 { font-size: var(--fs-md);  font-weight: var(--fw-semibold); line-height: 1.35; }
h5, .h5 { font-size: 0.95rem;       font-weight: var(--fw-semibold); }
h6, .h6 { font-size: 0.88rem;       font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.06em; }

.lead { font-size: 1.0rem; font-weight: 400; color: rgba(43, 43, 43, 0.72); }
small, .small { font-size: var(--fs-sm); }
strong, b { font-weight: var(--fw-bold); }

.form-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: rgba(43, 43, 43, 0.78);
  margin-bottom: 4px;
}

.form-control,
.form-select {
  font-size: var(--fs-base);
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
}

.form-control-lg,
.form-select-lg {
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
}

.btn {
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
  border-radius: 10px;
}

.btn-sm { font-size: 0.82rem; padding: 0.32rem 0.6rem; }
.btn-lg { font-size: 1rem; padding: 0.65rem 1rem; }

.badge {
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
}

.table {
  font-size: 0.92rem;
}

.table tbody td {
  color: rgba(43, 43, 43, 0.86);
}

.table thead th {
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(43, 43, 43, 0.62);
  border-bottom-width: 1px;
  padding-top: 0.65rem;
  padding-bottom: 0.55rem;
}

.text-muted { color: rgba(43, 43, 43, 0.6) !important; }

/* Bootstrap .text-bg-* bazen opaklık/tema override'larıyla soluk kalabiliyor.
   Okunabilirlik için admin/dashboard tablolarında net renkler kullan. */
.text-bg-success { color: #fff !important; background-color: #198754 !important; }
.text-bg-danger { color: #fff !important; background-color: #dc3545 !important; }
.text-bg-secondary { color: #fff !important; background-color: #6c757d !important; }
.text-bg-warning { color: #1f1f1f !important; background-color: #ffc107 !important; }

/* ---- Tipografi düşürme: ana başlıklar ---- */
.dash-page-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-heavy);
  letter-spacing: -0.012em;
  line-height: 1.2;
}

.dash-page-subtitle {
  font-size: var(--fs-sm);
  color: rgba(43, 43, 43, 0.62);
  margin-top: 1px;
}

.dash-panel-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  letter-spacing: -0.005em;
}

.dash-panel-subtitle {
  font-size: var(--fs-sm);
  color: rgba(43, 43, 43, 0.6);
}

.dash-panel-header {
  padding: 12px 16px;
}

.dash-banner {
  border-radius: 0;
  padding: 10px 22px;
}

.dash-banner-title { font-size: 0.92rem; font-weight: var(--fw-bold); }
.dash-banner-sub   { font-size: 0.84rem; }

/* ---- Profilim ---- */
.profile-card-title { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.profile-card-sub   { font-size: var(--fs-sm); }
.profile-section-title {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: var(--fw-semibold);
}
.profile-chip { font-size: 0.78rem; padding: 4px 10px; }

/* ---- Hayvan — pedo ile aynı ölçek (ana blok site.css’te; burada ince ayar) ---- */
.animal-page-title {
  font-size: 1.05rem;
  font-weight: var(--fw-heavy);
}

/* ---- Auth ekranları ---- */
.auth-brandtitle { font-size: 1.2rem; font-weight: var(--fw-heavy); }
.auth-chip       { font-size: 0.82rem; padding: 6px 10px; font-weight: var(--fw-semibold); }
.auth-form h1, .auth-form .h1 { font-size: 1.3rem; font-weight: var(--fw-heavy); }
.auth-form { padding: 22px; border-radius: 18px; }

/* ---- Kart / panel görsel temizlik ---- */
.dash-panel { border-radius: 14px; box-shadow: 0 8px 24px -18px rgba(16, 20, 28, 0.40); }
.dash-content { padding: 18px; }

.hayvan-hub-return-strip {
  border-radius: 14px;
  border: 1px solid rgba(255, 122, 0, 0.22);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.09) 0%, rgba(255, 255, 255, 0.94) 58%);
  box-shadow: 0 8px 22px -16px rgba(16, 20, 28, 0.35);
}

.hayvan-hub-return-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  padding: 8px 10px;
}

.hayvan-hub-return-strip__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(43, 43, 43, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: rgba(43, 43, 43, 0.88);
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.hayvan-hub-return-strip__btn:hover {
  border-color: rgba(255, 122, 0, 0.35);
  background: #fff;
  color: rgba(43, 43, 43, 0.95);
}

.hayvan-hub-return-strip__btn--main {
  flex: 1 1 220px;
  min-width: 0;
}

.hayvan-hub-return-strip__btn--alt {
  flex: 0 0 auto;
  font-size: 0.8rem;
  padding: 8px 12px;
}

.hayvan-hub-return-strip__ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ff7a00;
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.2);
}

.hayvan-hub-return-strip__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.hayvan-hub-return-strip__label {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hayvan-hub-return-strip__hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(43, 43, 43, 0.52);
}

.hayvan-hub-return-strip__arrow {
  margin-left: auto;
  font-size: 1.35rem;
  opacity: 0.55;
}

/* ---- Panel dışı geçiş: önceki ekrana dön ---- */
.dash-return-strip {
  border-radius: 14px;
  border: 1px solid rgba(255, 122, 0, 0.22);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.09) 0%, rgba(255, 255, 255, 0.94) 52%);
  box-shadow: 0 8px 22px -16px rgba(16, 20, 28, 0.35);
}

.dash-return-strip__inner {
  padding: 0.55rem 0.85rem;
}

.dash-return-strip__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  padding: 0.35rem 0.5rem 0.35rem 0.35rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.dash-return-strip__btn:hover {
  background: rgba(255, 122, 0, 0.1);
  color: inherit;
  transform: translateX(-2px);
}

.dash-return-strip__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--brand-orange, #ff7a00);
  background: rgba(255, 122, 0, 0.14);
  border: 1px solid rgba(255, 122, 0, 0.22);
}

.dash-return-strip__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.dash-return-strip__label {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: rgba(43, 43, 43, 0.92);
}

.dash-return-strip__hint {
  font-size: 0.78rem;
  color: rgba(43, 43, 43, 0.55);
}

/* font-weight: 900/950 → 800 düşür (aşırı kalın görünümleri yumuşat) */
[class*="-title"],
.dash-panel-title,
.dash-page-title,
.profile-card-title,
.animal-page-title,
.pedo-report-title {
  font-weight: var(--fw-heavy) !important;
}

/* dropdown / form yardım metinleri */
.form-text { font-size: 0.8rem; color: rgba(43, 43, 43, 0.58); }

/* Kartlardaki bilgi notları – daha sade */
.dash-empty-sub,
.dash-license { font-size: var(--fs-sm); }

/* ---- Finans Yönetimi (panel turuncu + antrasit; ana marka ile uyumlu) ---- */
.finans-page {
  --finans-accent: var(--brand-orange);
  --finans-accent-hover: var(--brand-orange-hover);
  --finans-accent-active: var(--brand-orange-active);
  --finans-accent-soft: rgba(255, 122, 0, 0.12);
  --finans-surface: rgba(255, 255, 255, 0.94);
  --finans-border: rgba(43, 43, 43, 0.08);
  max-width: 1320px;
  margin: 0 auto;
}

.finans-page .finans-pane:not(.active) {
  display: none !important;
}

.finans-overview {
  padding: 1.25rem 1.1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--finans-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 242, 0.92) 100%);
  box-shadow: 0 8px 28px rgba(43, 43, 43, 0.06);
}

.finans-overview-title {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--anthracite);
}

.finans-overview-sub {
  font-size: 0.86rem;
  color: rgba(43, 43, 43, 0.55);
}

.finans-overview-unified {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: linear-gradient(135deg,
    rgba(25, 135, 84, 0.05) 0%,
    rgba(255, 255, 255, 0.72) 42%,
    rgba(13, 110, 253, 0.05) 100%);
}

@media (min-width: 992px) {
  .finans-overview-unified {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
}

.finans-overview-zone {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.85rem 0.95rem 0.75rem;
}

@media (min-width: 992px) {
  .finans-overview-zone {
    padding: 1rem 1.1rem 0.9rem;
  }
}

.finans-overview-zone--nakit {
  background: linear-gradient(180deg, rgba(25, 135, 84, 0.07) 0%, rgba(255, 255, 255, 0) 72%);
}

.finans-overview-zone--vadeli {
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.07) 0%, rgba(255, 255, 255, 0) 72%);
}

.finans-overview-zone-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 43, 43, 0.1), transparent);
  margin: 0 0.75rem;
}

@media (min-width: 992px) {
  .finans-overview-zone-divider {
    width: 1px;
    height: auto;
    align-self: stretch;
    margin: 0.85rem 0;
    background: linear-gradient(180deg, transparent, rgba(43, 43, 43, 0.1), transparent);
  }
}

.finans-overview-zone-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(43, 43, 43, 0.5);
  margin-bottom: 0.55rem;
}

.finans-overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 0.5rem;
}

.finans-overview-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 0.35rem;
  min-height: 100%;
}

.finans-overview-cell-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.55);
}

.finans-overview-cell-val {
  font-weight: 800;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  letter-spacing: -0.02em;
}

.finans-overview-unified--gelir-gider {
  padding: 1rem 1.1rem;
}

.finans-overview-unified--gelir-gider .finans-overview-metrics {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

@media (min-width: 768px) {
  .finans-overview-unified--gelir-gider .finans-overview-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.finans-overview-cell-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.45);
}

.finans-overview-cell--gelir .finans-overview-cell-val { color: #198754; }
.finans-overview-cell--gider .finans-overview-cell-val { color: #dc3545; }
.finans-overview-cell--nakit-net .finans-overview-cell-val { color: var(--finans-accent, #ff7a00); }
.finans-overview-cell--alacak .finans-overview-cell-val { color: #198754; }
.finans-overview-cell--borc .finans-overview-cell-val { color: #dc3545; }
.finans-overview-cell--pozisyon .finans-overview-cell-val { color: #0d6efd; }

.finans-overview-total {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 2px solid rgba(255, 122, 0, 0.35);
  background: rgba(255, 122, 0, 0.08);
}

.finans-overview-total-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.finans-overview-total-lbl {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--anthracite);
}

.finans-overview-total-val {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--finans-accent, #ff7a00);
}

.finans-overview-total-hint {
  margin-top: 0.35rem;
}

/* Hareket defteri — birleşik nakit + vadeli panel */
.finans-ledger-panel {
  border-radius: 20px;
  border: 1px solid var(--finans-border);
  background: var(--finans-surface);
  box-shadow: 0 10px 32px -24px rgba(16, 20, 28, 0.35);
  overflow: hidden;
}

.finans-ledger-unified {
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.45) 0%, var(--finans-surface) 22%);
}

.finans-ledger-icon--unified {
  color: var(--finans-accent);
  background: linear-gradient(145deg, rgba(255, 122, 0, 0.14) 0%, rgba(13, 110, 253, 0.1) 100%);
}

.finans-ledger-unified-head {
  border-bottom: 1px solid var(--finans-border);
}

.finans-ledger-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 4px;
  border-radius: 14px;
  background: rgba(43, 43, 43, 0.05);
  border: 1px solid var(--finans-border);
  width: 100%;
}

@media (min-width: 768px) {
  .finans-ledger-tabs {
    display: inline-flex;
    width: auto;
    margin-left: auto;
  }
}

.finans-ledger-unified-head .finans-ledger-tabs {
  flex: 1 1 100%;
}

@media (min-width: 768px) {
  .finans-ledger-unified-head .finans-ledger-tabs {
    flex: 0 1 auto;
  }
}

.finans-ledger-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 0;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(43, 43, 43, 0.62);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.finans-ledger-tab:hover {
  color: var(--anthracite);
  background: rgba(255, 255, 255, 0.72);
}

.finans-ledger-tab.is-active {
  color: var(--anthracite);
  background: #fff;
  border-color: rgba(43, 43, 43, 0.08);
  box-shadow: 0 4px 14px rgba(16, 20, 28, 0.08);
}

@media (min-width: 768px) {
  .finans-ledger-tab {
    flex: 0 1 auto;
    justify-content: flex-start;
  }
}

.finans-ledger-tab-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.finans-ledger-tab-meta {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.45);
  letter-spacing: 0.01em;
}

.finans-ledger-pane {
  display: none;
}

.finans-ledger-pane.is-active {
  display: block;
}

.finans-ledger-pane-toolbar {
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
  background: rgba(248, 250, 252, 0.55);
}

.finans-add-menu {
  min-width: 15.5rem;
  padding: 0.35rem;
}

.finans-add-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
}

.finans-add-menu-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.finans-add-menu-item--nakit .finans-add-menu-icon {
  color: var(--finans-accent);
  background: var(--finans-accent-soft);
}

.finans-add-menu-item--vadeli .finans-add-menu-icon {
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.1);
}

.finans-add-menu-title {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--anthracite);
}

.finans-add-menu-desc {
  display: block;
  font-size: 0.74rem;
  color: rgba(43, 43, 43, 0.5);
  margin-top: 0.1rem;
}

.finans-ledger-panel-head {
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid var(--finans-border);
}

.finans-ledger-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.finans-ledger-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.finans-ledger-icon--nakit {
  color: var(--finans-accent);
  background: var(--finans-accent-soft);
}

.finans-ledger-icon--vadeli {
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.1);
}

.finans-vadeli-head-stats {
  flex: 1 1 100%;
  order: 3;
}

@media (min-width: 1200px) {
  .finans-vadeli-head-stats {
    flex: 0 1 auto;
    order: 0;
    margin-left: auto;
    margin-right: 1rem;
  }
}

.finans-vadeli-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--finans-border);
  background: #fff;
  min-width: 7.5rem;
}

.finans-vadeli-stat-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(43, 43, 43, 0.5);
}

.finans-vadeli-stat-val {
  font-weight: 800;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.finans-vadeli-stat-meta {
  font-size: 0.72rem;
  color: rgba(43, 43, 43, 0.45);
}

.finans-vadeli-stat--alacak .finans-vadeli-stat-val { color: #198754; }
.finans-vadeli-stat--borc .finans-vadeli-stat-val { color: #dc3545; }
.finans-vadeli-stat--net .finans-vadeli-stat-val { color: #0d6efd; }

.finans-ledger-toolbar {
  flex: 1 1 100%;
}

@media (min-width: 992px) {
  .finans-ledger-toolbar {
    flex: 0 1 auto;
  }
}

.finans-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 3px;
  border-radius: 12px;
  background: rgba(43, 43, 43, 0.06);
  border: 1px solid var(--finans-border);
}

.finans-segmented-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.65);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.finans-segmented-item:hover {
  color: var(--anthracite);
  background: rgba(255, 255, 255, 0.7);
}

.finans-segmented-item.is-active {
  background: #fff;
  color: var(--anthracite);
  box-shadow: 0 2px 8px rgba(16, 20, 28, 0.08);
}

.finans-segmented-item--borc.is-active {
  color: #c0392b;
}

.finans-segmented-item--alacak.is-active {
  color: #1e6b42;
}

.finans-segmented-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(43, 43, 43, 0.08);
  font-variant-numeric: tabular-nums;
}

.finans-segmented-item.is-active .finans-segmented-count {
  background: rgba(43, 43, 43, 0.06);
}

.finans-vadeli-body {
  padding-top: 0.25rem;
}

.finans-vadeli-empty {
  text-align: center;
  padding: 2.5rem 1.25rem 2.75rem;
  border-radius: 16px;
  border: 1px dashed rgba(13, 110, 253, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(13, 110, 253, 0.04) 100%);
  margin: 0.5rem 0 0.25rem;
}

.finans-vadeli-empty-visual {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.1);
}

.finans-vadeli-empty-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--anthracite);
  margin-bottom: 0.5rem;
}

.finans-vadeli-empty-text {
  max-width: 32rem;
  margin: 0 auto 1.25rem;
  font-size: 0.9rem;
  color: rgba(43, 43, 43, 0.58);
  line-height: 1.55;
}

.finans-vadeli-table-wrap {
  border-radius: 14px;
  border: 1px solid var(--finans-border);
  overflow: hidden;
  background: #fff;
}

.finans-vadeli-table thead th {
  background: rgba(43, 43, 43, 0.03);
  border-bottom: 1px solid var(--finans-border);
}

.finans-vadeli-row--overdue {
  background: rgba(220, 53, 69, 0.04);
}

.finans-vadeli-type {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.finans-vadeli-type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.finans-vadeli-type-dot--borc { background: #dc3545; }
.finans-vadeli-type-dot--alacak { background: #198754; }

.finans-vadeli-type-label {
  font-weight: 700;
  font-size: 0.86rem;
}

.finans-vadeli-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.45);
  margin-top: 0.1rem;
}

.finans-vadeli-taraf {
  color: var(--anthracite);
}

.finans-vadeli-detail {
  margin-top: 0.15rem;
  max-width: 22rem;
}

.finans-vadeli-vade {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.finans-vadeli-vade--late {
  color: #c0392b;
}

.finans-vadeli-vade-badge {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c0392b;
  background: rgba(220, 53, 69, 0.1);
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
}

.finans-vadeli-amount {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.finans-vadeli-amount--alacak { color: #198754; }
.finans-vadeli-amount--borc { color: #dc3545; }

.finans-overview-jump {
  color: #0d6efd;
  text-decoration: none;
}

.finans-overview-jump:hover {
  text-decoration: underline;
}

.finans-unified-ledger-gap {
  padding: 1.25rem 0.35rem 0.25rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--finans-border);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 122, 0, 0.04) 0%,
    rgba(255, 255, 255, 0) 42%
  );
}

@media (min-width: 768px) {
  .finans-unified-ledger-gap {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

.finans-unified-ledger-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: flex-end;
  justify-content: space-between;
}

.finans-unified-ledger-title {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--anthracite);
}

.finans-unified-ledger-sub {
  font-size: 0.86rem;
  color: rgba(43, 43, 43, 0.55);
  max-width: 42rem;
}

#finansModalIslem .modal-content.finans-modal-pro {
  border-radius: 20px;
}

#finansModalIslem .finans-modal-dialog {
  max-height: calc(100vh - 2rem);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#finansModalIslem .modal-content.finans-modal-layout {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 880px);
  overflow: hidden;
}

#finansModalIslem .finans-modal-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

#finansModalIslem .finans-modal-body-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 2rem !important;
  -webkit-overflow-scrolling: touch;
}

#finansModalIslem .modal-footer {
  position: relative !important;
  bottom: auto !important;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: none !important;
  border-top: 1px solid rgba(43, 43, 43, 0.08) !important;
}

.finans-yem-inline-card {
  border-color: rgba(255, 122, 0, 0.2);
  background: linear-gradient(145deg, rgba(255, 122, 0, 0.05), rgba(255, 255, 255, 0.98));
}

.finans-ba-table thead th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(43, 43, 43, 0.5);
}

.finans-ba-table tbody tr:hover {
  background: rgba(255, 122, 0, 0.06);
}

.finans-alert-top {
  border-radius: 14px !important;
  margin-bottom: 12px !important;
}

.finans-heading {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--anthracite);
}

.text-finans {
  color: var(--finans-accent) !important;
}

.finans-fw-tight {
  letter-spacing: -0.02em;
}

.finans-tabbar {
  row-gap: 8px;
}

.finans-tab-btn {
  border: 1px solid var(--finans-border);
  background: var(--finans-surface);
  color: rgba(43, 43, 43, 0.78);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.finans-tab-btn:hover {
  border-color: rgba(255, 122, 0, 0.45);
  color: var(--finans-accent-hover);
}

.finans-tab-btn.active {
  background: linear-gradient(135deg, var(--finans-accent) 0%, var(--finans-accent-active) 100%);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 10px 26px -14px rgba(255, 122, 0, 0.45);
}

.btn-finans-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--finans-accent);
  --bs-btn-border-color: var(--finans-accent);
  --bs-btn-hover-bg: var(--finans-accent-hover);
  --bs-btn-hover-border-color: var(--finans-accent-hover);
  --bs-btn-active-bg: var(--finans-accent-active);
  --bs-btn-active-border-color: var(--finans-accent-active);
  background-color: var(--finans-accent);
  border-color: var(--finans-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.5rem 1.1rem;
  box-shadow: 0 12px 28px -14px rgba(255, 122, 0, 0.42);
}

.btn-finans-primary:hover {
  background-color: var(--finans-accent-hover);
  border-color: var(--finans-accent-hover);
  color: #fff;
}

/* Modal (.finans-page dışında): Kaydet bazı tarayıcılarda görünmez kalmasın — doğrudan turuncu */
.finans-modal-pro .modal-footer .btn-finans-primary {
  background-color: var(--brand-orange) !important;
  border: 1px solid var(--brand-orange) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px -12px rgba(255, 122, 0, 0.55);
}

.finans-modal-pro .modal-footer .btn-finans-primary:hover,
.finans-modal-pro .modal-footer .btn-finans-primary:focus-visible {
  background-color: var(--brand-orange-hover) !important;
  border-color: var(--brand-orange-hover) !important;
  color: #fff !important;
}

.finans-modal-pro .modal-footer .btn-finans-primary:active {
  background-color: var(--brand-orange-active) !important;
  border-color: var(--brand-orange-active) !important;
}

.btn-outline-finans {
  border-radius: 12px;
  font-weight: 600;
  border-color: var(--finans-border);
  background: rgba(255, 255, 255, 0.9);
}

.btn-outline-finans:hover {
  border-color: rgba(255, 122, 0, 0.5);
  color: var(--finans-accent-hover);
}

.btn-finans-soft {
  border-radius: 10px;
  padding: 0.25rem 0.42rem;
  background: var(--finans-accent-soft);
  border: none;
  color: var(--anthracite);
}

.btn-finans-soft-danger {
  border-radius: 10px;
  padding: 0.25rem 0.42rem;
  background: rgba(231, 76, 60, 0.12);
  border: none;
  color: #c0392b;
}

.btn-finans-primary-soft {
  border-radius: 10px;
  font-weight: 600;
  background: var(--finans-accent-soft);
  border: 1px solid rgba(255, 122, 0, 0.35);
  color: var(--anthracite);
}

.btn-finans-primary-soft:hover {
  background: rgba(255, 122, 0, 0.2);
  color: var(--finans-accent-active);
}

.finans-ba-filter .btn-finans-chip {
  border-radius: 0;
  background: #fff;
  border: none;
  font-size: 0.82rem;
}

.finans-ba-filter .btn-finans-chip.active {
  background: linear-gradient(135deg, var(--finans-accent) 0%, var(--finans-accent-active) 100%);
  color: #fff !important;
}

.finans-kpi {
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid var(--finans-border);
  background: var(--finans-surface);
  box-shadow: 0 16px 40px -30px rgba(16, 20, 28, 0.45);
}

.finans-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.finans-kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(43, 43, 43, 0.55);
}

.finans-kpi-value {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 6px;
}

.finans-kpi-hint,
.finans-mini-h {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(43, 43, 43, 0.55);
}

.finans-kpi--gelir {
  background: linear-gradient(145deg, rgba(39, 174, 96, 0.12) 0%, rgba(255, 255, 255, 0.95) 55%);
}

.finans-kpi--gider {
  background: linear-gradient(145deg, rgba(231, 76, 60, 0.12) 0%, rgba(255, 255, 255, 0.95) 55%);
}

.finans-kpi--net {
  background: linear-gradient(145deg, var(--finans-accent-soft) 0%, rgba(255, 255, 255, 0.95) 55%);
}

.finans-kpi--borc-mini,
.finans-kpi--alacak-mini,
.finans-kpi--net-mini {
  padding: 16px 18px;
}

.finans-kpi-num {
  font-size: 1.25rem;
  margin-top: 4px;
}

.finans-kpi--gelir-light {
  background: linear-gradient(160deg, rgba(39, 174, 96, 0.11) 0%, #fff 70%);
}

.finans-kpi--gider-light {
  background: linear-gradient(160deg, rgba(231, 76, 60, 0.11) 0%, #fff 70%);
}

.finans-kpi--net-report {
  background: linear-gradient(160deg, var(--finans-accent-soft) 0%, #fff 70%);
}

.finans-kpi--highlight {
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.14) 0%, #fff 75%);
}

.finans-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.55);
  background: rgba(43, 43, 43, 0.05);
}

.finans-table thead th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(43, 43, 43, 0.5);
  border-bottom-width: 1px;
}

.finans-table tbody tr:hover {
  background: rgba(255, 122, 0, 0.05);
}

.finans-money {
  font-variant-numeric: tabular-nums;
}

.finans-money--gelir {
  color: #219653;
}

.finans-money--gider {
  color: #c0392b;
}

.finans-cell-title {
  color: var(--anthracite);
}

.finans-filter-select {
  min-width: 140px;
  border-radius: 12px !important;
  border-color: var(--finans-border) !important;
}

.finans-sort-head {
  color: inherit;
  cursor: pointer;
}

.finans-footnote {
  line-height: 1.55;
}

.finans-empty-ring {
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px dashed rgba(255, 122, 0, 0.35);
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--finans-accent);
  background: var(--finans-accent-soft);
}

.finans-empty-text {
  max-width: 420px;
}

.finans-form .form-control,
.finans-form .form-select {
  border-radius: 12px;
}

.finans-area {
  min-height: 88px;
}

.finans-switch .form-check-input {
  width: 2.6rem;
  height: 1.35rem;
  cursor: pointer;
}

.finans-install {
  border-color: var(--finans-border) !important;
}

.finans-pill-soft {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--finans-accent-soft);
  color: var(--anthracite);
}

.finans-year-select {
  min-width: 120px;
  border-radius: 12px !important;
}

.finans-mini-select {
  max-width: 140px;
  border-radius: 12px !important;
}

.finans-chart-panel {
  box-shadow: 0 18px 44px -30px rgba(16, 20, 28, 0.38);
}

.finans-chart-canvas-wrap {
  min-height: 280px;
  height: 280px;
  position: relative;
}

.finans-donut-card .dash-panel-header {
  align-items: flex-start;
}

.finans-donut-period {
  min-width: 132px;
  border-radius: 12px !important;
  font-weight: 600;
  color: var(--anthracite);
  background: rgba(43, 43, 43, 0.04) !important;
}

.finans-donut-empty-hint {
  max-width: 320px;
}

.finans-donut-split {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem 1.25rem;
}

.finans-donut-chart-wrap {
  flex: 1 1 220px;
  max-width: 100%;
  min-height: 220px;
  height: 248px;
  position: relative;
}

.finans-donut-chart-wrap canvas.finans-donut {
  max-height: none;
}

.finans-donut {
  width: 100% !important;
  height: 100% !important;
}

.finans-donut-legend-aside {
  flex: 1 1 180px;
  min-width: 0;
}

.finans-donut-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.finans-donut-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.finans-donut-legend-dot {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-top: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.finans-donut-legend-body {
  flex: 1;
  min-width: 0;
}

.finans-donut-legend-topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.finans-donut-legend-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--anthracite);
  line-height: 1.3;
}

.finans-donut-legend-pct {
  font-size: 0.86rem;
  font-weight: 800;
  color: rgba(43, 43, 43, 0.5);
  white-space: nowrap;
}

.finans-donut-legend-amt {
  margin-top: 3px;
  font-size: 1.02rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--anthracite);
  letter-spacing: -0.02em;
}

.finans-donut-legend-aside--gider .finans-donut-legend-amt {
  color: #7b241c;
}

.finans-donut-legend-total {
  list-style: none;
  margin: 12px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(43, 43, 43, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
}

.finans-donut-legend-total-label {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(43, 43, 43, 0.5);
}

.finans-donut-legend-total-amt {
  font-size: 1.22rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #1b6b3f;
}

.finans-donut-legend-aside--gider .finans-donut-legend-total-amt {
  color: #922b21;
}

.finans-donut-footnote {
  font-size: 0.82rem;
  color: rgba(43, 43, 43, 0.62);
  line-height: 1.45;
}

.finans-month-panel .dash-panel-header {
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.finans-detail-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(43, 43, 43, 0.5);
  background: rgba(43, 43, 43, 0.03);
  border-bottom-width: 1px;
  white-space: nowrap;
}

.finans-detail-table tbody tr:nth-child(even) td {
  background-color: rgba(43, 43, 43, 0.025);
}

.finans-detail-table tbody td {
  font-size: 0.95rem;
  vertical-align: middle;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.finans-detail-table tbody td.finans-detail-ay {
  font-weight: 700;
  color: var(--anthracite);
}

.finans-detail-table .finans-money {
  font-size: 1rem;
}

.finans-detail-table tbody tr + tr {
  border-top: 1px solid rgba(43, 43, 43, 0.05);
}

.finans-detail-table tbody tr:hover {
  background: rgba(255, 122, 0, 0.04);
}

.finans-foot-row td {
  border-top: 2px solid rgba(43, 43, 43, 0.12) !important;
  padding-top: 14px !important;
}

.finans-modal .modal-header {
  border-bottom: 1px solid var(--finans-border);
}

.finans-modal .modal-footer {
  border-top: 1px solid var(--finans-border);
}

.finans-modal-pro,
.dash-modal-pro {
  border-radius: 20px !important;
  overflow: hidden;
  border: 1px solid rgba(43, 43, 43, 0.08) !important;
  box-shadow: 0 28px 64px -32px rgba(16, 20, 28, 0.48) !important;
}

.finans-modal-pro .modal-header,
.dash-modal-pro .modal-header {
  padding: 20px 24px 16px !important;
  background: #fff !important;
  border-bottom: 1px solid rgba(43, 43, 43, 0.08) !important;
  position: sticky;
  top: 0;
  z-index: 3;
}

.finans-modal-pro__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 auto;
}

.finans-modal-pro__badge {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.16), rgba(255, 122, 0, 0.06));
  color: var(--brand-orange);
  font-size: 1.15rem;
}

.finans-modal-pro__sub {
  font-size: 0.86rem;
  color: rgba(43, 43, 43, 0.58);
  margin: 4px 0 0;
  line-height: 1.45;
}

.finans-modal-pro .modal-body,
.dash-modal-pro .modal-body {
  padding: 20px 24px 24px !important;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 120px);
}

.finans-modal-pro .modal-footer,
.dash-modal-pro .modal-footer {
  padding: 14px 24px 20px !important;
  background: #fff;
  border-top: 1px solid rgba(43, 43, 43, 0.08) !important;
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 -10px 28px -20px rgba(16, 20, 28, 0.35);
}

.finans-modal-validation.alert {
  border-radius: 12px;
  border: 1px solid rgba(220, 53, 69, 0.22);
  background: rgba(220, 53, 69, 0.06);
}

.finans-modal-validation.alert ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.finans-modal-field {
  border-radius: 12px !important;
}

.finans-modal-textarea {
  min-height: 96px;
  resize: vertical;
}

.finans-modal-type-wrap {
  margin-bottom: 1.25rem;
}

.finans-modal-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.48);
  margin-bottom: 0.65rem;
}

.finans-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .finans-type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.finans-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 2px solid rgba(43, 43, 43, 0.08);
  background: #fff;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  cursor: pointer;
}

.finans-type-card:hover {
  border-color: rgba(255, 122, 0, 0.35);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.finans-type-card.is-active {
  border-color: var(--finans-accent, #ff7a00);
  background: linear-gradient(145deg, rgba(255, 122, 0, 0.1), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 24px rgba(255, 122, 0, 0.14);
}

.finans-type-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.finans-type-card__icon--gelir { background: rgba(25, 135, 84, 0.12); color: #198754; }
.finans-type-card__icon--gider { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.finans-type-card__icon--alacak { background: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.finans-type-card__icon--borc { background: rgba(255, 122, 0, 0.12); color: #e86a00; }

.finans-type-card__title {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--anthracite, #2b2b2b);
}

.finans-type-card__desc {
  font-size: 0.72rem;
  color: rgba(43, 43, 43, 0.52);
  line-height: 1.35;
}

.finans-etki-panel {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(13, 110, 253, 0.18);
  background: linear-gradient(120deg, rgba(13, 110, 253, 0.06), rgba(255, 255, 255, 0.96));
}

.finans-etki-panel__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0a58ca;
  margin-bottom: 0.55rem;
}

.finans-etki-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.finans-etki-list li {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(43, 43, 43, 0.08);
  color: rgba(43, 43, 43, 0.72);
}

.finans-etki-onizleme {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(43, 43, 43, 0.68);
  line-height: 1.45;
}

.finans-etki-onizleme strong {
  color: var(--anthracite, #2b2b2b);
}

.finans-modal-section {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(43, 43, 43, 0.07);
  background: #fff;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
}

.finans-modal-section--flat {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.finans-modal-section__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(43, 43, 43, 0.5);
  margin-bottom: 0.85rem;
}

.finans-input-money .input-group-text {
  border-radius: 12px 0 0 12px !important;
  font-weight: 700;
  background: rgba(255, 122, 0, 0.08);
  border-color: rgba(43, 43, 43, 0.1);
  color: #e86a00;
}

.finans-input-money .form-control {
  border-radius: 0 12px 12px 0 !important;
  font-weight: 700;
  font-size: 1.05rem;
}

.finans-modal-footer-hint {
  max-width: 22rem;
  line-height: 1.4;
}

.finans-bridge-card--yem {
  border-color: rgba(255, 122, 0, 0.28);
  background: linear-gradient(120deg, rgba(255, 122, 0, 0.08), rgba(255, 255, 255, 0.96));
}

.finans-bridge-card--yem .finans-bridge-card__ico {
  background: rgba(255, 122, 0, 0.14);
  color: #e86a00;
}

.finans-cari-dd .list-group-item {
  border-left: 0;
  border-right: 0;
}

/* Finans ↔ Süt yönetimi köprüsü */
.btn-finans-sut-link {
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(13, 110, 253, 0.35);
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(255, 255, 255, 0.95));
  color: #0a58ca;
}

.btn-finans-sut-link:hover {
  border-color: rgba(13, 110, 253, 0.55);
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.16), rgba(255, 255, 255, 1));
  color: #084298;
}

.finans-bridge-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(13, 110, 253, 0.22);
  background: linear-gradient(120deg, rgba(13, 110, 253, 0.07), rgba(255, 255, 255, 0.96));
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.finans-bridge-card--milk .finans-bridge-card__ico {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(13, 110, 253, 0.15);
  color: #0d6efd;
}

.finans-bridge-card__title {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: rgba(43, 43, 43, 0.92);
  margin-bottom: 4px;
}

.finans-bridge-card__text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(43, 43, 43, 0.72);
  max-width: 720px;
}

.finans-cell-taraf {
  font-size: 0.82rem;
}

.finans-checkbox-card {
  border: 1px solid var(--finans-border);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(43, 43, 43, 0.02);
}

.finans-uc-title {
  letter-spacing: 0.12em !important;
  font-weight: 800 !important;
}

@media (max-width: 576px) {
  .finans-toolbar-actions {
    width: 100%;
  }

  .finans-toolbar-actions .btn {
    width: 100%;
  }

  .finans-tab-btn {
    font-size: 0.79rem;
    padding: 7px 12px;
  }
}

/* ——— Ekipman yönetimi (turuncu / antrasit / beyaz tema) ——— */
.ekipman-page {
  --ekip-accent: var(--brand-orange);
  --ekip-accent-hover: var(--brand-orange-hover);
  --ekip-accent-active: var(--brand-orange-active);
  --ekip-accent-soft: rgba(255, 122, 0, 0.13);
  --ekip-muted-line: rgba(43, 43, 43, 0.1);
  --ekip-surface: #fff;
  --ekip-border: rgba(43, 43, 43, 0.1);
}

.ekip-page-title-muted {
  color: var(--anthracite);
}

.ekip-alert-top {
  border: none;
  border-radius: 14px !important;
}

.ekip-heading {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--anthracite);
}

.ekip-lead {
  max-width: 52rem;
  line-height: 1.55;
  color: rgba(43, 43, 43, 0.58);
}

.ekip-tabbar {
  row-gap: 8px;
}

.ekip-tab-btn {
  border: 1px solid var(--ekip-border);
  background: var(--ekip-surface);
  color: var(--anthracite);
  font-weight: 600;
  font-size: 0.87rem;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ekip-tab-btn:hover {
  border-color: rgba(255, 122, 0, 0.45);
  color: var(--ekip-accent-hover);
}

.ekip-tab-btn.active {
  background: linear-gradient(135deg, var(--ekip-accent) 0%, var(--ekip-accent-active) 100%);
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 12px 30px -16px rgba(255, 122, 0, 0.55);
}

/* Birincil: turuncu dolgu (_anchor .btn_ için metin + zemin her zaman okunaklı) */
.btn-ekip-primary {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: rgba(255, 255, 255, 0.72);
  --bs-btn-bg: var(--ekip-accent, var(--brand-orange));
  --bs-btn-border-color: var(--ekip-accent, var(--brand-orange));
  --bs-btn-hover-bg: var(--ekip-accent-hover, var(--brand-orange-hover));
  --bs-btn-hover-border-color: var(--ekip-accent-hover, var(--brand-orange-hover));
  --bs-btn-active-bg: var(--ekip-accent-active, var(--brand-orange-active));
  --bs-btn-active-border-color: var(--ekip-accent-active, var(--brand-orange-active));
  font-weight: 700;
  border-radius: 12px;
  color: #fff !important;
  background-color: var(--bs-btn-bg) !important;
  border-color: var(--bs-btn-border-color) !important;
}

.btn-ekip-primary:is(a):visited {
  color: #fff !important;
}

.btn-ekip-primary .bi {
  color: inherit;
  opacity: 1;
}

.btn-ekip-primary:hover {
  color: #fff !important;
  background-color: var(--bs-btn-hover-bg) !important;
  border-color: var(--bs-btn-hover-border-color) !important;
}

.cari-hero .btn-ekip-primary:focus-visible {
  color: #fff !important;
  box-shadow:
    0 0 0 0.2rem rgba(255, 122, 0, 0.35),
    0 0 0 0.35rem rgba(255, 255, 255, 0.35);
}

/* İkincil: beyaz zemin + antrasit kontur */
.btn-ekip-secondary {
  border-radius: 12px;
  font-weight: 700;
  color: var(--anthracite) !important;
  background: #fff;
  border: 1px solid rgba(43, 43, 43, 0.22);
  padding-inline: 1rem;
}

.btn-ekip-secondary:hover {
  border-color: var(--ekip-accent);
  color: var(--ekip-accent-active) !important;
  background: rgba(255, 122, 0, 0.06);
}

/* Yumuşak turuncu vurgulu */
.btn-ekip-soft {
  border-radius: 10px;
  font-weight: 700;
  background: var(--ekip-accent-soft);
  border: 1px solid rgba(255, 122, 0, 0.35);
  color: var(--anthracite) !important;
}

.btn-ekip-soft:hover {
  background: rgba(255, 122, 0, 0.22);
  border-color: var(--ekip-accent-hover);
}

/* Antrasit outline */
.btn-ekip-outline-dark {
  border-radius: 10px;
  font-weight: 700;
  background: #fff;
  border: 1px solid rgba(43, 43, 43, 0.32);
  color: var(--anthracite);
}

.btn-ekip-outline-dark:hover {
  border-color: var(--anthracite);
  background: rgba(43, 43, 43, 0.04);
  color: var(--anthracite);
}

.btn-ekip-muted {
  border-radius: 10px;
  font-weight: 600;
  background: rgba(43, 43, 43, 0.04);
  border: 1px solid rgba(43, 43, 43, 0.1);
  color: rgba(43, 43, 43, 0.65);
}

.btn-ekip-muted:hover {
  border-color: var(--ekip-accent);
  color: var(--ekip-accent-active);
}

.ekip-btn-danger-soft {
  border-radius: 10px;
  font-weight: 700;
  color: #b42318 !important;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.ekip-btn-danger-soft:hover {
  background: rgba(239, 68, 68, 0.16);
}

.ekip-kpi {
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid var(--ekip-border);
  background: var(--ekip-surface);
  box-shadow: 0 16px 40px -34px rgba(16, 20, 28, 0.45);
}

.ekip-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.ekip-kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(43, 43, 43, 0.55);
}

.ekip-kpi-value {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 6px;
  color: var(--anthracite);
}

.ekip-kpi-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(43, 43, 43, 0.55);
}

.ekip-kpi-icon {
  font-size: 1.25rem;
  opacity: 0.92;
}

.ekip-kpi--total {
  background: linear-gradient(145deg, rgba(255, 122, 0, 0.11) 0%, #fff 58%);
}

.ekip-kpi--total .ekip-kpi-icon {
  color: var(--brand-orange);
}

.ekip-kpi--warn {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.17) 0%, #fff 58%);
}

.ekip-kpi--warn .ekip-kpi-icon {
  color: #d97706;
}

.ekip-kpi--ok {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.13) 0%, #fff 58%);
}

.ekip-kpi--ok .ekip-kpi-icon {
  color: #059669;
}

.ekip-kpi--danger {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.12) 0%, #fff 58%);
}

.ekip-kpi--danger .ekip-kpi-icon {
  color: #dc2626;
}

.ekip-search .form-control {
  min-width: 200px;
  border-radius: 0 12px 12px 0 !important;
}

.ekip-search .input-group-text {
  border-radius: 12px 0 0 12px !important;
}

.ekip-table thead th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(43, 43, 43, 0.52);
  border-bottom-width: 1px;
}

.ekip-table tbody tr:hover {
  background: rgba(255, 122, 0, 0.035);
}

.ekip-row-active {
  background: rgba(255, 122, 0, 0.085) !important;
  box-shadow: inset 4px 0 0 var(--brand-orange);
}

.ekip-map-link {
  color: var(--brand-orange);
}

.ekip-map-link:hover {
  color: var(--brand-orange-hover);
}

.ekip-ac-tint {
  color: var(--brand-orange);
}

.ekip-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(43, 43, 43, 0.06);
  color: rgba(43, 43, 43, 0.7);
}

.ekip-chip--parts {
  background: rgba(255, 122, 0, 0.13);
  color: var(--anthracite);
  font-weight: 700;
}

.ekip-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.ekip-badge--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.ekip-badge--warn {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}

.ekip-badge--ok {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.ekip-badge--muted {
  background: rgba(43, 43, 43, 0.06);
  color: rgba(43, 43, 43, 0.5);
}

.ekip-insight {
  background: linear-gradient(125deg, rgba(255, 122, 0, 0.09) 0%, #fafafa 72%);
  border: 1px solid var(--ekip-border);
}

.ekip-insight-secondary {
  border: 1px solid var(--ekip-muted-line);
  background: rgba(43, 43, 43, 0.02);
}

.ekip-mini-panel {
  background: #fafafa;
  border-style: dashed !important;
}

.ekip-parca-alert {
  background: rgba(255, 122, 0, 0.07) !important;
}

.ekip-form-card .form-control,
.ekip-form-card .form-select {
  border-radius: 12px;
}

.ekip-timeline .ekip-timeline-item {
  border-left: 3px solid rgba(255, 122, 0, 0.35);
  padding-left: 14px !important;
  margin-left: 4px;
}

@media (max-width: 576px) {
  .ekip-toolbar-actions .btn {
    width: 100%;
  }

  .ekip-tab-btn {
    font-size: 0.78rem;
    padding: 7px 12px;
  }
}

/* --- Görev yönetimi --- */
.gorev-page.gorev-page {
  --gorev-mid: rgba(232, 113, 43, 0.14);
}

.gorev-hero {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 122, 0, 0.07) 55%, rgba(44, 62, 80, 0.04) 100%);
  border: 1px solid rgba(43, 43, 43, 0.1);
  box-shadow: 0 18px 44px -32px rgba(44, 62, 80, 0.45);
}

.gorev-filter-card {
  border: 1px solid rgba(43, 43, 43, 0.1);
  box-shadow: 0 14px 40px -38px rgba(44, 62, 80, 0.35);
}

/* Filtre satırı: etiket + select üst hizada; bilgi satırları benzer yükseklikte */
.gorev-filter-hint {
  display: block;
  min-height: 2.85rem;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.gorev-form-control:focus {
  border-color: var(--ekip-accent, #ff7a00);
  box-shadow: 0 0 0 0.2rem rgba(255, 122, 0, 0.18);
}

.gorev-sheet {
  background: var(--ekip-surface, #fff);
  border: 1px solid rgba(43, 43, 43, 0.1);
  box-shadow: 0 16px 38px -30px rgba(44, 62, 80, 0.35);
}

.gorev-kpi {
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(43, 43, 43, 0.1);
}

.gorev-kpi-val {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
}

.gorev-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.gorev-kpi-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(43, 43, 43, 0.55);
}

.gorev-kpi-ico {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.gorev-kpi-hint {
  font-size: 0.74rem;
  color: rgba(43, 43, 43, 0.45);
}

.gorev-kpi--blue {
  background: linear-gradient(180deg, #f3f9ff 0%, #eef5ff 100%);
}
.gorev-kpi--blue .gorev-kpi-ico {
  background: rgba(30, 99, 200, 0.16);
  color: #1557c0;
}

.gorev-kpi--amber {
  background: linear-gradient(180deg, #fff9ef 0%, #fff4e2 100%);
}
.gorev-kpi--amber .gorev-kpi-ico {
  background: rgba(217, 119, 6, 0.18);
  color: #c2410c;
}

.gorev-kpi--teal {
  background: linear-gradient(180deg, #f4fffb 0%, #e9fff6 100%);
}
.gorev-kpi--teal .gorev-kpi-ico {
  background: rgba(5, 150, 105, 0.16);
  color: #047857;
}

.gorev-kpi--rose {
  background: linear-gradient(180deg, #fff5f5 0%, #ffecee 100%);
}
.gorev-kpi--rose .gorev-kpi-ico {
  background: rgba(239, 68, 68, 0.16);
  color: #b42318;
}

.gorev-table thead th {
  background: rgba(232, 113, 43, 0.1);
  color: rgba(43, 43, 43, 0.65);
  font-weight: 700;
}

.gorev-row--urgent {
  border-left: 4px solid #e03131;
}

.gorev-badge-soft {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(43, 43, 43, 0.06);
  color: rgba(43, 43, 43, 0.75);
}

.gorev-tag-subtle {
  font-size: 0.7rem;
  color: rgba(43, 43, 43, 0.5);
}

.gorev-inline-link {
  color: var(--ekip-accent-hover, #e06500);
  text-decoration-color: rgba(255, 122, 0, 0.45);
}

.gorev-inline-link:hover {
  color: var(--ekip-accent-active, #cf5c00);
}

.gorev-progress-wrap {
  height: 10px;
  border-radius: 999px;
  background: rgba(43, 43, 43, 0.08);
  overflow: hidden;
}

.gorev-progress-wrap--thin {
  height: 6px;
}

.gorev-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-orange-hover, #f08a38) 0%, var(--brand-orange-active, #d35400) 100%);
}

.gorev-range {
  max-width: 320px;
}

.gorev-comment + .gorev-comment {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(43, 43, 43, 0.1);
}

.gorev-modal .modal-content {
  border-radius: 18px;
  border: 1px solid rgba(43, 43, 43, 0.1);
}

.gorev-sheet-note {
  background: rgba(255, 122, 0, 0.06);
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  white-space: pre-wrap;
}

.gorev-bs {
  padding: 0.35rem 0.65rem !important;
  font-weight: 700 !important;
  font-size: 0.68rem !important;
}

.gorev-bs--plan {
  background: rgba(232, 113, 43, 0.2) !important;
  color: #8f3b00 !important;
}

.gorev-bs--prog {
  background: rgba(30, 99, 200, 0.15) !important;
  color: #1557c0 !important;
}

.gorev-bs--pending {
  background: rgba(217, 119, 6, 0.2) !important;
  color: #9a3412 !important;
}

.gorev-bs--ok {
  background: rgba(5, 150, 105, 0.18) !important;
  color: #047857 !important;
}

.gorev-bs--muted {
  background: rgba(43, 43, 43, 0.1) !important;
  color: rgba(43, 43, 43, 0.55) !important;
}

.gorev-prio {
  padding: 0.3rem 0.58rem !important;
  font-weight: 700 !important;
  font-size: 0.66rem !important;
}

.gorev-prio--urgent {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #b42318 !important;
}

.gorev-prio--high {
  background: rgba(255, 122, 0, 0.22) !important;
  color: #8f3b00 !important;
}

.gorev-prio--norm {
  background: rgba(43, 43, 43, 0.08) !important;
}

.gorev-prio--low {
  background: rgba(148, 163, 184, 0.2) !important;
  color: #475569 !important;
}

.gorev-flash {
  border: 0 solid transparent;
}

/* Müşteri / Tedarikçi (turuncu rehber) */
.cari-hero {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 122, 0, 0.065) 50%, rgba(44, 62, 80, 0.05) 100%);
  border: 1px solid rgba(43, 43, 43, 0.1);
  box-shadow: 0 14px 40px -32px rgba(44, 62, 80, 0.45);
}

.cari-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(43, 43, 43, 0.65);
  background: #fff;
  border: 1px solid rgba(43, 43, 43, 0.14);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cari-chip:hover {
  border-color: var(--brand-orange-hover, #e06500);
  color: var(--brand-orange-active, #cf5c00);
}

.cari-chip--on {
  background: linear-gradient(135deg, var(--brand-orange, #ff7a00) 0%, var(--brand-orange-hover, #e06500) 100%);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 8px 20px -10px rgba(255, 122, 0, 0.55);
}

.cari-quick-search {
  border: 1px solid rgba(43, 43, 43, 0.1);
}

.cari-field:focus {
  border-color: var(--ekip-accent, #ff7a00);
  box-shadow: 0 0 0 0.18rem rgba(255, 122, 0, 0.18);
}

.cari-panel {
  background: var(--ekip-surface, #fff);
}

.cari-kpi {
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(43, 43, 43, 0.1);
  min-height: 96px;
}

.cari-kpi-num {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
}

.cari-kpi-sub {
  font-size: 0.72rem;
  color: rgba(43, 43, 43, 0.45);
}

.cari-kpi--amber {
  background: linear-gradient(180deg, #fffaf4 0%, #fff5e9 100%);
}

.cari-kpi--blue {
  background: linear-gradient(180deg, #f3faff 0%, #e8f3ff 100%);
}

.cari-kpi--teal {
  background: linear-gradient(180deg, #f4fdf9 0%, #eaf9f3 100%);
}

.cari-kpi--ink {
  background: linear-gradient(180deg, #f4f5fb 0%, #e9eaf3 100%);
}

.cari-kpi--muted {
  background: linear-gradient(180deg, #f9f9f9 0%, #efefef 100%);
}

.cari-table thead th {
  font-weight: 700;
  background: rgba(232, 113, 43, 0.1);
}

.cari-ico-ring {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 0, 0.13);
  color: var(--brand-orange-hover, #e06500);
  flex-shrink: 0;
}

.cari-micro {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 122, 0, 0.15);
  color: #9a4310;
}

.cari-micro--plain {
  background: rgba(43, 43, 43, 0.07);
  color: rgba(43, 43, 43, 0.55);
}

.cari-mini-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.15);
}

.cari-mini-pill--ghost {
  background: rgba(43, 43, 43, 0.08);
  color: rgba(43, 43, 43, 0.75);
}

.cari-lines {
  display: grid;
  gap: 0.35rem;
}

.cari-sheet-note {
  background: rgba(255, 122, 0, 0.06);
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  white-space: pre-wrap;
}

.cari-link {
  color: var(--ekip-accent-hover, #e06500);
  font-weight: 600;
}

.cari-note {
  max-width: 720px;
}

@media print {
  .no-print-actions,
  .no-print-mini,
  .ekip-toolbar-actions,
  .finans-toolbar-actions,
  .dash-export-print-link,
  .dash-sidebar {
    display: none !important;
  }

  .dash-topbar {
    display: none !important;
  }

  body.dash-body {
    background: #fff !important;
  }

  .dash-shell,
  .dash-main,
  .dash-content {
    padding: 0 !important;
    margin: 0 !important;
  }

  .gorev-page {
    max-width: 100% !important;
  }

  .gorev-sheet {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* Yem yönetimi: ekipman teması ile aynı palet */
.yem-page {
  --ekip-accent: var(--brand-orange);
  --ekip-accent-hover: var(--brand-orange-hover);
  --ekip-accent-active: var(--brand-orange-active);
  --ekip-border: rgba(43, 43, 43, 0.1);
}

.yem-accent-dash {
  height: 4px;
  width: 48px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-orange-active) 100%);
}

.yem-page .fw-extrabold {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.yem-page details summary {
  list-style: none;
}

.yem-page details summary::-webkit-details-marker {
  display: none;
}

/* Yem modalları: tablo dışında düzgün render + okunaklı etiketler */
.yem-page .modal-content {
  background: #fff;
  color: var(--anthracite, #2b2b2b);
  border: 1px solid rgba(43, 43, 43, 0.08);
}

.yem-page .modal-header .modal-title {
  color: var(--anthracite, #2b2b2b);
  font-weight: 700;
}

.yem-page .modal-body .form-label {
  color: rgba(43, 43, 43, 0.88);
  font-weight: 600;
}

.yem-page .modal-footer .btn-outline-secondary {
  border-color: rgba(43, 43, 43, 0.22);
  color: var(--anthracite, #2b2b2b);
  background: #fff;
}

.yem-page .modal-footer .btn-outline-secondary:hover {
  border-color: var(--brand-orange, #ff7a00);
  color: var(--brand-orange-hover, #e86e00);
}

/* --- Sağlık yönetimi --- */
.saglik-page .saglik-lead {
  max-width: 56rem;
}
.saglik-mini-card {
  border-radius: 18px;
  border: 1px solid rgba(43, 43, 43, 0.1);
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  box-shadow: 0 16px 44px -40px rgba(44, 62, 80, 0.35);
  min-height: 140px;
  overflow: hidden;
}
.saglik-mini-card-h {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.08);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.saglik-mini-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: #c2410c;
}
.saglik-mini-card-body {
  padding: 14px 16px 16px;
  font-size: 0.9rem;
}
.saglik-mini-card--aso .saglik-mini-card-h { color: #15803d; }
.saglik-mini-card--par .saglik-mini-card-h { color: #c2410c; }
.saglik-mini-card--syn .saglik-mini-card-h { color: #0369a1; }
.saglik-mini-card--ilac .saglik-mini-card-h { color: #b45309; }
.saglik-bullet li {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(43, 43, 43, 0.08);
}
.saglik-bullet li:last-child { border-bottom: 0; }
.saglik-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
}
.saglik-badge-1 { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.saglik-badge-2 { background: rgba(16, 185, 129, 0.14); color: #047857; }
.saglik-badge-3 { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.saglik-chart-panel {
  border-radius: 18px;
}
.saglik-chart-wrap {
  height: 320px;
  padding: 10px 8px 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 122, 0, 0.10), transparent 55%),
    radial-gradient(circle at 70% 20%, rgba(56, 189, 248, 0.10), transparent 55%),
    #fff;
  border-radius: 16px;
  border: 1px solid rgba(43, 43, 43, 0.08);
}

.saglik-karantina-alt__inner {
  border-radius: 18px;
  border: 1px solid rgba(255, 193, 7, 0.35);
  background: linear-gradient(135deg, rgba(255, 243, 205, 0.55), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 40px -32px rgba(180, 120, 0, 0.45);
  padding: 18px 20px 20px;
}

.saglik-karantina-alt__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 193, 7, 0.28);
}

.saglik-karantina-alt__head-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.saglik-karantina-alt__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #b45309;
  background: rgba(255, 193, 7, 0.25);
  border: 1px solid rgba(255, 193, 7, 0.4);
}

.saglik-karantina-alt__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: #7c4a03;
}

.saglik-karantina-alt__lead {
  font-size: 0.85rem;
  color: rgba(43, 43, 43, 0.65);
  max-width: 36rem;
}

.saglik-karantina-alt__count {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(43, 43, 43, 0.1);
  color: rgba(43, 43, 43, 0.55);
}

.saglik-karantina-alt__count--aktif {
  background: rgba(255, 193, 7, 0.22);
  border-color: rgba(255, 193, 7, 0.45);
  color: #7c4a03;
}

.saglik-karantina-alt__empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(43, 43, 43, 0.12);
}

.saglik-karantina-alt__empty-ico {
  font-size: 1.75rem;
  color: #198754;
  opacity: 0.85;
}

.saglik-karantina-alt__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.saglik-karantina-kart {
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 193, 7, 0.28);
  box-shadow: 0 8px 20px -16px rgba(44, 62, 80, 0.25);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.saglik-karantina-kart:hover {
  border-color: rgba(255, 193, 7, 0.55);
  box-shadow: 0 12px 28px -18px rgba(180, 120, 0, 0.35);
}

.saglik-karantina-kart__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.saglik-karantina-kart__kupe {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.saglik-karantina-kart__gun {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.2);
  color: #7c4a03;
  white-space: nowrap;
}

.saglik-karantina-kart__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 10px;
  color: rgba(43, 43, 43, 0.7);
}

.saglik-karantina-kart__sebep {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
}

.saglik-karantina-kart__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 575.98px) {
  .saglik-karantina-alt__head-actions {
    width: 100%;
  }
  .saglik-karantina-alt__grid {
    grid-template-columns: 1fr;
  }
}

.saglik-hasta-islem {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.saglik-hasta-islem__primary {
  flex: 0 0 auto;
}
.saglik-hasta-islem__more .btn {
  padding: 0.2rem 0.45rem;
}
.btn-saglik-tedavi-gir {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.28);
}
.btn-saglik-tedavi-gir:hover,
.btn-saglik-tedavi-gir:focus {
  color: #fff;
  background: linear-gradient(135deg, #c82333 0%, #a71d2a 100%);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
}
.btn-saglik-tedavi-gir-submit {
  background: linear-gradient(135deg, var(--ekip-primary, #2d6a4f) 0%, #1b4332 100%);
  border: none;
  color: #fff;
  font-weight: 600;
}
.btn-saglik-tedavi-gir-submit:hover,
.btn-saglik-tedavi-gir-submit:focus {
  color: #fff;
  filter: brightness(1.05);
}
.saglik-tedavi-kaynak-banner {
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #842029;
  font-size: 0.875rem;
}
.saglik-tedavi-modal .modal-content {
  overflow: hidden;
}

.saglik-cal-grid-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.5);
  margin-bottom: 6px;
  text-align: center;
}
.saglik-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.saglik-cal-cell {
  min-height: 84px;
  border: 1px solid rgba(43, 43, 43, 0.1);
  border-radius: 12px;
  padding: 6px 8px;
  font-size: 0.76rem;
  background: #fff;
}
.saglik-cal-cell--muted {
  opacity: 0.35;
  background: transparent;
  border-style: dashed;
}
.saglik-cal-cell.is-today {
  border-color: rgba(255, 122, 0, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.16);
}
.saglik-cal-day-num {
  font-weight: 800;
  color: rgba(43, 43, 43, 0.55);
}
.saglik-cal-chip {
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.62rem;
  line-height: 1.35;
  background: rgba(255, 122, 0, 0.09);
}
.saglik-cal-chip-sub { color: rgba(43, 43, 43, 0.45); }
.saglik-modal-title .bi {
  color: var(--brand-orange, #ff7a00);
}

/* --- Tırnak bakımı --- */
.tirnak-page .tirnak-hero {
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 122, 0, 0.10) 55%, rgba(44, 62, 80, 0.04) 100%);
  border: 1px solid rgba(43, 43, 43, 0.1);
  box-shadow: 0 18px 44px -38px rgba(44, 62, 80, 0.35);
}

.tirnak-page .tirnak-animal-list {
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(43, 43, 43, 0.08);
  border-radius: 14px;
  padding: 8px;
  background: #fff;
}

.tirnak-page .tirnak-animal-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.tirnak-page .tirnak-animal-item:hover {
  background: rgba(255, 122, 0, 0.06);
}

.tirnak-page .tirnak-switches .form-check-input:checked {
  background-color: var(--brand-orange, #ff7a00);
  border-color: var(--brand-orange, #ff7a00);
}

/* --- Padok yönetimi --- */
.padok-page .padok-parent-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 122, 0, 0.10);
  color: #c2410c;
}

.padok-page .padok-assign-card {
  border-radius: 18px;
  padding: 12px;
  border: 1px solid rgba(43, 43, 43, 0.1);
  background: #fff;
}

.padok-page .padok-animal-list {
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(43, 43, 43, 0.08);
  border-radius: 14px;
  padding: 8px;
}

.padok-page .padok-animal-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.padok-page .padok-animal-item:hover {
  background: rgba(255, 122, 0, 0.06);
}

.padok-page .padok-assign-preview {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(43, 43, 43, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 122, 0, 0.08) 55%, rgba(44, 62, 80, 0.04) 100%);
  height: 100%;
}

.padok-page .padok-assign-count {
  font-weight: 800;
  font-size: 1.2rem;
}

/* ══════════════════════════════════════════════════════
   ÜREME PANELİ
   ══════════════════════════════════════════════════════ */

.ureme-paneli {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* KPI Strip */
.ureme-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.ureme-kpi {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(43, 43, 43, 0.06);
  box-shadow: 0 8px 24px -16px rgba(16, 20, 28, 0.12);
  transition: transform 200ms, box-shadow 200ms;
}

.ureme-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px rgba(16, 20, 28, 0.18);
}

.ureme-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ureme-kpi--gebe .ureme-kpi-icon {
  background: rgba(233, 150, 176, 0.18);
  color: #d63384;
}

.ureme-kpi--gecikme .ureme-kpi-icon {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.ureme-kpi--yaklasan .ureme-kpi-icon {
  background: rgba(255, 193, 7, 0.15);
  color: #d68a00;
}

.ureme-kpi--yenidogan .ureme-kpi-icon {
  background: rgba(255, 122, 0, 0.12);
  color: var(--brand-orange);
}

.ureme-kpi--zor-dogum .ureme-kpi-icon {
  background: rgba(253, 126, 20, 0.15);
  color: #fd7e14;
}

.ureme-kpi--dusuk-gebelik .ureme-kpi-icon {
  background: rgba(111, 66, 193, 0.12);
  color: #6f42c1;
}

.ureme-card-risk {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(43, 43, 43, 0.04);
  font-size: 0.82rem;
}

.ureme-risk-pct {
  font-weight: 800;
  white-space: nowrap;
}

.ureme-risk--high {
  color: #dc3545;
}

.ureme-risk--med {
  color: #fd7e14;
}

.ureme-risk--low {
  color: #198754;
}

.ureme-newborn-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.ureme-kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--anthracite);
}

.ureme-kpi-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

/* Section */
.ureme-section {
  overflow: visible;
}

.ureme-count-badge {
  background: rgba(255, 122, 0, 0.12);
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Empty state */
.ureme-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  color: var(--muted);
}

.ureme-empty i {
  font-size: 2.4rem;
  opacity: 0.4;
  margin-bottom: 12px;
}

.ureme-empty p {
  margin: 0;
  font-size: 0.92rem;
}

/* Gebe Grid */
.ureme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  padding: 16px;
}

.ureme-card {
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: #fff;
  overflow: hidden;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
}

.ureme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -10px rgba(16, 20, 28, 0.15);
}

.ureme-card--gecikme {
  border-color: rgba(220, 53, 69, 0.35);
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.03), rgba(255, 255, 255, 1));
}

.ureme-card--yaklasan {
  border-color: rgba(255, 193, 7, 0.45);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.04), rgba(255, 255, 255, 1));
}

.ureme-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.05);
}

.ureme-card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(233, 150, 176, 0.15);
  color: #d63384;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ureme-card--gecikme .ureme-card-avatar {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.ureme-card-info {
  flex: 1;
  min-width: 0;
}

.ureme-card-kupe {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--anthracite);
}

.ureme-card-name {
  font-size: 0.78rem;
  color: var(--muted);
}

.ureme-card-alert {
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  animation: gebelik-pulse 2s ease-in-out infinite;
}

.ureme-card-alert--soon {
  background: rgba(255, 193, 7, 0.18);
  color: #856404;
}

.ureme-card-body {
  padding: 14px 16px;
}

.ureme-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.ureme-card-meta-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ureme-meta-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 600;
}

.ureme-meta-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--anthracite);
}

.ureme-progress-wrap {
  margin-top: 4px;
}

.ureme-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(43, 43, 43, 0.06);
  overflow: hidden;
}

.ureme-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d63384, #e891b3);
  transition: width 600ms ease;
}

.ureme-progress-fill--warn {
  background: linear-gradient(90deg, #ffc107, #ffda6a);
}

.ureme-progress-fill--danger {
  background: linear-gradient(90deg, #dc3545, #f17b85);
}

.ureme-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 4px;
}

.ureme-card-foot {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid rgba(43, 43, 43, 0.05);
}

.ureme-btn-detail {
  background: var(--brand-orange);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  border-radius: 8px;
  padding: 5px 12px;
}

.ureme-btn-detail:hover {
  background: var(--brand-orange-hover);
  color: #fff;
}

.ureme-btn-history {
  background: rgba(43, 43, 43, 0.06);
  color: var(--anthracite);
  font-weight: 600;
  font-size: 0.78rem;
  border-radius: 8px;
  padding: 5px 12px;
}

.ureme-btn-history:hover {
  background: rgba(43, 43, 43, 0.12);
}

/* Yeni Doğan Grid */
.ureme-newborn-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.ureme-newborn-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(43, 43, 43, 0.06);
  background: #fff;
  transition: transform 150ms, box-shadow 150ms;
}

.ureme-newborn-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px -8px rgba(16, 20, 28, 0.12);
}

.ureme-newborn--fresh {
  border-left: 3px solid var(--brand-orange);
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.04), transparent);
}

.ureme-newborn--week {
  border-left: 3px solid rgba(255, 193, 7, 0.7);
}

.ureme-newborn-age {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 122, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ureme-newborn--fresh .ureme-newborn-age {
  background: rgba(255, 122, 0, 0.15);
}

.ureme-newborn-age-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-orange);
  line-height: 1;
}

.ureme-newborn-age-label {
  font-size: 0.62rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.ureme-newborn-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ureme-newborn-date {
  font-size: 0.78rem;
  color: var(--muted);
}

.ureme-newborn-anne,
.ureme-newborn-buzagi {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.ureme-newborn-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.ureme-newborn-cinsi {
  font-size: 0.68rem;
  padding: 2px 7px;
  background: rgba(233, 150, 176, 0.18);
  color: #d63384;
  font-weight: 700;
}

.ureme-newborn-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(25, 135, 84, 0.08);
}

.ureme-newborn-count-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: #198754;
  line-height: 1;
}

.ureme-newborn-count-label {
  font-size: 0.6rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .ureme-kpi-strip {
    grid-template-columns: 1fr 1fr;
  }
  .ureme-grid {
    grid-template-columns: 1fr;
  }
}

/* Sağlık ↔ Tedaviler satır vurgusu (deep link) */
tr.tedavi-row-highlight > td {
  box-shadow: inset 3px 0 0 0 #0d6efd;
  background: rgba(13, 110, 253, 0.06);
}

.tedavi-giris-panel {
  border-color: rgba(220, 53, 69, 0.12);
}

.tedavi-defter-ozet--acik {
  color: #b02a37;
  font-weight: 600;
}

.tedavi-durum--acik {
  background: rgba(220, 53, 69, 0.12);
  color: #b02a37;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.tedavi-durum--kapali {
  background: rgba(25, 135, 84, 0.1);
  color: #146c43;
  border: 1px solid rgba(25, 135, 84, 0.2);
}

.tedavi-islem-hucre .btn {
  margin-left: 2px;
}

.tedavi-edit-modal .modal-content {
  border-radius: 16px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  box-shadow: 0 24px 48px -28px rgba(16, 20, 28, 0.45);
}

.tedavi-edit-durum-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tedavi-edit-durum {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(43, 43, 43, 0.12);
  cursor: pointer;
  margin: 0;
  font-size: 0.875rem;
  transition: border-color 0.15s, background 0.15s;
}

.tedavi-edit-durum input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tedavi-edit-durum:has(input:checked) {
  border-color: rgba(13, 110, 253, 0.45);
  background: rgba(13, 110, 253, 0.06);
}

.tedavi-edit-durum--acik:has(input:checked) {
  border-color: rgba(220, 53, 69, 0.45);
  background: rgba(220, 53, 69, 0.08);
  color: #b02a37;
}

.tedavi-edit-durum--kapali:has(input:checked) {
  border-color: rgba(25, 135, 84, 0.45);
  background: rgba(25, 135, 84, 0.08);
  color: #146c43;
}

.tedavi-edit-bitis--disabled {
  opacity: 0.55;
}

@media (max-width: 575.98px) {
  .tedavi-edit-durum-group {
    grid-template-columns: 1fr;
  }
}

.finans-yem-card {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.06), rgba(255, 255, 255, 0.98));
  border-color: rgba(255, 122, 0, 0.22) !important;
}

.finans-yem-card .fw-bold i {
  color: var(--brand-orange);
}

/* ---- Rutin ölçüm: parametre ↔ kayıt akış şeridi ---- */
.rutin-workflow {
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 240, 0.55));
  box-shadow: 0 10px 28px -22px rgba(16, 20, 28, 0.45);
  overflow: hidden;
}

.rutin-workflow-inner {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}

.rutin-workflow-step {
  flex: 1 1 200px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  border: 0;
  background: transparent;
  transition: background 0.15s ease;
}

.rutin-workflow-step.is-current {
  background: rgba(255, 122, 0, 0.1);
}

a.rutin-workflow-link:hover {
  background: rgba(255, 122, 0, 0.06);
  color: inherit;
}

.rutin-workflow-badge {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--brand-orange, #ff7a00);
  color: #fff;
}

.rutin-workflow-badge--muted {
  background: rgba(43, 43, 43, 0.18);
  color: #fff;
}

.rutin-workflow-title {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.rutin-workflow-sub {
  font-size: 0.8rem;
  color: rgba(43, 43, 43, 0.58);
  margin-top: 2px;
}

.rutin-workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  color: rgba(43, 43, 43, 0.25);
  flex: 0 0 auto;
}

.rutin-workflow-go {
  margin-left: auto;
  align-self: center;
  font-size: 1.25rem;
  color: rgba(255, 122, 0, 0.85);
}

.rutin-empty {
  background: rgba(255, 255, 255, 0.5);
}

.rutin-empty-icon {
  font-size: 2.25rem;
  color: rgba(255, 122, 0, 0.55);
}

@media (max-width: 767.98px) {
  .rutin-workflow-arrow {
    display: none;
  }
}

/* ---- Panel üst çubuğu: zil bildirimleri ---- */
.dash-bell-scroll {
  max-height: 360px;
  overflow-y: auto;
}

.dash-bell-item {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
  font-size: 0.84rem;
}

.dash-bell-item:last-child {
  border-bottom: 0;
}

.dash-bell-item--unread {
  background: rgba(255, 122, 0, 0.08);
}

/* ---- Hayvan kayıt sayfaları (süt, kilo, tohumlama, kızgınlık) ---- */
.hayvan-record-page {
  --hr-accent: var(--brand-orange, #ff7a00);
  --hr-accent-soft: rgba(255, 122, 0, 0.1);
  --hr-surface: rgba(255, 255, 255, 0.92);
  --hr-border: rgba(43, 43, 43, 0.08);
  --hr-muted: rgba(43, 43, 43, 0.55);
}

.hayvan-record-panel.dash-panel {
  border-radius: 16px;
  background: var(--hr-surface);
  border-color: var(--hr-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 36px -24px rgba(16, 20, 28, 0.42);
}

.hayvan-record-panel--form .dash-panel-header {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.07) 0%, rgba(255, 255, 255, 0) 58%);
}

.hayvan-record-panel--list .dash-panel-header {
  background: linear-gradient(180deg, rgba(246, 247, 249, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
}

.hayvan-record-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.hayvan-record-panel-ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--hr-accent);
  background: var(--hr-accent-soft);
  border: 1px solid rgba(255, 122, 0, 0.18);
  box-shadow: 0 4px 14px -8px rgba(255, 122, 0, 0.45);
}

.hayvan-record-panel-ico--heat {
  color: #c2410c;
  background: rgba(234, 88, 12, 0.12);
  border-color: rgba(234, 88, 12, 0.22);
  box-shadow: 0 4px 14px -8px rgba(234, 88, 12, 0.35);
}

.hayvan-record-panel-ico--milk {
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.1);
  border-color: rgba(13, 110, 253, 0.2);
  box-shadow: 0 4px 14px -8px rgba(13, 110, 253, 0.3);
}

.hayvan-record-panel-ico--weight {
  color: #198754;
  background: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.2);
  box-shadow: 0 4px 14px -8px rgba(25, 135, 84, 0.3);
}

.hayvan-record-panel-ico--breed {
  color: #6f42c1;
  background: rgba(111, 66, 193, 0.1);
  border-color: rgba(111, 66, 193, 0.2);
  box-shadow: 0 4px 14px -8px rgba(111, 66, 193, 0.3);
}

.hayvan-record-panel-ico--kart {
  color: #ff7a00;
  background: rgba(255, 122, 0, 0.11);
  border-color: rgba(255, 122, 0, 0.22);
  box-shadow: 0 4px 14px -8px rgba(255, 122, 0, 0.35);
}

.hayvan-record-count {
  flex: 0 0 auto;
  align-self: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(43, 43, 43, 0.62);
  background: rgba(43, 43, 43, 0.05);
  border: 1px solid rgba(43, 43, 43, 0.08);
}

.hayvan-record-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
}

.hayvan-record-stat {
  flex: 1 1 120px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(43, 43, 43, 0.07);
  background: rgba(246, 247, 249, 0.75);
}

.hayvan-record-stat-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--hr-muted);
  margin-bottom: 2px;
}

.hayvan-record-stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(43, 43, 43, 0.9);
  font-variant-numeric: tabular-nums;
}

.hayvan-record-stat-value--accent {
  color: var(--hr-accent);
}

.hayvan-record-form {
  padding: 4px 16px 18px !important;
}

.hayvan-record-form .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(43, 43, 43, 0.68);
  margin-bottom: 5px;
}

.hayvan-record-form .form-control,
.hayvan-record-form .form-select {
  border-radius: 11px;
  border-color: rgba(43, 43, 43, 0.12);
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hayvan-record-form .form-control:focus,
.hayvan-record-form .form-select:focus {
  border-color: rgba(255, 122, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.14);
}

.hayvan-record-form .btn-brand {
  margin-top: 4px;
  padding: 0.62rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px -10px rgba(255, 122, 0, 0.65);
}

.hayvan-record-table-wrap {
  margin: 0 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(255, 255, 255, 0.65);
  overflow: auto;
  max-height: min(68vh, 720px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 122, 0, 0.35) transparent;
}

.hayvan-record-table-wrap::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.hayvan-record-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 122, 0, 0.28);
  border-radius: 999px;
}

.hayvan-record-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.hayvan-record-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.48);
  padding: 11px 14px;
  background: rgba(250, 251, 252, 0.98);
  border-bottom: 1px solid rgba(43, 43, 43, 0.09);
  white-space: nowrap;
}

.hayvan-record-table tbody td {
  padding: 11px 14px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(43, 43, 43, 0.05);
  color: rgba(43, 43, 43, 0.82);
}

.hayvan-record-table tbody tr:last-child td {
  border-bottom: none;
}

.hayvan-record-table tbody tr {
  transition: background 0.12s ease;
}

.hayvan-record-table tbody tr:nth-child(even) {
  background: rgba(246, 247, 249, 0.55);
}

.hayvan-record-table tbody tr:hover {
  background: rgba(255, 122, 0, 0.06) !important;
}

.hayvan-record-table--wide {
  min-width: 880px;
}

.hayvan-record-table--wide thead th {
  padding: 12px 16px;
}

.hayvan-record-table--wide tbody td {
  padding: 12px 16px;
  font-size: 0.9rem;
}

.hayvan-record-table .hr-th-num,
.hayvan-record-table .hr-td-num {
  text-align: center;
  width: 4.5rem;
  font-variant-numeric: tabular-nums;
}

.hayvan-record-table .hr-td-num strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  background: rgba(255, 122, 0, 0.1);
  color: var(--hr-accent);
}

.hayvan-record-table .hr-td-num.hr-td-num--muted strong {
  background: rgba(43, 43, 43, 0.06);
  color: rgba(43, 43, 43, 0.35);
  font-weight: 600;
}

.hayvan-record-table .hr-td-num.hr-td-num--warn strong {
  background: rgba(220, 53, 69, 0.1);
  color: #b02a37;
}

.hayvan-record-table .hr-col-kupe {
  min-width: 7.5rem;
}

.hayvan-record-table .hr-col-meta {
  max-width: 11rem;
}

.animal-pill--calf {
  background: rgba(214, 51, 132, 0.1);
  border-color: rgba(214, 51, 132, 0.22);
  color: #a61e4d;
}

.animal-pill--weaned {
  background: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.22);
  color: #146c43;
}

.animal-pill--pending {
  background: rgba(255, 193, 7, 0.14);
  border-color: rgba(255, 193, 7, 0.35);
  color: #856404;
}

.animal-pill--birth-normal {
  background: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.2);
  color: #146c43;
}

.animal-pill--birth-hard {
  background: rgba(255, 122, 0, 0.12);
  border-color: rgba(255, 122, 0, 0.28);
  color: #c45a00;
}

.hayvan-record-kupe--calf::before {
  background: #d63384;
}

.hayvan-record-panel-ico--calf {
  color: #d63384;
  background: rgba(214, 51, 132, 0.1);
  border-color: rgba(214, 51, 132, 0.22);
  box-shadow: 0 4px 14px -8px rgba(214, 51, 132, 0.35);
}

.dogum-outcome-stack .dogum-outcome-label {
  border-radius: 12px;
  padding: 12px 14px;
}

.hayvan-record-kupe {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(43, 43, 43, 0.92);
  letter-spacing: -0.01em;
}

.hayvan-record-kupe::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--hr-accent);
  opacity: 0.75;
  vertical-align: middle;
}

.hayvan-record-val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--hr-accent);
}

.hayvan-record-val--weight {
  color: #198754;
}

.hayvan-record-date {
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  color: rgba(43, 43, 43, 0.72);
  white-space: nowrap;
}

.hayvan-record-note {
  max-width: 220px;
  font-size: 0.8rem;
  color: var(--hr-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hayvan-record-note:empty::before,
.hayvan-record-note.is-empty {
  color: rgba(43, 43, 43, 0.28);
}

.hayvan-record-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.hayvan-record-actions .btn {
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
}

.hayvan-record-empty {
  margin: 0 12px 14px;
  padding: 2.75rem 1.5rem;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(43, 43, 43, 0.14);
  background: linear-gradient(180deg, rgba(246, 247, 249, 0.9) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.hayvan-record-empty-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: rgba(43, 43, 43, 0.35);
  background: rgba(43, 43, 43, 0.05);
}

.hayvan-record-empty-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(43, 43, 43, 0.78);
  margin-bottom: 4px;
}

.hayvan-record-empty-sub {
  font-size: 0.84rem;
  color: var(--hr-muted);
  max-width: 28rem;
  margin: 0 auto;
}

.animal-pill--total {
  background: rgba(43, 43, 43, 0.06);
  border-color: rgba(43, 43, 43, 0.1);
  color: rgba(43, 43, 43, 0.72);
}

.animal-pill--sabah {
  background: rgba(255, 193, 7, 0.14);
  border-color: rgba(255, 193, 7, 0.35);
  color: #856404;
}

.animal-pill--ogle {
  background: rgba(13, 110, 253, 0.1);
  border-color: rgba(13, 110, 253, 0.22);
  color: #0a58ca;
}

.animal-pill--aksam {
  background: rgba(111, 66, 193, 0.1);
  border-color: rgba(111, 66, 193, 0.22);
  color: #5a32a3;
}

.hayvan-heat-grid {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}

.hayvan-heat-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(234, 88, 12, 0.16);
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.55) 0%, rgba(255, 255, 255, 0.92) 48%);
  box-shadow: 0 6px 18px -14px rgba(234, 88, 12, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hayvan-heat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -14px rgba(234, 88, 12, 0.4);
}

.hayvan-heat-card-kupe {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(43, 43, 43, 0.92);
}

.hayvan-heat-card-meta {
  font-size: 0.82rem;
  color: var(--hr-muted);
  margin-top: 2px;
}

.hayvan-heat-card-time {
  font-size: 0.78rem;
  color: rgba(194, 65, 12, 0.85);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hayvan-heat-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hayvan-heat-card-actions .btn {
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.8rem;
}

.hayvan-record-panel .dash-panel-subtitle a {
  font-weight: 600;
  text-decoration: none;
  color: var(--hr-accent);
}

.hayvan-record-panel .dash-panel-subtitle a:hover {
  text-decoration: underline;
}

.hayvan-record-panel-ico--health {
  color: #198754;
  background: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.22);
  box-shadow: 0 4px 14px -8px rgba(25, 135, 84, 0.35);
}

.hayvan-record-panel-ico--birth {
  color: #d63384;
  background: rgba(214, 51, 132, 0.1);
  border-color: rgba(214, 51, 132, 0.22);
  box-shadow: 0 4px 14px -8px rgba(214, 51, 132, 0.3);
}

.hayvan-record-panel-ico--treatment {
  color: #0dcaf0;
  background: rgba(13, 202, 240, 0.12);
  border-color: rgba(13, 202, 240, 0.24);
  box-shadow: 0 4px 14px -8px rgba(13, 202, 240, 0.35);
}

@media (max-width: 575.98px) {
  .hayvan-record-table-wrap {
    margin-left: 8px;
    margin-right: 8px;
  }

  .hayvan-record-stats {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ---- Dashboard genel UI (tüm paneller, tablolar, formlar, grafikler) ---- */
.dash-content {
  --dash-ui-accent: var(--brand-orange, #ff7a00);
  --dash-ui-muted: rgba(43, 43, 43, 0.55);
}

.dash-content .dash-panel:not(.dash-home-shortcuts .dash-panel) {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 36px -24px rgba(16, 20, 28, 0.4);
}

.dash-content .dash-panel-header {
  background: linear-gradient(180deg, rgba(246, 247, 249, 0.85) 0%, rgba(255, 255, 255, 0) 100%);
}

.dash-content .dash-panel form.p-3,
.dash-content .dash-panel form.p-3.p-lg-4,
.dash-content .dash-panel .hayvan-record-form {
  padding-top: 4px !important;
  padding-bottom: 18px !important;
}

.dash-content .dash-panel form .form-label,
.dash-content .modal-body .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(43, 43, 43, 0.68);
  margin-bottom: 5px;
}

.dash-content .form-control,
.dash-content .form-select,
.dash-content .modal-body .form-control,
.dash-content .modal-body .form-select {
  border-radius: 11px;
  border-color: rgba(43, 43, 43, 0.12);
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dash-content .form-control:focus,
.dash-content .form-select:focus,
.dash-content .modal-body .form-control:focus,
.dash-content .modal-body .form-select:focus {
  border-color: rgba(255, 122, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.14);
}

.dash-content .btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dash-content .btn-brand {
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px -10px rgba(255, 122, 0, 0.6);
}

.dash-content .btn-outline-secondary,
.dash-content .btn-outline-danger {
  border-width: 1.5px;
}

.dash-content .dash-panel > .table-responsive:not(.animal-table-responsive):not(:has(.biz-table)):not(:has(.hayvan-herd-table)) {
  margin: 0 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: rgba(255, 255, 255, 0.65);
  overflow: auto;
  max-height: min(68vh, 720px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.dash-content .dash-panel > .table-responsive:not(.animal-table-responsive) table.table:not(.hayvan-herd-table):not(.biz-table),
.dash-content .hayvan-record-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.dash-content .dash-panel > .table-responsive:not(.animal-table-responsive) table.table:not(.hayvan-herd-table):not(.biz-table) thead th,
.dash-content .hayvan-record-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.48);
  padding: 11px 14px;
  background: rgba(250, 251, 252, 0.98);
  border-bottom: 1px solid rgba(43, 43, 43, 0.09);
  white-space: nowrap;
}

.dash-content .dash-panel > .table-responsive:not(.animal-table-responsive) table.table:not(.hayvan-herd-table):not(.biz-table) tbody td,
.dash-content .hayvan-record-table tbody td {
  padding: 11px 14px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(43, 43, 43, 0.05);
  color: rgba(43, 43, 43, 0.82);
}

.dash-content .dash-panel > .table-responsive:not(.animal-table-responsive) table.table:not(.hayvan-herd-table):not(.biz-table) tbody tr:nth-child(even),
.dash-content .hayvan-record-table tbody tr:nth-child(even) {
  background: rgba(246, 247, 249, 0.55);
}

.dash-content .dash-panel > .table-responsive:not(.animal-table-responsive) table.table:not(.hayvan-herd-table):not(.biz-table) tbody tr:hover,
.dash-content .hayvan-record-table tbody tr:hover {
  background: rgba(255, 122, 0, 0.06) !important;
}

.dash-content .dash-panel > .table-responsive:not(.animal-table-responsive) table.table:not(.hayvan-herd-table):not(.biz-table) tbody tr:last-child td,
.dash-content .hayvan-record-table tbody tr:last-child td {
  border-bottom: none;
}

.dash-content .hayvan-record-kupe,
.dash-content .dash-panel table.table tbody td.fw-semibold:first-of-type {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dash-content .badge {
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35em 0.65em;
}

.dash-content .dash-chart-card {
  border-radius: 14px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 247, 249, 0.6) 100%);
  box-shadow: 0 8px 24px -16px rgba(16, 20, 28, 0.25);
  padding: 14px 16px 12px;
}

.dash-content .dash-chart-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dash-content .dash-chart-canvas,
.dash-content .hayvan-gecmis-chart-canvas-wrap canvas,
.dash-content canvas.dash-chart-canvas {
  border-radius: 10px;
}

.dash-content .modal-content {
  border-radius: 16px;
  border: 1px solid rgba(43, 43, 43, 0.08);
  box-shadow: 0 24px 48px -20px rgba(16, 20, 28, 0.45);
}

.dash-content .modal-header {
  background: linear-gradient(180deg, rgba(246, 247, 249, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
}

.dash-content .list-group-item {
  border-color: rgba(43, 43, 43, 0.06);
  padding: 12px 16px;
}

@media (max-width: 575.98px) {
  .dash-content .dash-panel > .table-responsive:not(.animal-table-responsive) {
    margin-left: 8px;
    margin-right: 8px;
  }
}

/* ── Viewport toast bildirimleri (kaydırma konumundan bağımsız) ── */
.app-toast-stack {
  position: fixed;
  z-index: 1090;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 1.5rem));
  display: flex;
  flex-direction: column-reverse;
  gap: 0.55rem;
  pointer-events: none;
}

.app-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.18);
  background: #fff;
  color: #1e293b;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-toast.is-leaving {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

.app-toast-ico {
  flex-shrink: 0;
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.app-toast-body {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
}

.app-toast-close {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  padding: 0.1rem 0.2rem;
  line-height: 1;
  border-radius: 6px;
}

.app-toast-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.app-toast--success {
  background: linear-gradient(135deg, #ecfdf3, #f6fffb);
  border-color: rgba(25, 135, 84, 0.25);
  color: #146c43;
}

.app-toast--success .app-toast-ico { color: #198754; }

.app-toast--danger {
  background: linear-gradient(135deg, #fff5f5, #fffafa);
  border-color: rgba(220, 53, 69, 0.28);
  color: #842029;
}

.app-toast--danger .app-toast-ico { color: #dc3545; }

.app-toast--warning {
  background: linear-gradient(135deg, #fffbeb, #fffdf5);
  border-color: rgba(255, 193, 7, 0.35);
  color: #664d03;
}

.app-toast--warning .app-toast-ico { color: #b58100; }

.app-toast--info {
  background: linear-gradient(135deg, #eef6ff, #f8fbff);
  border-color: rgba(13, 110, 253, 0.22);
  color: #084298;
}

.app-toast--info .app-toast-ico { color: #0d6efd; }

@media (max-width: 575.98px) {
  .app-toast-stack {
    width: calc(100vw - 1rem);
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  .app-toast {
    font-size: 0.84rem;
    padding: 0.75rem 0.8rem;
  }
}
