/* Caria Hukuk — Metrica temasının üzerine projeye özel stiller */

/* ---- Marka */
.brand-mark, .auth-brand-mark {
    display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, #b48a4a, #d6b27a); color: #1d2738; font-size: 20px; margin-top: 14px;
}
.auth-brand-mark { width: 54px; height: 54px; font-size: 28px; margin-top: 0; }
.brand-text { font-size: 18px; color: #303e67; letter-spacing: .2px; padding-left: 4px; vertical-align: middle; }
.brand-mark-sm { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; vertical-align: middle;
    background: linear-gradient(135deg, #b48a4a, #d6b27a); color: #1d2738; font-size: 17px; }
.left-sidebar .brand { height: 60px; display: flex; align-items: center; justify-content: center; }
.left-sidebar .brand .logo { line-height: 1 !important; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.enlarge-menu .left-sidebar:not(:hover) .brand-text { display: none; }
.left-sidebar .menu-body .nav-link .badge-soon { margin-left: 6px; }
/* Sol menü her zaman dikey: Bootstrap'in .navbar-expand-* yatay dizilimini ezer */
.left-sidebar .menu-body .navbar-nav { display: flex; flex-direction: column; flex-wrap: nowrap; width: 100%; }
.left-sidebar .menu-body .navbar-nav > .nav-item, .left-sidebar .menu-body .navbar-nav > .menu-label { width: 100%; list-style: none; }
.left-sidebar .menu-body .navbar-nav .nav-link > span { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.left-sidebar .menu-body .navbar-nav .badge-soon { float: none; margin-left: auto; flex-shrink: 0; }
.enlarge-menu .left-sidebar:hover .menu-body .navbar-nav .nav-item .nav-link > span { display: flex; }
.enlarge-menu .left-sidebar:not(:hover) .brand-mark-sm { margin: 0 auto; }
.left-sidebar .menu-content { height: calc(100vh - 60px) !important; overflow-y: auto; }
.nav-tabs-custom .nav-link { font-weight: 500; }
.detail-list dt { font-weight: 500; color: #7081b9; font-size: 12.5px; }
.detail-list dd { margin-bottom: .6rem; color: #303e67; }
.dropzone-area { border: 2px dashed #c5cfe6; border-radius: 8px; padding: 34px 16px; text-align: center; background: #f8f9fc; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone-area.dragover { border-color: #0b51b7; background: rgba(11,81,183,.05); }
.dropzone-area i { font-size: 34px; color: #0b51b7; }
.file-list li { font-size: 13px; padding: 4px 0; border-bottom: 1px dashed #e3ebf6; display: flex; justify-content: space-between; }
.calc-box { background: #f8f9fc; border: 1px solid #e3ebf6; border-radius: 6px; padding: 12px 14px; font-size: 13px; }
.calc-box .due { font-size: 18px; font-weight: 700; color: #0b51b7; }
.timeline-list { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline-list:before { content: ""; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: #e3ebf6; }
.timeline-list li { position: relative; padding: 0 0 18px 44px; }
.timeline-list .tl-icon { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #e3ebf6; color: #0b51b7; font-size: 15px; }
.amount-pos { color: #22b783; font-weight: 600; }
.amount-neg { color: #ef4d56; font-weight: 600; }
.brand-text b { color: #b48a4a; }
.topbar-page-title { align-items: center; height: 70px; padding-left: 8px; font-weight: 600; color: #303e67; font-size: 15px; }
.tenant-name { font-size: 13px; color: #7081b9; padding: 0 12px; }
.badge-soon { float: right; font-size: 10px; padding: 1px 6px; border-radius: 4px; background: rgba(112,129,185,.12); color: #7081b9; }
.menu-body .nav-link.disabled { opacity: .6; }
.footer a, .auth-footer a { color: inherit; font-weight: 600; text-decoration: none; }
.footer a:hover, .auth-footer a:hover { color: #b48a4a; }
.auth-footer { font-size: 13px; color: #8997bd; }
.auth-title { font-weight: 600; font-size: 18px; color: #303e67; }

/* ---- Bootstrap 5.0 (Metrica) içinde bulunmayan 5.2/5.3 yardımcı sınıfları */
.fw-medium { font-weight: 500 !important; }
.text-body-secondary { color: #7081b9 !important; }
.text-bg-primary { color: #fff !important; background-color: #0b51b7 !important; }
.text-bg-secondary { color: #fff !important; background-color: #9ba7ca !important; }
.text-bg-success { color: #fff !important; background-color: #22b783 !important; }
.text-bg-danger { color: #fff !important; background-color: #ef4d56 !important; }
.text-bg-warning { color: #000 !important; background-color: #f3c74d !important; }
.text-bg-info { color: #fff !important; background-color: #12a4ed !important; }
.text-bg-dark { color: #fff !important; background-color: #303e67 !important; }
.text-bg-light { color: #303e67 !important; background-color: #f1f5fa !important; }
.bg-primary-subtle { background-color: rgba(11,81,183,.12) !important; }
.bg-success-subtle { background-color: rgba(34,183,131,.12) !important; }
.bg-danger-subtle { background-color: rgba(239,77,86,.12) !important; }
.bg-warning-subtle { background-color: rgba(243,199,77,.18) !important; }

/* ---- Sayfa başlığı (Metrica page-title-box görünümü) */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; padding: 6px 0 18px; }
.page-head .page-title { font-size: 18px; font-weight: 600; color: #303e67; margin: 0 0 2px; }
.page-head p { font-size: 13px; }

/* ---- Bileşenler */
.stat-card { background: #fff; border: 1px solid #e3ebf6; border-radius: 6px; padding: 18px; display: flex; gap: 14px; align-items: center; box-shadow: 0 3px 9px rgba(50,50,9,0), 6px 4px 19px rgba(115,103,240,.03); }
.stat-icon { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; }
.stat-value { font-size: 22px; font-weight: 700; line-height: 1; color: #303e67; }
.stat-label { font-size: 13px; color: #7081b9; margin-top: 4px; }
.roadmap .list-group-item { font-size: 13px; display: flex; gap: .6rem; align-items: center; color: #7081b9; }
.roadmap .done { color: #303e67; font-weight: 500; }
.roadmap .done i { color: #22b783; }

.avatar { border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; flex-shrink: 0; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-xl { width: 96px; height: 96px; font-size: 28px; }
.avatar-initials { background: rgba(11,81,183,.12); color: #0b51b7; font-weight: 600; }

.role-picker { display: flex; flex-wrap: wrap; gap: .5rem; }
.role-chip input { display: none; }
.role-chip span { display: inline-block; padding: 5px 12px; border: 1px solid #e3ebf6; border-radius: 999px; cursor: pointer; font-size: 13px; background: #fff; user-select: none; }
.role-chip input:checked + span { background: #0b51b7; border-color: #0b51b7; color: #fff; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, #f3f6f9 35%); padding: 18px 0 8px; text-align: right; margin-top: 1rem; z-index: 5; }

.logo-box { height: 120px; border: 1px dashed #e3ebf6; border-radius: 6px; display: grid; place-items: center; background: #f8f9fc; padding: 12px; }
.logo-box img { max-height: 100%; max-width: 100%; object-fit: contain; }
.crop-stage { max-height: 60vh; background: #f1f5fa; border-radius: 6px; overflow: hidden; }
.crop-stage img { display: block; max-width: 100%; }

.qr-box { padding: 8px; background: #fff; border: 1px solid #e3ebf6; border-radius: 6px; }
.otp-input { letter-spacing: .4em; font-weight: 600; }
.recovery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.recovery-grid code { background: #f8f9fc; border: 1px solid #e3ebf6; padding: 8px; border-radius: 4px; text-align: center; font-size: 14px; color: #303e67; }
.setup-steps li { margin-bottom: .75rem; }
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state > i { font-size: 3rem; display: block; margin-bottom: 1rem; }
.tenant-option { width: 100%; display: flex; align-items: center; gap: .9rem; padding: 12px 14px; border: 1px solid #e3ebf6; border-radius: 6px; background: #fff; }
.tenant-option:hover { border-color: #0b51b7; }
.tenant-option.current { border-color: #b48a4a; }
.tenant-option-icon { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: rgba(11,81,183,.1); color: #0b51b7; font-size: 18px; }

/* ---- Eklenti uyumları */
.selectr-container { width: 100%; }
.selectr-selected { min-height: 36px; border-color: #e3ebf6; border-radius: .25rem; padding: 7px 28px 7px 12px; font-size: 13px; }
.selectr-container.disabled .selectr-selected { background: #f1f5fa; }
.iti { width: 100%; display: block; }
.iti__country-list { z-index: 1060; }
.form-control.is-invalid ~ .iti__flag-container { border-color: #ef4d56; }
.fc .fc-toolbar-title { font-size: 16px; font-weight: 600; text-transform: capitalize; }
.fc .fc-bg-event { opacity: .18; }
.tox-tinymce { border-color: #e3ebf6 !important; border-radius: .25rem !important; }

@media print {
    .leftbar-tab-menu, .topbar, .footer, .btn { display: none !important; }
    .page-wrapper { margin: 0 !important; }
}
