
#tab-hours table,
#tab-hours thead tr,
#tab-hours tbody tr,
#tab-hours td,
#tab-hours th {
    all: unset;
    display: revert;
}



















/* ===========================
   DASHBOARD WRAPPER
=========================== */

#tab-dashboard {
    padding: 20px;
}

/* ===========================
   HEADER
=========================== */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.dashboard-hello {
    font-size: 18px;
    font-weight: 600;
}

.dashboard-meta {
    font-size: 13px;
    opacity: 0.8;
}

/* ===========================
   GRID — DESKTOP (ОРИГІНАЛ)
=========================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 16px;
}

/* ===========================
   MOBILE LAYOUT (ЯК НА СКРІНІ 2)
=========================== */

@media (max-width: 900px) {

    /* Верхні картки — 2 колонки */
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Секції — теж 2 колонки */
    .dashboard-sections {
        grid-template-columns: 1fr 1fr;
    }

    /* Expiring Tickets — на всю ширину */
    .dash-card.fullwidth {
        grid-column: 1 / -1 !important;
        margin-bottom: 16px;
    }
}

/* ===========================
   GLASS CARDS (СТАТИЧНІ)
=========================== */

.glass {
    background: rgba(15, 23, 42, 0.65);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 16px 18px;
}

/* ===========================
   CARD CONTENT
=========================== */

.dash-card-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-bottom: 6px;
}

.dash-card-value {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.dash-card-sub {
    font-size: 13px;
    opacity: 0.85;
}

.dash-card-extra {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

/* ===========================
   ACCENTS
=========================== */

.accent-blue   { border-left: 3px solid #3b82f6; }
.accent-green  { border-left: 3px solid #22c55e; }
.accent-purple { border-left: 3px solid #a855f7; }
.accent-orange { border-left: 3px solid #f97316; }

.dash-card.fullwidth {
    border-left-width: 3px;
    border-left-style: solid;
    padding-left: 18px;
}

.dash-card.fullwidth.accent-red    { border-left-color: #ff4d4d; }
.dash-card.fullwidth.accent-purple { border-left-color: #b36bff; }
.dash-card.fullwidth.accent-blue   { border-left-color: #4da6ff; }
.dash-card.fullwidth.accent-orange { border-left-color: #ff9933; }
.dash-card.fullwidth.accent-green  { border-left-color: #33cc66; }

/* ===========================
   LISTS
=========================== */

.dash-ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.dash-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 13px;
    color: #60a5fa;
    cursor: pointer;
}

.dash-link:hover {
    text-decoration: underline;
}

/* ============================================
   LIGHT THEME FIX FOR DASHBOARD
   ============================================ */

body.light .glass,
body[data-theme="light"] .glass {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.1);
    color: #111;
}

body.light .dash-card,
body[data-theme="light"] .dash-card {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.1);
    color: #222;
}

body.light .dash-card-title,
body[data-theme="light"] .dash-card-title {
    color: #000;
}

body.light .dash-ticket-row,
body[data-theme="light"] .dash-ticket-row {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Accent borders */
body.light .accent-blue,
body[data-theme="light"] .accent-blue { border-left-color: #3b82f6; }

body.light .accent-green,
body[data-theme="light"] .accent-green { border-left-color: #22c55e; }

body.light .accent-purple,
body[data-theme="light"] .accent-purple { border-left-color: #a855f7; }

body.light .accent-orange,
body[data-theme="light"] .accent-orange { border-left-color: #f97316; }

body.light .accent-red,
body[data-theme="light"] .accent-red { border-left-color: #ff4d4d; }

/* LIGHT THEME — FIX BLUE NAME IN EXPIRING TICKETS */
body.light .dash-link,
body[data-theme="light"] .dash-link {
    color: #111 !important;      /* чорний */
    text-decoration: none !important; /* без підкреслення */
}

body.light .dash-link:hover,
body[data-theme="light"] .dash-link:hover {
    color: #111 !important;      /* не міняється при hover */
    text-decoration: none !important;
}

/* ============================================
   EXPIRING TICKETS — PERFECT ALIGNMENT FIX
============================================ */

.dash-ticket-row {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Left side: dot + name */
.dash-ticket-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* PERFECT 3‑COLUMN LAYOUT FOR EXPIRING TICKETS */
.dash-ticket-row {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Left side: dot + name */
.dash-ticket-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Name styling */
.ticket-name {
    font-size: 14px;
    font-weight: 500;
}

/* Middle: ticket type */
.dash-ticket-type {
    text-align: center;
    font-size: 14px;
    opacity: 0.85;
}

/* Right: date */
.dash-ticket-date {
    text-align: right;
    font-size: 14px;
    opacity: 0.85;
}

.dash-reminder-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.dash-reminder-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    cursor: pointer;
    text-align: left;
}

body.light .dash-reminder-row,
body[data-theme="light"] .dash-reminder-row {
    background: rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.08);
}

/* Light theme fix */
body.light .ticket-name,
body[data-theme="light"] .ticket-name {
    color: #111 !important;
}

body.light .dash-ticket-type,
body[data-theme="light"] .dash-ticket-type {
    color: #333 !important;
}

body.light .dash-ticket-date,
body[data-theme="light"] .dash-ticket-date {
    color: #333 !important;
}

/* ============================================
   MODERN CRM DASHBOARD OVERRIDES
============================================ */

#tab-dashboard {
    padding: 0;
}

.dashboard-shell {
    display: grid;
    gap: 22px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: stretch;
}

.dashboard-user,
.dashboard-hero-panel,
.dashboard-stat-card,
.dashboard-feature-card,
.dashboard-detail-card {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.94));
    border: 1px solid rgba(190, 205, 230, 0.7);
    box-shadow: 0 24px 60px rgba(28, 57, 102, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dashboard-user {
    gap: 18px;
    align-items: flex-start;
    padding: 24px 26px;
    border-radius: 28px;
}

.dashboard-avatar {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    font-size: 28px;
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.28);
}

.dashboard-hero-copy {
    min-width: 0;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.dashboard-hello {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #102548;
    margin-bottom: 8px;
}

.dashboard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #5d7398;
    font-size: 14px;
    font-weight: 600;
}

.dashboard-meta-dot {
    opacity: 0.5;
}

.dashboard-hero-note {
    margin: 14px 0 0;
    max-width: 640px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
}

.dashboard-hero-panel {
    border-radius: 28px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-panel-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6d82a4;
}

.dashboard-panel-value {
    margin-top: 12px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: #102548;
}

.dashboard-panel-sub {
    margin-top: auto;
    padding-top: 16px;
    color: #6c7f9d;
    font-size: 14px;
    line-height: 1.55;
}

.dashboard-grid {
    margin-bottom: 0;
    gap: 18px;
}

.dashboard-grid-top {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-grid-bottom {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dashboard-sections-stack {
    display: grid;
    gap: 18px;
}

.dash-card {
    border-left: 0;
    padding: 22px 24px;
    border-radius: 26px;
}

.dashboard-stat-card,
.dashboard-detail-card {
    position: relative;
    overflow: hidden;
}

.dashboard-stat-card::before,
.dashboard-detail-card::before,
.dashboard-feature-card::before,
.dashboard-user::before,
.dashboard-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(96, 165, 250, 0.28));
}

.accent-green::before { background: linear-gradient(90deg, rgba(34, 197, 94, 0.95), rgba(134, 239, 172, 0.28)); }
.accent-purple::before { background: linear-gradient(90deg, rgba(147, 51, 234, 0.95), rgba(216, 180, 254, 0.28)); }
.accent-orange::before { background: linear-gradient(90deg, rgba(249, 115, 22, 0.95), rgba(253, 186, 116, 0.28)); }
.accent-red::before { background: linear-gradient(90deg, rgba(239, 68, 68, 0.95), rgba(252, 165, 165, 0.28)); }

.dash-card-title {
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #6880a6;
}

.dash-card-value {
    margin-bottom: 10px;
    font-size: clamp(34px, 5vw, 46px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: #102548;
}

.dash-card-sub {
    color: #62748d;
    font-size: 14px;
    line-height: 1.5;
}

.dash-card-extra {
    margin-top: 10px;
    color: #6f82a2;
    font-size: 13px;
}

.dashboard-feature-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 14px;
}

.dashboard-feature-badge {
    min-width: 48px;
    height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.dash-ticket-list,
.dash-reminder-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.dash-ticket-row,
.dash-reminder-row {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(192, 206, 229, 0.85);
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.98);
    box-shadow: 0 12px 28px rgba(43, 63, 112, 0.07);
}

.dash-ticket-row {
    gap: 14px !important;
}

.dash-ticket-icon {
    font-size: 18px;
}

.dash-link {
    color: #102548;
    font-size: 14px;
    font-weight: 700;
}

.dash-link:hover {
    text-decoration: none;
    opacity: 0.78;
}

.dash-ticket-date,
.dash-reminder-row span:last-child {
    color: #617595;
    font-size: 13px;
    font-weight: 600;
}

.dash-reminder-row span:first-child {
    color: #102548;
    font-size: 14px;
    font-weight: 700;
}

.dash-ul {
    gap: 10px;
    margin-top: 14px;
}

.dash-ul li {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(248, 251, 255, 0.96);
    border: 1px solid rgba(192, 206, 229, 0.8);
    color: #1e3356;
    font-size: 14px;
    font-weight: 600;
}

body[data-theme="dark"] .dashboard-user,
body[data-theme="dark"] .dashboard-hero-panel,
body[data-theme="dark"] .dashboard-stat-card,
body[data-theme="dark"] .dashboard-feature-card,
body[data-theme="dark"] .dashboard-detail-card {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 45%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(19, 30, 53, 0.96));
    border-color: rgba(96, 123, 168, 0.34);
    box-shadow: 0 26px 65px rgba(0, 0, 0, 0.42);
}

body[data-theme="dark"] .dashboard-hello,
body[data-theme="dark"] .dash-card-value,
body[data-theme="dark"] .dash-link,
body[data-theme="dark"] .dash-reminder-row span:first-child,
body[data-theme="dark"] .dash-ul li {
    color: #f8fbff;
}

body[data-theme="dark"] .dashboard-meta,
body[data-theme="dark"] .dashboard-hero-note,
body[data-theme="dark"] .dash-card-sub,
body[data-theme="dark"] .dash-card-extra,
body[data-theme="dark"] .dash-ticket-date,
body[data-theme="dark"] .dash-reminder-row span:last-child {
    color: #9bb0cf;
}

body[data-theme="dark"] .dash-ticket-row,
body[data-theme="dark"] .dash-reminder-row,
body[data-theme="dark"] .dash-ul li {
    background: rgba(17, 26, 45, 0.92);
    border-color: rgba(82, 104, 139, 0.32);
    box-shadow: none;
}

@media (max-width: 1100px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    #tab-dashboard {
        padding: 0 2px;
    }

    .dashboard-shell {
        gap: 16px;
    }

    .dashboard-user,
    .dashboard-hero-panel,
    .dash-card {
        border-radius: 22px;
    }

    .dashboard-user {
        padding: 20px;
        gap: 14px;
    }

    .dashboard-avatar {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        font-size: 22px;
    }

    .dashboard-hello {
        font-size: 30px;
    }

    .dashboard-grid-top,
    .dashboard-grid-bottom {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dashboard-feature-head {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-feature-badge {
        width: fit-content;
    }

    .dash-ticket-row,
    .dash-reminder-row {
        grid-template-columns: 1fr !important;
        text-align: left;
    }

    .dash-ticket-date,
    .dash-reminder-row span:last-child {
        text-align: left;
    }
}
