/* ===== Dashboard ===== */

.dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
}

.dash-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.dash-header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.dash-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.dash-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.dash-subtitle {
    font-size: 0.9rem;
    color: #888;
}

.dash-event-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    margin-top: 0.25rem;
}

/* Quick actions */
.dash-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.dash-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    min-height: 100px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dash-action:hover {
    border-color: #B71C1C;
    background: #fef2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dash-action-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: #B71C1C;
    flex-shrink: 0;
}

.dash-action-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: #333;
}

@media (max-width: 600px) {
    .dash-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Sections */
.dash-section {
    margin-bottom: 2rem;
}

.dash-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem;
}

.dash-note {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
}

.dash-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-left: 0.4rem;
    color: #888;
    cursor: help;
    vertical-align: middle;
}

.dash-info svg {
    width: 1rem;
    height: 1rem;
}

.dash-info-tip {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    width: min(22rem, 80vw);
    padding: 0.75rem 0.9rem;
    background: #1f2937;
    color: #fff;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.dash-info-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

.dash-info:hover .dash-info-tip,
.dash-info:focus .dash-info-tip,
.dash-info:focus-within .dash-info-tip {
    opacity: 1;
}

/* Table */
.dash-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.dash-table th,
.dash-table td {
    padding: 0.75rem 1rem;
}

.dash-table-th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
    background: #fafafa;
}

.dash-table-th-right {
    text-align: right;
}

.dash-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.dash-table tbody tr:last-child {
    border-bottom: none;
}

.dash-table-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.dash-table-value {
    text-align: right;
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    font-variant-numeric: tabular-nums;
}

.dash-table-discount {
    color: #dc2626;
}

.dash-table-total {
    border-top: 2px solid #e5e7eb !important;
    background: #fafafa;
}

.dash-table-total .dash-table-label {
    font-weight: 700;
    color: #222;
}

.dash-table-total .dash-table-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
}

.dash-table-meta .dash-table-label {
    color: #999;
    font-size: 0.85rem;
}

.dash-table-meta .dash-table-value {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Skeleton */
.dash-skeleton-table {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.dash-skeleton-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.dash-skeleton-row:last-child {
    border-bottom: none;
}

/* Mobile */
@media (max-width: 600px) {
    .dashboard {
        padding: 1rem;
    }
}
