/* Shared, high-contrast admin theme. Kept deliberately neutral so data is easy to read. */
:root { --orange: #c2410c; --gold: #a16207; --ink: #1f2937; --muted: #526071; --line: #d7dde5; --surface: #ffffff; --page: #f6f8fb; }
body { background: var(--page) !important; background-image: none !important; color: var(--ink) !important; }
.sidebar { background: #ffffff !important; border-right: 1px solid var(--line) !important; box-shadow: none !important; }
.sidebar-logo { border-bottom-color: var(--line) !important; }
.brand-text { background: none !important; -webkit-text-fill-color: var(--ink) !important; color: var(--ink) !important; }
.sidebar-logo div div:last-child, .nav-label { color: #687386 !important; }
.sidebar-link { color: #354052 !important; }
.sidebar-link:hover, .sidebar-link.active { background: #fff1e8 !important; color: #9a3412 !important; }
.sidebar-link.active { border-left-color: var(--orange) !important; }
.main-content, .shell { color: var(--ink) !important; }
.panel, .stat-card, .primary { background: var(--surface) !important; border-color: var(--line) !important; box-shadow: none !important; backdrop-filter: none !important; }
.panel-header { border-bottom-color: var(--line) !important; }
.text-muted, .muted { color: var(--muted) !important; }
table, .table { --bs-table-bg: transparent !important; --bs-table-color: var(--ink) !important; --bs-table-border-color: var(--line) !important; color: var(--ink) !important; }
th { color: #4b5563 !important; border-bottom-color: var(--line) !important; }
td { color: var(--ink) !important; border-bottom-color: #e8ecf1 !important; }
.form-control, .form-control:focus, .form-select, .form-select:focus, .form-control-dark, .form-select-dark { background: #ffffff !important; color: var(--ink) !important; border-color: #b8c2cf !important; box-shadow: none !important; }
.form-select option { background: #ffffff; color: var(--ink); }
.filter-tab { background: #ffffff !important; color: #475569 !important; border-color: #cbd5e1 !important; }
.filter-tab:hover, .filter-tab.active { background: #fff1e8 !important; color: #9a3412 !important; border-color: #fdba74 !important; }
.btn-orange, .btn-brand { background: #c2410c !important; color: #ffffff !important; }
.btn-orange:hover, .btn-brand:hover { background: #9a3412 !important; color: #ffffff !important; }
.status-badge { border: 1px solid currentColor; }
.status-placed, .status-confirmed, .status-processing, .status-shipped, .status-delivered, .status-cancelled { background: transparent !important; }
.coupon-code { background: transparent !important; color: #9a3412 !important; border: 1px solid #fdba74; }
.page-link { background: #ffffff !important; border-color: #cbd5e1 !important; color: #475569 !important; }
.page-item.active .page-link { background: #c2410c !important; border-color: #c2410c !important; color: #ffffff !important; }
.modal-content { background: #ffffff !important; color: var(--ink) !important; }
.btn-close-white { filter: none !important; }
/* Older pages use inline white text declarations; retain contrast on the light surface. */
[style*="color:rgba(255"], [style*="color:#fff"], [style*="color:#FFF"] { color: var(--ink) !important; }
[style*="border-color:rgba(255"] { border-color: var(--line) !important; }
@media (max-width: 768px) { .sidebar { box-shadow: 2px 0 8px rgba(15, 23, 42, .12) !important; } }
