/* SystemNet theme shared by the authenticated shell and authentication pages. */
html[data-bs-theme="dark"] {
    color-scheme: dark;
    --color-background: #0d1726;
    --color-border: #304057;
    --color-text: #e5edf7;
    --color-muted: #a8b8cc;
    --color-primary-50: #17283e;
    --color-primary-100: #213954;
    --color-success-soft: #14392c;
    --color-warning-soft: #3b311d;
    --color-danger-soft: #41252d;
    --color-info-soft: #1b334d;
    --bs-body-bg: #0d1726;
    --bs-body-color: #e5edf7;
    --bs-secondary-color: #a8b8cc;
    --bs-tertiary-bg: #1b293b;
    --bs-border-color: #304057;
    --bs-emphasis-color: #fff;
}
.systemnet-theme-select { width: 108px; flex: 0 0 108px; }
.guest-brand-logo { width: 52px; height: 52px; object-fit: contain; }
.guest-layout .auth-section { min-height: calc(100vh - 170px); display: flex; align-items: center; }
.guest-layout .auth-section > .container { width: 100%; }
html[data-bs-theme="dark"] .app-topbar,
html[data-bs-theme="dark"] .guest-topbar,
html[data-bs-theme="dark"] .app-footer,
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .dropdown-menu { color: var(--color-text); background: #152235; border-color: var(--color-border); }
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select { color: var(--color-text); background-color: #101d2e; border-color: #42546d; }
html[data-bs-theme="dark"] .form-control::placeholder { color: #97a9bf; opacity: 1; }
html[data-bs-theme="dark"] .table { --bs-table-bg: #152235; --bs-table-color: #e5edf7; --bs-table-border-color: #304057; --bs-table-striped-bg: #1b2a3e; --bs-table-hover-bg: #21344c; }
html[data-bs-theme="dark"] .text-dark,
html[data-bs-theme="dark"] .topbar-page-title,
html[data-bs-theme="dark"] .topbar-user,
html[data-bs-theme="dark"] .guest-brand,
html[data-bs-theme="dark"] .guest-content h1,
html[data-bs-theme="dark"] .guest-content h2 { color: #e5edf7 !important; }
html[data-bs-theme="dark"] .text-secondary,
html[data-bs-theme="dark"] .text-muted { color: #a8b8cc !important; }
html[data-bs-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .bg-light { background-color: #1b293b !important; }
html[data-bs-theme="dark"] .btn-outline-dark { --bs-btn-color: #d4e3f7; --bs-btn-border-color: #859bb8; --bs-btn-hover-bg: #d4e3f7; --bs-btn-hover-color: #101d2e; }
html[data-bs-theme="dark"] .text-primary { color: #83bfff !important; }
html[data-bs-theme="dark"] .topbar-icon-button,
html[data-bs-theme="dark"] .topbar-mobile-toggle { color: #c8dbf4; background: #1b293b; border-color: #304057; }
html[data-bs-theme="dark"] .printer-card,
html[data-bs-theme="dark"] .users-filters,
html[data-bs-theme="dark"] .monitoring-filter-form,
html[data-bs-theme="dark"] .monitoring-toolbar { background: #152235; color: #e5edf7; border-color: #304057; }
html[data-bs-theme="dark"] .printer-card h2,
html[data-bs-theme="dark"] .printer-card dd { color: #e5edf7; }
html[data-bs-theme="dark"] .printer-card dt,
html[data-bs-theme="dark"] .printer-card p { color: #a8b8cc; }
.systemnet-primary-navigation { padding-bottom: .5rem; }
.systemnet-more-modules > summary { padding: .65rem .78rem; color: #b7c7db; cursor: pointer; font-size: .8rem; }
.sidebar-collapsed .systemnet-more-modules > summary { font-size: 0; }
.sidebar-collapsed .systemnet-more-modules > summary::after { content: '•••'; font-size: 1rem; }
@media (max-width: 575.98px) { .guest-layout .auth-section { padding: 1.5rem 0 !important; }.guest-layout .card-body { padding: 1.5rem !important; }.systemnet-theme-select { width: 95px; flex-basis: 95px; } }
@media screen {
    html[data-bs-theme="dark"] :is(.monitoring-shell,.users-page,.printers-page,.alerts-shell,.printing-general-shell) { background: #0d1726; color: #e5edf7; }
    html[data-bs-theme="dark"] :is(.monitoring-summary-card,.monitoring-panel,.monitoring-cycle,.users-card,.printer-filters,.printer-form,.empty-printers,.alerts-card,.alert-filters,.sheet-status,.substitution-history,.alert-history-item,.report-period) { background: #152235; color: #e5edf7; border-color: #304057; }
    html[data-bs-theme="dark"] :is(.monitoring-summary-card,.monitoring-panel,.users-card,.alerts-card) :is(h1,h2,h3,strong) { color: #e5edf7; }
    html[data-bs-theme="dark"] .monitoring-table thead th { background: #1b293b; color: #c8d7eb; }
    html[data-bs-theme="dark"] .monitoring-table tbody tr:hover { background: #21344c; }
    html[data-bs-theme="dark"] .reading-sheet { color: #101828; background: #fff; }
}
.sidebar-product-version { color: #a8b8cc; font-size: .7rem; padding: .4rem .7rem; overflow-wrap: anywhere; }
.sidebar-unavailable { opacity: .55; cursor: default; }
@media print {
    html[data-bs-theme="dark"], html[data-bs-theme="dark"] body { --color-background: #fff; --color-text: #111; --color-muted: #555; --color-border: #ddd; --bs-body-bg: #fff; --bs-body-color: #111; color: #111; background: #fff; }
    html[data-bs-theme="dark"] .card { color: #111; background: #fff; }
    html[data-bs-theme="dark"] .table { --bs-table-bg: #fff; --bs-table-color: #111; --bs-table-border-color: #ddd; }
}
.sidebar-footer-logo { width: 40px; height: 40px; object-fit: contain; vertical-align: middle; }
.sidebar-precollapsed .sidebar-product-version { font-size: 0; padding-inline: 0; text-align: center; }
@media screen {
    html[data-bs-theme="dark"] :is(h1,h2,h3,h4,h5,h6,.page-heading h1,.dashboard-header h1,.monitoring-header h1,.users-header h1) { color: #e5edf7; }
    html[data-bs-theme="dark"] :is(.card-header,.card-footer,.status-card) { color: #e5edf7; background: #152235; }
    html[data-bs-theme="dark"] .users-shell { color: #e5edf7; background: #0d1726; }
    html[data-bs-theme="dark"] :is(.form-label,.form-check-label) { color: #dce7f5; }
    html[data-bs-theme="dark"] .form-text { color: #a8b8cc; }
    html[data-bs-theme="dark"] .auth-section { background: #0d1726; }
}
@media screen {
    html[data-bs-theme="dark"] .users-filters label > span,
    html[data-bs-theme="dark"] :is(.users-pagination,.permission-item small) { color: #b6c6da; }
    html[data-bs-theme="dark"] .table thead th { color: #dce7f5; background-color: #1b293b; }
    html[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-bg-type: #1b293b; }
    html[data-bs-theme="dark"] .btn-outline-primary { --bs-btn-color: #99caff; --bs-btn-border-color: #679fd9; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #24558a; --bs-btn-hover-border-color: #679fd9; --bs-btn-active-color: #fff; --bs-btn-active-bg: #24558a; --bs-btn-active-border-color: #679fd9; }
    html[data-bs-theme="dark"] .btn-outline-danger { --bs-btn-color: #ffabb3; --bs-btn-border-color: #e88a96; --bs-btn-hover-bg: #a52838; --bs-btn-hover-color: #fff; }
    html[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-color: #c6d4e5; --bs-btn-border-color: #8399b4; --bs-btn-hover-bg: #425773; --bs-btn-hover-color: #fff; }
    html[data-bs-theme="dark"] .alert-info,
    html[data-bs-theme="dark"] .alert-primary { color: #b5daff; }
    html[data-bs-theme="dark"] .alert-success { color: #9eeac7; }
    html[data-bs-theme="dark"] .alert-warning { color: #f5d58a; }
    html[data-bs-theme="dark"] .alert-danger { color: #ffb8bd; }
}
