﻿.dovriyye-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 34%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.dovriyye-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}
.dovriyye-hero-copy {
    min-width: 0;
}
.dovriyye-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.dovriyye-title {
    margin: 10px 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.05;
    color: #0f172a;
}
.dovriyye-subtitle {
    margin: 0;
    max-width: 620px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}
.dovriyye-badge {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}
.dovriyye-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1.2fr) fit-content(84px) fit-content(84px);
    gap: 14px;
    align-items: end;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(10px);
}
.dovriyye-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.dovriyye-form-group-compact {
    width: fit-content;
    min-width: 72px;
}
.dovriyye-label {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #334155;
}
.dovriyye-input {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    color: #0f172a;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dovriyye-form-group-compact .dovriyye-input {
    width: min-content;
    min-width: 72px;
    max-width: 84px;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
}
.dovriyye-input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}
.dovriyye-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 14px;
}
.dv-btn {
    height: 46px;
    padding: 0 18px;
    min-width: 160px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}
.dv-btn i,
.dv-btn span {
    display: inline-flex;
    align-items: center;
}
.dv-btn:hover {
    transform: translateY(-1px);
}
.dv-btn:active {
    transform: translateY(0);
}
.dv-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.24),
        0 12px 24px rgba(15, 23, 42, 0.12);
}
.dv-btn:disabled,
.dv-btn[disabled] {
    opacity: 0.56;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}
.dv-btn:disabled:hover,
.dv-btn[disabled]:hover {
    transform: none;
}
.dv-btn-primary {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.22);
    background: linear-gradient(135deg, #2f6ef6 0%, #0ea5b3 100%);
    box-shadow:
        0 12px 26px rgba(37, 99, 235, 0.26),
        0 2px 8px rgba(14, 165, 179, 0.18);
}
.dv-btn-primary:hover {
    background: linear-gradient(135deg, #2a61de 0%, #0d97a4 100%);
    box-shadow:
        0 16px 30px rgba(37, 99, 235, 0.3),
        0 4px 10px rgba(14, 165, 179, 0.2);
}
.dv-btn-secondary {
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.5);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.09);
}
.dv-btn-secondary:hover {
    border-color: rgba(100, 116, 139, 0.5);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}
.dv-btn-ghost {
    color: #334155;
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.52);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.07);
}
.dv-btn-ghost:hover {
    color: #0f172a;
    border-color: rgba(100, 116, 139, 0.4);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}
.dovriyye-button {
    margin-top: 0;
    width: auto;
    min-width: 220px;
    padding: 0 22px;
    height: 48px;
    border-radius: 15px;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(125, 211, 252, 0.36);
    background: linear-gradient(135deg, #2b63eb 0%, #1d8fe2 52%, #0ea5b3 100%);
    color: #ffffff;
    font-family: "Inter", "Segoe UI", "Arial", sans-serif;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow:
        0 18px 34px rgba(37, 99, 235, 0.34),
        0 6px 16px rgba(14, 165, 179, 0.22);
}
.dovriyye-button:hover {
    border-color: rgba(103, 232, 249, 0.44);
    background: linear-gradient(135deg, #2458cf 0%, #1a82ce 52%, #0d96a3 100%);
    box-shadow:
        0 22px 36px rgba(37, 99, 235, 0.36),
        0 8px 18px rgba(14, 165, 179, 0.24);
}
#dvOpenChartBtn,
#dvShotTableBtn,
#cfmCloseBtn,
#cfmClearBtn,
#cfmApplyBtn,
#dvShotChartBtn,
#dvChartClose {
    font-family: inherit;
}
.dovriyye-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #334155;
}
.dovriyye-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.dovriyye-info,
.dovriyye-result,
.dovriyye-column-toggle {
    margin-top: 16px;
}
.dovriyye-column-toggle {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
#columnToggleDovriyye {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    align-items: center;
    overflow-x: auto;
    padding: 4px 0;
    margin: 6px 0;
    scrollbar-width: thin;
    list-style: none;
}
#columnToggleDovriyye li {
    display: block;
    flex: 0 0 auto;
    margin: 0;
}
#columnToggleDovriyye input[type="checkbox"] {
    margin: 0;
    inset: auto;
}
#columnToggleDovriyye label {
    cursor: pointer;
    user-select: none;
    min-height: 26px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    border-radius: 999px;
    gap: 6px;
}
#columnToggleDovriyye label::before {
    font-size: 12px !important;
}
.dv-hedef-input {
    width: 48px;
    height: 18px;
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    background: transparent;
    text-align: center;
    font: inherit;
    font-weight: inherit;
    line-height: 18px;
    box-sizing: border-box;
    -moz-appearance: textfield;
}
.dv-hedef-input::-webkit-outer-spin-button,
.dv-hedef-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.dv-hedef-input:focus {
    outline: 1px solid rgba(0, 0, 0, 0.45);
    outline-offset: 1px;
    background: rgba(255, 255, 255, 0.35);
}
.dv-percent {
    margin-left: 2px;
    font: inherit;
    font-weight: inherit;
}
#dovriyye_result table td,
#dovriyyeResult table td {
    vertical-align: middle;
    line-height: 18px;
}

/* Cədvəl və modallar (əvvəl app.js inline <style> idi) */
#dovriyyeResult .kv-table tbody .even-row {
    background-color: #ffffff;
}
#dovriyyeResult .kv-table tbody .odd-row {
    background-color: #e0f2f7;
}
#dovriyyeResult .dv-caption {
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    padding: 8px 6px;
    caption-side: top;
}

#cfmOverlay {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.35);
}
#cfmOverlay .cfm-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    width: 520px;
    max-width: 92vw;
    max-height: 82vh;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
}
#cfmOverlay .cfm-header {
    font-weight: 600;
    margin-bottom: 8px;
}
#cfmOverlay .cfm-body {
    overflow: auto;
}
#cfmOverlay .cfm-list {
    max-height: 55vh;
    overflow: auto;
    border: 1px solid #eee;
    padding: 6px;
    border-radius: 8px;
}
#cfmOverlay .cfm-row {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    column-gap: 10px;
    padding: 4px 6px;
}
#cfmOverlay .cfm-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}
#cfmOverlay .cfm-row span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#cfmOverlay .cfm-actions-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 6px;
}
#cfmOverlay .cfm-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
    flex-wrap: wrap;
}
#cfmOverlay input[type="number"],
#cfmOverlay input[type="text"] {
    width: 100%;
    padding: 6px 8px;
    box-sizing: border-box;
}
@media (max-width: 480px) {
    #cfmOverlay .cfm-card {
        width: 96vw;
        padding: 12px;
    }
}

#dvChartOverlay {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.4);
}
#dvChartOverlay .dv-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.23);
    width: 960px;
    max-width: 96vw;
    max-height: 92vh;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
}
#dvChartOverlay .dv-header {
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}
#dvChartOverlay .dv-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
#dvChartOverlay .dv-controls label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
}
#dvChartOverlay .dv-controls .dv-switch {
    position: relative;
    padding-left: 38px;
}
#dvChartOverlay .dv-controls .dv-switch input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 12px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.18s ease;
    cursor: pointer;
}
#dvChartOverlay .dv-controls .dv-switch input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
    transition: left 0.18s ease;
}
#dvChartOverlay .dv-controls .dv-switch input[type="checkbox"]:checked {
    background: #2563eb;
}
#dvChartOverlay .dv-controls .dv-switch input[type="checkbox"]:checked::after {
    left: 11px;
}
#dvChartOverlay .dv-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
    flex-wrap: wrap;
}
#dvChartOverlay .dv-main {
    height: 380px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 14px;
    padding: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
#dvChartOverlay .dv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}
#dvChartOverlay .dv-mini {
    height: 260px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 8px;
}
#dvChartCanvasMain {
    width: 100% !important;
    height: 100% !important;
}

#dovriyyeStats {
    margin-top: 15px;
    font-weight: bold;
}
@media (max-width: 768px) {
    .dovriyye-container {
        padding: 16px;
        border-radius: 20px;
    }
    .dovriyye-hero {
        flex-direction: column;
        align-items: stretch;
    }
    .dovriyye-badge {
        width: fit-content;
    }
    .dovriyye-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dovriyye-form-group-compact {
        width: 100%;
    }
    .dovriyye-form-group-compact .dovriyye-input {
        width: 100%;
        max-width: none;
    }
    .dovriyye-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    #dovriyyeResult > div[style*="justify-content:flex-end"] {
        justify-content: flex-start !important;
        flex-wrap: wrap;
    }
    #cfmOverlay .cfm-actions,
    #dvChartOverlay .dv-actions {
        justify-content: stretch;
    }
}
@media (max-width: 560px) {
    .dovriyye-grid {
        grid-template-columns: 1fr;
    }
    .dovriyye-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .dovriyye-button,
    .dv-btn {
        width: 100%;
        min-width: 0;
    }
    #cfmOverlay .cfm-actions .dv-btn,
    #dvChartOverlay .dv-actions .dv-btn {
        flex: 1 1 100%;
    }
}