/* ========================================================
   KORPORATIV XARAJATLAR MODULI CSS
   Sof Servis Sari MChJ - Boshqaruv & Audit Tizimi
   - Katta oyna (Lenta va jadval ko'rinishi)
   - Xarajat kiritish & tahrirlash oynasi (Dropdown + Yangi qo'shish)
   - Kursor hover tooltip (Kim va qachon kiritgani/o'zgartirgani)
   - Audit Log tarixi (Chiroyli o'zgarishlar lentasi)
   - 11-sana 00:00:00 muddat qoidasi nishonlari
   ======================================================== */

/* Asosiy overlay */
.exp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    background: rgba(15, 23, 42, 0.72);
    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);
}

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

/* Modal konteyneri */
.exp-modal-container {
    background: var(--element-bg);
    width: 100%;
    max-width: 1320px;
    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 .exp-modal-container {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* ================= HEADER ================= */
.exp-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.2);
    gap: 16px;
    flex-wrap: wrap;
}

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

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

.exp-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.35);
}

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

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

.exp-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

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

.exp-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.exp-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
}

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

.exp-btn-manage-cats {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 12px;
    background: var(--element-bg);
    color: var(--primary-text-color);
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 3px 3px 8px var(--shadow-dark), -3px -3px 8px var(--shadow-light);
    transition: all 0.2s ease;
}

body.dark-mode .exp-btn-manage-cats {
    border-color: rgba(255,255,255,0.1);
}

.exp-btn-manage-cats:hover {
    color: #3b82f6;
}

.exp-btn-excel {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    transition: all 0.2s ease;
}

.exp-btn-excel:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

.exp-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: var(--element-bg);
    color: var(--secondary-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
    transition: all 0.2s;
}

.exp-close-btn:hover {
    color: #ef4444;
    transform: rotate(90deg);
}

/* ================= BODY ================= */
.exp-modal-body {
    padding: 22px 28px;
    overflow-y: auto;
    max-height: calc(94vh - 80px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ================= KPI STATISTIKA KARTALARI ================= */
.exp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1080px) {
    .exp-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.exp-kpi-card {
    background: var(--element-bg);
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 6px 6px 16px var(--shadow-dark), -6px -6px 16px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

body.dark-mode .exp-kpi-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.exp-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #ef4444;
}

.exp-kpi-card.kpi-current-month::before {
    background: #f59e0b;
}

.exp-kpi-card.kpi-top-category::before {
    background: #6366f1;
}

.exp-kpi-card.kpi-status::before {
    background: #10b981;
}

.exp-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exp-kpi-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--secondary-text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exp-kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.exp-kpi-icon svg {
    width: 16px;
    height: 16px;
}

.exp-kpi-card.kpi-current-month .exp-kpi-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.exp-kpi-card.kpi-top-category .exp-kpi-icon {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.exp-kpi-card.kpi-status .exp-kpi-icon {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.exp-kpi-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-text-color);
    letter-spacing: -0.5px;
}

.exp-kpi-value.danger {
    color: #ef4444;
}

.exp-kpi-sub {
    font-size: 12px;
    color: var(--secondary-text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================= FILTRLAR PANELI ================= */
.exp-filter-card {
    background: var(--element-bg);
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 6px 6px 16px var(--shadow-dark), -6px -6px 16px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.dark-mode .exp-filter-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.exp-filter-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 2fr;
    gap: 14px;
    align-items: flex-end;
}

@media (max-width: 1024px) {
    .exp-filter-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .exp-filter-row {
        grid-template-columns: 1fr;
    }
}

.exp-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.exp-field-group label svg {
    width: 14px;
    height: 14px;
    color: #ef4444;
}

.exp-input, .exp-select {
    width: 100%;
    padding: 9px 14px;
    border-radius: 12px;
    border: none;
    background: var(--element-bg);
    color: var(--primary-text-color);
    font-size: 13.5px;
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s;
    font-family: inherit;
}

.exp-input:focus, .exp-select:focus {
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light), 0 0 0 2px rgba(239, 68, 68, 0.35);
}

.exp-filter-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,0.08);
}

body.dark-mode .exp-filter-bottom {
    border-top-color: rgba(255,255,255,0.08);
}

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

.exp-quick-btn {
    padding: 6px 12px;
    border-radius: 9px;
    border: none;
    background: var(--element-bg);
    color: var(--secondary-text-color);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 2px 2px 5px var(--shadow-dark), -2px -2px 5px var(--shadow-light);
    transition: all 0.2s;
}

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

.exp-quick-btn.active {
    background: #ef4444;
    color: #fff;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.3);
}

.exp-toggle-deleted {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--secondary-text-color);
    cursor: pointer;
    user-select: none;
}

.exp-toggle-deleted input[type="checkbox"] {
    cursor: pointer;
    accent-color: #ef4444;
    width: 15px;
    height: 15px;
}

/* ================= LENTA VA JADVAL BO'LIMI ================= */
.exp-table-section {
    background: var(--element-bg);
    border-radius: 20px;
    box-shadow: 8px 8px 20px var(--shadow-dark), -8px -8px 20px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.dark-mode .exp-table-section {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.exp-table-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid var(--background-color);
}

body.dark-mode .exp-table-header-bar {
    background: rgba(0, 0, 0, 0.2);
}

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

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

.exp-count-badge {
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    padding: 3px 9px;
    border-radius: 12px;
}

.exp-table-wrapper {
    overflow-x: auto;
    max-height: 520px;
}

/* Asosiy jadval */
.exp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
}

.exp-table thead th {
    background: var(--element-bg);
    color: var(--secondary-text-color);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--background-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Lenta sarlavhasi (Oy / Hafta lentalari) */
.exp-ribbon-row td {
    background: rgba(239, 68, 68, 0.06);
    padding: 10px 18px;
    font-weight: 700;
    font-size: 13px;
    color: var(--primary-text-color);
    border-top: 1px solid rgba(239, 68, 68, 0.15);
    border-bottom: 1px solid rgba(239, 68, 68, 0.15);
}

.exp-ribbon-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exp-ribbon-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exp-ribbon-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
}

.exp-ribbon-sum {
    font-size: 13px;
    font-weight: 800;
    color: #ef4444;
}

/* Xarajat qatorlari */
.exp-row td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--background-color);
    color: var(--primary-text-color);
    vertical-align: middle;
    transition: background 0.15s;
}

.exp-row:hover td {
    background: rgba(0, 0, 0, 0.02);
}

body.dark-mode .exp-row:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* O'chirilgan yozuv stili */
.exp-row.deleted td {
    background: rgba(239, 68, 68, 0.04);
    opacity: 0.65;
}

.exp-row.deleted .exp-amount,
.exp-row.deleted .exp-category,
.exp-row.deleted .exp-comment {
    text-decoration: line-through;
}

.exp-date-cell {
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
}

.exp-date-main {
    font-size: 13.5px;
    color: var(--primary-text-color);
}

.exp-date-sub {
    font-size: 11px;
    color: var(--secondary-text-color);
}

.exp-category-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.exp-category-emoji {
    font-size: 18px;
    line-height: 1;
}

.exp-comment-cell {
    max-width: 320px;
    word-break: break-word;
    color: var(--primary-text-color);
    line-height: 1.4;
    font-size: 13px;
}

.exp-amount-cell {
    font-weight: 800;
    font-size: 14.5px;
    color: #ef4444;
    white-space: nowrap;
}

/* KURSOR OLIB BORILGANDA (USER HOVER TOOLTIP) */
.exp-user-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--element-bg);
    box-shadow: 2px 2px 6px var(--shadow-dark), -2px -2px 6px var(--shadow-light);
    cursor: default;
    user-select: none;
    font-size: 12px;
    color: var(--secondary-text-color);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.2s;
}

body.dark-mode .exp-user-badge {
    border-color: rgba(255,255,255,0.08);
}

.exp-user-badge:hover {
    color: var(--primary-text-color);
    border-color: #ef4444;
}

.exp-user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tooltip popup */
.exp-tooltip-content {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 250px;
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.5;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.exp-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #0f172a;
}

.exp-user-badge:hover .exp-tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.exp-tooltip-title {
    font-weight: 700;
    font-size: 12.5px;
    color: #38bdf8;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.exp-tooltip-row {
    margin-bottom: 3px;
    color: #cbd5e1;
    font-size: 11.5px;
}

.exp-tooltip-row strong {
    color: #fff;
}

.exp-tooltip-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 6px 0;
}

/* Davr yopiqligi nishoni */
.exp-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
}

.exp-status-pill.open {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.exp-status-pill.locked {
    background: rgba(100, 116, 139, 0.14);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.25);
}

.exp-status-pill.deleted {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* Harakat tugmalari */
.exp-actions-cell {
    white-space: nowrap;
    text-align: right;
}

.exp-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: none;
    background: var(--element-bg);
    color: var(--secondary-text-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    box-shadow: 2px 2px 6px var(--shadow-dark), -2px -2px 6px var(--shadow-light);
    transition: all 0.2s;
}

.exp-action-btn:hover {
    color: var(--primary-text-color);
}

.exp-action-btn.btn-edit:hover {
    color: #3b82f6;
}

.exp-action-btn.btn-delete:hover {
    color: #ef4444;
}

.exp-action-btn.btn-audit:hover {
    color: #8b5cf6;
}

.exp-action-btn:disabled,
.exp-action-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

/* Footer qismi */
.exp-table tfoot td {
    background: var(--element-bg);
    padding: 14px 18px;
    font-weight: 800;
    font-size: 14px;
    color: var(--primary-text-color);
    border-top: 2px solid var(--background-color);
}

.exp-total-val {
    color: #ef4444;
    font-size: 16px;
}

/* Bo'sh holat */
.exp-empty-state {
    padding: 48px 20px;
    text-align: center;
    color: var(--secondary-text-color);
}

.exp-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.exp-empty-text {
    font-size: 14px;
    font-weight: 600;
}

/* =======================================================
   SUB-MODALLAR (FORM, AUDIT, KATEGORIYA)
   ======================================================= */
.exp-submodal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3500;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
}

.exp-submodal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.exp-submodal-container {
    background: var(--element-bg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    border-radius: 22px;
    box-shadow: 16px 16px 40px var(--shadow-dark), -16px -16px 40px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

body.dark-mode .exp-submodal-container {
    border-color: rgba(255, 255, 255, 0.08);
}

.exp-submodal-overlay.active .exp-submodal-container {
    transform: scale(1);
}

.exp-submodal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 2px solid var(--background-color);
}

.exp-submodal-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.exp-submodal-body {
    padding: 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exp-submodal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 2px solid var(--background-color);
    background: rgba(255,255,255,0.05);
}

.exp-btn-cancel {
    padding: 9px 18px;
    border-radius: 12px;
    border: none;
    background: var(--element-bg);
    color: var(--secondary-text-color);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 3px 3px 8px var(--shadow-dark), -3px -3px 8px var(--shadow-light);
    transition: all 0.2s;
}

.exp-btn-cancel:hover {
    color: var(--primary-text-color);
}

.exp-btn-save {
    padding: 9px 22px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    transition: all 0.2s;
}

.exp-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}

/* Emoji selector */
.exp-emoji-selector-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.exp-emoji-pill {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    background: var(--element-bg);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 2px 2px 5px var(--shadow-dark), -2px -2px 5px var(--shadow-light);
    transition: transform 0.15s;
    user-select: none;
}

.exp-emoji-pill:hover,
.exp-emoji-pill.active {
    transform: scale(1.15);
    border-color: #ef4444;
}

/* =======================================================
   AUDIT LOG TIMELINE MODALI
   ======================================================= */
.exp-audit-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 24px;
}

.exp-audit-timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 8px;
    width: 2px;
    background: rgba(239, 68, 68, 0.25);
}

.exp-audit-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--element-bg);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 4px 4px 12px var(--shadow-dark), -4px -4px 12px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .exp-audit-item {
    border-color: rgba(255, 255, 255, 0.06);
}

.exp-audit-dot {
    position: absolute;
    top: 16px;
    left: -22px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ef4444;
    border: 3px solid var(--element-bg);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
}

.exp-audit-item.action-create .exp-audit-dot {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4);
}

.exp-audit-item.action-update .exp-audit-dot {
    background: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

.exp-audit-item.action-delete .exp-audit-dot {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
}

.exp-audit-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-audit-action-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 8px;
}

.action-create .exp-audit-action-tag {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.action-update .exp-audit-action-tag {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.action-delete .exp-audit-action-tag {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.exp-audit-time {
    font-size: 11.5px;
    color: var(--secondary-text-color);
}

.exp-audit-user {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.exp-audit-diff-table {
    width: 100%;
    margin-top: 6px;
    font-size: 12px;
    border-collapse: collapse;
}

.exp-audit-diff-table td {
    padding: 5px 8px;
    border-radius: 6px;
}

.exp-diff-label {
    font-weight: 600;
    color: var(--secondary-text-color);
    width: 90px;
}

.exp-diff-old {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    text-decoration: line-through;
}

.exp-diff-arrow {
    text-align: center;
    color: var(--secondary-text-color);
    width: 20px;
}

.exp-diff-new {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-weight: 600;
}

/* ================= KATEGORIYALAR BOSHQARUVI JADVALI ================= */
.exp-cat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.exp-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--element-bg);
    box-shadow: 2px 2px 6px var(--shadow-dark), -2px -2px 6px var(--shadow-light);
    border: 1px solid rgba(0,0,0,0.05);
}

body.dark-mode .exp-cat-item {
    border-color: rgba(255,255,255,0.05);
}

.exp-cat-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-text-color);
}

.exp-cat-badge-default {
    font-size: 10px;
    background: rgba(100, 116, 139, 0.15);
    color: var(--secondary-text-color);
    padding: 2px 6px;
    border-radius: 6px;
}

.exp-cat-delete-btn {
    border: none;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.15s;
}

.exp-cat-delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}
