/* =========================================================
   DASHBOARD UI
   Единая визуальная система: светлая / тёмная тема
========================================================= */

:root {
    --dash-bg: #eef1f6;
    --dash-bg-accent: rgba(95, 124, 186, 0.16);

    --dash-panel: #ffffff;
    --dash-panel-muted: #f8f9fc;
    --dash-panel-hover: #f3f6fb;

    --dash-text: #263248;
    --dash-text-soft: #728097;
    --dash-text-muted: #99a3b3;

    --dash-border: #dfe5ee;
    --dash-border-soft: #edf0f5;

    --dash-primary: #5978b8;
    --dash-primary-hover: #4768a8;
    --dash-primary-soft: #eef3fd;

    --dash-success: #39815e;
    --dash-success-soft: #eef9f2;

    --dash-warning: #aa7615;
    --dash-warning-soft: #fff8e5;

    --dash-danger: #b55460;
    --dash-danger-soft: #fff1f3;

    --dash-info: #357b92;
    --dash-info-soft: #eef9fc;

    --dash-navbar: #263248;
    --dash-navbar-border: rgba(255, 255, 255, 0.1);

    --dash-shadow: 0 10px 32px rgba(38, 50, 72, 0.09);
    --dash-shadow-hover: 0 16px 40px rgba(38, 50, 72, 0.14);

    --dash-scroll-track: #eef1f5;
    --dash-scroll-thumb: #b7c0cf;
}

/* =========================================================
   БАЗА
========================================================= */

body.bg-light {
    min-height: 100vh;
    color: var(--dash-text) !important;
    background:
        radial-gradient(
            circle at 10% 0%,
            var(--dash-bg-accent),
            transparent 30%
        ),
        linear-gradient(135deg, #f7f8fb 0%, var(--dash-bg) 100%) !important;
}

body.bg-dark {
    --dash-bg: #101722;
    --dash-panel: #18212f;
    --dash-panel-muted: #1e2939;
    --dash-panel-hover: #243247;

    --dash-text: #edf2fb;
    --dash-text-soft: #b4c0d2;
    --dash-text-muted: #8694a8;

    --dash-border: rgba(174, 193, 220, 0.16);
    --dash-border-soft: rgba(174, 193, 220, 0.1);

    --dash-primary: #82a2e5;
    --dash-primary-hover: #a0baf0;
    --dash-primary-soft: rgba(112, 148, 217, 0.16);

    --dash-success: #6fcd9e;
    --dash-success-soft: rgba(82, 181, 127, 0.15);

    --dash-warning: #f0c967;
    --dash-warning-soft: rgba(236, 188, 76, 0.14);

    --dash-danger: #ee8f9a;
    --dash-danger-soft: rgba(222, 100, 116, 0.16);

    --dash-info: #72cde5;
    --dash-info-soft: rgba(64, 186, 218, 0.15);

    --dash-navbar: #111925;
    --dash-navbar-border: rgba(255, 255, 255, 0.09);

    --dash-shadow: 0 12px 35px rgba(0, 0, 0, 0.26);
    --dash-shadow-hover: 0 18px 44px rgba(0, 0, 0, 0.36);

    --dash-scroll-track: #17202c;
    --dash-scroll-thumb: #4e5d72;

    color: var(--dash-text) !important;
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(78, 111, 172, 0.18),
            transparent 30%
        ),
        linear-gradient(135deg, #0d131c 0%, var(--dash-bg) 100%) !important;
}

body {
    overflow-x: hidden;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    text-decoration: none;
}

/* =========================================================
   ВЕРХНЯЯ ПАНЕЛЬ
========================================================= */

.dashboard-navbar {
    position: sticky;
    z-index: 1030;
    top: 0;
    min-height: 70px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dash-navbar-border);
    background: var(--dash-navbar);
    box-shadow: 0 4px 20px rgba(18, 26, 40, 0.14);
}

.dashboard-navbar-container {
    gap: 14px;
    padding-right: 20px;
    padding-left: 20px;
}

.dashboard-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    margin: 0;
    padding: 0 8px 0 5px;
    color: #fff;
}

.dashboard-brand:hover {
    color: #fff;
}

.dashboard-brand > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.dashboard-brand strong {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.dashboard-brand small {
    margin-top: 3px;
    color: rgba(232, 238, 250, 0.63);
    font-size: 10px;
    font-weight: 500;
}

.dashboard-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #fff;
    background: rgba(114, 147, 211, 0.24);
    font-size: 18px;
}

.branch-metrics {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1 1 360px;
    max-width: 580px;
    min-width: 0;
    height: 46px;
    padding: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(6, 12, 23, 0.22);
    scrollbar-width: thin;
}

.branch-metrics:empty {
    display: none;
}

.branch-metrics::-webkit-scrollbar {
    height: 4px;
}

.branch-metrics::-webkit-scrollbar-track {
    background: transparent;
}

.branch-metrics::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.28);
}

.branch-metrics .branch-metric {
    display: flex;
    height: 36px;
    min-width: 82px;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    padding: 4px 7px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 7px;
    color: #dce6f6 !important;
    background: rgba(255, 255, 255, 0.045);
    line-height: 1;
}

.branch-metric-label {
    display: block;
    overflow: hidden;
    color: rgba(224, 232, 245, 0.65);
    font-size: 9px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.branch-metric-value-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.branch-metric-value-row strong {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.metric-trend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    font-size: 9px;
}

.metric-trend-up {
    color: #77d6a1;
    background: rgba(73, 180, 116, 0.18);
}

.metric-trend-down {
    color: #ef9aa4;
    background: rgba(216, 89, 105, 0.2);
}

.metric-trend-neutral {
    color: #aeb9ca;
    background: rgba(174, 185, 202, 0.13);
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.dashboard-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 1px solid rgba(223, 232, 249, 0.18);
    border-radius: 8px;
    color: rgba(245, 248, 255, 0.86);
    background: rgba(255, 255, 255, 0.04);
    font-size: 15px;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.dashboard-action-btn:hover,
.dashboard-action-btn:focus {
    border-color: rgba(166, 193, 246, 0.58);
    color: #fff;
    background: rgba(104, 141, 211, 0.24);
    transform: translateY(-1px);
}

.dashboard-action-btn .badge {
    min-width: auto;
    padding: 0.28em 0.45em;
    border-radius: 6px;
    font-size: 8px;
    line-height: 1;
}

.dashboard-logout-btn {
    border-color: rgba(227, 125, 137, 0.35);
    color: #f1a7b0;
}

.dashboard-logout-btn:hover {
    border-color: rgba(242, 145, 156, 0.7);
    color: #fff;
    background: rgba(192, 68, 85, 0.35);
}

.dashboard-action-divider {
    width: 1px;
    height: 22px;
    margin: 0 2px;
    background: rgba(255, 255, 255, 0.13);
}

.dashboard-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
}

.dashboard-toggler:focus {
    box-shadow: 0 0 0 3px rgba(135, 169, 232, 0.26);
}

.mobile-date {
    display: none;
}

/* =========================================================
   ОСНОВНОЙ КОНТЕНТ
========================================================= */

.dashboard-main {
    max-width: 1760px;
    padding: 24px;
}

.dashboard-section {
    margin-bottom: 24px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--dash-text-soft);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.section-heading h1 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--dash-text);
    font-size: 18px;
    font-weight: 700;
}

.section-heading h1 i {
    color: var(--dash-primary);
    font-size: 17px;
}

/* =========================================================
   КАРТОЧКИ
========================================================= */

.dashboard-card,
.settings-card {
    overflow: hidden;
    border: 1px solid var(--dash-border) !important;
    border-radius: 11px;
    color: var(--dash-text);
    background: var(--dash-panel) !important;
    box-shadow: var(--dash-shadow);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.dashboard-card:hover {
    border-color: rgba(89, 120, 184, 0.34) !important;
    box-shadow: var(--dash-shadow-hover);
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 55px;
    padding: 10px 13px;
    border-bottom: 1px solid var(--dash-border-soft) !important;
    color: var(--dash-text) !important;
    background: var(--dash-panel-muted) !important;
}

.card-header-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: var(--dash-text);
    font-size: 13px;
    font-weight: 700;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 7px;
    font-size: 14px;
}

.card-icon-primary {
    color: var(--dash-primary);
    background: var(--dash-primary-soft);
}

.card-icon-success {
    color: var(--dash-success);
    background: var(--dash-success-soft);
}

.card-icon-warning {
    color: var(--dash-warning);
    background: var(--dash-warning-soft);
}

.card-icon-danger {
    color: var(--dash-danger);
    background: var(--dash-danger-soft);
}

.card-icon-info {
    color: var(--dash-info);
    background: var(--dash-info-soft);
}

.dashboard-list-body {
    min-height: 105px;
    max-height: 380px;
    padding: 10px !important;
    overflow-y: auto;
}

.dashboard-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 70px;
    color: var(--dash-text-muted);
    font-size: 12px;
    text-align: center;
}

.dashboard-empty i {
    color: var(--dash-success);
    font-size: 16px;
}

.dashboard-empty-large {
    min-height: 245px;
    flex-direction: column;
}

.dashboard-empty-large i {
    color: var(--dash-primary);
    font-size: 27px;
}

.card-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--dash-border);
    border-radius: 7px;
    color: var(--dash-text-soft);
    background: var(--dash-panel);
}

.card-refresh-btn:hover {
    border-color: var(--dash-primary);
    color: var(--dash-primary);
    background: var(--dash-primary-soft);
}

/* =========================================================
   СТАТУС-КАРТОЧКИ СОТРУДНИКОВ
========================================================= */

.status-card {
    overflow: hidden;
    border: 1px solid var(--dash-border) !important;
    border-left-width: 4px !important;
    border-radius: 10px !important;
    background: var(--dash-panel) !important;
    box-shadow: var(--dash-shadow);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.status-card:hover {
    box-shadow: var(--dash-shadow-hover);
    transform: translateY(-2px);
}

.status-card.status-v_zale {
    border-left-color: var(--dash-success) !important;
}

.status-card.status-vixod {
    border-left-color: var(--dash-warning) !important;
}

.status-card.status-obed {
    border-left-color: var(--dash-danger) !important;
}

.status-card.status-unload {
    border-left-color: #e5ad19 !important;
}

.status-card .card-body {
    color: var(--dash-text) !important;
    background: transparent !important;
}

.status-card h6 {
    color: var(--dash-text) !important;
    font-size: 13px;
    font-weight: 700;
}

.status-card .text-light {
    color: var(--dash-text-soft) !important;
}

.status-card .btn-outline-danger {
    border-color: rgba(181, 84, 96, 0.34);
    color: var(--dash-danger);
}

.status-card .btn-outline-danger:hover {
    border-color: var(--dash-danger);
    color: #fff;
    background: var(--dash-danger);
}

.status-card .badge {
    border-radius: 6px;
}

/* =========================================================
   СПИСКИ СОТРУДНИКОВ
========================================================= */

#vixodEmployees .status-card,
#obedEmployees .status-card {
    margin-bottom: 8px !important;
    box-shadow: none;
}

#vixodEmployees .status-card:last-child,
#obedEmployees .status-card:last-child {
    margin-bottom: 0 !important;
}

#vixodEmployees .status-card .text-white,
#obedEmployees .status-card .text-white {
    color: var(--dash-text) !important;
}

#offShiftList .list-group-item {
    margin-bottom: 6px;
    border: 1px solid var(--dash-border-soft) !important;
    border-left: 3px solid var(--dash-text-muted) !important;
    border-radius: 7px;
    color: var(--dash-text) !important;
    background: var(--dash-panel) !important;
    transition: 0.18s ease;
}

#offShiftList .list-group-item:hover {
    border-left-color: var(--dash-primary) !important;
    background: var(--dash-panel-hover) !important;
    transform: translateX(2px);
}

/* =========================================================
   TIMELINE И ГРАФИКИ
========================================================= */

.timeline-dashboard-container {
    min-height: 255px;
    border: 1px solid var(--dash-border-soft);
    border-radius: 8px;
    background: var(--dash-panel-muted);
}

.timeline-dashboard-container > .card {
    min-height: 250px !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: var(--dash-text) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.timeline-dashboard-container .card-title,
.timeline-dashboard-container h6 {
    color: var(--dash-text);
}

.chart-container {
    position: relative;
    height: 280px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--dash-border-soft);
    border-radius: 9px;
    background: var(--dash-panel-muted);
}

/* =========================================================
   ТЕПЛОВЫЕ КАРТЫ
========================================================= */

.store-heatmap {
    display: flex;
    gap: 5px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid var(--dash-border-soft);
    border-radius: 9px;
    background: var(--dash-panel-muted);
}

.heatmap-hour {
    display: flex;
    position: relative;
    height: 49px;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.58);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.heatmap-hour:hover {
    z-index: 3;
    box-shadow: 0 7px 16px rgba(26, 35, 52, 0.22);
    transform: translateY(-3px);
}

.heatmap-hour.current-hour {
    outline: 3px solid rgba(89, 120, 184, 0.35);
    outline-offset: 2px;
    animation: dash-pulse 1.4s ease-in-out infinite;
}

.heatmap-hour .percent {
    margin-top: 1px;
    font-size: 9px;
    font-weight: 700;
    opacity: 0.92;
}

.github-heatmap {
    display: flex;
    gap: 2px;
    margin-top: 7px;
    padding: 3px 0;
}

.heat-cell {
    width: 5px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.heat-cell:hover {
    position: relative;
    z-index: 2;
    transform: scale(1.55);
}

/* =========================================================
   ТАБЛИЦА ОТЧЁТА
========================================================= */

#weeklyReport .table {
    width: 100%;
    margin: 0;
    color: var(--dash-text);
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

#weeklyReport .table thead th {
    position: sticky;
    z-index: 3;
    top: 0;
    padding: 10px 8px !important;
    border-bottom: 1px solid var(--dash-border) !important;
    color: var(--dash-text-soft) !important;
    background: var(--dash-panel-muted) !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: normal;
}

#weeklyReport .table th:nth-child(1) {
    width: 45% !important;
}

#weeklyReport .table th:nth-child(2),
#weeklyReport .table th:nth-child(3) {
    width: 27.5% !important;
}

#weeklyReport .table td {
    padding: 11px 8px !important;
    border-color: var(--dash-border-soft) !important;
    color: var(--dash-text) !important;
    vertical-align: middle;
    font-size: 12px;
    white-space: normal;
}

#weeklyReport .table tbody tr {
    background: transparent !important;
    transition: background-color 0.16s ease;
}

#weeklyReport .table tbody tr:hover {
    background: var(--dash-panel-hover) !important;
}

/* =========================================================
   МОДАЛЬНЫЕ ОКНА
========================================================= */

.app-modal-content,
.pin-modal-content {
    overflow: hidden;
    border: 1px solid var(--dash-border) !important;
    border-radius: 13px;
    color: var(--dash-text);
    background: var(--dash-panel);
    box-shadow: 0 22px 65px rgba(16, 28, 49, 0.24);
}

.app-modal-header,
.pin-modal-header {
    padding: 16px 19px;
    border-bottom: 1px solid var(--dash-border) !important;
    background: var(--dash-panel);
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 9px;
    color: #fff;
    background: var(--dash-primary);
    font-size: 16px;
}

.modal-title-icon-primary {
    color: var(--dash-primary);
    background: var(--dash-primary-soft);
}

.modal-title-wrap .modal-title {
    margin: 0;
    color: var(--dash-text);
    font-size: 16px;
    font-weight: 700;
}

.modal-title-wrap small {
    display: block;
    margin-top: 2px;
    color: var(--dash-text-soft);
    font-size: 11px;
}

body.bg-dark .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
}

.app-modal-footer {
    gap: 8px;
    padding: 13px 19px;
    border-top: 1px solid var(--dash-border) !important;
    background: var(--dash-panel-muted);
}

.pin-modal-content {
    color: #edf3ff;
    background:
        radial-gradient(
            circle at top right,
            rgba(119, 155, 232, 0.28),
            transparent 42%
        ),
        #1b2638;
    border-color: rgba(198, 218, 255, 0.13) !important;
}

.pin-modal-header {
    border-bottom-color: rgba(220, 231, 250, 0.12) !important;
    background: transparent;
}

.pin-modal-content .modal-title {
    color: #fff;
}

.pin-modal-content small {
    color: rgba(227, 236, 252, 0.65);
}

.pin-modal-content .modal-title-icon {
    background: rgba(110, 148, 222, 0.24);
}

#pinInput {
    min-height: 48px;
    border: 1px solid rgba(181, 203, 245, 0.36);
    border-radius: 9px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 20px;
    letter-spacing: 8px;
}

#pinInput::placeholder {
    color: rgba(229, 237, 252, 0.55);
    letter-spacing: 2px;
}

#pinInput:focus {
    border-color: rgba(143, 177, 243, 0.86);
    box-shadow: 0 0 0 3px rgba(104, 145, 227, 0.2);
}

#pinInput.is-invalid {
    border-color: #ed7b89 !important;
    animation: dash-shake 0.4s ease-in-out;
}

/* =========================================================
   МОДАЛКА НАСТРОЕК
========================================================= */

.settings-card {
    box-shadow: none;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 12px 14px;
    color: #fff;
}

.settings-card-header-primary {
    background: linear-gradient(135deg, #5877b6, #4969a8);
}

.settings-card-header-info {
    background: linear-gradient(135deg, #3e90aa, #357b92);
}

.settings-card-header h6 {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.settings-card-header small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 10px;
}

.settings-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 15px;
}

#activeRestrictions {
    margin: 0;
    border: 1px solid rgba(52, 126, 181, 0.2);
    border-radius: 8px;
    color: var(--dash-text);
    background: var(--dash-info-soft);
    box-shadow: none;
}

/* =========================================================
   CHANGELOG
========================================================= */

.changelog-modal-body {
    max-height: 70vh;
    padding: 18px 20px !important;
    overflow-y: auto;
}

.timeline {
    position: relative;
    padding-left: 31px;
}

.timeline::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 11px;
    width: 2px;
    content: "";
    background: var(--dash-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 14px;
    animation: dash-fade-in-up 0.32s ease both;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    display: inline-flex;
    position: absolute;
    z-index: 1;
    top: 13px;
    left: -31px;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    overflow: hidden;
    border: 3px solid var(--dash-panel);
    border-radius: 50%;
    color: transparent;
    background: var(--dash-primary);
    font-size: 0;
    box-shadow: 0 0 0 1px var(--dash-primary);
}

.timeline-content {
    padding: 13px 14px;
    border: 1px solid var(--dash-border);
    border-radius: 9px;
    color: var(--dash-text);
    background: var(--dash-panel-muted);
    box-shadow: none;
}

.timeline-content strong {
    display: block;
    color: var(--dash-text);
    font-size: 13px;
}

.timeline-content ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--dash-text-soft);
    font-size: 12px;
}

.timeline-content li {
    margin-bottom: 4px;
}

.timeline-content li:last-child {
    margin-bottom: 0;
}

/* =========================================================
   TOOLTIP
========================================================= */

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    position: absolute;
    z-index: 1200;
    bottom: calc(100% + 8px);
    left: 50%;
    padding: 5px 8px;
    border-radius: 6px;
    color: #fff;
    background: #202a3c;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    content: attr(data-tooltip);
    font-size: 10px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(3px);
    transition: 0.15s ease;
    visibility: hidden;
    white-space: nowrap;
}

[data-tooltip]::before {
    position: absolute;
    z-index: 1200;
    bottom: calc(100% + 2px);
    left: 50%;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #202a3c;
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(3px);
    transition: 0.15s ease;
    visibility: hidden;
}


[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

/* =========================================================
   КНОПКА ТЕМЫ
========================================================= */

.theme-toggle {
    display: inline-flex;
    position: fixed;
    z-index: 1040;
    right: 19px;
    bottom: 19px;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid var(--dash-border);
    border-radius: 50%;
    color: var(--dash-primary);
    background: var(--dash-panel);
    box-shadow: var(--dash-shadow);
    font-size: 16px;
    transition: 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--dash-primary);
    color: #fff;
    background: var(--dash-primary);
    box-shadow: var(--dash-shadow-hover);
    transform: translateY(-2px) rotate(14deg);
}

/* =========================================================
   ФОРМЫ И УТИЛИТЫ
========================================================= */

body.bg-light .form-control,
body.bg-light .form-select {
    border-color: var(--dash-border);
    color: var(--dash-text);
    background: #fff;
}

body.bg-dark .form-control,
body.bg-dark .form-select {
    border-color: var(--dash-border);
    color: var(--dash-text);
    background: var(--dash-panel-muted);
}

body.bg-dark .form-control::placeholder {
    color: var(--dash-text-muted);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--dash-primary);
    box-shadow: 0 0 0 3px rgba(89, 120, 184, 0.14);
}

.badge {
    border-radius: 7px;
    font-weight: 700 !important;
}

.badge-sm {
    font-size: 0.7em !important;
}

/* =========================================================
   АНИМАЦИИ
========================================================= */

@keyframes dash-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(89, 120, 184, 0.05);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(89, 120, 184, 0.08);
    }
}

@keyframes dash-shake {
    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes dash-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dash-scroll-track);
}

::-webkit-scrollbar-thumb {
    border-radius: 12px;
    background: var(--dash-scroll-thumb);
}

/* =========================================================
   ДАТА И ВРЕМЯ ОБНОВЛЕНИЯ В NAVBAR
========================================================= */

.dashboard-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dashboard-date-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border: 1px solid rgba(181, 206, 250, 0.2);
    border-radius: 7px;
    color: #cbdcff;
    background: rgba(128, 160, 222, 0.13);
    font-size: 13px;
}

.dashboard-date-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.15;
}

.dashboard-date strong {
    overflow: hidden;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-date small {
    display: block;
    margin-top: 3px;
    color: rgba(231, 239, 255, 0.76) !important;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.dashboard-date small::before {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 5px;
    border-radius: 50%;
    background: #70d69d;
    box-shadow: 0 0 0 3px rgba(112, 214, 157, 0.11);
    content: "";
    vertical-align: middle;
}
/* =========================================================
   АДАПТИВ
========================================================= */

@media (max-width: 1399.98px) {
    .dashboard-navbar-container {
        gap: 10px;
    }

    .dashboard-date {
        min-width: 125px;
    }

    .branch-metrics {
        max-width: 390px;
    }

    .dashboard-action-btn {
        width: 33px;
        height: 33px;
    }
}

@media (max-width: 1199.98px) {
    .dashboard-navbar .navbar-collapse {
        padding-top: 12px;
    }

    .desktop-date,
    .branch-metrics {
        display: none;
    }

    .mobile-date {
        display: flex;
        margin: 0 0 12px;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04);
    }

    .dashboard-actions {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .dashboard-main {
        padding: 16px 12px 76px;
    }

    .dashboard-section {
        margin-bottom: 16px;
    }

    .section-heading h1 {
        font-size: 16px;
    }

    .store-heatmap {
        gap: 3px;
        padding: 7px;
        overflow-x: auto;
    }

    .heatmap-hour {
        min-width: 28px;
        height: 42px;
        font-size: 10px;
    }

    .heatmap-hour .percent {
        font-size: 8px;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-date {
        left: -25px;
        width: 18px;
        height: 18px;
    }

    .timeline-content {
        padding: 11px;
    }

    .changelog-modal-body {
        padding: 14px !important;
    }
}

@media (max-width: 575.98px) {
    .dashboard-navbar {
        min-height: 62px;
    }
        .dashboard-navbar-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .dashboard-brand strong {
        font-size: 13px;
    }

    .dashboard-brand small {
        display: none;
    }

    .dashboard-brand-icon {
        width: 34px;
        height: 34px;
    }

    .dashboard-actions {
        gap: 6px;
    }

    .dashboard-action-divider {
        display: none;
    }

    .dashboard-action-btn {
        width: calc((100% - 24px) / 5);
        min-width: 42px;
        flex: 1 0 calc((100% - 24px) / 5);
    }

    .theme-toggle {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
    }

    #weeklyReport .table th,
    #weeklyReport .table td {
        padding: 8px 5px !important;
        font-size: 10px;
    }
}
/* =========================================================
   FOOTER
========================================================= */

.dashboard-footer {
    margin-top: 24px;
    border-top: 1px solid var(--dash-border);
    background: var(--dash-panel-muted);
}

.dashboard-footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    max-width: 1760px;
    min-height: 72px;
    padding: 14px 24px;
}

.dashboard-footer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dashboard-footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    color: var(--dash-primary);
    background: var(--dash-primary-soft);
    font-size: 14px;
}

.dashboard-footer-brand strong {
    display: block;
    color: var(--dash-text);
    font-size: 12px;
    font-weight: 700;
}

.dashboard-footer-brand small {
    display: block;
    margin-top: 2px;
    color: var(--dash-text-soft);
    font-size: 10px;
}

.dashboard-footer-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dash-text-soft);
    font-size: 11px;
}

.dashboard-footer-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dashboard-footer-meta strong {
    color: var(--dash-text);
    font-weight: 700;
}

.dashboard-footer-separator {
    color: var(--dash-text-muted);
}

@media (max-width: 575.98px) {
    .dashboard-footer-container {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
        padding: 14px 12px 70px;
    }

    .dashboard-footer-meta {
        flex-wrap: wrap;
    }
}
/* =========================================================
   TIMELINE DASHBOARD
========================================================= */

.timeline-dashboard-container {
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.timeline-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 9px 10px;
    border: 1px solid var(--dash-border-soft);
    border-radius: 8px;
    background: var(--dash-panel-muted);
}

.timeline-dashboard-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-dashboard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border-radius: 7px;
    color: var(--dash-primary);
    background: var(--dash-primary-soft);
    font-size: 13px;
}

.timeline-dashboard-title strong {
    display: block;
    color: var(--dash-text);
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.timeline-dashboard-title small {
    display: block;
    margin-top: 2px;
    color: var(--dash-text-soft);
    font-size: 10px;
}

.timeline-total-events {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border-radius: 6px;
    color: var(--dash-text-soft);
    background: var(--dash-panel);
    font-size: 10px;
    font-weight: 700;
}

.timeline-total-events i {
    color: var(--dash-primary);
}

.timeline-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--dash-border-soft);
    border-radius: 9px;
    background: var(--dash-panel-muted);
}

.timeline-svg {
    display: block;
    width: 100%;
    min-width: 850px;
    height: auto;
}

.timeline-background {
    fill: var(--dash-panel-muted);
}

.timeline-title-svg {
    fill: var(--dash-text);
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.timeline-subtitle-svg {
    fill: var(--dash-text-soft);
    font-family: Inter, system-ui, sans-serif;
    font-size: 10px;
    font-weight: 500;
}

.timeline-axis-hour line {
    stroke: var(--dash-border);
    stroke-width: 1;
}

.timeline-hour-label {
    fill: var(--dash-text-soft);
    font-family: Inter, system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
}

.timeline-row-even {
    fill: rgba(127, 146, 177, 0.035);
}

.timeline-row-odd {
    fill: transparent;
}

.timeline-employee-name {
    fill: var(--dash-text);
    font-family: Inter, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.timeline-event-bar {
    filter: url(#timelineShadow);
    transition: opacity 0.16s ease;
}

.timeline-event-bar:hover {
    opacity: 0.75;
}

.timeline-bar-vixod {
    fill: #d48c20;
}

.timeline-bar-obed {
    fill: #c69b1a;
}

.timeline-bar-unload {
    fill: #7d6ac4;
}

.timeline-now-line {
    stroke: var(--dash-danger);
    stroke-width: 2;
    stroke-dasharray: 4 3;
}

.timeline-now-point {
    fill: var(--dash-danger);
    stroke: var(--dash-panel);
    stroke-width: 2;
}

.timeline-legend {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.timeline-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}

.timeline-legend-item strong {
    margin-left: 2px;
    font-weight: 800;
}

.timeline-legend-vixod {
    color: #9f6816;
    background: #fff5df;
}

.timeline-legend-obed {
    color: #8c6e14;
    background: #fff9e6;
}

.timeline-legend-unload {
    color: #6453a9;
    background: #f2efff;
}

.timeline-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    flex-direction: column;
    gap: 7px;
    padding: 20px;
    color: var(--dash-text-muted);
    text-align: center;
}

.timeline-empty i {
    color: var(--dash-primary);
    font-size: 28px;
}

.timeline-empty strong {
    color: var(--dash-text);
    font-size: 13px;
}

.timeline-empty span {
    font-size: 11px;
}

.timeline-error i {
    color: var(--dash-danger);
}

body.bg-dark .timeline-legend-vixod {
    color: #edbc66;
    background: rgba(212, 140, 32, 0.14);
}

body.bg-dark .timeline-legend-obed {
    color: #e4ca78;
    background: rgba(198, 155, 26, 0.14);
}

body.bg-dark .timeline-legend-unload {
    color: #b7a9ef;
    background: rgba(125, 106, 196, 0.17);
}

@media (max-width: 575.98px) {
    .timeline-dashboard-header {
        align-items: flex-start;
    }

    .timeline-svg {
        min-width: 790px;
    }

    .timeline-legend-item {
        flex: 1 1 100%;
    }
}

/* =========================================================
   SETTINGS MODAL
========================================================= */

.settings-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 165px;
    flex-direction: column;
    gap: 7px;
    padding: 20px;
    border: 1px dashed var(--dash-border);
    border-radius: 8px;
    color: var(--dash-text-muted);
    text-align: center;
}

.settings-empty-state .spinner-border {
    color: var(--dash-primary);
}

.settings-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 10px;
    color: var(--dash-text-soft);
    background: var(--dash-panel-muted);
    font-size: 18px;
}

.settings-empty-state strong {
    color: var(--dash-text);
    font-size: 12px;
    font-weight: 700;
}

.settings-empty-state small {
    max-width: 250px;
    color: var(--dash-text-soft);
    font-size: 10px;
    line-height: 1.35;
}

.settings-rule-card {
    margin-bottom: 10px;
    padding: 11px;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    background: var(--dash-panel-muted);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.settings-rule-card:last-child {
    margin-bottom: 0;
}

.settings-rule-card:hover {
    border-color: rgba(89, 120, 184, 0.35);
    box-shadow: 0 5px 14px rgba(35, 51, 76, 0.07);
}

.settings-rule-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9px;
    margin-bottom: 11px;
}

.settings-rule-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.settings-rule-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 7px;
    font-size: 13px;
}

.settings-rule-icon-primary {
    color: var(--dash-primary);
    background: var(--dash-primary-soft);
}

.settings-rule-icon-info {
    color: var(--dash-info);
    background: var(--dash-info-soft);
}

.settings-rule-title > div {
    min-width: 0;
}

.settings-rule-title strong {
    display: block;
    overflow: hidden;
    color: var(--dash-text);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-rule-title small {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--dash-text-soft);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-rule-limit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding: 5px 7px;
    border-radius: 6px;
    color: var(--dash-text-soft);
    background: var(--dash-panel);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.settings-rule-limit i {
    color: var(--dash-danger);
}

.settings-rule-fields {
    display: grid;
    gap: 8px;
}

.settings-time-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-shift-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.settings-field > span {
    overflow: hidden;
    color: var(--dash-text-soft);
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-input {
    min-height: 33px;
    font-size: 11px;
}

.settings-rule-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-remove-rule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-color: rgba(181, 84, 96, 0.34);
    color: var(--dash-danger);
    background: transparent;
    font-size: 10px;
    font-weight: 700;
}

.btn-remove-rule:hover,
.btn-remove-rule:focus {
    border-color: var(--dash-danger);
    color: #fff;
    background: var(--dash-danger);
}

#activeRestrictions {
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.active-rule {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid var(--dash-border);
    border-radius: 8px;
    background: var(--dash-panel-muted);
}

.active-rule-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 7px;
    font-size: 13px;
}

.active-rule-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.active-rule-content strong {
    color: var(--dash-text);
    font-size: 11px;
    font-weight: 700;
}

.active-rule-content small {
    display: block;
    margin-top: 2px;
    color: var(--dash-text-soft);
    font-size: 9px;
}

.active-rule-state {
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 800;
}

.active-rule-warning {
    border-color: rgba(170, 118, 21, 0.3);
}

.active-rule-warning .active-rule-icon {
    color: var(--dash-warning);
    background: var(--dash-warning-soft);
}

.active-rule-warning .active-rule-state {
    color: var(--dash-warning);
}

.active-rule-danger {
    border-color: rgba(181, 84, 96, 0.35);
}

.active-rule-danger .active-rule-icon {
    color: var(--dash-danger);
    background: var(--dash-danger-soft);
}

.active-rule-danger .active-rule-state {
    color: var(--dash-danger);
}

.active-rule-info {
    border-color: rgba(53, 123, 146, 0.3);
}

.active-rule-info .active-rule-icon {
    color: var(--dash-info);
    background: var(--dash-info-soft);
}

.active-rule-info .active-rule-state {
    color: var(--dash-info);
}

@media (max-width: 575.98px) {
    .settings-time-fields,
    .settings-shift-fields {
        grid-template-columns: 1fr;
    }

    .settings-rule-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-rule-limit {
        align-self: flex-start;
    }

    .settings-rule-actions .btn {
        width: 100%;
    }
}
/* =========================================================
   SETTINGS: КНОПКИ ДОБАВЛЕНИЯ
========================================================= */

.settings-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 38px;
    margin-top: 12px;
    padding: 7px 10px;
    border: 1px dashed var(--dash-border);
    border-radius: 8px;
    color: var(--dash-text-soft);
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.settings-add-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    font-size: 10px;
    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.settings-add-btn-primary {
    border-color: rgba(89, 120, 184, 0.42);
    color: var(--dash-primary);
    background: var(--dash-primary-soft);
}

.settings-add-btn-primary .settings-add-btn-icon {
    color: #fff;
    background: var(--dash-primary);
}

.settings-add-btn-primary:hover,
.settings-add-btn-primary:focus {
    border-color: var(--dash-primary);
    color: #fff;
    background: var(--dash-primary);
    box-shadow: 0 6px 15px rgba(89, 120, 184, 0.2);
    transform: translateY(-1px);
}

.settings-add-btn-primary:hover .settings-add-btn-icon,
.settings-add-btn-primary:focus .settings-add-btn-icon {
    color: var(--dash-primary);
    background: #fff;
}

.settings-add-btn-info {
    border-color: rgba(53, 123, 146, 0.42);
    color: var(--dash-info);
    background: var(--dash-info-soft);
}

.settings-add-btn-info .settings-add-btn-icon {
    color: #fff;
    background: var(--dash-info);
}

.settings-add-btn-info:hover,
.settings-add-btn-info:focus {
    border-color: var(--dash-info);
    color: #fff;
    background: var(--dash-info);
    box-shadow: 0 6px 15px rgba(53, 123, 146, 0.2);
    transform: translateY(-1px);
}

.settings-add-btn-info:hover .settings-add-btn-icon,
.settings-add-btn-info:focus .settings-add-btn-icon {
    color: var(--dash-info);
    background: #fff;
}
/* =========================================================
   SETTINGS: FOOTER ACTIONS
========================================================= */

.app-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.settings-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 37px;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.settings-footer-cancel {
    border: 1px solid var(--dash-border);
    color: var(--dash-text-soft);
    background: var(--dash-panel);
}

.settings-footer-cancel:hover,
.settings-footer-cancel:focus {
    border-color: var(--dash-text-soft);
    color: var(--dash-text);
    background: var(--dash-panel-muted);
}

.settings-footer-save {
    border: 1px solid var(--dash-primary);
    color: #fff;
    background: var(--dash-primary);
    box-shadow: 0 4px 10px rgba(89, 120, 184, 0.18);
}

.settings-footer-save:hover,
.settings-footer-save:focus {
    border-color: var(--dash-primary-hover);
    color: #fff;
    background: var(--dash-primary-hover);
    box-shadow: 0 6px 16px rgba(89, 120, 184, 0.26);
    transform: translateY(-1px);
}

.settings-footer-save:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

@media (max-width: 575.98px) {
    .app-modal-footer {
        flex-direction: column-reverse;
    }

    .settings-footer-btn {
        width: 100%;
    }
}
body.bg-dark #weeklyReport .table > :not(caption) > * > * {
    color: var(--dash-text) !important;
    background-color: var(--dash-panel) !important;
    border-color: var(--dash-border-soft) !important;
}

body.bg-dark #weeklyReport .table thead th {
    color: var(--dash-text-soft) !important;
    background-color: var(--dash-panel-muted) !important;
}

body.bg-dark #weeklyReport .table tbody tr:hover > * {
    background-color: var(--dash-panel-hover) !important;
}