/* ── Royal Productions color palette ──────────────────────────────────────── */
:root {
    --rp-blue:   #1a237e;
    --rp-blue2:  #283593;
    --rp-gold:   #f9a825;
    --rp-gold-h: #f57f17;
}

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.rp-navbar {
    background: linear-gradient(135deg, var(--rp-blue) 0%, var(--rp-blue2) 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    min-height: 56px;
}

.rp-logo-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,.12);
    border-radius: 8px;
    color: var(--rp-gold);
    flex-shrink: 0;
}

/* ── Add / Save button ─────────────────────────────────────────────────────── */
.rp-add-btn {
    background: var(--rp-gold);
    border-color: var(--rp-gold);
    color: #1a237e;
}
.rp-add-btn:hover,
.rp-add-btn:focus {
    background: var(--rp-gold-h);
    border-color: var(--rp-gold-h);
    color: #1a237e;
}

/* ── Modal header ──────────────────────────────────────────────────────────── */
.rp-modal-header {
    background: linear-gradient(135deg, var(--rp-blue) 0%, var(--rp-blue2) 100%);
}

/* ── Stat cards ────────────────────────────────────────────────────────────── */
.stat-card {
    transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.1) !important;
}
.stat-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

/* ── Table ─────────────────────────────────────────────────────────────────── */
.inv-table thead tr {
    background: #2c3150;
    color: #e8eaf6;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.inv-table thead th {
    border: none;
    padding: .7rem .75rem;
    font-weight: 600;
}
.inv-table tbody tr td {
    padding: .6rem .75rem;
    vertical-align: middle;
    border-color: #f0f0f5;
}
.inv-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Thumbnail placeholder ─────────────────────────────────────────────────── */
.item-thumb {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
}
.item-thumb-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #eef0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9fa8da;
    font-size: 1.1rem;
}

/* ── Qty buttons ───────────────────────────────────────────────────────────── */
.qty-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: .85rem;
    line-height: 1;
    border-radius: 6px;
    flex-shrink: 0;
}
.qty-display {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

/* ── Action icon buttons ───────────────────────────────────────────────────── */
.action-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
}

/* ── Filter buttons active state ───────────────────────────────────────────── */
.filter-btn.active {
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* ── Misc ──────────────────────────────────────────────────────────────────── */
.ls-1 { letter-spacing: .5px; }
.font-monospace { font-family: 'SF Mono', 'Fira Code', monospace; }

.badge { font-weight: 600; letter-spacing: .3px; }

/* ── Name search results ───────────────────────────────────────────────────── */
.search-result-item {
    cursor: pointer;
    transition: background .12s, border-color .12s;
    background: #fff;
}
.search-result-item:hover {
    background: #eef1ff;
    border-color: #9fa8da !important;
}
.search-result-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    padding: 2px;
}

/* ── Responsive tweaks ─────────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .inv-table thead th:nth-child(4) { display: none; }
    .inv-table tbody td:nth-child(4) { display: none; }
}
