/* OmniRest V2 — Koyu tema premium uyumu (charcoal gri + krem vurgu, lacivert yok) */

[data-theme="dark"] .omni-btn-primary,
[data-theme="dark"] .login-submit {
    color: var(--rest-heading);
    background: linear-gradient(135deg, var(--rest-accent) 0%, var(--rest-accent-hover) 100%);
    border: 1px solid var(--rest-border);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .omni-btn-primary:hover,
[data-theme="dark"] .login-submit:hover {
    filter: brightness(1.03);
    color: var(--rest-heading);
}

[data-theme="dark"] .omni-hero-card__icon {
    color: var(--rest-heading);
    background: linear-gradient(145deg, var(--rest-accent), var(--rest-accent-hover));
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .omni-icon-btn:hover {
    background: var(--hover);
    color: var(--text);
}

[data-theme="dark"] .tooltip.omni-action-tooltip .tooltip-inner {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .tooltip.omni-action-tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--border);
}

[data-theme="dark"] .tooltip.omni-action-tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--border);
}

[data-theme="dark"] .report-toast,
[data-theme="dark"] .sl-toast,
[data-theme="dark"] .dv-toast,
[data-theme="dark"] .omni-toast,
[data-theme="dark"] .tp-toast,
[data-theme="dark"] .mt-toast,
[data-theme="dark"] .qs-toast,
[data-theme="dark"] .toast {
    background: var(--sidebar);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .tp-toast.is-warning,
[data-theme="dark"] .qs-toast--info {
    background: rgba(255, 231, 166, 0.14);
    border-color: rgba(244, 210, 138, 0.45);
    color: #ffe7a6;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .tp-toast.is-error,
[data-theme="dark"] .dv-toast--error {
    background: rgba(220, 38, 38, 0.18);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .qs-toast--success {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .toast.bg-success,
[data-theme="dark"] .toast.text-white.bg-success {
    background: rgba(16, 185, 129, 0.22) !important;
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #6ee7b7 !important;
}

[data-theme="dark"] .toast.bg-danger,
[data-theme="dark"] .toast.text-white.bg-danger {
    background: rgba(220, 38, 38, 0.22) !important;
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca !important;
}

[data-theme="dark"] .toast.bg-warning,
[data-theme="dark"] .toast.text-white.bg-warning {
    background: rgba(255, 231, 166, 0.14) !important;
    border: 1px solid rgba(244, 210, 138, 0.45);
    color: #ffe7a6 !important;
}

[data-theme="dark"] .toast.bg-primary,
[data-theme="dark"] .toast.bg-info {
    background: rgba(255, 242, 213, 0.12) !important;
    border: 1px solid rgba(244, 210, 138, 0.4);
    color: #ffe7a6 !important;
}

[data-theme="dark"] .toast .toast-body {
    color: inherit;
}

[data-theme="dark"] .toast .btn-close,
[data-theme="dark"] .toast .btn-close-white {
    filter: invert(1) grayscale(1);
    opacity: 0.78;
}

[data-theme="dark"] .qr-inline-alert {
    background: rgba(255, 231, 166, 0.12);
    border-color: rgba(244, 210, 138, 0.45);
    color: #ffe7a6;
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .modal-content {
    background: var(--card);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: var(--border);
}

[data-theme="dark"] .modal-header .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.72;
}

[data-theme="dark"] .offcanvas {
    background: var(--card);
    color: var(--text);
}

[data-theme="dark"] .offcanvas-header {
    border-bottom-color: var(--border);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: var(--sidebar);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--muted);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: var(--sidebar);
    border-color: var(--rest-border);
    color: var(--text);
    box-shadow: var(--focus-ring);
}

[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-bg: var(--hover);
}

[data-theme="dark"] .table thead th {
    background: var(--sidebar);
    color: var(--muted);
    border-color: var(--border);
}

[data-theme="dark"] .card,
[data-theme="dark"] .omni-stat-card,
[data-theme="dark"] .omni-panel {
    background: var(--card);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--card);
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text);
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background: var(--hover);
    color: var(--text);
}

/* Paket servis */
[data-theme="dark"] .dv-wrap {
    --dv-bg: var(--bg);
    --dv-card: var(--card);
    --dv-muted: var(--muted);
    --dv-text: var(--text);
    --dv-accent-soft: var(--rest-accent-soft);
}

[data-theme="dark"] .dv-card__source-icon {
    background: var(--sidebar);
    color: var(--rest-accent);
    border: 1px solid var(--border);
}

[data-theme="dark"] .dv-col-head--dark,
[data-theme="dark"] .dv-kanban-col__head[style*="1e293b"] {
    background: var(--sidebar) !important;
    color: var(--text);
}

/* Müşteriler */
[data-theme="dark"] .cust-page .cust-top__title,
[data-theme="dark"] .cust-page .cust-cell-customer__name {
    color: var(--text);
}

[data-theme="dark"] .cust-page .cust-top__sub,
[data-theme="dark"] .cust-page .cust-cell-contact,
[data-theme="dark"] .cust-page .cust-cell-address {
    color: var(--muted);
}

[data-theme="dark"] .cust-page .cust-panel,
[data-theme="dark"] .cust-page .cust-top__back,
[data-theme="dark"] .cust-page .cust-search input,
[data-theme="dark"] .cust-page .cust-icon-btn,
[data-theme="dark"] .cust-page .cust-modal__dialog,
[data-theme="dark"] .cust-page .cust-modal__header,
[data-theme="dark"] .cust-page .cust-modal__body,
[data-theme="dark"] .cust-page .cust-modal__footer,
[data-theme="dark"] .cust-page .cust-form-card,
[data-theme="dark"] .cust-page .cust-detail-card,
[data-theme="dark"] .cust-page .cust-ledger-row,
[data-theme="dark"] .cust-page .cust-pay-panel {
    background: var(--card);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .cust-page .cust-table thead {
    background: var(--sidebar);
}

[data-theme="dark"] .cust-page .cust-table th {
    color: var(--muted);
    border-color: var(--border);
}

[data-theme="dark"] .cust-page .cust-table td {
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .cust-page .cust-table tbody tr:hover td {
    background: var(--hover);
}

[data-theme="dark"] .cust-page .cust-top__back:hover,
[data-theme="dark"] .cust-page .cust-icon-btn:hover {
    background: var(--hover);
}

[data-theme="dark"] .cust-page .cust-btn-primary {
    color: var(--rest-heading);
    background: linear-gradient(180deg, var(--rest-accent) 0%, var(--rest-accent-hover) 100%);
    border-color: var(--rest-border);
}

/* Tanım modalları — koyu yüzey */
[data-theme="dark"] .def-modal__title,
[data-theme="dark"] .def-form-label,
[data-theme="dark"] .def-premium-label {
    color: var(--text);
}

[data-theme="dark"] .def-modal__header,
[data-theme="dark"] .def-modal__body,
[data-theme="dark"] .def-modal__footer {
    background: var(--card);
    border-color: var(--border);
}

[data-theme="dark"] .def-premium-input,
[data-theme="dark"] .def-premium-select {
    background: var(--sidebar);
    border-color: var(--border);
    color: var(--text);
}

/* Rapor offcanvas başlıkları — lacivert gradient yerine gri */
[data-theme="dark"] .report-eod-offcanvas__header,
[data-theme="dark"] .report-corp-offcanvas__header {
    background: linear-gradient(180deg, var(--card) 0%, var(--sidebar) 100%);
    color: var(--text);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .report-eod-offcanvas__title,
[data-theme="dark"] .report-corp-offcanvas__title {
    color: var(--text);
}

[data-theme="dark"] .report-eod-offcanvas__header .btn-close,
[data-theme="dark"] .report-corp-offcanvas__header .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.72;
}

/* Duyuru modalı */
[data-theme="dark"] .omni-announcement-modal__header {
    background: linear-gradient(135deg, var(--rest-accent-soft) 0%, var(--card) 100%);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .omni-announcement-modal__eyebrow {
    color: var(--rest-accent);
}

[data-theme="dark"] .omni-announcement-modal__footer {
    background: var(--card);
    border-top-color: var(--border);
}

[data-theme="dark"] .omni-announcement-card {
    background: var(--card);
    border-color: var(--border);
}

[data-theme="dark"] .omni-announcement-card__title {
    color: var(--text);
}

[data-theme="dark"] .omni-announcement-card__summary,
[data-theme="dark"] .omni-announcement-card__meta dt,
[data-theme="dark"] .omni-announcement-card__meta dd {
    color: var(--muted);
}
