/**
 * Yapısal stiller — grid/şasi; renk ve tema skin.css içindedir (ui.mdc).
 */

.admin-layout {
    min-height: 100vh;
}

.admin-sidebar {
    width: 16rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-brand {
    padding: 1rem 1.25rem;
}

.admin-sidebar-brand-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
}

.admin-sidebar-nav {
    padding: 0.5rem 0.75rem 1rem;
}

.admin-sidebar-nav .nav-link {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    min-height: 3.5rem;
    padding: 0 1.25rem;
    flex-shrink: 0;
}

.admin-topbar-title {
    max-width: 60%;
    font-weight: 600;
}

.admin-content {
    max-width: 100%;
}

/* Tekrar kullanılabilir içerik kartı iskeleti (görünüm skin’de) */
.content-card .card-body {
    min-height: 8rem;
}

.page-header-block {
    margin-bottom: 1.5rem;
}

.page-header-block .lead {
    max-width: 48rem;
}

/* Giriş sayfası yerleşimi */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-panel {
    width: 100%;
    max-width: 26rem;
}

.login-panel .card {
    border-radius: 0.5rem;
}

.login-alert {
    margin-bottom: 1rem;
}

.welcome-dashboard-card .card-body {
    min-height: auto;
}

.filter-card .card-body {
    min-height: auto;
}

.table-products-actions {
    white-space: nowrap;
}

.table-label-matches-actions {
    white-space: nowrap;
}

.table-ad-accounts-actions {
    white-space: nowrap;
}

.table-ad-groups-actions {
    white-space: nowrap;
}

.table-unmatched-actions {
    white-space: nowrap;
}

.table-alerts-actions {
    white-space: nowrap;
}

.ray-alert-metrik-pre {
    max-height: 14rem;
    overflow: auto;
}

.table-row-clickable {
    cursor: pointer;
}

.page-toolbar-product .btn {
    flex-shrink: 0;
}

/* Dokümantasyon (/docs) — iki sütun kılavuz */
.docs-layout .docs-nav-card .card-header {
    font-weight: 600;
}

.docs-layout .docs-nav-list .list-group-item-action.active {
    z-index: 0;
}

.docs-main {
    min-width: 0;
}

/* Ürün raporu — uzun listelerde dikey kaydırma */
.table-responsive-ray-report {
    max-height: 70vh;
    overflow: auto;
}

/* Prompt 21 — rapor tablosu UX */
.ray-report-search-input {
    max-width: 14rem;
    min-width: 8rem;
}

@media (max-width: 575.98px) {
    .ray-report-search-input {
        max-width: 100%;
    }
}

.ray-report-row--risk {
    background-color: rgba(220, 53, 69, 0.09);
}

.ray-report-row--strong {
    background-color: rgba(25, 135, 84, 0.08);
}

/* Rapor DataTable + satır altı reklam detayı */
.ray-report-dt-wrap .dataTables_wrapper .dataTables_filter input {
    font-size: 0.875rem;
}

.ray-report-dt-wrap .dataTables_wrapper .dataTables_length select {
    font-size: 0.875rem;
}

/* Liste ekranları — DataTables + Buttons (Bootstrap 5) */
.table-responsive .dataTables_wrapper .dataTables_filter input {
    font-size: 0.875rem;
}

.table-responsive .dataTables_wrapper .dataTables_length select {
    font-size: 0.875rem;
}

.dt-buttons-wrap .dt-buttons {
    flex-wrap: wrap;
    gap: 0.25rem;
}

.dt-buttons-wrap .dt-buttons .btn {
    margin-bottom: 0.25rem;
}

/* Merkezi export modal */
.ray-export-col-list .form-check {
    margin-bottom: 0.35rem;
}

.ray-dt-export-toolbar .ray-dt-export-caption {
    flex: 1 1 auto;
    min-width: 0;
}

table.dataTable tbody tr.ray-report-master-row {
    cursor: pointer;
}

.ray-report-toggle-icon {
    display: inline-block;
    min-width: 0.75rem;
    font-weight: 600;
    user-select: none;
}

.ray-report-detail-wrap {
    background-color: #f1f3f5;
    border-color: #dee2e6 !important;
}

.ray-report-detail-wrap .table {
    --bs-table-bg: #fff;
}

/* Özet panel (Prompt 18) */
.dashboard-kpi-sub {
    margin-top: 0.125rem;
    font-size: 0.8125rem;
}

.dashboard-kpi-card .card-body {
    min-height: auto;
}

.dashboard-accent-warn {
    box-shadow: inset 0 0 0 1px rgba(253, 193, 7, 0.5);
}

.dashboard-status-card .card-header {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.dashboard-status-list li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.dashboard-log-time {
    font-size: 0.75rem;
}

.dashboard-date-filter .form-control {
    max-width: 11rem;
}
