/* PlotView - the signed-in side. Bootstrap does the work; this is the frame. */

:root {
    --pv-ink: #1d2128;
    --pv-sidebar: #171a20;
    --pv-accent: #b8863b;
    --pv-rail: 236px;
}

body {
    margin: 0;
    background: #f4f5f7;
    color: var(--pv-ink);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------------ sidebar */

.pv-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--pv-rail);
    display: flex;
    flex-direction: column;
    background: var(--pv-sidebar);
    color: #e7e8ea;
    z-index: 20;
}

.pv-brandmark {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 18px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.pv-brandmark-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--pv-accent);
    color: #16181d;
    font-size: 15px;
}

.pv-nav {
    flex: 1;
    overflow-y: auto;
    padding: 6px 10px 16px;
}

.pv-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    margin-bottom: 2px;
    border-radius: 8px;
    color: #b9bdc6;
    text-decoration: none;
    font-size: 14px;
}

.pv-nav a i {
    width: 17px;
    font-size: 15px;
    text-align: center;
}

.pv-nav a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.pv-nav a.active {
    background: rgba(184, 134, 59, 0.18);
    color: #f0d5a6;
}

.pv-nav-title {
    padding: 16px 11px 6px;
    font-size: 10.5px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #737b88;
}

.pv-sidebar-foot {
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.pv-who {
    margin-bottom: 10px;
    line-height: 1.3;
}

.pv-who strong {
    display: block;
    font-size: 13.5px;
    color: #fff;
}

.pv-who span {
    font-size: 11.5px;
    color: #868d99;
}

/* --------------------------------------------------------------------- main */

.pv-main {
    margin-left: var(--pv-rail);
    min-height: 100vh;
}

.pv-impersonating {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background: #7a5a1e;
    color: #fff;
    font-size: 13.5px;
}

.pv-page {
    padding: 22px 26px 40px;
    max-width: 1280px;
}

.pv-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.pv-page-head h1 {
    margin: 0;
    font-size: 23px;
    font-weight: 600;
}

.pv-page-head p {
    margin: 3px 0 0;
    color: #6b7280;
    font-size: 13.5px;
}

.pv-page-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------------- cards */

.card {
    border: 1px solid #e3e5e9;
    border-radius: 11px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.pv-stat {
    padding: 16px 18px;
}

.pv-stat-label {
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6b7280;
}

.pv-stat-value {
    margin-top: 4px;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.pv-stat-note {
    margin-top: 2px;
    font-size: 12.5px;
    color: #6b7280;
}

/* ------------------------------------------------------------- status chips */

.pv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.pv-swatch {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    vertical-align: -1px;
}

/* ------------------------------------------------------------- the plot grid */

.pv-plot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 8px;
}

.pv-plot {
    position: relative;
    display: block;
    padding: 10px 11px 11px;
    background: #fff;
    border: 1px solid #e3e5e9;
    border-left-width: 4px;
    border-radius: 9px;
    text-align: left;
    cursor: pointer;
}

.pv-plot:hover {
    border-color: #c9ccd2;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.pv-plot.is-picked {
    outline: 2px solid var(--pv-accent);
    outline-offset: 1px;
}

.pv-plot-number {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.1;
}

.pv-plot-meta {
    margin-top: 3px;
    font-size: 11.5px;
    color: #6b7280;
    line-height: 1.35;
}

.pv-plot-price {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #1d2128;
}

.pv-plot input[type="checkbox"] {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* --------------------------------------------------------------- the bulk bar */

.pv-bulkbar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: none;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding: 12px 16px;
    background: var(--pv-sidebar);
    color: #fff;
    border-radius: 11px;
    box-shadow: 0 -4px 18px rgba(16, 24, 40, 0.18);
}

.pv-bulkbar.is-open {
    display: flex;
}

.pv-bulkbar .form-select,
.pv-bulkbar .form-control {
    max-width: 200px;
}

/* ------------------------------------------------------------------- tables */

.table > :not(caption) > * > * {
    padding: 10px 12px;
}

.table thead th {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 600;
    border-bottom-color: #e3e5e9;
}

.form-label.required::after {
    content: " *";
    color: #b42318;
}

/* ------------------------------------------------------------------- guest */

.pv-guest {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at 30% 20%, #23272f, #121419);
}

.pv-guest-card {
    width: min(400px, 100%);
    padding: 30px 28px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

/* ------------------------------------------------------------------ narrow */

.pv-applink {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    font-size: 12.5px;
    color: #9aa0ab;
    text-decoration: none;
}

.pv-applink:hover {
    color: #fff;
}

/* A phone (and the Android app, which is this site): the sidebar becomes a
   slim top bar with the name and Sign out, and the menu a tab bar at the
   bottom, where a thumb reaches it. */
@media (max-width: 860px) {
    .pv-sidebar {
        position: sticky;
        top: 0;
        bottom: auto;
        width: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .pv-brandmark {
        padding: 10px 14px;
    }

    .pv-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        justify-content: space-around;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        background: var(--pv-sidebar);
        border-top: 1px solid rgba(255, 255, 255, 0.09);
        overflow: visible;
    }

    .pv-nav a {
        flex: 1 1 0;
        min-width: 0;
        flex-direction: column;
        gap: 3px;
        margin: 0;
        padding: 6px 2px;
        font-size: 11px;
        text-align: center;
        white-space: nowrap;
    }

    .pv-nav a i {
        width: auto;
        font-size: 19px;
    }

    .pv-nav-title,
    .pv-who,
    .pv-applink {
        display: none;
    }

    .pv-sidebar-foot {
        border-top: 0;
        padding: 8px 12px;
    }

    .pv-main {
        margin-left: 0;
        padding-bottom: 68px;
    }

    .pv-page {
        padding: 16px 14px 32px;
    }

    .pv-bulkbar {
        bottom: 70px;
    }
}
