:root {
    --bg: #f4f7fb;
    --dark: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #3157ff;
    --primary-dark: #2446d8;
    --white: #ffffff;
    --sidebar: #0b1220;
    --sidebar-soft: #111a2f;
    --radius: 22px;
    --shadow: 0 18px 50px rgba(17, 24, 39, .10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--dark);
}

a {
    text-decoration: none;
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(49, 87, 255, .18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(17, 24, 39, .10), transparent 28%),
        #f4f7fb;
}

.login-wrap {
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    border: 1px solid rgba(255,255,255,.75);
    border-radius: var(--radius);
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
}

.login-logo {
    max-width: 250px;
    max-height: 75px;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    margin: 18px 0 4px;
}

.login-subtitle {
    color: var(--muted);
    font-size: 14px;
}

.form-label {
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    border-radius: 14px;
    border: 1px solid var(--border);
}

.form-control:focus {
    border-color: rgba(49, 87, 255, .55);
    box-shadow: 0 0 0 .2rem rgba(49, 87, 255, .12);
}

.btn-main {
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 600;
    box-shadow: 0 14px 28px rgba(49, 87, 255, .24);
}

.btn-main:hover,
.btn-main:focus {
    color: #fff;
    filter: brightness(.98);
}

.login-footer {
    color: var(--muted);
    font-size: 13px;
}

.panel-page {
    background: var(--bg);
}

.panel-layout {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 22px 18px;
    color: #fff;
    overflow-y: auto;
    background:
        radial-gradient(circle at top left, rgba(49, 87, 255, .28), transparent 35%),
        linear-gradient(180deg, var(--sidebar), var(--sidebar-soft));
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0px 15px 19px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.sidebar-logo strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
}

.sidebar-logo span {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,.62);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    color: rgba(255,255,255,.74);
    border-radius: 16px;
    transition: .18s ease;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,.10);
    color: #fff;
    transform: translateX(2px);
}

.sidebar-menu i {
    font-size: 18px;
}

.main-area {
    width: 100%;
    min-height: 100vh;
    margin-left: 240px;
}

.topbar {
    min-height: 92px;
    padding: 22px 30px;
    background: rgba(255,255,255,.82);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar h1 {
    font-size: 25px;
    font-weight: 600;
    margin: 0 0 4px;
}

.topbar p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 18px;
}

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #eef2ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-user strong {
    display: block;
    font-size: 13px;
}

.topbar-user a {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.content-area {
    padding: 28px 30px 38px;
}

.stat-card {
    height: 126px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 3px;
}

.stat-card strong {
    display: block;
    font-size: 31px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.1;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3157ff, #4f7cff);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.stat-icon.green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #f97316, #fb923c);
}

.panel-card {
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 22px;
}

.panel-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-card-head h3 {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 4px;
}

.panel-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.panel-table {
    margin-bottom: 0;
}

.panel-table thead th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.panel-table tbody td {
    border-bottom: 1px solid var(--border);
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 14px;
}

.panel-table tbody tr:last-child td {
    border-bottom: 0;
}

.panel-table strong {
    display: block;
    font-weight: 600;
}

.panel-table small {
    display: block;
    color: var(--muted);
}

.status-badge {
    display: inline-flex;
    min-width: 78px;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.success {
    color: #15803d;
    background: #dcfce7;
}

.status-badge.danger {
    color: #b91c1c;
    background: #fee2e2;
}

.status-badge.warning {
    color: #c2410c;
    background: #ffedd5;
}

.status-badge.info {
    color: #1d4ed8;
    background: #dbeafe;
}

.empty-box {
    padding: 34px 18px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px dashed #d8e0ec;
    color: var(--muted);
    text-align: center;
}

.empty-box i {
    display: block;
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--primary);
}

.empty-box strong {
    display: block;
    color: var(--dark);
    margin-bottom: 3px;
}

.small-empty {
    padding: 22px 12px;
}

.bot-status-box {
    padding: 20px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(49, 87, 255, .16), transparent 30%),
        linear-gradient(135deg, #f8fbff, #eef4ff);
    border: 1px solid #e1e8ff;
}

.bot-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #3157ff, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 0 10px rgba(49, 87, 255, .08);
}

.bot-status-box h4 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
}

.bot-status-box p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.contract-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.contract-item:last-child {
    border-bottom: 0;
}

.contract-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.contract-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.contract-item em {
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    color: #f97316;
    background: #fff7ed;
    border-radius: 999px;
    padding: 7px 10px;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .panel-layout {
        display: block;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-radius: 0 0 28px 28px;
    }

    .main-area {
        margin-left: 0;
    }

    .topbar {
        position: relative;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .content-area {
        padding: 18px 14px 28px;
    }

    .topbar {
        padding: 18px 14px;
    }

    .stat-card {
        height: auto;
    }
}

.filter-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.filter-left {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-item {
    min-width: 180px;
}

.filter-item.search-item {
    min-width: 340px;
    flex: 1;
}

.filter-item label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.table-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 999px;
}

.small-strong {
    font-size: 13px;
}

.mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--dark);
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 575px) {
    .filter-item,
    .filter-item.search-item {
        min-width: 100%;
    }

    .filter-buttons {
        width: 100%;
    }

    .filter-buttons .btn {
        flex: 1;
    }
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

textarea.form-control {
    resize: vertical;
}

@media (max-width: 575px) {
    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions .btn {
        width: 100%;
    }
}


.detail-company {
    text-align: center;
}

.company-avatar {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 600;
    box-shadow: 0 16px 35px rgba(49, 87, 255, .25);
}

.detail-company h3 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 600;
}

.detail-company p {
    margin: 0 0 18px;
    color: var(--muted);
}

.detail-info-list {
    border-top: 1px solid var(--border);
    margin-top: 18px;
    padding-top: 14px;
    text-align: left;
}

.detail-info-list div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.detail-info-list div:last-child {
    border-bottom: 0;
}

.detail-info-list span {
    color: var(--muted);
    font-size: 13px;
}

.detail-info-list strong {
    font-size: 13px;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.detail-actions .btn {
    flex: 1;
}

.info-block {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f8fafc;
}

.info-block span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

.info-block p {
    margin: 0;
    color: var(--dark);
    line-height: 1.6;
}

.form-section-title {
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}
.info-block p {
    word-break: break-word;
}

.panel-table td {
    vertical-align: middle;
}


.contract-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.contract-day.success {
    color: #15803d;
    background: #dcfce7;
}

.contract-day.warning {
    color: #c2410c;
    background: #ffedd5;
}

.contract-day.danger {
    color: #b91c1c;
    background: #fee2e2;
}

.mail-preview-frame {
    width: 100%;
    min-height: 680px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.value-box p {
    min-height: 120px;
    max-height: 260px;
    overflow: auto;
    white-space: pre-wrap;
}

.old-value {
    background: #fff7ed;
    border-color: #fed7aa;
}

.new-value {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.settings-tabs {
    gap: 8px;
    flex-wrap: wrap;
}

.settings-tabs .nav-link {
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.settings-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: #fff;
}

.tab-content {
    padding-top: 4px;
}

.mini-status-card {
    min-height: 96px;
    padding: 20px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.mini-status-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.mini-status-card strong {
    display: block;
    font-size: 25px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.mini-status-card .small-value {
    font-size: 15px;
    word-break: break-word;
}

.report-stat-card {
    min-height: 132px;
    padding: 22px;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(49, 87, 255, .12), transparent 36%),
        #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.report-stat-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.report-stat-card strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    color: var(--dark);
}

.report-stat-card small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.chart-card {
    height: 430px;
}

.chart-card canvas {
    width: 100% !important;
    height: 320px !important;
}

.smart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.smart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--dark);
    font-size: 14px;
    line-height: 1.55;
}

.smart-item i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 1px;
}

.ai-stat-card {
    min-height: 132px;
    padding: 22px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.ai-stat-card:before {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    opacity: .12;
    background: var(--primary);
}

.ai-stat-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ai-stat-card strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    color: var(--dark);
}

.ai-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    font-size: 21px;
}

.ai-stat-card.waiting .ai-stat-icon {
    background: linear-gradient(135deg, #f97316, #fb923c);
}

.ai-stat-card.danger .ai-stat-icon {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.ai-stat-card.total .ai-stat-icon {
    background: linear-gradient(135deg, #3157ff, #4f7cff);
}

.ai-stat-card.editable .ai-stat-icon {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.ai-list-card {
    padding-bottom: 10px;
}

.ai-table tbody td {
    white-space: nowrap;
}

.ai-table tbody td:nth-child(2),
.ai-table tbody td:nth-child(3) {
    min-width: 210px;
}

.ai-field-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 32px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .ai-table tbody td {
        white-space: normal;
    }
}

.ai-detail-item {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    margin-bottom: 16px;
}

.ai-detail-item:last-child {
    margin-bottom: 0;
}

.ai-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.ai-detail-head strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.ai-detail-head span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.ai-detail-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .ai-detail-head {
        flex-direction: column;
    }

    .ai-detail-badges {
        justify-content: flex-start;
    }
}

.sidebar-dropdown {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sidebar-dropdown-toggle {
    width: 100%;
    border: 0;
    outline: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    color: rgba(255,255,255,.82);
    border-radius: 16px;
    background: transparent;
    transition: .18s ease;
    text-align: left;
}

.sidebar-dropdown-toggle:hover,
.sidebar-dropdown-toggle:focus {
    background: rgba(255,255,255,.13);
    color: #fff;
}

.sidebar-dropdown-toggle span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-dropdown-toggle i {
    font-size: 18px;
}

.sidebar-dropdown-toggle em {
    font-style: normal;
    font-weight: 600;
}

.dropdown-arrow {
    font-size: 14px !important;
    transition: transform .18s ease;
}

.sidebar-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    padding-left: 13px;
    margin-top: 2px;
    margin-bottom: 4px;
}

.sidebar-submenu a {
    padding: 11px 13px;
    border-radius: 14px;
    font-size: 13px;
    margin-bottom: 5px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.045);
}

.sidebar-submenu a:hover {
    background: rgba(255,255,255,.11);
}

.sidebar-submenu i {
    font-size: 15px;
}


.genel-rapor-list-card {
    padding-bottom: 10px;
}

.genel-rapor-table tbody td {
    white-space: nowrap;
}

.genel-rapor-table tbody td:nth-child(1),
.genel-rapor-table tbody td:nth-child(2),
.genel-rapor-table tbody td:nth-child(5) {
    min-width: 210px;
}

.score-mini-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 118px;
}

.score-mini-list span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.score-mini-list strong {
    display: inline;
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
}

.mail-list-preview {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

@media (max-width: 767px) {
    .genel-rapor-table tbody td {
        white-space: normal;
    }

    .table-action-group {
        flex-direction: column;
        align-items: stretch;
    }

    .table-action-group .btn {
        width: 100%;
    }
}


.report-detail-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 22px;
    padding: 26px;
    border-radius: 26px;
    background: linear-gradient(135deg, #101827, #17223a);
    color: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .14);
}

.report-detail-hero h2 {
    margin: 12px 0 8px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.03em;
}

.report-detail-hero p {
    max-width: 860px;
    margin: 0;
    color: rgba(255,255,255,.72);
    line-height: 1.65;
}

.report-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.report-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    color: rgba(255,255,255,.84);
    font-size: 13px;
    font-weight: 600;
}

.report-hero-actions {
    min-width: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
}

.report-link-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-link-box .form-control {
    height: 48px;
    border-radius: 14px;
    font-size: 13px;
    background: #f8fafc;
}

.report-status-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-status-stack div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.report-status-stack span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.report-status-stack strong {
    color: var(--dark);
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.report-section-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-section-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border);
}

.report-section-item h4 {
    margin: 10px 0 7px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.report-section-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.report-section-values {
    min-width: 190px;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 7px;
    text-align: right;
}

.report-section-values small {
    color: var(--muted);
    font-size: 12px;
}

.keyword-change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.keyword-change.up {
    color: #047857;
    background: #ecfdf5;
}

.keyword-change.down {
    color: #b91c1c;
    background: #fef2f2;
}

.keyword-change.stable {
    color: #64748b;
    background: #f1f5f9;
}

@media (max-width: 991px) {
    .report-detail-hero {
        flex-direction: column;
    }

    .report-hero-actions {
        min-width: 0;
    }

    .report-link-box {
        flex-direction: column;
        align-items: stretch;
    }

    .report-section-item {
        flex-direction: column;
    }

    .report-section-values {
        align-items: flex-start;
        text-align: left;
    }
}

.report-dashboard-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-height: 150px;
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 16px 45px rgba(15, 23, 42, .06);
}

.report-dashboard-card:before {
    content: "";
    position: absolute;
    right: -52px;
    top: -52px;
    width: 126px;
    height: 126px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .08);
}

.report-dashboard-icon {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    font-size: 22px;
}

.report-dashboard-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.report-dashboard-icon.green {
    background: #ecfdf5;
    color: #16a34a;
}

.report-dashboard-icon.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.report-dashboard-icon.orange {
    background: #fffbeb;
    color: #f59e0b;
}

.report-dashboard-card div:last-child {
    position: relative;
    z-index: 2;
}

.report-dashboard-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.report-dashboard-card strong {
    display: block;
    margin-top: 7px;
    color: var(--dark);
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.035em;
}

.report-dashboard-card small {
    display: block;
    margin-top: 10px;
    color: #8a97aa;
    line-height: 1.45;
}

.dashboard-report-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

@media (max-width: 767px) {
    .dashboard-report-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-report-actions .btn {
        width: 100%;
    }
}

.system-report-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 15%, rgba(6,182,212,.28), transparent 34%),
        linear-gradient(135deg, #101827, #17223a 62%, #1e3a8a);
    box-shadow: 0 22px 60px rgba(15, 23, 42, .13);
    overflow: hidden;
}

.system-report-hero h2 {
    margin: 12px 0 8px;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.04em;
}

.system-report-hero p {
    max-width: 850px;
    margin: 0;
    color: rgba(255,255,255,.72);
    line-height: 1.65;
}

.system-report-hero-side {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
}

.system-report-hero-side span {
    color: rgba(255,255,255,.64);
    font-size: 13px;
    font-weight: 700;
}

.system-report-hero-side strong {
    margin-top: 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.system-kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 16px 45px rgba(15, 23, 42, .06);
}

.system-kpi-card:before {
    content: "";
    position: absolute;
    right: -54px;
    top: -54px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(37,99,235,.08);
}

.system-kpi-card.danger-mode:before {
    background: rgba(220,38,38,.08);
}

.system-kpi-icon {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    font-size: 22px;
    margin-bottom: 15px;
}

.system-kpi-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.system-kpi-icon.green {
    background: #ecfdf5;
    color: #16a34a;
}

.system-kpi-icon.orange {
    background: #fffbeb;
    color: #f59e0b;
}

.system-kpi-icon.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.system-kpi-icon.red {
    background: #fef2f2;
    color: #dc2626;
}

.system-kpi-icon.cyan {
    background: #ecfeff;
    color: #0891b2;
}

.system-kpi-icon.indigo {
    background: #eef2ff;
    color: #4f46e5;
}

.system-kpi-icon.dark {
    background: #f1f5f9;
    color: #0f172a;
}

.system-kpi-card span,
.system-kpi-card strong,
.system-kpi-card small {
    position: relative;
    z-index: 2;
}

.system-kpi-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.system-kpi-card strong {
    display: block;
    margin-top: 7px;
    color: var(--dark);
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.04em;
}

.system-kpi-card small {
    display: block;
    margin-top: 10px;
    color: #8a97aa;
    line-height: 1.45;
}

.system-chart-box {
    position: relative;
    min-height: 310px;
}

.system-chart-box.small {
    min-height: 310px;
}

.smart-comment-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.smart-comment-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--border);
}

.smart-comment-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    font-size: 21px;
}

.smart-comment-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.smart-comment-icon.orange {
    background: #fffbeb;
    color: #f59e0b;
}

.smart-comment-icon.green {
    background: #ecfdf5;
    color: #16a34a;
}

.smart-comment-item strong {
    display: block;
    color: var(--dark);
    font-size: 15px;
    font-weight: 700;
}

.smart-comment-item p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}

.system-site-table td {
    vertical-align: middle;
}

.mini-status-stack {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 112px;
}

.mini-status-stack span {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.mini-status-stack .ok {
    color: #047857;
    background: #ecfdf5;
}

.mini-status-stack .warn {
    color: #b45309;
    background: #fffbeb;
}

.mini-status-stack .err {
    color: #b91c1c;
    background: #fef2f2;
}

@media (max-width: 991px) {
    .system-report-hero {
        flex-direction: column;
    }

    .system-report-hero-side {
        min-width: 0;
    }
}

.report-hero-actions .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-label {
    color: var(--dark);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.mr-5px{
    margin-right: 5px;
}

/* =========================================================
   GENEL RAPORLAR SAYFASI TAŞMA DÜZELTMESİ
   ========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.panel-layout {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.main-area {
    width: calc(100% - 240px);
    max-width: calc(100% - 240px);
    min-width: 0;
    margin-left: 240px;
    overflow-x: hidden;
}

.content-area {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Bootstrap row taşmasını güvene alır */
.content-area > .row {
    max-width: 100%;
}

/* Filtre alanı ekrana göre düzgün kırılsın */
.filter-row {
    width: 100%;
    max-width: 100%;
    align-items: flex-end;
}

.filter-left {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
}

.filter-item {
    min-width: 160px;
    flex: 1 1 170px;
}

.filter-item.search-item {
    min-width: 260px;
    flex: 2 1 280px;
}

.filter-buttons {
    flex: 0 0 auto;
    margin-left: auto;
}

/* Rapor listesi kartı dışarı taşmasın */
.genel-rapor-list-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Tablo sadece kendi içinde yatay kaydırılsın, sayfa taşmasın */
.genel-rapor-list-card .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

/* Tablo kontrollü genişlikte kalsın */
.genel-rapor-table {
    width: 100%;
    min-width: 1080px;
    table-layout: fixed;
}

/* Eski nowrap kuralını eziyoruz */
.genel-rapor-table tbody td {
    white-space: normal;
    overflow: hidden;
    vertical-align: middle;
}

/* Başlıklar çok uzamasın */
.genel-rapor-table thead th {
    white-space: nowrap;
}

/* Kolon genişlikleri */
.genel-rapor-table th:nth-child(1),
.genel-rapor-table td:nth-child(1) {
    width: 23%;
}

.genel-rapor-table th:nth-child(2),
.genel-rapor-table td:nth-child(2) {
    width: 17%;
}

.genel-rapor-table th:nth-child(3),
.genel-rapor-table td:nth-child(3) {
    width: 12%;
}

.genel-rapor-table th:nth-child(4),
.genel-rapor-table td:nth-child(4) {
    width: 12%;
}

.genel-rapor-table th:nth-child(5),
.genel-rapor-table td:nth-child(5) {
    width: 15%;
}

.genel-rapor-table th:nth-child(6),
.genel-rapor-table td:nth-child(6) {
    width: 11%;
}

.genel-rapor-table th:nth-child(7),
.genel-rapor-table td:nth-child(7) {
    width: 10%;
}

.genel-rapor-table th:nth-child(8),
.genel-rapor-table td:nth-child(8) {
    width: 150px;
}

/* Uzun metinleri taşırma, kırp */
.genel-rapor-table td strong,
.genel-rapor-table td small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.genel-rapor-table td strong {
    white-space: normal;
    line-height: 1.35;
}

.genel-rapor-table td small {
    white-space: nowrap;
}

.mail-list-preview {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-mini-list {
    width: 100%;
    min-width: 0;
}

.score-mini-list span {
    width: 100%;
}

.table-action-group {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.table-action-group .btn {
    white-space: nowrap;
}

@media (max-width: 991px) {
    .main-area {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 1199px) {
    .genel-rapor-table {
        min-width: 980px;
    }
}

/* Mobil filtre düzeni */
@media (max-width: 575px) {
    .filter-item,
    .filter-item.search-item {
        min-width: 100%;
        flex: 1 1 100%;
    }

    .filter-buttons {
        width: 100%;
        margin-left: 0;
    }

    .filter-buttons .btn {
        flex: 1;
    }

    .genel-rapor-table {
        min-width: 920px;
    }
}

.checkBox{
    margin-left: 5px;
}

.keyword-check-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 14px;
}

.keyword-check-row label {
    margin: 0;
    color: var(--dark);
    font-size: 14px;
}

.status-badge.info {
    background: #eef2ff;
    color: #3157ff;
}

.status-badge.light {
    background: #f3f4f6;
    color: #374151;
}

.status-badge.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.panel-table td strong {
    display: block;
    font-weight: 600;
    color: var(--dark);
}

.panel-table td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.keyword-mini-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.keyword-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3157ff;
    font-weight: 700;
    font-size: 14px;
}

.keyword-mini-summary small {
    color: var(--muted);
    font-size: 13px;
}

.keyword-type-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.keyword-type-line span {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
}

.report-stat-card.danger-soft {
    border-color: #fecaca;
}

.report-stat-card.danger-soft strong {
    color: #b91c1c;
}

/* =========================================================
   RESPONSIVE PANEL İSKELETİ VE TAŞMA KONTROLÜ
   Bu blok style.css dosyasının en sonunda durmalı.
   Önceki sayfa bazlı kuralları güvenli şekilde ezer.
   ========================================================= */

:root {
    --sidebar-width: 240px;
    --mobile-sidebar-width: 320px;
}

html,
body {
    width: 100%;
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

button,
input,
select,
textarea {
    max-width: 100%;
}

.panel-layout,
.main-area,
.content-area,
.panel-card,
.report-dashboard-card,
.system-kpi-card,
.ai-stat-card,
.report-stat-card,
.mini-status-card,
.bot-status-box,
.info-block {
    min-width: 0;
}

.panel-layout {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    z-index: 1040;
}

.sidebar-logo {
    position: relative;
    min-height: 54px;
}

.sidebar-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 58px;
    height: auto;
}

.main-area {
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    min-width: 0;
    overflow-x: clip;
}

.topbar-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.topbar-title-text {
    min-width: 0;
}

.topbar h1,
.topbar p {
    overflow-wrap: anywhere;
}

.topbar-user {
    flex: 0 0 auto;
}

.mobile-menu-btn,
.sidebar-mobile-close {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--dark);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus,
.sidebar-mobile-close:hover,
.sidebar-mobile-close:focus {
    color: var(--primary);
    border-color: rgba(49, 87, 255, .22);
    box-shadow: 0 10px 25px rgba(17, 24, 39, .08);
}

.sidebar-backdrop {
    display: none;
}

.content-area > .row {
    max-width: none;
}

.content-area .row {
    min-width: 0;
}

.content-area [class^="col-"],
.content-area [class*=" col-"] {
    min-width: 0;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.table-responsive > .table,
.table-responsive > table {
    margin-bottom: 0;
}

.table-responsive .panel-table,
.table-responsive .ai-table,
.table-responsive .genel-rapor-table,
.table-responsive .system-site-table {
    min-width: 760px;
}

.panel-table th,
.panel-table td,
.ai-table th,
.ai-table td,
.system-site-table th,
.system-site-table td {
    overflow-wrap: anywhere;
}

.panel-card-head,
.filter-row,
.filter-left,
.filter-buttons,
.form-actions,
.detail-actions,
.dashboard-report-actions,
.table-action-group,
.report-link-box,
.report-hero-meta,
.ai-detail-head,
.ai-detail-badges,
.report-section-item,
.report-detail-hero,
.system-report-hero {
    min-width: 0;
}

.stat-card strong,
.report-stat-card strong,
.ai-stat-card strong,
.system-kpi-card strong,
.report-dashboard-card strong,
.mini-status-card strong {
    font-size: clamp(22px, 3vw, 34px);
    overflow-wrap: anywhere;
}

.chart-card {
    height: auto;
    min-height: 360px;
}

.chart-card canvas {
    max-width: 100% !important;
    height: 300px !important;
}

.mail-preview-frame {
    min-height: 520px;
}

.value-box p {
    overflow-wrap: anywhere;
}

.smart-comment-item > div:last-child {
    min-width: 0;
}

.keyword-check-row {
    width: 100%;
}

@media (max-width: 1199px) {
    .content-area {
        padding: 24px 22px 34px;
    }

    .topbar {
        padding: 20px 22px;
    }

    .panel-card,
    .report-stat-card,
    .ai-stat-card,
    .system-kpi-card,
    .report-dashboard-card {
        padding: 20px;
    }

    .genel-rapor-table {
        min-width: 980px;
    }
}

@media (max-width: 991px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .panel-layout {
        display: block;
        overflow-x: hidden;
    }

    .main-area {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: min(86vw, var(--mobile-sidebar-width));
        min-width: 0;
        height: 100dvh;
        max-height: 100dvh;
        padding: 18px 16px 22px;
        border-radius: 0 26px 26px 0;
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 20px 0 60px rgba(2, 6, 23, .28);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-mobile-close {
        display: inline-flex;
        position: absolute;
        right: 4px;
        top: 2px;
        background: rgba(255,255,255,.08);
        color: #fff;
        border-color: rgba(255,255,255,.14);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1030;
        background: rgba(15, 23, 42, .46);
        backdrop-filter: blur(3px);
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .topbar {
        position: sticky;
        top: 0;
        min-height: auto;
        flex-direction: row;
        align-items: center;
        padding: 16px 18px;
    }

    .topbar-title-wrap {
        flex: 1 1 auto;
    }

    .topbar h1 {
        font-size: 22px;
    }

    .content-area {
        padding: 22px 18px 32px;
    }

    .filter-item,
    .filter-item.search-item {
        min-width: 220px;
    }

    .system-report-hero,
    .report-detail-hero {
        flex-direction: column;
    }

    .system-report-hero-side,
    .report-hero-actions,
    .report-section-values {
        min-width: 0;
    }

    .report-section-values {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .topbar {
        align-items: flex-start;
        gap: 12px;
        flex-wrap: wrap;
    }

    .topbar-title-wrap {
        width: 100%;
        align-items: flex-start;
    }

    .topbar-user {
        margin-left: 56px;
    }

    .panel-card-head,
    .ai-detail-head,
    .report-section-item {
        flex-direction: column;
        align-items: stretch;
    }

    .panel-card-head .btn,
    .panel-card-head .table-count {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .filter-row,
    .filter-left {
        align-items: stretch;
        gap: 12px;
    }

    .filter-item,
    .filter-item.search-item {
        min-width: 100%;
        flex: 1 1 100%;
    }

    .filter-buttons,
    .form-actions,
    .detail-actions,
    .dashboard-report-actions,
    .table-action-group,
    .report-link-box {
        width: 100%;
        justify-content: stretch;
    }

    .filter-buttons .btn,
    .form-actions .btn,
    .detail-actions .btn,
    .dashboard-report-actions .btn,
    .table-action-group .btn,
    .report-link-box .btn {
        flex: 1 1 auto;
    }

    .stat-card,
    .report-dashboard-card,
    .smart-comment-item {
        align-items: flex-start;
    }

    .chart-card canvas {
        height: 260px !important;
    }

    .mail-preview-frame {
        min-height: 420px;
    }

    .ai-table tbody td,
    .genel-rapor-table tbody td,
    .panel-table tbody td {
        white-space: normal;
    }
}

@media (max-width: 575px) {
    :root {
        --radius: 18px;
    }

    .sidebar {
        width: calc(100vw - 28px);
        border-radius: 0 22px 22px 0;
    }

    .sidebar-menu a,
    .sidebar-dropdown-toggle {
        padding: 12px 12px;
        border-radius: 14px;
    }

    .sidebar-submenu {
        padding-left: 8px;
    }

    .topbar {
        padding: 14px;
    }

    .topbar h1 {
        font-size: 20px;
    }

    .topbar p {
        font-size: 13px;
    }

    .topbar-user {
        width: calc(100% - 56px);
        margin-left: 56px;
        justify-content: flex-start;
    }

    .content-area {
        padding: 16px 12px 28px;
    }

    .panel-card,
    .report-stat-card,
    .ai-stat-card,
    .system-kpi-card,
    .report-dashboard-card,
    .mini-status-card {
        padding: 16px;
    }

    .stat-card {
        height: auto;
        padding: 16px;
    }

    .stat-icon,
    .bot-icon,
    .ai-stat-icon,
    .report-dashboard-icon,
    .system-kpi-icon,
    .smart-comment-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 15px;
        font-size: 20px;
    }

    .system-report-hero,
    .report-detail-hero {
        padding: 18px;
        border-radius: 22px;
    }

    .system-report-hero h2,
    .report-detail-hero h2 {
        font-size: 23px;
    }

    .system-report-hero p,
    .report-detail-hero p,
    .report-section-item p,
    .smart-comment-item p {
        font-size: 13px;
    }

    .detail-info-list div,
    .report-status-stack div {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .detail-info-list strong,
    .report-status-stack strong {
        max-width: 100%;
        text-align: left;
    }

    .table-responsive .panel-table,
    .table-responsive .ai-table,
    .table-responsive .system-site-table {
        min-width: 700px;
    }

    .genel-rapor-table {
        min-width: 880px;
    }

    .score-mini-list {
        min-width: 100px;
    }

    .keyword-check-row {
        gap: 10px;
    }

    .keyword-type-line span,
    .status-badge,
    .mini-pill,
    .contract-day {
        font-size: 11px;
    }

    .login-wrap {
        padding: 14px;
    }

    .login-card {
        border-radius: 20px;
    }
}

.backup-detail-meta {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
}

.backup-detail-meta > div {
    flex: 1 1 260px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    min-width: 0;
}

.backup-detail-meta span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.backup-detail-meta strong {
    display: block;
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
    word-break: break-word;
}

.code-textarea {
    min-height: 520px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre;
    overflow: auto;
    background: #0f172a;
    color: #e5e7eb;
    border-color: #1e293b;
}

.small-strong {
    font-weight: 600;
}

.backup-code-box {
    min-height: 520px;
    max-height: 620px;
    overflow: auto;
    padding: 16px;
    border: 1px solid #1e293b;
    border-radius: 14px;
    background: #0f172a;
    color: #e5e7eb;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.sunum-list-logo,
.sunum-logo-preview {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sunum-list-logo {
    width: 52px;
    height: 52px;
    overflow: hidden;
    flex: 0 0 52px;
}

.sunum-list-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.sunum-list-logo span {
    width: 100%;
    height: 100%;
    background: #0b1f3a;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sunum-logo-preview {
    width: 100%;
    min-height: 160px;
    padding: 24px;
}

.sunum-logo-preview img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.sunum-editor-shell {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.sunum-editor-main {
    flex: 1;
    min-width: 0;
}

.sunum-editor-side {
    width: 390px;
    flex: 0 0 390px;
}

.sunum-step-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.sunum-step-no {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #0b1f3a;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
}

.sunum-step-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.sunum-step-head p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 14px;
}

.sunum-editor-shell .form-label {
    font-weight: 700;
    color: #334155;
    font-size: 13px;
}

.sunum-editor-shell textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.sunum-logo-preview {
    width: 100%;
    min-height: 170px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sunum-logo-preview img {
    max-width: 100%;
    max-height: 125px;
    object-fit: contain;
}

.sunum-ai-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sunum-ai-empty strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.sunum-ai-empty span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.sunum-action-note {
    margin-top: 18px;
    padding: 14px;
    border-radius: 16px;
    background: #fff7e1;
    border: 1px solid rgba(216, 183, 106, .45);
    color: #7c5b12;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
}

.sticky-actions {
    position: sticky;
    top: 20px;
}

@media (max-width: 1199px) {
    .sunum-editor-shell {
        flex-direction: column;
    }

    .sunum-editor-side {
        width: 100%;
        flex: initial;
    }

    .sticky-actions {
        position: static;
    }
}