﻿:root {
    --bc-bg: #f5f7fa;
    --bc-card: #ffffff;
    --bc-border: #e4e8ee;
    --bc-text: #1f2937;
    --bc-muted: #6b7280;
    --bc-primary: #2563eb;
    --bc-success: #22c55e;
    --bc-shadow: 0 2px 10px rgba(15,23,42,.05);
    --bc-radius: 14px;
}

.items-page {
    padding: 22px;
    background: var(--bc-bg);
    min-height: 100vh;
}

/* HEADER */

.items-header {
    background: var(--bc-card);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 26px;
    margin-bottom: 18px;
    box-shadow: var(--bc-shadow);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.items-kicker {
    font-size: 13px;
    font-weight: 600;
    color: var(--bc-primary);
    margin-bottom: 8px;
}

.items-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--bc-text);
    margin: 0;
    line-height: 1;
}

.items-subtitle {
    margin-top: 12px;
    color: var(--bc-muted);
    font-size: 15px;
}

.bc-btn {
    height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: var(--bc-primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

    .bc-btn:hover {
        transform: translateY(-1px);
    }

/* FILTERS */

.items-filters {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    margin-bottom: 18px;
}

.bc-input {
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--bc-border);
    padding: 0 16px;
    background: white;
    font-size: 14px;
    outline: none;
}

    .bc-input:focus {
        border-color: var(--bc-primary);
        box-shadow: 0 0 0 3px rgba(37,99,235,.10);
    }

/* MAIN */

.items-layout {
    display: grid;
    grid-template-columns: 44% 56%;
    gap: 18px;
}

.bc-card {
    background: white;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    overflow: hidden;
    box-shadow: var(--bc-shadow);
}

/* TABLE */

.items-table-wrap {
    height: 760px;
    overflow: auto;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
}

    .items-table thead {
        position: sticky;
        top: 0;
        z-index: 5;
    }

    .items-table th {
        background: #f8fafc;
        padding: 14px 12px;
        text-align: left;
        font-size: 13px;
        color: #64748b;
        font-weight: 700;
        border-bottom: 1px solid var(--bc-border);
    }

    .items-table td {
        padding: 14px 12px;
        border-bottom: 1px solid #edf2f7;
        font-size: 14px;
        color: var(--bc-text);
    }

    .items-table tr {
        transition: .15s;
        cursor: pointer;
    }

        .items-table tr:hover {
            background: #f8fbff;
        }

        .items-table tr.active {
            background: #e8f0ff;
        }

.item-no {
    color: var(--bc-primary);
    font-weight: 700;
}

.item-price {
    font-weight: 700;
}

/* STATUS */

.bc-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

    .bc-status.active {
        background: #dcfce7;
        color: #166534;
    }

/* DETAILS */

.item-details {
    padding: 28px;
}

.details-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.details-label {
    color: var(--bc-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.details-title {
    font-size: 44px;
    font-weight: 700;
    color: var(--bc-text);
    line-height: 1.1;
    margin-bottom: 10px;
}

.details-no {
    color: var(--bc-primary);
    font-weight: 700;
    font-size: 22px;
}

.details-grid {
    display: grid;
    gap: 28px;
}

.detail-section {
    border-top: 1px solid var(--bc-border);
    padding-top: 20px;
}

    .detail-section h4 {
        margin: 0 0 16px 0;
        font-size: 16px;
        color: var(--bc-text);
    }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px;
}

.detail-caption {
    color: var(--bc-muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.detail-value {
    color: var(--bc-text);
    font-size: 15px;
    font-weight: 600;
}

/* MOBILE */

@media(max-width:1100px) {

    .items-layout {
        grid-template-columns: 1fr;
    }

    .items-title {
        font-size: 34px;
    }

    .details-title {
        font-size: 30px;
    }
}

@media(max-width:768px) {

    .items-page {
        padding: 12px;
    }

    .items-header {
        flex-direction: column;
        gap: 16px;
    }

    .items-filters {
        grid-template-columns: 1fr;
    }

    .items-table-wrap {
        height: auto;
    }

    .items-table {
        min-width: 760px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}
