/* Focus Alacak Takip — AdminLTE 4.10.0 üzerine küçük eklemeler */
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20C0; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20C0; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(fonts/source-sans-3-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20C0; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(fonts/source-sans-3-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF; }

:root {
  /* Yazılım Eviniz imzasının çerçeve renkleri */
  --primary-color: #0d6efd;
  --accent-color: #198754;
}

[hidden] { display: none !important; }

.amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.form-control, .form-select { font-size: 16px; } /* iOS'ta otomatik yakınlaştırmayı önler */

/* Menü: logo alanı beyaz, çünkü logo koyu renkli */
.sidebar-brand.brand-light { background: #fff; border-bottom: 1px solid #dee2e6; }
.sidebar-brand .brand-link { display: flex; align-items: center; justify-content: center; width: 100%; padding: 6px 12px; }
.brand-logo { display: block; height: 42px; width: auto; }
.sidebar-mini.sidebar-collapse .app-sidebar:not(:hover) .brand-logo { height: 22px; }

/* Özet kutuları: tutarlar uzun olduğu için başlık boyu sınırlı */
.small-box .inner h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-variant-numeric: tabular-nums; }
.small-box .inner p { margin-bottom: .25rem; font-size: 1rem; }
.small-box { min-height: 104px; }

/* Tablolar */
.row-link { cursor: pointer; }
.row-link a { color: inherit; text-decoration: none; font-weight: 600; }
.row-link a:hover { color: var(--bs-primary); }
.table td, .table th { vertical-align: middle; }
.cell-sub { display: block; font-size: .875rem; color: var(--bs-secondary-color); }
.voided td { text-decoration: line-through; color: var(--bs-secondary-color); }
.voided td .badge { text-decoration: none; }
.card-header .card-title { font-size: 1.05rem; font-weight: 600; }
.card-tools-search { max-width: 280px; }
@media (max-width: 575.98px) { .card-tools-search { max-width: none; width: 100%; } }

.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.page-actions .btn { flex: 1 1 180px; }

/* Firma önerileri (borç ekle formu). Bootstrap'in "info" (su yeşili) rengi bu formda kullanılmaz (Uğur, 2026-11-13). */
.min-w-0 { min-width: 0; }
.firm-suggest { border: 1px solid var(--bs-primary-border-subtle); border-left: 4px solid var(--bs-primary); border-radius: .375rem; background: var(--bs-body-bg); overflow: hidden; }
.firm-suggest-head { padding: .5rem .875rem; font-size: .875rem; font-weight: 600; color: var(--bs-primary-text-emphasis); border-bottom: 1px solid var(--bs-border-color-translucent); }
.firm-option { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem .875rem; text-align: left; }
.firm-option-name { display: block; font-weight: 600; color: var(--bs-emphasis-color); }
.firm-option mark { padding: 0 .1em; border-radius: 2px; background: #ffe08a; color: inherit; }
.firm-option-balance { flex-shrink: 0; font-weight: 600; color: var(--bs-secondary-color); }
.firm-option.is-active { background: var(--bs-primary-bg-subtle); }
.firm-suggest-new { display: flex; align-items: center; width: 100%; padding: .65rem .875rem; border: 0; border-top: 1px dashed var(--bs-border-color); background: transparent; color: var(--bs-secondary-color); font-weight: 600; text-align: left; }
.firm-suggest-new.is-only { border-top: 0; color: var(--bs-primary); }
.firm-suggest-new:hover, .firm-suggest-new:focus-visible { background: var(--bs-tertiary-bg); color: var(--bs-primary); }
.firm-chosen { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem .875rem; border: 1px solid var(--bs-primary-border-subtle); border-radius: .375rem; background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.firm-chosen.is-new { border-color: var(--bs-border-color); background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.firm-chosen[hidden] { display: none; }
.new-firm-fields { padding: .875rem .875rem .125rem; border: 1px solid var(--bs-border-color); border-radius: .375rem; }

/* Giriş */
.login-page { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.login-box { width: 100%; max-width: 380px; }
.login-logo-img { height: 58px; width: auto; }
.login-signature { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 1.5rem; }

/* Footer: telif solda, imza sağda; mobilde alt alta ortalı */
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ye-wrap { display: inline-flex; align-items: center; gap: 12px; }
@media (max-width: 575.98px) { .footer-row { flex-direction: column; text-align: center; } }

/* Yazılım Eviniz imzası — agents/knowledge/BRAND.md §9 */
.ye-label { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .1em; }
.ye-signature { display: inline-block; padding: 2px; border-radius: 12px; background: linear-gradient(45deg, var(--primary-color), var(--accent-color)); text-decoration: none; }
.ye-inner { display: flex; align-items: center; gap: 8px; padding: 8px 20px; background: #fff; border-radius: 10px; }
.ye-first { font-size: 12px; font-weight: 700; color: #1f2937; letter-spacing: -.05em; }
.ye-last { font-size: 12px; font-weight: 400; color: #475569; letter-spacing: -.05em; text-transform: uppercase; }
.ye-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-color); animation: ye-bounce 1s infinite; }
@keyframes ye-bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0, 0, .2, 1); }
}
