﻿.live-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.live-filter-card,
.live-hero,
.live-summary-card,
.live-table-card,
.live-empty {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2f7;
}

.live-filter-card {
    padding: 18px;
}

.live-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.live-filter-item label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.live-filter-action {
    display: flex;
    align-items: end;
}

.live-hero {
    padding: 22px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #ffffff;
}

.live-hero-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.live-hero-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.live-hero-subtitle {
    font-size: 15px;
    opacity: 0.9;
    max-width: 680px;
}

.live-hero-right {
    display: grid;
    gap: 14px;
    align-content: center;
}

.live-mini-pill {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 16px;
}

    .live-mini-pill span {
        display: block;
        font-size: 12px;
        opacity: 0.8;
        margin-bottom: 4px;
    }

    .live-mini-pill strong {
        font-size: 17px;
        font-weight: 700;
    }

.live-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.live-summary-card {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.summary-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 22px;
    flex-shrink: 0;
}

.bg-blue {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.bg-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.bg-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.bg-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.bg-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.summary-content {
    min-width: 0;
}

.summary-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 6px;
}

.summary-value {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    word-break: break-word;
}

.live-table-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.live-table-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.table-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.table-title-wrap {
    min-width: 0;
}

.table-name {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    margin-bottom: 6px;
    word-break: break-word;
}

.table-billno {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.table-badge-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.status-badge,
.long-running-badge {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-running {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.status-open {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.status-pending {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #c4b5fd;
}

.status-hold {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.status-default {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.long-running-badge {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.table-amount {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.table-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.meta-box {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 12px 14px;
}

    .meta-box label {
        display: block;
        font-size: 12px;
        color: #64748b;
        margin-bottom: 4px;
        font-weight: 600;
    }

    .meta-box span {
        font-size: 16px;
        color: #111827;
        font-weight: 700;
        word-break: break-word;
    }

.table-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid #eef2f7;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

    .info-row span {
        color: #64748b;
        font-size: 13px;
        font-weight: 600;
    }

    .info-row strong {
        color: #111827;
        font-size: 13px;
        font-weight: 700;
        text-align: right;
        word-break: break-word;
    }

.live-empty {
    padding: 40px 20px;
    text-align: center;
}

.live-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px auto;
    border-radius: 20px;
    background: #eff6ff;
    color: #2563eb;
    display: grid;
    place-items: center;
    font-size: 30px;
}

.live-empty-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.live-empty-text {
    color: #6b7280;
    font-size: 15px;
}

@media (max-width: 1399.98px) {
    .live-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .live-table-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .live-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .live-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .live-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .live-table-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .live-filter-grid,
    .live-summary-grid,
    .table-meta-grid {
        grid-template-columns: 1fr;
    }

    .live-filter-card,
    .live-hero,
    .live-summary-card,
    .live-table-card,
    .live-empty {
        border-radius: 16px;
    }

    .live-hero-title {
        font-size: 28px;
    }

    .summary-value {
        font-size: 22px;
    }

    .table-amount {
        font-size: 28px;
    }

    .table-card-top,
    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-badge-wrap {
        align-items: flex-start;
    }

    .info-row strong {
        text-align: left;
    }
}
