:root {
    --pz-primary: #2B7FFF;
    --pz-bg: #fff;
    --pz-header: #0b0b0c;
    --pz-footer: #0b0b0c;
    --header-h: 72px; /* висота хедера */
}

html, body {
    height: 100%
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: var(--pz-bg);
    color: #111827;
    /* ДЛЯ ФІКСОВАНОГО ХЕДЕРА */
    padding-top: var(--header-h);
    /* ПРИЖАТИЙ ФУТЕР */
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1
}

/* тягнемо контент щоб футер ліг донизу */

/* Контейнер 1600 */
.container-1600 {
    max-width: 1600px
}

/* ---------- HEADER ---------- */
.pz-header {
    background: var(--pz-header);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 2px 8px rgba(0, 0, 0, .35);
}

.pz-header .navbar {
    height: var(--header-h);
}

.brand-dot {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--pz-primary), #60a5fa);
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.5px;
}

.search-wrap {
    min-width: 280px
}

.search-wrap .input-group {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    overflow: hidden;
}

.search-wrap .form-control {
    background: transparent;
    border: 0;
    color: #fff;
}

.search-wrap .form-control::placeholder {
    color: #bfc3c9
}

.search-wrap .btn {
    background: transparent;
    border: 0;
    color: #e5e7eb
}

.dropdown-toggle::after {
    margin-left: .35rem
}

/* не даємо елементам переноситися на 2 ряд на десктопі */
@media (min-width: 1200px) {
    .navbar .container-1600 {
        gap: 1rem
    }

    .navbar .row-nowrap {
        flex-wrap: nowrap
    }
}

/* ---------- SIDEBAR ---------- */
.sidebar {
    border-right: 1px solid #e5e7eb;
    min-width: 260px
}

.sidebar .nav-link {
    color: #374151;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .75rem
}

.sidebar .nav-link:hover {
    background: #f3f4f6
}

.sidebar .nav-link.active {
    background: #eef2ff;
    color: #1e40af;
    font-weight: 600;
    border: 1px solid #c7d2fe
}

/* ---------- TABLE ---------- */
.table thead th {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280
}

.badge-soft {
    background: #f1f5ff;
    color: #1d4ed8;
    border: 1px solid #dbe7ff
}

.badge-gray {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb
}

/* ---------- FOOTER ---------- */
.pz-footer {
    background: var(--pz-footer);
    color: #9ca3af
}

.pz-footer a {
    color: #cbd5e1;
    text-decoration: none
}

.pz-footer a:hover {
    color: #fff;
    text-decoration: underline
}

.pz-tabs .nav-link {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    margin-right: .4rem;
    color: #374151
}

.pz-tabs .nav-link.active {
    background: #111827;
    color: #fff;
    border-color: #111827
}

.card-ghost {
    border: 1px dashed #e5e7eb;
    background: #fafafa
}

/* Top note */
.hero-note {
    background: #f2f7ff;
    border: 1px solid #e4edff;
    border-radius: 14px
}

/* STEPPEР */
.stepper {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 14px;
    counter-reset: step;
}

.step {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 14px 14px 56px;
    min-height: 64px
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 32px;
    right: -7px;
    width: 14px;
    height: 2px;
    background: #e5e7eb;
}

.step .num {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: #9ca3af;
}

.step.done .num {
    background: var(--ok)
}

.step.active {
    border-color: #cfe3ff;
    background: #eef6ff
}

.step.active .num {
    background: var(--pz-primary)
}

.step.rejected {
    border-color: #ffd3d3;
    background: #fff5f5
}

.step.rejected .num {
    background: var(--err)
}

.step .title {
    font-weight: 600
}

.step .meta {
    font-size: .9rem;
    color: var(--muted)
}

.step i {
    opacity: .85
}

/* Cards */
.card-face {
    border-radius: 14px
}

.icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: #eef2ff;
    border: 1px solid #dbe7ff;
    display: flex;
    align-items: center;
    justify-content: center
}

.icon-wrap i {
    font-size: 32px;
    color: #375dfb
}

.list-ok i {
    color: var(--ok)
}

.list-warn i {
    color: var(--warn)
}

.list-err i {
    color: var(--err)
}

.hint {
    font-size: .9rem;
    color: var(--muted)
}

.btn-soft {
    background: #e9f2ff;
    border: 1px solid #cfe3ff
}

/* Footer */
.pz-footer {
    background: var(--pz-footer);
    color: #9ca3af
}

.pz-footer a {
    color: #cbd5e1;
    text-decoration: none
}

.pz-footer a:hover {
    color: #fff;
    text-decoration: underline
}

@media (max-width: 992px) {
    .stepper {
        grid-template-columns:1fr 1fr
    }
}

@media (max-width: 576px) {
    .stepper {
        grid-template-columns:1fr
    }
}

.brand-dot {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--pz-primary), #60a5fa);
    color: #fff;
    font-weight: 800;
    font-size: 20px
}

.search-wrap .input-group {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    overflow: hidden
}

.search-wrap .form-control {
    background: transparent;
    border: 0;
    color: #fff
}

.search-wrap .form-control::placeholder {
    color: #bfc3c9
}

.search-wrap .btn {
    background: transparent;
    border: 0;
    color: #e5e7eb
}

/* Page bits */
.info-bar {
    background: #f2f7ff;
    border: 1px solid #e4edff;
    border-radius: 12px
}

.hero {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb
}

.hero__content {
    background: #0d1b2a;
    color: #fff
}

.hero__img {
    background: linear-gradient(120deg, #0d1b2a, #1f3b63)
}

.metrics {
    border: 1px solid #e5e7eb;
    border-radius: 12px
}

.kpi {
    padding: .75rem 1rem
}

.kpi .num {
    font-weight: 700;
    font-size: 1.35rem
}

.kpi .label {
    font-size: .83rem;
    color: #6b7280
}

.kpi + .kpi {
    border-left: 1px solid #eef2f7
}

.kpi.red .num {
    color: #ef4444
}

.kpi.green .num {
    color: #16a34a
}

.kpi.blue .num {
    color: #2563eb
}

.toolbar .btn {
    border-radius: 10px
}

.table thead th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb
}

.table td {
    vertical-align: middle
}

.badge-soft {
    background: #f1f5ff;
    color: #1d4ed8;
    border: 1px solid #dbe7ff
}

.status-col {
    width: 110px
}

.actions-col {
    width: 56px
}

.table-search {
    max-width: 340px
}

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://via.placeholder.com/1600x600?text=Auto+Parts+Store') center/cover no-repeat;
    color: #fff;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}
.hero-content {
    position: relative;
    z-index: 1;
}
