.dashboard-page {
    padding-bottom: 2rem;
}

.dashboard-hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0b57d0 55%, #073b8a 100%);
    color: #fff;
    overflow: hidden;
}

.dashboard-eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
}

.dashboard-subtitle {
    max-width: 40rem;
    color: rgba(255, 255, 255, 0.85);
}

.dashboard-meta .badge {
    padding: 0.65rem 0.85rem;
    font-weight: 500;
}

.dashboard-actions {
    display: grid;
    gap: 0.75rem;
}

.dashboard-actions .btn {
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    font-weight: 600;
}

.dashboard-stat-card {
    border-radius: 1rem;
}

.dashboard-stat-top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.dashboard-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    font-size: 1.3rem;
}

.dashboard-stat-icon.primary {
    background: rgba(13, 110, 253, 0.12);
}

.dashboard-stat-icon.warning {
    background: rgba(255, 193, 7, 0.18);
}

.dashboard-stat-icon.dark {
    background: rgba(33, 37, 41, 0.12);
}

.dashboard-stat-icon.success {
    background: rgba(25, 135, 84, 0.12);
}

.dashboard-stat-icon.info {
    background: rgba(13, 202, 240, 0.14);
}

.dashboard-stat-icon.danger {
    background: rgba(220, 53, 69, 0.12);
}

.dashboard-stat-icon.secondary {
    background: rgba(108, 117, 125, 0.14);
}

.dashboard-stat-label {
    color: #6c757d;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
}

.dashboard-stat-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    color: #212529;
}

.dashboard-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}

.dashboard-table td,
.dashboard-table th {
    padding: 0.75rem 0.6rem;
    vertical-align: middle;
}

.dashboard-ticket-actions {
    min-width: 150px;
}

.dashboard-compact-form {
    display: grid;
    gap: 0.4rem;
}

.dashboard-compact-textarea {
    min-height: 38px;
    resize: vertical;
    line-height: 1.2;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.dashboard-compact-form .btn {
    padding: 0.35rem 0.6rem;
    line-height: 1.15;
}

.dashboard-table .btn-sm {
    font-size: 0.82rem;
}

.dashboard-note-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dashboard-ticket-panel-inner {
    padding: 1rem;
    background: #f8fafc;
    border-top: 1px solid #e9ecef;
}

.dashboard-ticket-copy {
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 0.65rem;
    background: #fff;
    font-size: 0.92rem;
    line-height: 1.35;
}

.collapse-row > td {
    background: transparent;
}

.ticket-action-cell {
    min-width: 120px;
}

.ticket-action-toggle {
    white-space: nowrap;
}

.ticket-action-panel {
    margin: 0.5rem 0;
    padding: 0.9rem;
    border: 1px solid #e9ecef;
    border-radius: 0.7rem;
    background: #f8fafc;
}

.ticket-action-form {
    display: grid;
    gap: 0.6rem;
}

.ticket-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dashboard-table small {
    line-height: 1.25;
    display: inline-block;
}

.dashboard-timetable-list {
    display: grid;
    gap: 1rem;
}

.dashboard-timetable-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0.9rem;
    background: #fbfcfe;
}

.dashboard-timetable-time {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: #0d6efd;
}

.dashboard-timetable-time span {
    color: #6c757d;
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .dashboard-title {
        font-size: 1.65rem;
    }

    .dashboard-timetable-item {
        grid-template-columns: 1fr;
    }

    .dashboard-ticket-actions {
        min-width: 220px;
    }

    .ticket-action-panel {
        padding: 0.75rem;
    }

    .ticket-action-toggle {
        width: 100%;
    }

    .ticket-action-buttons .btn {
        flex: 1 1 calc(50% - 0.45rem);
    }
}

@media (max-width: 575.98px) {
    .admin-navbar .navbar-brand {
        max-width: 48vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1rem;
    }

    .admin-user-label {
        max-width: 36vw;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .admin-user-name {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-stat-value {
        font-size: 1.6rem;
    }
}
