:root {
    --ink: #17243a;
    --muted: #7d899b;
    --blue: #3568f5;
    --bg: #f5f7fb;
    --line: #e8edf4;
    --sidebar: #fff
}

* {
    box-sizing: border-box
}

body {
    zoom:75%;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px
}

.app-shell {
    min-height:calc(100vh / 0.75);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 252px;
    background: var(--sidebar);
    border-right: 1px solid var(--line);
    padding: 25px 16px;
    display: flex;
    flex-direction: column;
    z-index: 10
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--ink);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.5px;
    padding: 0 8px 34px
}

.brand-mark {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 30px;
}

.brand-mark img {
     width:100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand small {
    display: block;
    font-size: 8px;
    letter-spacing: 1.6px;
    color: #8a96a9;
    font-weight: 800;
    margin-top: 1px
}

.nav-caption {
    font-size: 10px;
    letter-spacing: 1.4px;
    color: #a0aabb;
    font-weight: 800;
    padding: 0 12px 11px
}

.side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 10px;
    color: #68758a;
    text-decoration: none;
    font-weight: 600;
    margin: 2px 0;
    transition: .15s
}

.side-link i {
    font-size: 17px;
    width: 20px
}

.side-link:hover {
    background: #f3f6ff;
    color: var(--blue)
}

.side-link.active {
    background: #edf2ff;
    color: var(--blue);
    font-weight: 750
}

.side-arrow {
    margin-left: auto;
    font-size: 20px
}

.sidebar-bottom {
        margin-top: auto;   /* was 0px */
}

.support-card {
    background: #f5f7fc;
    border: 1px solid #edf0f7;
    border-radius: 13px;
    padding: 15px;
    margin: 10px 2px 15px
}

.support-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: #e4ebff;
    color: var(--blue);
    border-radius: 9px;
    margin-bottom: 10px
}

.support-card strong {
    font-size: 12px
}

.support-card p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    margin: 5px 0 0
}

.logout-link {
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding-top: 18px
}

.main-area {
    margin-left: 252px;
    min-height: calc(100vh / 0.75);
}

.topbar {
    height: 83px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    position: sticky;
    top: 0;
    z-index: 5
}

.top-eyebrow {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: #9aa5b5
}

.top-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.5px;
    margin-top: 2px
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 10px
}

.profile-chip strong,
.profile-chip small {
    display: block
}

.profile-chip strong {
    font-size: 12px
}

.profile-chip small {
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px
}

.avatar {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #e8eeff;
    color: var(--blue);
    font-weight: 800
}

.icon-btn {
    position: relative;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    color: #6f7c90;
    font-size: 17px
}

.notification-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f97373;
    right: 8px;
    top: 7px;
    border: 1px solid white
}

.page-content {
    padding: 30px 35px 40px;
    max-width: 1900px;
    margin: auto
}

.welcome-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px
}

.welcome-row h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.8px;
    margin: 0 0 5px
}

.muted {
    color: var(--muted)
}

.small-muted {
    font-size: 12px;
    color: var(--muted);
}

.btn-primary {
    background:#c59f14;
    border-color:  #c59f14;

}

.btn-primary:hover {
    background: #2455de;
    border-color: #2455de
}

.btn-soft {
    background: #edf2ff;
    color: var(--blue);
    border: 1px solid #e0e8ff;
    font-weight: 700
}

.btn-soft:hover {
    background: #e2eaff;
    color: #2455de
}

.stat-card,
.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 3px 14px #1a2b4a04
}

.stat-card {
    padding: 20px;
    height: 100%;
    min-height: 135px
}

.stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #758197;
    font-size: 12px;
    font-weight: 650
}

.stat-icon {
    width: 39px;
    height: 39px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px
}

.tone-blue {
    background: #eaf0ff;
    color: #3568f5
}

.tone-orange {
    background: #fff1df;
    color: #e49a32
}

.tone-green {
    background: #e2f8ef;
    color: #15996b
}

.tone-purple {
    background: #f0eaff;
    color: #8a5be8
}

.stat-number {
    font-size: 27px;
    font-weight: 850;
    letter-spacing: -1px;
    margin-top: 13px;
    line-height: 1.1
}

.stat-foot {
    font-size: 11px;
    color: var(--muted);
    margin-top: 8px
}

.panel {
    padding: 22px
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px
}

.panel-heading h2 {
    font-size: 15px;
    font-weight: 800;
    margin: 0
}

.panel-heading p {
    font-size: 11px;
    color: var(--muted);
    margin: 5px 0 0
}

.table {
    --bs-table-bg: transparent;
    vertical-align: middle
}

.table thead th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #9aa5b5;
    font-weight: 800;
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    white-space: nowrap
}

.table tbody td {
    font-size: 12px;
    color: #526078;
    padding: 14px 10px;
    border-color: #f0f2f7
}

.item-name {
    font-weight: 750;
    color: var(--ink);
    font-size: 12px
}

.item-code {
    font-size: 10px;
    color: #9aa5b5;
    margin-top: 4px
}

.item-symbol {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f0f4ff;
    color: #5577d8;
    font-size: 16px
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 750
}

.status-low {
    background: #fff0ed;
    color: #dc5c4e
}

.status-good {
    background: #e6f8ef;
    color: #1b9869
}

.status-neutral {
    background: #eef2f8;
    color: #6c7890
}

.progress {
    height: 5px;
    background: #edf0f5;
    border-radius: 5px
}

.progress-bar {
    background: var(--blue);
    border-radius: 5px
}

.alert-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid #f0f2f7
}

.alert-row:last-child {
    border-bottom: 0;
    padding-bottom: 0
}

.alert-mark {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff0ed;
    color: #e15c4c
}

.alert-title {
    font-size: 12px;
    font-weight: 750
}

.alert-sub {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px
}

.alert-qty {
    margin-left: auto;
    text-align: right;
    font-size: 12px;
    font-weight: 800;
    color: #dc5c4e
}

.activity-dot {
    width: 9px;
    height: 9px;
    background: #3568f5;
    border: 3px solid #e9efff;
    border-radius: 50%;
    box-sizing: content-box
}

.activity-row {
    display: flex;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f0f2f7
}

.activity-row:last-child {
    border: 0
}

.activity-content {
    flex: 1
}

.activity-title {
    font-size: 12px;
    font-weight: 700
}

.activity-sub {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px
}

.empty-state {
    padding: 30px;
    text-align: center;
    color: var(--muted)
}

.form-control,
.form-select {
    border-color: #e3e8f0;
    border-radius: 9px;
    font-size: 13px;
    padding: 10px 12px
}

.form-control:focus,
.form-select:focus {
    border-color: #9bb3ff;
    box-shadow: 0 0 0 .2rem #3568f51c
}

.login-page {
    min-height: calc(100vh / 0.75);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #fff;
    
}

.login-art {
        /* Login background image */
    background-image:url(img/princewallpaper.png);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 55px;
   
    color: white;
    overflow: hidden;
    position: relative

}

.login-art:after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid #ffffff2b;
    border-radius: 50%;
    right: -170px;
    top: 22%;
    box-shadow: 0 0 0 55px #ffffff0a, 0 0 0 110px #ffffff08
}

.login-art h1 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -1.5px;
    max-width: 520px
}

.login-art p {
    color: #d9e3ff;
    max-width: 390px;
    line-height: 1.8
}

.login-visual {
    position: relative;
    z-index: 1;
    background: #ffffff17;
    border: 1px solid #ffffff30;
    border-radius: 20px;
    padding: 22px;
    max-width: 440px;
    backdrop-filter: blur(8px);
    box-shadow: 0 25px 50px #102b8233
}

.visual-bar {
    height: 7px;
    background: #ffffff35;
    border-radius: 8px;
    margin: 12px 0
}

.visual-bar span {
    display: block;
    height: 100%;
    border-radius: 8px;
    background: #fff
}

.login-main {
    display: grid;
    place-items: center;
    
    min-height: 150vh;
    padding: 2rem 1rem;

}

.login-form-wrap {
    width: 100%;
    max-width: 390px
}

.login-form-wrap h2 {
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -.8px;
    margin: 25px 0 8px
}

.login-form-wrap .form-label {
    font-size: 12px;
    font-weight: 750
}

.login-form-wrap .form-control {
    padding: 13px
}

.login-footer {
    font-size: 11px;
    color: #9aa5b5;
    margin-top: 28px
}

.alert {
    font-size: 13px
}

.table-responsive {
    border-radius: 10px
}

.section-label {
    font-size: 10px;
    letter-spacing: 1px;
    color: #9aa5b5;
    font-weight: 800
}

@media(max-width:991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .2s
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: 0 0 0 100vw #17243a55
    }

    .main-area {
        margin-left: 0
    }

    .topbar {
        padding: 0 20px
    }

    .page-content {
        padding: 24px 20px
    }

    .login-art {
        padding: 35px
    }

    .login-page {
        grid-template-columns: 1fr
    }

    .login-art {
        min-height: 340px
    }

    .login-visual {
        display: none
    }
}

@media(max-width:575px) {
    .topbar {
        height: 72px
    }

    .page-content {
        padding: 20px 14px
    }

    .welcome-row {
        align-items: flex-start;
        flex-direction: column
    }

    .panel {
        padding: 16px
    }

    .login-art {
        min-height: 300px;
        padding: 25px
    }

    .login-main {
        padding: 28px 22px
    }
    .topbar {
    position: relative;
    z-index: 1050;
}

.topbar .dropdown {
    position: relative;
}

.topbar .dropdown-menu {
    z-index: 1060 !important;
    min-width: 350px;
    max-height: 450px;
    overflow-y: auto;
}

.topbar .icon-btn {
    cursor: pointer;
    position: relative;
    pointer-events: auto;
}

.topbar .dropdown-item {
    white-space: normal;
}

/* =========================================
   MOBILE NAVIGATION MENU
========================================= */
@media (max-width: 991.98px) {

    #menuToggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        cursor: pointer;
        position: relative;
        z-index: 1200;
    }

    #menuToggle:focus {
        box-shadow: none;
    }

    .dropdown-menu {
        z-index: 1300 !important;
    }

    .dropdown-menu .dropdown-item {
        font-size: 14px;
        font-weight: 500;
        color: #334155;
        transition: all 0.2s ease;
    }

    .dropdown-menu .dropdown-item:hover {
        background: #f1f5f9;
        color: #2563eb;
    }

    .dropdown-menu .dropdown-item i {
        width: 20px;
        font-size: 16px;
    }

    .dropdown-menu .dropdown-item.text-danger {
        color: #dc3545 !important;
    }

}
   
}

/* =====================================
   INVENTORY HISTORY MODAL
===================================== */

.history-stat {
    background: #f8faff;
    border: 1px solid #e5eaf2;
    border-radius: 13px;
    padding: 17px;
    height: 100%;
}

.history-stat-label {
    color: #718096;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
}

.history-stat-value {
    color: #17233b;
    font-size: 25px;
    font-weight: 800;
    margin-top: 7px;
}

.history-table {
    min-width: 1250px;
}

.history-table thead th {
    background: #f5f7fb;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 13px;
    white-space: nowrap;
    border-bottom: 1px solid #e5eaf2;
}

.history-table tbody td {
    padding: 12px;
    font-size: 12px;
    color: #43516a;
    border-bottom: 1px solid #edf0f5;
}

/* TRANSACTION TYPE BADGES */

.history-type,
.history-mode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid transparent;
}

.history-type.in {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.history-type.out {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.history-type.neutral {
    background: #e0f2fe;
    color: #075985;
    border-color: #7dd3fc;
}

/* TRANSACTION MODE COLORS */

.history-mode.record {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.history-mode.transfer {
    background: #ede9fe;
    color: #6d28d9;
    border-color: #c4b5fd;
}

.history-mode.request {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.history-mode.manual {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.history-mode.default {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.history-change {
    font-weight: 800;
    white-space: nowrap;
}

.history-change.positive {
    color: #15803d !important;
}

.history-change.negative {
    color: #dc2626 !important;
}

/* ==========================================
   ITEM MODAL: scrollable, hidden scrollbar
========================================== */

/* the /0.75 compensates for body { zoom: 75% } */
#itemModal .modal-dialog {
    height: calc(100vh / 0.75 - 40px);
    max-height: calc(100vh / 0.75 - 40px);
    margin: 20px auto;
}

#itemModal .modal-content {
    height: 100%;
    overflow: hidden;
}

/* the form must be the flex column holding header/body/footer */
#itemModal #itemForm {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

#itemModal .modal-header,
#itemModal .modal-footer {
    flex: 0 0 auto;
}

#itemModal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;

    /* hide scrollbar */
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* old Edge/IE */
}

#itemModal .modal-body::-webkit-scrollbar {
    display: none;               /* Chrome, Edge, Safari */
}

@media (max-width: 576px) {
    #itemModal .modal-dialog {
        height: calc(100dvh - 16px);
        max-height: calc(100dvh - 16px);
        margin: 8px;
    }
}
/* ==========================================
   ADD / EDIT INVENTORY MODAL SCROLL FIX
========================================== */



.modal-backdrop {
    width: calc(100vw / 0.75) !important;
    height: calc(100vh / 0.75) !important;
}

#itemModal .modal-content {
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#itemModal .inventory-edit-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

#itemModal .modal-header {
    flex: 0 0 auto;
}

#itemModal .inventory-edit-body {
    flex: 1 1 auto;
    min-height: 0;
    height: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

#itemModal .modal-footer {
    flex: 0 0 auto;
    background: #fff;
}

/* Visible scrollbar for Chrome, Edge and Safari */
#itemModal .inventory-edit-body::-webkit-scrollbar {
    width: 8px;
}

#itemModal .inventory-edit-body::-webkit-scrollbar-track {
    background: #f1f3f7;
}

#itemModal .inventory-edit-body::-webkit-scrollbar-thumb {
    background: #aab4c5;
    border-radius: 10px;
}

#itemModal .inventory-edit-body::-webkit-scrollbar-thumb:hover {
    background: #77849a;
}

/* MOBILE */
@media (max-width: 576px) {

    #itemModal .inventory-edit-dialog {
        height: calc(100dvh - 16px);
        max-height: calc(100dvh - 16px);
        margin: 8px;
    }

    #itemModal .modal-header,
    #itemModal .modal-footer {
        padding: 13px 15px;
    }

    #itemModal .inventory-edit-body {
        padding: 16px;
    }

}
.sm-hero {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    flex-wrap:wrap;
    padding:25px 28px;
    border:1px solid #e5eaf2;
    border-radius:18px;
    background:linear-gradient(115deg,#fff,#effaf3);
    box-shadow:0 8px 24px rgba(24,39,75,.045);
}

.sm-hero h1 {
    color:#17233b;
    font-size:clamp(1.5rem,2.4vw,2rem);
    font-weight:800;
    letter-spacing:-.04em;
    margin:4px 0 5px;
}

.sm-eyebrow {
    color:#27834f;
    font-size:.68rem;
    font-weight:800;
    letter-spacing:.13em;
}

.sm-hero .btn {
    min-height:43px;
    border-radius:10px;
    font-weight:700;
}

.sm-metrics {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:13px;
}

.sm-card {
    padding:18px;
    background:#fff;
    border:1px solid #e7ecf3;
    border-radius:15px;
    box-shadow:0 5px 18px rgba(24,39,75,.035);
    min-width:0;
}

.sm-card-top {
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:#65738b;
    font-size:.8rem;
    font-weight:700;
}

.sm-card-top i {
    font-size:1.25rem;
}

.sm-value {
    color:#17233b;
    font-size:clamp(1.35rem,2vw,1.85rem);
    font-weight:800;
    margin-top:12px;
    overflow-wrap:anywhere;
}

.sm-foot {
    color:#929eaf;
    font-size:.73rem;
    margin-top:4px;
}

.sm-panel {
    background:#fff;
    border:1px solid #e7ecf3;
    border-radius:16px;
    box-shadow:0 6px 22px rgba(24,39,75,.04);
    padding:21px;
}

.sm-panel.p-0 {
    padding:0;
}

.sm-panel-head {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
    padding:19px 22px 15px;
}

.sm-panel-head h2 {
    color:#17233b;
    font-size:1.08rem;
    font-weight:800;
    margin:0 0 3px;
}

.sm-panel-head p {
    color:#718096;
    font-size:.82rem;
    margin:0;
}

.sm-panel .form-label {
    color:#53627a;
    font-size:.78rem;
    font-weight:700;
}

.sm-panel .form-control,
.sm-panel .form-select {
    min-height:42px;
    border-color:#dfe5ee;
    border-radius:9px;
    font-size:.88rem;
}

.sm-table thead th {
    background:#f7f9fc;
    color:#66748b;
    font-size:.69rem;
    font-weight:800;
    letter-spacing:.045em;
    text-transform:uppercase;
    padding:12px;
    border-bottom:1px solid #e7ecf3;
    white-space:nowrap;
}

.sm-table tbody td {
    color:#43516a;
    font-size:.83rem;
    padding:12px;
}

.sm-bar {
    flex:1;
    height:8px;
    border-radius:6px;
    background:#eef1f6;
    overflow:hidden;
    min-width:45px;
}

.sm-bar span {
    display:block;
    height:100%;
    background:#2f9e6b;
    border-radius:6px;
}

.sm-total {
    font-size:1.1rem;
    font-weight:800;
    color:#16834a;
    text-align:right;
}

.sm-total small {
    display:block;
    font-size:.7rem;
    font-weight:500;
    color:#8793a6;
}

.sm-overview-row {
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:14px 0;
    border-bottom:1px solid #edf0f5;
    font-size:.84rem;
    color:#66748b;
}

.sm-overview-row strong {
    color:#26344d;
    text-align:right;
}

.sm-overview-row:last-child {
    border-bottom:0;
}

.sm-note {
    padding:13px 16px;
    background:#f7f9fc;
    border:1px solid #e7ecf3;
    border-radius:10px;
    color:#718096;
    font-size:.8rem;
}

@media(max-width:991.98px) {
    .sm-metrics {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:575.98px) {
    .sm-hero {
        padding:20px;
    }

    .sm-hero > .d-flex {
        width:100%;
    }

    .sm-hero > .d-flex .btn {
        flex:1 1 auto;
    }

    .sm-metrics {
        gap:9px;
    }

    .sm-card {
        padding:13px;
    }
}

/* ==========================================================
==================THIS IS CSS FOR INVENTORY =================
============================================================*/
:root {
    --inv-ink:#17233b;
    --inv-muted:#718096;
    --inv-line:#e7ecf3;
    --inv-blue:#3157d5;
}

.inventory-hero {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    padding:25px 28px;
    border:1px solid #e5eaf2;
    border-radius:18px;
    background:linear-gradient(115deg,#fff 0%,#f5f8ff 100%);
    box-shadow:0 8px 24px rgba(24,39,75,.045);
}

.inventory-hero h1 {
    color:var(--inv-ink);
    font-size:clamp(1.55rem,2.4vw,2.05rem);
    font-weight:800;
    letter-spacing:-.045em;
    margin:4px 0 5px;
}

.inventory-eyebrow {
    color:#60729a;
    font-size:.68rem;
    font-weight:800;
    letter-spacing:.13em;
}

.inventory-hero .btn {
    min-height:43px;
    border-radius:10px;
    font-weight:700;
    padding-inline:16px;
}

.inventory-metrics {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:13px;
}

.inventory-metric {
    min-width:0;
    min-height:126px;
    padding:17px 18px 14px;
    background:#fff;
    border:1px solid var(--inv-line);
    border-radius:15px;
    box-shadow:0 5px 18px rgba(24,39,75,.035);
}

.metric-topline {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}

.metric-label {
    color:#65738b;
    font-size:.78rem;
    font-weight:650;
}

.metric-icon {
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:#eef2ff;
    color:#3157d5;
}

.metric-value {
    color:var(--inv-ink);
    font-size:clamp(1.2rem,1.7vw,1.65rem);
    font-weight:800;
    margin-top:12px;
    overflow-wrap:anywhere;
}

.metric-foot {
    color:#9aa5b5;
    font-size:.68rem;
    margin-top:3px;
}

.inventory-filter-panel,
.inventory-table-panel {
    border:1px solid var(--inv-line);
    border-radius:16px;
    box-shadow:0 6px 22px rgba(24,39,75,.04);
    padding:21px;
    background:#fff;
}

.inventory-filter-panel .panel-heading h2,
.inventory-table-panel .panel-heading h2 {
    color:var(--inv-ink);
    font-size:1.08rem;
    font-weight:800;
    margin:0 0 4px;
}

.inventory-filter-panel .panel-heading p,
.inventory-table-panel .panel-heading p {
    color:var(--inv-muted);
    font-size:.82rem;
}

.inventory-filter-panel .form-label,
.modal-body .form-label {
    color:#53627a;
    font-size:.78rem;
    font-weight:700;
}

.inventory-filter-panel .form-control,
.inventory-filter-panel .form-select,
.modal-body .form-control,
.modal-body .form-select {
    min-height:42px;
    border-color:#dfe5ee;
    border-radius:9px;
    box-shadow:none;
}

.inventory-table-panel {
    padding:0;
    overflow:hidden;
}

.inventory-table-panel > .panel-heading {
    padding:21px 22px 13px;
    margin:0;
}

.inventory-table-panel .table-responsive {
    border-top:1px solid var(--inv-line);
}

.inventory-table-panel table {
    min-width:1500px;
}

.inventory-table-panel thead th {
    background:#f7f9fc;
    color:#66748b;
    font-size:.69rem;
    font-weight:800;
    text-transform:uppercase;
    padding:13px 12px;
    white-space:nowrap;
}

.inventory-table-panel tbody td {
    color:#43516a;
    font-size:.82rem;
    padding:13px 12px;
    border-color:#eef1f5;
}

.inventory-table-panel tbody tr:hover {
    background:#f8faff;
}

.item-symbol {
    width:39px;
    height:39px;
    border-radius:11px;
    display:grid;
    place-items:center;
    background:#eef2ff;
    color:#3157d5;
    flex:0 0 auto;
}

.item-name {
    color:#202d45;
    font-weight:750;
}

.item-code {
    color:#8995a8;
    font-size:.72rem;
    margin-top:2px;
}

.stock-status {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
    white-space:nowrap;
    border:1px solid transparent;
}

.stock-in {
    background:#dcfce7;
    color:#166534;
    border-color:#86efac;
}

.stock-low {
    background:#fef3c7;
    color:#92400e;
    border-color:#fcd34d;
}

.stock-out {
    background:#fee2e2;
    color:#991b1b;
    border-color:#fca5a5;
}

.branch-stock-card {
    border:1px solid #e3e8f0;
    border-radius:12px;
    padding:15px;
    background:#fafbfe;
}

.branch-stock-fields {
    border-top:1px solid #e9edf3;
    padding-top:13px;
}

.branch-stock-fields.disabled {
    opacity:.45;
    pointer-events:none;
}

.history-stat {
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:14px 16px;
    height:100%;
}

.history-stat-label {
    color:#718096;
    font-size:.68rem;
    letter-spacing:.06em;
    font-weight:750;
}

.history-stat-value {
    font-size:1.45rem;
    font-weight:800;
    margin-top:5px;
}

.history-table {
    min-width:1050px;
}

.history-type {
    display:inline-flex;
    align-items:center;
    border-radius:20px;
    padding:5px 9px;
    font-size:11px;
    font-weight:700;
    white-space:nowrap;
}

.history-type.in {
    background:#dcfce7;
    color:#166534;
}

.history-type.out {
    background:#fee2e2;
    color:#991b1b;
}

.history-type.neutral {
    background:#e0f2fe;
    color:#075985;
}

.history-change {
    font-weight:700;
    white-space:nowrap;
}

.history-change.positive { color:#15803d; }
.history-change.negative { color:#dc2626; }

.empty-state {
    padding:38px 15px;
    color:#8793a6;
    text-align:center;
}

@media(max-width:1199.98px) {
    .inventory-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media(max-width:767.98px) {
    .inventory-hero {
        align-items:flex-start;
        flex-direction:column;
        padding:21px;
    }

    .inventory-metrics {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:9px;
    }

    .inventory-metric {
        min-height:116px;
        padding:13px;
    }

    .metric-value { font-size:1.2rem; }

    .inventory-filter-panel,
    .inventory-table-panel {
        border-radius:13px;
    }

    .inventory-table-panel { padding:0; }
    .inventory-table-panel > .panel-heading { padding:17px 16px 11px; }
}



