/* Isolated responsive login overrides. The stable theme remains usable if these rules are unavailable. */
@media (max-width:700px) {
    body.login-page {
        height:auto;
        min-height:100vh;
        overflow-x:hidden;
        overflow-y:auto;
    }

    .login-shell {
        display:flex;
        flex-direction:column;
        justify-content:center;
        width:100%;
        height:auto;
        min-height:100vh;
        padding:12px 14px 14px;
        gap:10px;
        overflow:visible;
    }

    .login-brand {
        flex:0 0 auto;
        width:100%;
        height:auto;
        min-height:0;
        padding:0 4px;
        justify-content:flex-start;
    }

    .login-logo {
        width:220px;
        max-width:58vw;
        margin:0 auto 5px;
    }

    .login-copy h1 {
        font-size:28px;
        line-height:1.04;
        margin:6px 0;
    }

    .login-copy > p:last-child {
        max-width:340px;
        margin:5px auto;
        font-size:12px;
        line-height:1.35;
    }

    .login-kicker { font-size:9px; margin:1px 0; }
    .login-card { flex:0 0 auto; width:100%; max-width:480px; align-self:center; padding:17px 20px; border-radius:20px; overflow:visible; }
    .login-card .form-stack { gap:9px; margin-top:10px; }
    .login-card .form-stack .input-shell input { min-height:42px; padding:10px 42px; }
    .login-divider { margin:9px 0; }
    .login-market { display:none; }
}
.report-pagination {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:12px 14px;
    border-top:1px solid #17354f;
    background:#06192e;
    color:#b9cad9;
    font-size:11px;
}
.report-pagination a,.report-pagination .disabled {
    padding:7px 10px;
    border:1px solid #23506f;
    border-radius:7px;
}
.report-pagination a { color:#20c9ed; }
.report-pagination a:hover { border-color:#20c9ed; background:rgba(32,201,237,.08); }
.report-pagination .disabled { opacity:.4; }
.report-pagination small { color:#7f98ad; }
[data-theme="light"] .report-pagination { background:#f7fafc; border-color:#dce6ed; color:#29465e; }
@media(max-width:600px){.report-pagination{flex-wrap:wrap}.report-pagination small{width:100%;text-align:center}}

@media (max-width:700px) and (max-height:680px) {
    .login-shell { justify-content:flex-start; gap:6px; padding-top:7px; }
    .login-logo { width:155px; margin-bottom:1px; }
    .login-kicker,
    .login-copy > p:last-child { display:none; }
    .login-copy h1 { font-size:22px; line-height:1; margin:2px 0 5px; }
    .login-card { padding:12px 18px; }
    .login-card .form-stack { gap:6px; margin-top:6px; }
    .login-divider { display:none; }
    .login-card .support-note { margin-top:5px; }
}

@media (max-width:380px) {
    .login-card { padding-left:14px; padding-right:14px; }
    .login-copy h1 { font-size:23px; }
}

/* SVG chart tooltip enhancements. */
.chart-tooltip-target {
    cursor:pointer;
    outline:none;
    transition:filter .15s ease, opacity .15s ease;
}

.chart-tooltip-target:hover,
.chart-tooltip-target:focus {
    filter:brightness(1.35) drop-shadow(0 0 6px rgba(22,207,241,.75));
    opacity:1;
}

.chart-hover-tooltip {
    position:fixed;
    z-index:1000;
    max-width:260px;
    padding:9px 12px;
    border:1px solid #2b668b;
    border-radius:10px;
    background:rgba(3,20,38,.96);
    box-shadow:0 12px 30px rgba(0,0,0,.38);
    color:#f4fbff;
    font-size:12px;
    font-weight:650;
    line-height:1.55;
    white-space:pre-line;
    pointer-events:none;
    opacity:0;
    transform:translateY(4px);
    transition:opacity .12s ease, transform .12s ease;
}

.chart-hover-tooltip.is-visible { opacity:1; transform:translateY(0); }
[data-theme="light"] .chart-hover-tooltip { border-color:#9bc6dd; background:rgba(255,255,255,.98); color:#09223a; box-shadow:0 12px 28px rgba(18,48,70,.2); }

/* Report wizard: show the generated filter form before the report is saved. */
.wizard-filter-preview {
    margin-top:18px;
    padding:16px;
    border:1px solid rgba(28,190,229,.28);
    border-radius:14px;
    background:rgba(4,28,49,.55);
}
.wizard-preview-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:14px;
}
.wizard-preview-heading div { display:grid; gap:3px; }
.wizard-preview-heading small { color:var(--muted,#8dacbf); }
.wizard-preview-heading > span {
    padding:5px 9px;
    border-radius:999px;
    background:rgba(22,207,241,.12);
    color:#16cff1;
    font-size:12px;
    white-space:nowrap;
}
.wizard-query-preview {
    margin-top:14px;
    padding:16px;
    border:1px solid rgba(102,92,255,.3);
    border-radius:14px;
    background:rgba(7,20,42,.72);
}
.wizard-query-preview pre {
    max-height:320px;
    margin:0;
    padding:14px;
    overflow:auto;
    border:1px solid rgba(118,145,176,.22);
    border-radius:10px;
    background:#031426;
    color:#c9f5ff;
    font-size:12px;
    line-height:1.55;
    white-space:pre;
}
.wizard-parameter-values { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.wizard-parameter-values code {
    padding:5px 8px;
    border:1px solid rgba(22,207,241,.22);
    border-radius:7px;
    background:rgba(22,207,241,.08);
    color:#89eaff;
    font-size:11px;
}
[data-theme="light"] .wizard-filter-preview { background:#f5fbfe; border-color:#b9dceb; }
[data-theme="light"] .wizard-query-preview { background:#f8f8ff; border-color:#c9c6f2; }
[data-theme="light"] .wizard-query-preview pre { background:#f2f7fb; color:#102b42; }
@media (max-width:760px) {
    .wizard-preview-heading { align-items:flex-start; }
    .wizard-filter-preview { padding:12px; }
}

/* Report results: combined global and per-column filtering. */
.result-table-tools {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
}
.result-table-tools small { color:#8da5be; white-space:nowrap; }
.result-table-tools button {
    height:34px;
    padding:6px 10px;
    border:1px solid #1d4361;
    border-radius:7px;
    background:#071d34;
    color:#b8cee0;
    cursor:pointer;
    font-size:11px;
}
.result-table-tools button:hover:not(:disabled) { border-color:#13bce8; color:#22cdf2; }
.result-table-tools button:disabled { opacity:.45; cursor:default; }
.reference-table th.column-filter-header {
    min-width:135px;
    padding:8px 9px;
    vertical-align:top;
}
.column-filter-header > span { display:block; min-height:14px; }
.reference-table .report-column-filter {
    display:block;
    width:100%;
    min-width:110px;
    height:28px;
    margin-top:6px;
    padding:4px 7px;
    border:1px solid #244966;
    border-radius:6px;
    outline:0;
    background:#04162b;
    color:#e7f2fb;
    font:inherit;
}
.reference-table .report-column-filter:focus {
    border-color:#13bce8;
    box-shadow:0 0 0 2px rgba(19,188,232,.12);
}
.reference-table .report-column-filter::placeholder { color:#69849b; }
[data-theme="light"] .result-table-tools button,
[data-theme="light"] .reference-table .report-column-filter {
    border-color:#c7d8e4;
    background:#fff;
    color:#18334d;
}
@media (max-width:700px) {
    .result-table-tools { width:100%; justify-content:flex-start; }
    .result-table-tools #phase4-search { flex:1 1 180px; width:auto; }
    .reference-table th.column-filter-header { min-width:125px; }
}
.detail-toggle-column{width:4.5rem;text-align:center}
.report-detail-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:140px;max-width:280px}
.report-detail-toggle{width:auto;min-width:2rem;min-height:36px;padding:7px 9px;border:1px solid #16bfe9;border-radius:.55rem;background:rgba(7,185,229,.12);color:#2bd5ff;font-size:12px;line-height:1.4;cursor:pointer;white-space:normal;text-align:left}
.detail-toggle-icon{display:inline-block;min-width:14px;font-weight:bold;font-size:16px}
#dataset-table-filter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.report-page-size{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}
.report-page-size select{width:auto;min-height:38px;padding:6px;color:inherit;background:var(--surface-2,#071e30);border:1px solid var(--line,#28516b);border-radius:6px}
.report-detail-toggle:hover{background:#0aaed7;color:#fff}
.report-detail-row>td{padding:.65rem!important;background:rgba(3,18,33,.72)}
.report-detail-host{min-height:5rem;border:1px solid rgba(42,180,220,.24);border-radius:.75rem;overflow:hidden}
.report-detail-frame{display:block;width:100%;min-height:28rem;border:0;background:#061b2f}
@media(max-width:768px){.report-detail-frame{min-height:34rem}.detail-toggle-column{position:sticky;left:0;z-index:2;background:#08243d}}

/* Kullanıcıya özel rapor tablo görünümü */
.report-layout-table th.layout-column{position:relative}
.report-layout-table .column-drag-title{display:block;padding-right:12px;cursor:grab;user-select:none;white-space:nowrap}
.report-layout-table .report-column-sort{color:inherit;text-decoration:none}
.report-layout-table .report-column-sort b{margin-left:4px;color:#2bcdf4;font-size:10px;font-weight:700}
.report-layout-table .report-column-sort:hover{color:#2bd5ff}
.report-layout-table th.dragging{opacity:.45;outline:1px dashed #19c9f2}
.report-layout-table .column-resizer{position:absolute;top:0;right:-3px;width:8px;height:100%;cursor:col-resize;z-index:4;touch-action:none}
.report-layout-table .column-resizer:hover,.report-layout-table .column-resizer:active{background:rgba(25,201,242,.45)}
.column-view-menu{position:relative;align-self:center}
#column-view-toggle.active{border-color:#13bce8;color:#22cdf2;background:rgba(19,188,232,.08)}
.column-view-panel{position:fixed;z-index:1000;width:300px;max-width:calc(100vw - 20px);max-height:min(420px,calc(100vh - 20px));overflow:auto;overscroll-behavior:contain;padding:8px;border:1px solid #24506e;border-radius:12px;background:#071b31;box-shadow:0 16px 40px rgba(0,0,0,.45)}
.column-view-panel-head{position:sticky;top:-8px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-1px -1px 5px;padding:10px 9px 9px;border-bottom:1px solid #173e5d;background:#071b31;color:#f2f8fd;font-size:12px}
.column-view-panel-head small{color:#7f9ab3;font-size:10px}
.column-view-panel label{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;min-height:34px!important;margin:0!important;padding:6px 8px!important;color:#d9eafa;cursor:pointer;border-radius:7px;font-size:12px!important;line-height:1.25!important;text-align:left!important}
.column-view-panel label:hover{background:rgba(24,195,238,.08)}
.column-view-panel input[type="checkbox"]{appearance:auto!important;display:inline-block!important;flex:0 0 16px!important;width:16px!important;min-width:16px!important;max-width:16px!important;height:16px!important;min-height:16px!important;margin:0!important;padding:0!important;border:0!important;border-radius:3px!important;accent-color:#13bfe9;box-shadow:none!important}
.column-view-panel label span{display:block!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#report-view-status{color:#41d99a;min-width:0}
#report-view-status.error{color:#ff7088}
[data-theme="light"] .column-view-panel,[data-theme="light"] .column-view-panel-head{background:#fff;border-color:#c9dbe8;box-shadow:0 16px 40px rgba(30,57,76,.16)}
[data-theme="light"] .column-view-panel-head{box-shadow:none}
[data-theme="light"] .column-view-panel label{color:#17344d}
@media(max-width:720px){.report-layout-table .column-resizer{display:none}.report-layout-table .column-drag-title{cursor:default}#save-report-view,#reset-report-view{min-height:40px}.column-view-menu{align-self:flex-start}.column-view-panel{padding:8px}.column-view-panel label{min-height:32px!important;padding:5px 7px!important;font-size:11px!important}}
