/* ========================================================
   UMUMIY OBOROTLAR MODAL OYNASI VA MOLIYAVIY DINAMIKA GRAFIKLARI
   - Kichik balandlikdagi to'liq kenglikdagi Line Graph
   - 3 ta Premium KPI Kartochkalari (Qizil fonda kutilayotgan tushumlar)
   - Barcha / Tanlangan kontragentlar bo'yicha Umumiy chiroyli jadval
   ======================================================== */

.oborot-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.oborot-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.oborot-modal-container {
    background: var(--element-bg);
    width: 100%;
    max-width: 1240px;
    max-height: 94vh;
    border-radius: 26px;
    box-shadow: 20px 20px 60px var(--shadow-dark), -20px -20px 60px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .oborot-modal-container {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.oborot-modal-overlay.active .oborot-modal-container {
    transform: scale(1) translateY(0);
}

/* ================= HEADER ================= */
.oborot-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 2px solid var(--background-color);
    background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .oborot-modal-header {
    background: rgba(0, 0, 0, 0.15);
}

.oborot-modal-title-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.oborot-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.oborot-header-icon svg {
    width: 22px;
    height: 22px;
}

.oborot-modal-title-box h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.oborot-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .oborot-badge {
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

.oborot-modal-title-box p {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: var(--secondary-text-color);
}

.oborot-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--secondary-text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.oborot-close-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    transform: rotate(90deg);
}

/* ================= BODY ================= */
.oborot-modal-body {
    padding: 22px 28px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.oborot-modal-body::-webkit-scrollbar {
    width: 8px;
}

.oborot-modal-body::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 4px;
}

/* ================= PARAMETRLAR FORMASI ================= */
.oborot-params-card {
    background: var(--background-color);
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
}

.oborot-form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    align-items: flex-end;
}

@media (max-width: 900px) {
    .oborot-form-row {
        grid-template-columns: 1fr;
    }
}

.oborot-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.oborot-field-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.oborot-field-group label svg {
    width: 14px;
    height: 14px;
}

.oborot-input, .oborot-select {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--element-bg);
    color: var(--primary-text-color);
    padding: 0 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

body.dark-mode .oborot-input, body.dark-mode .oborot-select {
    border-color: rgba(255, 255, 255, 0.08);
}

.oborot-input:focus, .oborot-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Combobox */
.oborot-combobox-wrapper {
    position: relative;
    width: 100%;
}

.oborot-combobox-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.oborot-combobox-clear-btn {
    position: absolute;
    right: 36px;
    background: transparent;
    border: none;
    color: var(--secondary-text-color);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.oborot-combobox-clear-btn:hover {
    color: #ef4444;
}

.oborot-combobox-toggle-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--secondary-text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.oborot-combobox-toggle-btn.open {
    transform: translateY(-50%) rotate(180deg);
}

.oborot-combobox-toggle-btn svg {
    width: 16px;
    height: 16px;
}

.oborot-combobox-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: var(--element-bg);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
    display: none;
    padding: 6px;
}

body.dark-mode .oborot-combobox-dropdown {
    border-color: rgba(255, 255, 255, 0.1);
}

.oborot-combobox-dropdown.active {
    display: block;
}

.oborot-combobox-item {
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s ease;
    font-size: 13px;
}

.oborot-combobox-item:hover, .oborot-combobox-item.selected {
    background: rgba(99, 102, 241, 0.12);
}

.oborot-combobox-item .item-name {
    font-weight: 600;
    color: var(--primary-text-color);
}

.oborot-combobox-item .item-stir {
    font-size: 11px;
    color: var(--secondary-text-color);
    font-family: monospace;
}

.oborot-combobox-no-result {
    padding: 14px;
    text-align: center;
    color: var(--secondary-text-color);
    font-size: 13px;
}

/* Tezkor sanalar va Action tugmalar */
.oborot-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}

.oborot-quick-dates {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.oborot-quick-date-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--element-bg);
    color: var(--secondary-text-color);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
}

body.dark-mode .oborot-quick-date-btn {
    border-color: rgba(255, 255, 255, 0.08);
}

.oborot-quick-date-btn:hover {
    color: var(--primary-text-color);
}

.oborot-quick-date-btn.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35);
}

.oborot-actions-group {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.oborot-btn {
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.oborot-btn svg {
    width: 15px;
    height: 15px;
}

.oborot-btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.oborot-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.45);
}

.oborot-btn-excel {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.oborot-btn-excel:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

.oborot-btn-pdf {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.oborot-btn-pdf:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45);
}

.oborot-btn-pdf:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.oborot-spinner-sm {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: oborotSpin 0.7s linear infinite;
}

/* Rasmiy hisobot meta-paneli (PDF va ekranda) */
.oborot-report-meta-card {
    background: var(--background-color);
    border-radius: 16px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
    border-left: 4px solid #6366f1;
}

.oborot-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oborot-meta-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oborot-meta-icon svg {
    width: 18px;
    height: 18px;
}

.oborot-meta-org {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-text-color);
}

.oborot-meta-type {
    margin: 1px 0 0 0;
    font-size: 11.5px;
    color: var(--secondary-text-color);
}

.oborot-meta-badges {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.oborot-meta-item {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--element-bg);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .oborot-meta-item {
    border-color: rgba(255, 255, 255, 0.08);
}

.oborot-meta-item .meta-label {
    color: var(--secondary-text-color);
    font-weight: 500;
}

.oborot-meta-item .meta-val {
    color: var(--primary-text-color);
    font-weight: 700;
}

/* ================= 1. KICHIK BALANDLIKDAGI LINE GRAPH ================= */
.oborot-chart-section {
    background: var(--background-color);
    border-radius: 20px;
    padding: 14px 18px 12px 18px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.oborot-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.oborot-chart-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-text-color);
    letter-spacing: -0.2px;
}

.oborot-chart-title svg {
    width: 16px;
    height: 16px;
    color: #6366f1;
}

.oborot-chart-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.services {
    background: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

.legend-dot.payments {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Kichik balandlikda (200px), umumiy oyna kengligida (100%) */
.oborot-chart-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 195px; /* Kichik balandlik talabi */
    max-height: 200px;
}

.oborot-chart-canvas-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ================= 2. CHIROYLI KARTOCHKALAR (KPI CARDS) ================= */
.oborot-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 860px) {
    .oborot-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.oborot-kpi-card {
    border-radius: 20px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 115px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.oborot-kpi-card:hover {
    transform: translateY(-2px);
}

.oborot-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.oborot-kpi-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.oborot-kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oborot-kpi-icon svg {
    width: 18px;
    height: 18px;
}

.oborot-kpi-value {
    font-size: 24px;
    font-weight: 800;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.oborot-kpi-sub {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
}

/* 1-Karta: Ko'rsatilgan xizmatlar (Moviy / Zamonaviy Indigo) */
.oborot-kpi-services {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.oborot-kpi-services .oborot-kpi-icon {
    background: rgba(99, 102, 241, 0.25);
    color: #818cf8;
}

.oborot-kpi-services .oborot-kpi-label {
    color: #cbd5e1;
}

.oborot-kpi-services .oborot-kpi-value {
    color: #ffffff;
}

/* 2-Karta: Tushumlar (Zumrad Yashil) */
.oborot-kpi-payments {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.oborot-kpi-payments .oborot-kpi-icon {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.oborot-kpi-payments .oborot-kpi-label {
    color: #a7f3d0;
}

.oborot-kpi-payments .oborot-kpi-value {
    color: #ffffff;
}

/* 3-Karta: Kutilayotgan tushumlar - FOYDALANUVCHI TALABI: (QIZIL FONDA) */
.oborot-kpi-pending {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px -4px rgba(220, 38, 38, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.oborot-kpi-pending::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.oborot-kpi-pending .oborot-kpi-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.oborot-kpi-pending .oborot-kpi-label {
    color: #fee2e2;
}

.oborot-kpi-pending .oborot-kpi-value {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.oborot-kpi-pending .oborot-kpi-sub {
    color: #fecaca;
}

/* ================= 3. UMUMIY CHIROYLI JADVAL ================= */
.oborot-table-section {
    background: var(--background-color);
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oborot-table-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.oborot-table-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.oborot-table-title-box h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-text-color);
}

.oborot-table-count-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.oborot-table-search-box {
    position: relative;
    width: 260px;
}

.oborot-table-search-input {
    width: 100%;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--element-bg);
    color: var(--primary-text-color);
    padding: 0 10px 0 32px;
    font-family: inherit;
    font-size: 12px;
    outline: none;
    box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

.oborot-table-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--secondary-text-color);
}

/* Table Wrapper */
.oborot-table-wrapper {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--element-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

body.dark-mode .oborot-table-wrapper {
    border-color: rgba(255, 255, 255, 0.08);
}

.oborot-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
}

.oborot-table thead th {
    background: rgba(99, 102, 241, 0.07);
    color: var(--primary-text-color);
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.15);
    white-space: nowrap;
    user-select: none;
}

body.dark-mode .oborot-table thead th {
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.oborot-table thead th.text-right,
.oborot-table tbody td.text-right,
.oborot-table tfoot td.text-right {
    text-align: right;
}

.oborot-table thead th.text-center,
.oborot-table tbody td.text-center,
.oborot-table tfoot td.text-center {
    text-align: center;
}

.oborot-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.15s ease;
}

body.dark-mode .oborot-table tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.oborot-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
}

.oborot-table tbody td {
    padding: 11px 14px;
    color: var(--primary-text-color);
    vertical-align: middle;
}

.oborot-cell-num {
    font-weight: 600;
    color: var(--secondary-text-color);
    width: 40px;
}

.oborot-cell-client {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.oborot-cell-client strong {
    font-weight: 600;
    color: var(--primary-text-color);
}

.oborot-cell-client small {
    font-size: 11px;
    color: var(--secondary-text-color);
    font-family: monospace;
}

.oborot-cell-money {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.oborot-cell-money.services {
    color: #4f46e5;
}

body.dark-mode .oborot-cell-money.services {
    color: #818cf8;
}

.oborot-cell-money.payments {
    color: #059669;
}

body.dark-mode .oborot-cell-money.payments {
    color: #34d399;
}

.oborot-cell-money.pending {
    color: #dc2626;
    font-weight: 700;
}

body.dark-mode .oborot-cell-money.pending {
    color: #f87171;
}

.oborot-badge-pending {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    font-weight: 700;
    font-size: 11.5px;
    white-space: nowrap;
}

body.dark-mode .oborot-badge-pending {
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
}

.oborot-badge-ok {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    font-weight: 600;
    font-size: 11px;
}

.oborot-row-action-btn {
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: transparent;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.dark-mode .oborot-row-action-btn {
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.4);
}

.oborot-row-action-btn:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

/* Table Footer - JAMI SATRI */
.oborot-table tfoot td {
    padding: 13px 14px;
    background: rgba(99, 102, 241, 0.1);
    font-weight: 800;
    color: var(--primary-text-color);
    border-top: 2px solid rgba(99, 102, 241, 0.25);
    white-space: nowrap;
}

body.dark-mode .oborot-table tfoot td {
    background: rgba(255, 255, 255, 0.06);
    border-top-color: rgba(255, 255, 255, 0.12);
}

/* ================= LOADING VA EMPTY STATES ================= */
.oborot-loading-state {
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--secondary-text-color);
}

.oborot-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: oborotSpin 0.8s linear infinite;
}

@keyframes oborotSpin {
    to { transform: rotate(360deg); }
}

.oborot-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--secondary-text-color);
}

.oborot-empty-state svg {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    opacity: 0.5;
}
