/* assets/css/sections/pricing.css */

.pricing-excel-vibe {
    padding: 80px 0;
    background-color: #f4f7f9;
    font-family: 'Inter', system-ui, sans-serif;
}

.excel-header-area {
    margin-bottom: 50px;
    border-left: 5px solid #0056D2;
    padding-left: 25px;
}

.excel-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
}

.excel-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0f172a;
    margin: 10px 0;
}

.excel-sub-title {
    color: #475569;
    font-size: 1.1rem;
}

/* GRID */
.excel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* KARTA */
.excel-section-block {
    background: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* BAREVNÉ OKRAJE */
.excel-section-block.border-blue { border-top: 4px solid #0056D2 !important; }
.excel-section-block.border-blue .col-icon { color: #0056D2 !important; }

.excel-section-block.border-orange { border-top: 4px solid #FF5E00 !important; }
.excel-section-block.border-orange .col-icon { color: #FF5E00 !important; }

.excel-section-block.border-gray { border-top: 4px solid #64748b !important; }
.excel-section-block.border-gray .col-icon { color: #64748b !important; }

.excel-section-block.full-width { grid-column: 1 / -1; }


/* --- TABULKA --- */
.excel-table-wrapper {
    width: 100%;
    /* Odstraněno overflow-x, aby se tabulka přizpůsobila */
}

.ultra-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Důležité pro desktop */
}

/* DEFINICE ŠÍŘEK SLOUPCŮ (DESKTOP) */
.col-icon { 
    width: 60px;
    padding: 25px 0 25px 25px;
    font-size: 24px;
    vertical-align: top;
}

.col-price { 
    width: 140px;
    text-align: right !important;
    padding-right: 25px;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    vertical-align: top;
    padding-top: 30px;
}

.col-service {
    padding: 25px 15px;
    vertical-align: middle;
}

/* HLAVIČKA KATEGORIE */
.excel-cat-label { 
    font-size: 10px; text-transform: uppercase; color: #94a3b8; font-weight: 800; display: block; margin-bottom: 4px;
}
.excel-cat-title { 
    font-size: 1.4rem; font-weight: 800; color: #1e293b; margin: 0; line-height: 1.2;
}

/* TĚLO TABULKY */
.ultra-table tbody tr {
    border-top: 1px solid #f1f5f9;
}
.ultra-table tbody tr:hover { background: #f8fafc; }

/* BUNKY */
.cell-index {
    width: 60px;
    text-align: center;
    color: #cbd5e1;
    font-size: 14px;
    padding: 15px 0 15px 10px;
}

.cell-name {
    padding: 15px 10px;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
}

.cell-price {
    width: 140px;
    text-align: right;
    padding: 15px 25px 15px 0;
    font-weight: 800;
    color: #0f172a;
    font-size: 16px;
    white-space: nowrap;
    vertical-align: top; /* Cena nahoře zarovnaná s prvním řádkem textu */
}

/* Zvýraznění řádku */
.row-highlight { background: #fff7ed; }
.row-highlight .cell-name { color: #9a3412; font-weight: 700; }

/* Patička tabulky (popis) */
.excel-footer-cell {
    background: #fbfcfd;
    padding: 20px 25px !important;
    font-style: italic;
    color: #64748b;
    font-size: 14px;
    border-top: 1px solid #e2e8f0;
}

/* =========================================
   MOBILNÍ ZOBRAZENÍ (TONDA FIX: VÍCE MÍSTA)
   ========================================= */
@media (max-width: 600px) {
    /* Změníme chování tabulky na flexbox pro lepší kontrolu */
    .ultra-table, .ultra-table tbody, .ultra-table tr, .ultra-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    /* Skryjeme hlavičku tabulky (ikona, kategorie, cena nadpis) */
    .ultra-table thead { display: none; }

    /* Na mobilu chceme nadpis kategorie zobrazit extra před tabulkou (řešeno v PHP nebo zde vizuálně) */
    /* Zde to necháme na PHP, soustředíme se na řádky */

    .ultra-table tr {
        display: flex;
        justify-content: space-between;
        align-items: flex-start; /* Zarovnání nahoru */
        padding: 15px;
        border-bottom: 1px solid #f1f5f9;
        position: relative;
    }

    /* Skryjeme sloupec s šipkou/indexem */
    .cell-index { display: none !important; }

    /* NÁZEV SLUŽBY - Dostane maximum místa */
    .cell-name {
        width: 65% !important; /* Většina šířky */
        padding: 0 !important;
        font-size: 0.95rem;
        padding-right: 10px !important; /* Mezera od ceny */
    }

    /* CENA - Zarovnána doprava, ale nezabírá půlku displeje */
    .cell-price {
        width: 35% !important; /* Zbytek šířky */
        padding: 0 !important;
        text-align: right !important;
        font-size: 1rem;
        white-space: normal; /* Povolíme zalamování ceny, kdyby byla dlouhá */
    }

    /* Obnovíme zobrazení hlavičky kategorie aspoň vizuálně */
    /* Pro tento trik musíme v PHP přidat jeden řádek navíc nebo upravit logiku, 
       ale pro teď stačí roztáhnout řádky */
       
    .col-icon { display: none; }
}