/* ========================================
   ORDERS LIST STYLES (ACCOUNT PAGE)
   ======================================== */

.orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    color: #6B6B6B;
}

.orders-empty svg {
    color: #B8B4AD;
    margin-bottom: 20px;
}

.orders-empty h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.orders-empty p {
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 400px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    display: block;
    background: var(--bg-beige);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.order-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.order-number {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-number-label {
    font-size: 12px;
    color: #6B6B6B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-number-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-secondary);
}

.order-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-submitted {
    background: #E3F2FD;
    color: #1565C0;
}

.status-locked {
    background: #FFF3E0;
    color: #E65100;
}

.status-fulfillment {
    background: #FFF8E1;
    color: #F9A825;
}

.status-completed {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-cancelled {
    background: #FFEBEE;
    color: #C62828;
}

.status-default {
    background: #F5F5F5;
    color: #616161;
}

.order-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.order-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-detail-label {
    font-size: 12px;
    color: #6B6B6B;
}

.order-detail-value {
    font-size: 14px;
    font-weight: 500;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #E0E0E0;
}

.order-total {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.order-total-label {
    font-size: 14px;
    color: #6B6B6B;
}

.order-total-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-primary);
}

.order-arrow {
    color: #B8B4AD;
    transition: color 0.2s;
}

.order-card:hover .order-arrow {
    color: var(--brand-primary);
}

@media (max-width: 768px) {
    .order-card {
        padding: 16px;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .order-total-value {
        font-size: 18px;
    }

    .order-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .order-details {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ORDER DETAIL PAGE STYLES
   ======================================== */

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.link-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--brand-primary);
    text-decoration: none;
    margin-bottom: 12px;
}

.link-back:hover {
    text-decoration: underline;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.order-detail-section {
    background: var(--bg-beige);
    border-radius: 8px;
    padding: 20px;
}

.order-detail-section .section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 16px;
}

.order-detail-section .section-heading i {
    font-size: 18px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #E0E0E0;
}

.order-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-info-label {
    font-size: 14px;
    color: #6B6B6B;
}

.order-info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.address-box {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}

.address-box strong {
    display: block;
    margin-bottom: 4px;
}

.note-box {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--white);
    padding: 12px;
    border-radius: 6px;
}

.order-items-section {
    margin-bottom: 30px;
}

.order-items-section .section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 16px;
}

.order-items-section .section-heading i {
    font-size: 20px;
}

.order-items-table {
    background: var(--bg-beige);
    border-radius: 8px;
    overflow: hidden;
}

.order-items-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.8fr 1.2fr;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border-bottom: 2px solid #E0E0E0;
    font-size: 12px;
    font-weight: 600;
    color: #6B6B6B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.8fr 1.2fr;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #E0E0E0;
    align-items: center;
}

.order-item-row:last-child {
    border-bottom: none;
}

.item-col-name {
    font-size: 15px;
}

.item-col-date,
.item-col-qty,
.item-col-price,
.item-col-vat {
    font-size: 14px;
}

.item-col-total {
    font-size: 15px;
    text-align: right;
}

.order-summary {
    background: var(--bg-beige);
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    margin-left: auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E0E0E0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 14px;
    color: #6B6B6B;
}

.summary-value {
    font-size: 16px;
    font-weight: 500;
}

.summary-total {
    padding-top: 16px;
    border-top: 2px solid #E0E0E0;
}

.summary-total .summary-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-total .summary-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-primary);
}

@media (max-width: 768px) {
    .order-detail-header {
        flex-direction: column;
    }

    .order-detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .order-detail-section {
        padding: 16px;
    }

    .order-items-header {
        display: none;
    }

    .order-item-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
    }

    .item-col-name,
    .item-col-date,
    .item-col-qty,
    .item-col-price,
    .item-col-vat,
    .item-col-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .item-col-name::before {
        content: "Název:";
        font-size: 12px;
        font-weight: 600;
        color: #6B6B6B;
    }

    .item-col-date::before {
        content: "Datum:";
        font-size: 12px;
        font-weight: 600;
        color: #6B6B6B;
    }

    .item-col-qty::before {
        content: "Množství:";
        font-size: 12px;
        font-weight: 600;
        color: #6B6B6B;
    }

    .item-col-price::before {
        content: "Cena/ks:";
        font-size: 12px;
        font-weight: 600;
        color: #6B6B6B;
    }

    .item-col-vat::before {
        content: "DPH:";
        font-size: 12px;
        font-weight: 600;
        color: #6B6B6B;
    }

    .item-col-total::before {
        content: "Celkem:";
        font-size: 12px;
        font-weight: 600;
        color: #6B6B6B;
    }

    .item-col-total {
        text-align: left;
    }

    .order-summary {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .order-details {
        grid-template-columns: 1fr;
    }
}
