/* =========================
   WiseGroup Layout System
   ========================= */

/* =========================
   Grid System
   ========================= */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* =========================
   Flex Utilities
   ========================= */

.layout-inline-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.layout-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.layout-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================
   Hero Layout
   ========================= */

.hero-layout {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-layout--start {
    align-items: flex-start;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
}

.hero-card {
    background: rgba(255,255,255,0.12);
    padding: 12px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
}

.hero-card .label {
    font-size: 12px;
    opacity: 0.8;
}

.hero-card .value {
    font-size: 18px;
    font-weight: 800;
}

.hero-card .sub {
    font-size: 12px;
    opacity: 0.7;
}

/* =========================
   Container Variants
   ========================= */

.container-tight {
    max-width: 700px;
    margin: 0 auto;
}

/* =========================
   Titles & Text Blocks
   ========================= */

.title {
    font-size: 20px;
    font-weight: 800;
}

.subtitle {
    font-size: 14px;
    color: #6b7280;
}

/* =========================
   Summary Cards
   ========================= */

.summary-box {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: 0.25s ease;
}

.summary-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.summary-box h3 {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.summary-box .value {
    font-size: 22px;
    font-weight: 900;
    color: #111827;
}

/* =========================
   Info Boxes
   ========================= */

.info-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    background: #fafafa;
}

.info-box h3 {
    font-size: 14px;
    font-weight: 800;
}

/* =========================
   Empty State
   ========================= */

.empty-state {
    text-align: center;
    padding: 30px;
    color: #6b7280;
    font-weight: 600;
}

/* =========================
   Table Improvements
   ========================= */

table tbody tr:hover {
    background: #f9fafb;
}

table td {
    vertical-align: top;
}

/* =========================
   Form Enhancements
   ========================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.form-grid .full {
    grid-column: span 2;
}

/* =========================
   Buttons Alignment
   ========================= */

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================
   Helper Text
   ========================= */

.helper {
    font-size: 12px;
    color: #6b7280;
}

/* =========================
   Payment Panel
   ========================= */

#payment-panel {
    border-left: 4px solid #cf1111;
    background: #fff5f5;
}

/* =========================
   Responsive Design
   ========================= */

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3,
    .grid-4,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        flex-direction: column;
    }

    .hero-side {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .full {
        grid-column: span 1;
    }

    .layout-inline-between {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
}