        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: Arial, sans-serif;
            background: #f5f8fc;
            color: #0b1d3a;
        }
        /* =========================
           MAIN LAYOUT
        ========================== */
        .app {
            display: flex;
            min-height: 100vh;
        }
        /* =========================
           SIDEBAR
        ========================== */
        .sidebar {
            width: 200px;
            height: 100vh;
            background: linear-gradient(
                180deg,
                #102b42 0%,
                #071a2b 100%
            );
            color: white;
            position: fixed;
            left: 0;
            top: 0;
            padding: 20px 15px;
        }
        .logo {
            text-align: center;
            margin-bottom: 25px;
        }
        .logo-box {
            width: 55px;
            height: 55px;
            margin: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 25px;
            font-weight: bold;
            border-radius: 12px;
            background: linear-gradient(
                135deg,
                #168cff,
                #7545ef
            );
        }
        .logo h2 {
            font-size: 18px;
            margin-top: 8px;
        }
        .logo p {
            font-size: 10px;
            color: #b8c6d2;
            margin-top: 4px;
        }
        /* =========================
           MENU
        ========================== */
        .menu {
            list-style: none;
        }
        .menu li {
            margin-bottom: 5px;
        }
        .menu a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 12px;
            border-radius: 7px;
            text-decoration: none;
            color: #e8f1fa;
            font-size: 14px;
            transition: .2s;
        }
        .menu a:hover {
            background: #0878f9;
        }
        .menu .active {
            background: linear-gradient(
                90deg,
                #0878f9,
                #0869e7
            );
        }
        .menu-icon {
            width: 20px;
            font-size: 17px;
        }
        /* =========================
           MAIN CONTENT
        ========================== */
        .main {
            margin-left: 200px;
            width: calc(100% - 200px);
            min-height: 100vh;
        }
        /* =========================
           TOP HEADER
        ========================== */
        .topbar {
            height: 65px;
            background: white;
            border-bottom: 1px solid #e1e9f2;
            display: flex;
            align-items: center;
            padding: 0 25px;
            gap: 25px;
        }
        .menu-button {
            font-size: 24px;
            cursor: pointer;
        }
        .search-box {
            width: 520px;
            padding: 11px 15px;
            border: 1px solid #d5e1ef;
            border-radius: 8px;
            outline: none;
        }
        .profile {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #0b2034;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        .profile-name {
            font-weight: bold;
        }
        .profile-role {
            font-size: 11px;
            color: #64748b;
            margin-top: 3px;
        }
        /* =========================
           DASHBOARD
        ========================== */
        .content {
            padding: 22px;
        }
        .welcome {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .welcome h1 {
            font-size: 28px;
        }
        .welcome p {
            color: #64748b;
            margin-top: 5px;
        }
        .date {
            text-align: right;
            font-weight: bold;
        }
        .date span {
            display: block;
            color: #64748b;
            font-size: 12px;
            margin-top: 5px;
        }
        /* =========================
           DASHBOARD CARDS
        ========================== */
        .cards {
            display: grid;
            grid-template-columns:
            repeat(6, 1fr);
            gap: 12px;
        }
        .card {
            background: white;
            border: 1px solid #e1e9f2;
            border-radius: 10px;
            padding: 15px;
            display: flex;
            gap: 12px;
            align-items: center;
            min-height: 105px;
            box-shadow:
            0 2px 7px rgba(0,0,0,.04);
        }
        .card-icon {
            width: 55px;
            height: 55px;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 25px;
            color: white;
            flex-shrink: 0;
        }
        .blue {
            background:
            linear-gradient(135deg,#1599ff,#075cf3);
        }
        .green {
            background:
            linear-gradient(135deg,#1ada93,#03ac61);
        }
        .orange {
            background:
            linear-gradient(135deg,#ffc128,#ff8c00);
        }
        .purple {
            background:
            linear-gradient(135deg,#9a4cff,#6720e6);
        }
        .red {
            background:
            linear-gradient(135deg,#ff4662,#ff123d);
        }
        .cyan {
            background:
            linear-gradient(135deg,#13d5bc,#04a48d);
        }
        .card-title {
            font-size: 12px;
            font-weight: bold;
        }
        .card-number {
            font-size: 24px;
            font-weight: bold;
            margin-top: 5px;
        }
        .card-info {
            font-size: 10px;
            color: #64748b;
            margin-top: 5px;
        }
        /* =========================
           MOBILE
        ========================== */
/* =========================
   SALES CHART SECTION
========================== */
.sales-section {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}
.sales-panel {
    background: #ffffff;
    border: 1px solid #e1e9f2;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 7px rgba(0,0,0,.04);
    min-width: 0;
}
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}
.panel-header h3 {
    font-size: 17px;
    margin: 0;
    color: #0b1d3a;
}
.panel-header p {
    margin-top: 5px;
    color: #64748b;
    font-size: 11px;
}
.date-filter,
.year-filter {
    border: 1px solid #d7e2ee;
    background: #ffffff;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 11px;
    white-space: nowrap;
}
.sales-chart {
    height: 220px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    padding: 25px 7px 30px;
    border-left: 1px solid #dce5ef;
    border-bottom: 1px solid #dce5ef;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 43px,
            #e9eff5 44px
        );
}
.sales-bar {
    flex: 1;
    min-width: 5px;
    background: linear-gradient(
        180deg,
        #38b9ff,
        #0878f9
    );
    border-radius: 4px 4px 0 0;
    position: relative;
    box-shadow:
        inset -2px 0 3px rgba(0,0,0,.08);
}
.sales-bar span {
    position: absolute;
    top: -17px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 9px;
    font-weight: bold;
    color: #0b1d3a;
}
.sales-bar small {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 8px;
    line-height: 10px;
    color: #48617e;
}
.month-chart {
    height: 220px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 25px 5px 30px;
    border-left: 1px solid #dce5ef;
    border-bottom: 1px solid #dce5ef;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 43px,
            #e9eff5 44px
        );
}
.month-bar {
    flex: 1;
    min-width: 10px;
    position: relative;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(
        180deg,
        #b05cff,
        #7025eb
    );
    box-shadow:
        inset -2px 0 3px rgba(0,0,0,.08);
}
.month-bar span {
    position: absolute;
    top: -17px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 9px;
    font-weight: bold;
    color: #0b1d3a;
}
.month-bar small {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #48617e;
}
/* =========================
   STOCK & TOP SALES
========================== */
.overview-section {
    display: grid;
    grid-template-columns: 0.85fr 1.25fr 1.25fr;
    gap: 14px;
    margin-top: 14px;
}
.overview-box {
    background: #ffffff;
    border: 1px solid #e1e9f2;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 2px 7px rgba(0,0,0,.04);
    min-width: 0;
}
.overview-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.overview-title h3 {
    margin: 0;
    font-size: 16px;
    color: #0b1d3a;
}
.overview-title a {
    font-size: 11px;
    color: #0878f9;
    text-decoration: none;
    white-space: nowrap;
}
.overview-title a:hover {
    text-decoration: underline;
}
.stock-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.donut-chart {
    width: 135px;
    height: 135px;
    border-radius: 50%;
   background: conic-gradient(
    #08b96c 0% 33%,
    #ffab16 33% 66%,
    #ff3151 66% 100%
);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px auto 15px;
    position: relative;
}
.donut-chart::after {
    content: "";
    position: absolute;
    width: 86px;
    height: 86px;
    background: #ffffff;
    border-radius: 50%;
}
.donut-center {
    position: relative;
    z-index: 2;
    text-align: center;
}
.donut-center strong {
    display: block;
    font-size: 24px;
    color: #0b1d3a;
}
.donut-center span {
    display: block;
    font-size: 9px;
    color: #64748b;
    margin-top: 2px;
}
.stock-info {
    width: 100%;
    max-width: 230px;
}
.stock-row {
    display: grid;
    grid-template-columns: 1fr 42px 38px;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    padding: 4px 0;
}
.stock-row span {
    display: flex;
    align-items: center;
    gap: 7px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.green-dot {
    background: #08b96c;
}
.orange-dot {
    background: #ffab16;
}
.red-dot {
    background: #ff3151;
}
.stock-green {
    color: #08a85f;
}
.stock-orange {
    color: #e99500;
}
.stock-red {
    color: #ff3151;
}
.table-wrap {
    width: 100%;
    overflow-x: auto;
}
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
.dashboard-table thead {
    background: #f3f7fb;
}
.dashboard-table th {
    color: #0b1d3a;
    font-weight: 700;
    text-align: left;
    padding: 8px 7px;
    white-space: nowrap;
}
.dashboard-table td {
    padding: 7px;
    border-bottom: 1px solid #e8eef5;
    color: #19375b;
    vertical-align: middle;
}
.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}
.dashboard-table tbody tr:hover {
    background: #f8fbff;
}
.product-name {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.product-thumb {
    width: 25px;
    height: 25px;
    border-radius: 5px;
    background: #eef4f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
@media (max-width: 1200px) {
    .overview-section {
        grid-template-columns: 1fr 1fr;
    }
    .stock-box {
        grid-column: span 2;
    }
}
@media (max-width: 700px) {
    .overview-section {
        grid-template-columns: 1fr;
    }
    .stock-box {
        grid-column: auto;
    }
    .overview-box {
        padding: 12px;
    }
    .dashboard-table {
        min-width: 430px;
    }
}
/* =========================
   STEP 7 - BOTTOM DASHBOARD
========================= */
.bottom-dashboard-section {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr 0.9fr;
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 20px;
}
.bottom-box {
    background: #ffffff;
    border: 1px solid #e1e9f2;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 2px 7px rgba(0,0,0,.04);
    min-width: 0;
}
.bottom-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.bottom-title h3 {
    margin: 0;
    font-size: 16px;
    color: #0b1d3a;
}
.bottom-title a {
    color: #0878f9;
    font-size: 11px;
    text-decoration: none;
    white-space: nowrap;
}
.bottom-title a:hover {
    text-decoration: underline;
}
.status-low {
    display: inline-block;
    background: #fff1d6;
    color: #ed8b00;
    border-radius: 20px;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.quick-btn {
    border: none;
    border-radius: 8px;
    min-height: 72px;
    padding: 9px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}
.quick-btn span {
    font-size: 25px;
    line-height: 25px;
}
.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,.10);
}
.quick-blue {
    background: #eaf4ff;
    color: #0878f9;
}
.quick-green {
    background: #e8faf1;
    color: #00a95c;
}
.quick-orange {
    background: #fff4df;
    color: #ff8400;
}
.quick-purple {
    background: #f2eaff;
    color: #7025eb;
}
.quick-red {
    background: #ffe9ec;
    color: #ff3151;
}
.quick-lightblue {
    background: #e8f5ff;
    color: #0878f9;
}
@media (max-width: 1200px) {
    .bottom-dashboard-section {
        grid-template-columns: 1fr 1fr;
    }
    .quick-actions-box {
        grid-column: span 2;
    }
}
@media (max-width: 700px) {
    .bottom-dashboard-section {
        grid-template-columns: 1fr;
    }
    .quick-actions-box {
        grid-column: auto;
    }
    .bottom-box {
        padding: 12px;
    }
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-btn {
        min-height: 68px;
    }
}
/* =========================
   PRODUCTS PAGE DESIGN
========================= */
.products-page {
    display: none;
    padding: 22px;
    width: auto;
max-width: 100%;
overflow-x: hidden;
    box-sizing: border-box;
}
.products-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}
.products-page-header h2 {
    margin: 0;
    color: #0b1d3a;
    font-size: 26px;
    font-weight: 700;
}
.products-page-header p {
    margin: 5px 0 0;
    color: #66758c;
    font-size: 13px;
}
.add-product-btn {
    border: 0;
    background: #0878f9;
    color: #fff;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(8,120,249,.20);
}
.add-product-btn:hover {
    background: #0068dc;
}
.product-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.product-summary-card {
    background: #fff;
    border: 1px solid #e1e9f2;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 7px rgba(0,0,0,.04);
}
.product-summary-card span {
    display: block;
    color: #66758c;
    font-size: 12px;
    margin-bottom: 7px;
}
.product-summary-card strong {
    display: block;
    color: #0b1d3a;
    font-size: 24px;
}
.product-list-box {
    background: #fff;
    border: 1px solid #e1e9f2;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 7px rgba(0,0,0,.04);
}
.product-list-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.product-list-top h3 {
    margin: 0;
    color: #0b1d3a;
    font-size: 17px;
}
.product-list-top p {
    margin: 4px 0 0;
    color: #718096;
    font-size: 11px;
}
.product-search-area {
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-search-area input,
.product-search-area select {
    height: 38px;
    border: 1px solid #d9e3ef;
    border-radius: 7px;
    background: #fff;
    color: #0b1d3a;
    outline: none;
    padding: 0 11px;
    font-size: 12px;
}
.product-search-area input {
    width: 220px;
}
.product-search-area input:focus,
.product-search-area select:focus {
    border-color: #0878f9;
}
.product-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.product-management-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 950px;
}
.product-management-table th {
    background: #f3f7fb;
    color: #0b1d3a;
    padding: 11px 9px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.product-management-table td {
    border-bottom: 1px solid #e7edf4;
    padding: 10px 9px;
    color: #17365d;
    font-size: 11px;
    vertical-align: middle;
}
.product-management-table tbody tr:hover {
    background: #f8fbff;
}
.product-list-image {
    width: 38px;
    height: 38px;
    background: #f0f5fa;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.product-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.product-status.in-stock {
    background: #ddf8e9;
    color: #00a85a;
}
.product-status.low-stock {
    background: #fff0d5;
    color: #ed8b00;
}
.product-status.out-stock {
    background: #ffe4e8;
    color: #ff3151;
}
.product-edit-btn,
.product-delete-btn {
    border: 0;
    border-radius: 6px;
    padding: 6px 9px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}
.product-edit-btn {
    background: #e8f3ff;
    color: #0878f9;
}
.product-delete-btn {
    background: #ffe8ec;
    color: #ff3151;
    margin-left: 4px;
}
.product-edit-btn:hover {
    background: #d6eaff;
}
.product-delete-btn:hover {
    background: #ffd5dc;
}
/* =========================
   AVAILABLE STOCK OVERVIEW
========================= */
.available-stock-box{
    background:#fff;
    border:1px solid #dbe6f2;
    border-radius:12px;
    padding:16px;
    margin-bottom:18px;
    box-shadow:0 2px 7px rgba(0,0,0,.04);
}
.available-stock-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.available-stock-head h3{margin:0;color:#0b1d3a;font-size:17px}
.available-stock-head p{margin:4px 0 0;color:#718096;font-size:11px}
.available-stock-totals{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.available-stock-pill{min-width:145px;background:#f3f8ff;border:1px solid #d9e9fb;border-radius:9px;padding:9px 12px}
.available-stock-pill span{display:block;color:#66758c;font-size:10px;margin-bottom:3px}
.available-stock-pill strong{display:block;color:#0b1d3a;font-size:17px}
.available-stock-table-wrap{width:100%;overflow-x:auto;max-height:260px;overflow-y:auto;border:1px solid #edf2f7;border-radius:8px}
.available-stock-table{width:100%;border-collapse:collapse;min-width:620px;font-size:11px}
.available-stock-table th{position:sticky;top:0;z-index:1;background:#f3f7fb;color:#0b1d3a;text-align:left;padding:9px 10px;white-space:nowrap}
.available-stock-table td{padding:9px 10px;border-bottom:1px solid #edf2f7;color:#17365d}
.available-stock-table tbody tr:last-child td{border-bottom:0}
.available-stock-table .qty{font-weight:800;color:#0878f9}
.available-stock-empty{text-align:center!important;color:#718096!important;padding:20px!important}
@media(max-width:700px){.available-stock-head{align-items:flex-start;flex-direction:column}.available-stock-totals{width:100%;justify-content:flex-start}.available-stock-pill{flex:1;min-width:130px}.available-stock-box{padding:11px}}
/* =========================
   PRODUCTS TABLET
========================= */
@media (max-width: 1100px) {
    .product-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-list-top {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* =========================
   PRODUCTS MOBILE
========================= */
@media (max-width: 600px) {
    .products-page {
        padding: 14px 10px;
    }
    .products-page-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .products-page-header h2 {
        font-size: 21px;
    }
    .add-product-btn {
        width: 100%;
    }
    .product-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .product-summary-card {
        padding: 12px;
    }
    .product-summary-card strong {
        font-size: 20px;
    }
    .product-list-box {
        padding: 11px;
    }
    .product-search-area {
        width: 100%;
        flex-direction: column;
    }
    .product-search-area input,
    .product-search-area select {
        width: 100%;
        box-sizing: border-box;
    }
}
/* =========================
   ADD PRODUCT MODAL
========================= */
.product-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 35, 55, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.product-modal.show {
    display: flex;
}
.product-modal-box {
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.product-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.product-modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #0b1d3a;
}
.product-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    font-size: 22px;
    cursor: pointer;
}
.product-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.product-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.product-form-group.full-width {
    grid-column: 1 / -1;
}
.product-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}
.product-form-group input,
.product-form-group select,
.product-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dbe3ee;
    border-radius: 9px;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
}
.product-form-group input:focus,
.product-form-group select:focus,
.product-form-group textarea:focus {
    border-color: #1479f8;
    box-shadow: 0 0 0 3px rgba(20,121,248,0.10);
}
.product-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}
.product-cancel-btn,
.product-save-btn {
    padding: 11px 20px;
    border-radius: 9px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.product-cancel-btn {
    background: #eef2f7;
    color: #334155;
}
.product-save-btn {
    background: #1479f8;
    color: white;
}
@media (max-width: 1100px) {
    .sales-section {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .sales-panel {
        padding: 12px;
    }
    .panel-header {
        flex-direction: column;
    }
    .sales-chart {
        gap: 3px;
        height: 190px;
        overflow: hidden;
    }
    .sales-bar span {
        font-size: 7px;
    }
    .sales-bar small {
        font-size: 6px;
    }
    .month-chart {
        height: 190px;
        gap: 5px;
    }
    .month-bar span {
        font-size: 7px;
    }
    .month-bar small {
        font-size: 7px;
    }
}
        @media (max-width: 900px) {
            .sidebar {
                width: 70px;
                padding:
                15px 8px;
            }
            .logo h2,
            .logo p,
            .menu-text {
                display: none;
            }
            .logo-box {
                width: 45px;
                height: 45px;
                font-size: 20px;
            }
            .menu a {
                justify-content: center;
                padding: 12px 5px;
            }
            .menu-icon {
                width: auto;
            }
            .main {
                margin-left: 70px;
                width:
                calc(100% - 70px);
            }
            .search-box {
                width: 45%;
            }
            .cards {
                grid-template-columns:
                repeat(2,1fr);
            }
        }
        @media (max-width: 600px) {
            .content {
                padding: 12px;
            }
            .profile-name,
            .profile-role {
                display: none;
            }
            .welcome {
                display: block;
            }
            .date {
                text-align: left;
                margin-top: 15px;
            }
            .cards {
                grid-template-columns:
                1fr;
            }
            .search-box {
                width: 100%;
            }
        }
/* =========================
   CATEGORIES PAGE
========================= */
.categories-page { display:none; padding:22px; width:100%; box-sizing:border-box; }
.categories-header { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:18px; }
.categories-header h2 { margin:0; font-size:26px; color:#0b1d3a; }
.categories-header p { margin:5px 0 0; color:#66758c; font-size:13px; }
.add-category-btn { border:0; background:#0878f9; color:#fff; padding:11px 18px; border-radius:8px; font-size:13px; font-weight:600; cursor:pointer; }
.category-summary { display:grid; grid-template-columns:repeat(2,minmax(0,240px)); gap:14px; margin-bottom:18px; }
.category-summary-card { background:#fff; border:1px solid #e1e9f2; border-radius:10px; padding:16px; box-shadow:0 2px 7px rgba(0,0,0,.04); }
.category-summary-card span { display:block; color:#66758c; font-size:12px; margin-bottom:7px; }
.category-summary-card strong { font-size:24px; color:#0b1d3a; }
.category-list-box { background:#fff; border:1px solid #e1e9f2; border-radius:10px; padding:16px; box-shadow:0 2px 7px rgba(0,0,0,.04); }
.category-list-top { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:15px; }
.category-list-top h3 { margin:0; font-size:17px; }
.category-search { height:38px; width:240px; border:1px solid #d9e3ef; border-radius:7px; padding:0 11px; outline:none; }
.category-table-wrap { width:100%; overflow-x:auto; }
.category-table { width:100%; border-collapse:collapse; min-width:650px; }
.category-table th { background:#f3f7fb; text-align:left; padding:11px 9px; font-size:11px; }
.category-table td { padding:11px 9px; border-bottom:1px solid #e7edf4; font-size:12px; color:#17365d; }
.category-status { display:inline-block; padding:5px 10px; border-radius:20px; background:#ddf8e9; color:#00a85a; font-size:10px; font-weight:700; }
.category-edit-btn,.category-delete-btn { border:0; border-radius:6px; padding:6px 10px; font-size:10px; font-weight:600; cursor:pointer; }
.category-edit-btn { background:#e8f3ff; color:#0878f9; }
.category-delete-btn { background:#ffe8ec; color:#ff3151; margin-left:5px; }
.category-modal { display:none; position:fixed; inset:0; background:rgba(15,35,55,.55); z-index:10000; align-items:center; justify-content:center; padding:20px; }
.category-modal.show { display:flex; }
.category-modal-box { width:100%; max-width:460px; background:#fff; border-radius:14px; padding:22px; box-shadow:0 20px 60px rgba(0,0,0,.18); }
.category-modal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.category-modal-header h2 { margin:0; font-size:20px; }
.category-modal-close { width:34px; height:34px; border:0; border-radius:8px; background:#f1f5f9; font-size:21px; cursor:pointer; }
.category-form-group { display:flex; flex-direction:column; gap:7px; }
.category-form-group label { font-size:13px; font-weight:600; }
.category-form-group input { width:100%; padding:12px 14px; border:1px solid #dbe3ee; border-radius:9px; outline:none; }
.category-form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.category-cancel-btn,.category-save-btn { padding:10px 18px; border:0; border-radius:8px; font-weight:600; cursor:pointer; }
.category-cancel-btn { background:#eef2f7; color:#334155; }
.category-save-btn { background:#1479f8; color:#fff; }
.category-empty { text-align:center; color:#718096; padding:28px !important; }
@media(max-width:600px){ .categories-page{padding:14px 10px}.categories-header{align-items:flex-start;flex-direction:column}.add-category-btn{width:100%}.category-summary{grid-template-columns:1fr 1fr}.category-list-top{align-items:flex-start;flex-direction:column}.category-search{width:100%} }
/* =========================
   SUPPLIERS PAGE
========================= */
.suppliers-page{display:none;padding:22px;width:100%;box-sizing:border-box}
.suppliers-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.suppliers-header h2{margin:0;font-size:26px;color:#0b1d3a}
.suppliers-header p{margin:5px 0 0;color:#66758c;font-size:13px}
.add-supplier-btn{border:0;background:#0878f9;color:#fff;padding:11px 18px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 4px 10px rgba(8,120,249,.20)}
.supplier-summary{display:grid;grid-template-columns:repeat(3,minmax(0,240px));gap:14px;margin-bottom:18px}
.supplier-summary-card{background:#fff;border:1px solid #e1e9f2;border-radius:10px;padding:16px;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.supplier-summary-card span{display:block;color:#66758c;font-size:12px;margin-bottom:7px}
.supplier-summary-card strong{font-size:24px;color:#0b1d3a}
.supplier-list-box{background:#fff;border:1px solid #e1e9f2;border-radius:10px;padding:16px;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.supplier-list-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}
.supplier-list-top h3{margin:0;font-size:17px}
.supplier-list-top p{margin:4px 0 0;color:#718096;font-size:11px}
.supplier-search{height:38px;width:260px;border:1px solid #d9e3ef;border-radius:7px;padding:0 11px;outline:none}
.supplier-table-wrap{width:100%;overflow-x:auto}
.supplier-table{width:100%;border-collapse:collapse;min-width:900px}
.supplier-table th{background:#f3f7fb;text-align:left;padding:11px 9px;font-size:11px;color:#0b1d3a;white-space:nowrap}
.supplier-table td{padding:11px 9px;border-bottom:1px solid #e7edf4;font-size:12px;color:#17365d;vertical-align:middle}
.supplier-status{display:inline-block;padding:5px 10px;border-radius:20px;background:#ddf8e9;color:#00a85a;font-size:10px;font-weight:700}
.supplier-edit-btn,.supplier-delete-btn{border:0;border-radius:6px;padding:6px 10px;font-size:10px;font-weight:600;cursor:pointer}
.supplier-edit-btn{background:#e8f3ff;color:#0878f9}
.supplier-delete-btn{background:#ffe8ec;color:#ff3151;margin-left:5px}
.supplier-empty{text-align:center;color:#718096;padding:28px!important}
.supplier-modal{display:none;position:fixed;inset:0;background:rgba(15,35,55,.55);z-index:10001;align-items:center;justify-content:center;padding:20px}
.supplier-modal.show{display:flex}
.supplier-modal-box{width:100%;max-width:680px;max-height:90vh;overflow-y:auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.18)}
.supplier-modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.supplier-modal-header h2{margin:0;font-size:21px;color:#0b1d3a}
.supplier-modal-close{width:36px;height:36px;border:0;border-radius:8px;background:#f1f5f9;font-size:22px;cursor:pointer}
.supplier-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.supplier-form-group{display:flex;flex-direction:column;gap:7px}
.supplier-form-group.full{grid-column:1/-1}
.supplier-form-group label{font-size:13px;font-weight:600;color:#334155}
.supplier-form-group input,.supplier-form-group textarea{width:100%;padding:12px 14px;border:1px solid #dbe3ee;border-radius:9px;outline:none;font-size:14px;box-sizing:border-box}
.supplier-form-group input:focus,.supplier-form-group textarea:focus{border-color:#1479f8;box-shadow:0 0 0 3px rgba(20,121,248,.10)}
.supplier-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.supplier-cancel-btn,.supplier-save-btn{padding:11px 20px;border:0;border-radius:9px;font-weight:600;cursor:pointer}
.supplier-cancel-btn{background:#eef2f7;color:#334155}
.supplier-save-btn{background:#1479f8;color:#fff}
@media(max-width:600px){
 .suppliers-page{padding:14px 10px}.suppliers-header{align-items:flex-start;flex-direction:column}.add-supplier-btn{width:100%}
 .supplier-summary{grid-template-columns:1fr}.supplier-list-top{align-items:flex-start;flex-direction:column}.supplier-search{width:100%}
 .supplier-form-grid{grid-template-columns:1fr}.supplier-form-group.full{grid-column:auto}
}
/* =========================
   CUSTOMERS PAGE
========================= */
.customers-page{display:none;padding:22px;width:100%;box-sizing:border-box}
.customers-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.customers-header h2{margin:0;font-size:26px;color:#0b1d3a}
.customers-header p{margin:5px 0 0;color:#66758c;font-size:13px}
.add-customer-btn{border:0;background:#0878f9;color:#fff;padding:11px 18px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 4px 10px rgba(8,120,249,.20)}
.customer-summary{display:grid;grid-template-columns:repeat(3,minmax(0,240px));gap:14px;margin-bottom:18px}
.customer-summary-card{background:#fff;border:1px solid #e1e9f2;border-radius:10px;padding:16px;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.customer-summary-card span{display:block;color:#66758c;font-size:12px;margin-bottom:7px}
.customer-summary-card strong{font-size:24px;color:#0b1d3a}
.customer-list-box{background:#fff;border:1px solid #e1e9f2;border-radius:10px;padding:16px;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.customer-list-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}
.customer-list-top h3{margin:0;font-size:17px}
.customer-list-top p{margin:4px 0 0;color:#718096;font-size:11px}
.customer-search{height:38px;width:270px;border:1px solid #d9e3ef;border-radius:7px;padding:0 11px;outline:none}
.customer-table-wrap{width:100%;overflow-x:auto}
.customer-table{width:100%;border-collapse:collapse;min-width:950px}
.customer-table th{background:#f3f7fb;text-align:left;padding:11px 9px;font-size:11px;color:#0b1d3a;white-space:nowrap}
.customer-table td{padding:11px 9px;border-bottom:1px solid #e7edf4;font-size:12px;color:#17365d;vertical-align:middle}
.customer-status{display:inline-block;padding:5px 10px;border-radius:20px;background:#ddf8e9;color:#00a85a;font-size:10px;font-weight:700}
.customer-edit-btn,.customer-delete-btn{border:0;border-radius:6px;padding:6px 10px;font-size:10px;font-weight:600;cursor:pointer}
.customer-edit-btn{background:#e8f3ff;color:#0878f9}
.customer-delete-btn{background:#ffe8ec;color:#ff3151;margin-left:5px}
.customer-empty{text-align:center;color:#718096;padding:28px!important}
.customer-modal{display:none;position:fixed;inset:0;background:rgba(15,35,55,.55);z-index:10002;align-items:center;justify-content:center;padding:20px}
.customer-modal.show{display:flex}
.customer-modal-box{width:100%;max-width:680px;max-height:90vh;overflow-y:auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.18)}
.customer-modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.customer-modal-header h2{margin:0;font-size:21px;color:#0b1d3a}
.customer-modal-close{width:36px;height:36px;border:0;border-radius:8px;background:#f1f5f9;font-size:22px;cursor:pointer}
.customer-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.customer-form-group{display:flex;flex-direction:column;gap:7px}
.customer-form-group.full{grid-column:1/-1}
.customer-form-group label{font-size:13px;font-weight:600;color:#334155}
.customer-form-group input,.customer-form-group textarea{width:100%;padding:12px 14px;border:1px solid #dbe3ee;border-radius:9px;outline:none;font-size:14px;box-sizing:border-box}
.customer-form-group input:focus,.customer-form-group textarea:focus{border-color:#1479f8;box-shadow:0 0 0 3px rgba(20,121,248,.10)}
.customer-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.customer-cancel-btn,.customer-save-btn{padding:11px 20px;border:0;border-radius:9px;font-weight:600;cursor:pointer}
.customer-cancel-btn{background:#eef2f7;color:#334155}
.customer-save-btn{background:#1479f8;color:#fff}
@media(max-width:600px){
 .customers-page{padding:14px 10px}.customers-header{align-items:flex-start;flex-direction:column}.add-customer-btn{width:100%}
 .customer-summary{grid-template-columns:1fr}.customer-list-top{align-items:flex-start;flex-direction:column}.customer-search{width:100%}
 .customer-form-grid{grid-template-columns:1fr}.customer-form-group.full{grid-column:auto}
}
.purchases-page{display:none;padding:22px;width:100%;box-sizing:border-box}
.purchases-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}
.purchases-header h2{margin:0;font-size:26px;color:#0b1d3a}.purchases-header p{margin:5px 0 0;color:#66758c;font-size:13px}
.add-purchase-btn{border:0;background:#0878f9;color:#fff;padding:11px 18px;border-radius:8px;font-weight:600;cursor:pointer}
.purchase-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}
.purchase-card{background:#fff;border:1px solid #e1e9f2;border-radius:10px;padding:16px;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.purchase-card span{display:block;color:#66758c;font-size:12px;margin-bottom:7px}.purchase-card strong{font-size:23px;color:#0b1d3a}
.purchase-box{background:#fff;border:1px solid #e1e9f2;border-radius:10px;padding:16px;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.purchase-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.purchase-top h3{margin:0}
.purchase-search{height:38px;width:270px;border:1px solid #d9e3ef;border-radius:7px;padding:0 11px;outline:none}
.purchase-table-wrap{overflow-x:auto}.purchase-table{width:100%;border-collapse:collapse;min-width:1050px}
.purchase-table th{background:#f3f7fb;text-align:left;padding:11px 9px;font-size:11px}.purchase-table td{padding:11px 9px;border-bottom:1px solid #e7edf4;font-size:12px;color:#17365d}
.purchase-edit,.purchase-delete{border:0;border-radius:6px;padding:6px 10px;font-size:10px;font-weight:600;cursor:pointer}.purchase-edit{background:#e8f3ff;color:#0878f9}.purchase-delete{background:#ffe8ec;color:#ff3151;margin-left:5px}
.purchase-modal{display:none;position:fixed;inset:0;background:rgba(15,35,55,.55);z-index:10003;align-items:center;justify-content:center;padding:20px}.purchase-modal.show{display:flex}
.purchase-modal-box{width:100%;max-width:760px;max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:24px}
.purchase-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.purchase-modal-head h2{margin:0}.purchase-close{width:36px;height:36px;border:0;border-radius:8px;background:#f1f5f9;font-size:22px;cursor:pointer}
.purchase-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.purchase-field{display:flex;flex-direction:column;gap:7px}.purchase-field.full{grid-column:1/-1}
.purchase-field label{font-size:13px;font-weight:600}.purchase-field input,.purchase-field select,.purchase-field textarea{width:100%;padding:12px 14px;border:1px solid #dbe3ee;border-radius:9px;box-sizing:border-box}
.purchase-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.purchase-cancel,.purchase-save{padding:11px 20px;border:0;border-radius:9px;font-weight:600;cursor:pointer}.purchase-cancel{background:#eef2f7}.purchase-save{background:#1479f8;color:#fff}
@media(max-width:700px){.purchase-summary{grid-template-columns:1fr 1fr}.purchases-header,.purchase-top{align-items:flex-start;flex-direction:column}.add-purchase-btn,.purchase-search{width:100%}.purchase-grid{grid-template-columns:1fr}.purchase-field.full{grid-column:auto}}
.purchase-chart-box{background:#fff;border:1px solid #e1e9f2;border-radius:10px;padding:18px;margin-bottom:18px;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.purchase-chart-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.purchase-chart-head h3{margin:0;font-size:18px;color:#0b1d3a}.purchase-chart-head p{margin:4px 0 0;color:#718096;font-size:11px}
.purchase-chart-total{font-size:12px;font-weight:700;color:#0878f9;background:#eaf4ff;padding:8px 12px;border-radius:8px}
.purchase-chart-wrap{height:270px;display:flex;align-items:flex-end;gap:10px;padding:18px 6px 0;border-bottom:1px solid #dfe7f0;overflow-x:auto}
.purchase-month-col{height:100%;min-width:58px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
.purchase-bar-value{font-size:10px;font-weight:700;color:#17365d;margin-bottom:5px;white-space:nowrap}
.purchase-month-bar{width:70%;max-width:42px;min-height:3px;background:linear-gradient(180deg,#1688ff,#0869e8);border-radius:6px 6px 0 0;transition:.2s}
.purchase-month-label{font-size:10px;color:#66758c;margin-top:7px;white-space:nowrap}
@media(max-width:700px){.purchase-chart-head{align-items:flex-start;flex-direction:column}.purchase-chart-wrap{gap:6px}.purchase-month-col{min-width:52px}}
.sales-page{display:none;padding:22px;width:100%;box-sizing:border-box}
.sales-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.sales-header h2{margin:0;font-size:26px;color:#0b1d3a}.sales-header p{margin:5px 0 0;color:#66758c;font-size:13px}
.add-sale-btn{border:0;background:#0878f9;color:#fff;padding:11px 18px;border-radius:8px;font-weight:600;cursor:pointer}
.sales-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.sales-card{background:#fff;border:1px solid #e1e9f2;border-radius:10px;padding:16px;box-shadow:0 2px 7px rgba(0,0,0,.04)}.sales-card span{display:block;color:#66758c;font-size:12px;margin-bottom:7px}.sales-card strong{font-size:23px;color:#0b1d3a}
.sales-box,.sales-chart-box{background:#fff;border:1px solid #e1e9f2;border-radius:10px;padding:16px;margin-bottom:18px;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.sales-top,.sales-chart-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.sales-top h3,.sales-chart-head h3{margin:0}.sales-search{height:38px;width:270px;border:1px solid #d9e3ef;border-radius:7px;padding:0 11px;outline:none}
.sales-table-wrap{overflow-x:auto}.sales-table{width:100%;border-collapse:collapse;min-width:1100px}.sales-table th{background:#f3f7fb;text-align:left;padding:11px 9px;font-size:11px}.sales-table td{padding:11px 9px;border-bottom:1px solid #e7edf4;font-size:12px;color:#17365d}
.sale-edit,.sale-delete{border:0;border-radius:6px;padding:6px 10px;font-size:10px;font-weight:600;cursor:pointer}.sale-edit{background:#e8f3ff;color:#0878f9}.sale-delete{background:#ffe8ec;color:#ff3151;margin-left:5px}
.sales-modal{display:none;position:fixed;inset:0;background:rgba(15,35,55,.55);z-index:10004;align-items:center;justify-content:center;padding:20px}.sales-modal.show{display:flex}.sales-modal-box{width:100%;max-width:780px;max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:24px}
.sales-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.sales-modal-head h2{margin:0}.sales-close{width:36px;height:36px;border:0;border-radius:8px;background:#f1f5f9;font-size:22px;cursor:pointer}
.sales-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.sales-field{display:flex;flex-direction:column;gap:7px}.sales-field.full{grid-column:1/-1}.sales-field label{font-size:13px;font-weight:600}.sales-field input,.sales-field select,.sales-field textarea{width:100%;padding:12px 14px;border:1px solid #dbe3ee;border-radius:9px;box-sizing:border-box}
.sales-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.sales-cancel,.sales-save{padding:11px 20px;border:0;border-radius:9px;font-weight:600;cursor:pointer}.sales-cancel{background:#eef2f7}.sales-save{background:#1479f8;color:#fff}
.sales-chart-wrap{height:250px;display:flex;align-items:flex-end;gap:10px;padding:15px 6px 0;border-bottom:1px solid #dfe7f0;overflow-x:auto}.sales-month-col{height:100%;min-width:58px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.sales-bar-value{font-size:10px;font-weight:700;margin-bottom:5px;white-space:nowrap}.sales-month-bar{width:70%;max-width:42px;min-height:3px;background:linear-gradient(180deg,#17b978,#07985f);border-radius:6px 6px 0 0}.sales-month-label{font-size:10px;color:#66758c;margin-top:7px;white-space:nowrap}
@media(max-width:700px){.sales-summary{grid-template-columns:1fr 1fr}.sales-header,.sales-top,.sales-chart-head{align-items:flex-start;flex-direction:column}.add-sale-btn,.sales-search{width:100%}.sales-grid{grid-template-columns:1fr}.sales-field.full{grid-column:auto}}
.stockin-page{display:none;padding:22px;width:100%;box-sizing:border-box}.stockin-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.stockin-header h2{margin:0;font-size:26px;color:#0b1d3a}.stockin-header p{margin:5px 0 0;color:#66758c;font-size:13px}.add-stockin-btn{border:0;background:#0878f9;color:#fff;padding:11px 18px;border-radius:8px;font-weight:600;cursor:pointer}
.stockin-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.stockin-card,.stockin-box{background:#fff;border:1px solid #e1e9f2;border-radius:10px;padding:16px;box-shadow:0 2px 7px rgba(0,0,0,.04)}.stockin-card span{display:block;color:#66758c;font-size:12px;margin-bottom:7px}.stockin-card strong{font-size:23px;color:#0b1d3a}.stockin-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.stockin-top h3{margin:0}.stockin-search{height:38px;width:270px;border:1px solid #d9e3ef;border-radius:7px;padding:0 11px;outline:none}.stockin-table-wrap{overflow-x:auto}.stockin-table{width:100%;border-collapse:collapse;min-width:900px}.stockin-table th{background:#f3f7fb;text-align:left;padding:11px 9px;font-size:11px}.stockin-table td{padding:11px 9px;border-bottom:1px solid #e7edf4;font-size:12px;color:#17365d}.stockin-delete{border:0;border-radius:6px;padding:6px 10px;font-size:10px;font-weight:600;cursor:pointer;background:#ffe8ec;color:#ff3151}
.stockin-modal{display:none;position:fixed;inset:0;background:rgba(15,35,55,.55);z-index:10005;align-items:center;justify-content:center;padding:20px}.stockin-modal.show{display:flex}.stockin-modal-box{width:100%;max-width:720px;max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:24px}.stockin-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.stockin-modal-head h2{margin:0}.stockin-close{width:36px;height:36px;border:0;border-radius:8px;background:#f1f5f9;font-size:22px;cursor:pointer}.stockin-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.stockin-field{display:flex;flex-direction:column;gap:7px}.stockin-field.full{grid-column:1/-1}.stockin-field label{font-size:13px;font-weight:600}.stockin-field input,.stockin-field select,.stockin-field textarea{width:100%;padding:12px 14px;border:1px solid #dbe3ee;border-radius:9px;box-sizing:border-box}.stockin-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.stockin-cancel,.stockin-save{padding:11px 20px;border:0;border-radius:9px;font-weight:600;cursor:pointer}.stockin-cancel{background:#eef2f7}.stockin-save{background:#1479f8;color:#fff}
@media(max-width:700px){.stockin-summary{grid-template-columns:1fr}.stockin-header,.stockin-top{align-items:flex-start;flex-direction:column}.add-stockin-btn,.stockin-search{width:100%}.stockin-grid{grid-template-columns:1fr}.stockin-field.full{grid-column:auto}}
.stockout-page{display:none;padding:22px;width:100%;box-sizing:border-box}
.stockout-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}
.stockout-header h2{margin:0;font-size:26px;color:#0b1d3a}.stockout-header p{margin:5px 0 0;color:#66758c;font-size:13px}
.add-stockout-btn{border:0;background:#ef4444;color:#fff;padding:11px 18px;border-radius:8px;font-weight:600;cursor:pointer}
.stockout-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}
.stockout-card,.stockout-box{background:#fff;border:1px solid #e1e9f2;border-radius:10px;padding:16px;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.stockout-card span{display:block;color:#66758c;font-size:12px;margin-bottom:7px}.stockout-card strong{font-size:23px;color:#0b1d3a}
.stockout-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.stockout-top h3{margin:0}
.stockout-search{height:38px;width:270px;border:1px solid #d9e3ef;border-radius:7px;padding:0 11px;outline:none}
.stockout-table-wrap{overflow-x:auto}.stockout-table{width:100%;border-collapse:collapse;min-width:900px}
.stockout-table th{background:#f3f7fb;text-align:left;padding:11px 9px;font-size:11px}.stockout-table td{padding:11px 9px;border-bottom:1px solid #e7edf4;font-size:12px;color:#17365d}
.stockout-delete{border:0;border-radius:6px;padding:6px 10px;font-size:10px;font-weight:600;cursor:pointer;background:#ffe8ec;color:#ff3151}
.stockout-modal{display:none;position:fixed;inset:0;background:rgba(15,35,55,.55);z-index:10006;align-items:center;justify-content:center;padding:20px}
.stockout-modal.show{display:flex}.stockout-modal-box{width:100%;max-width:720px;max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:24px}
.stockout-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.stockout-modal-head h2{margin:0}
.stockout-close{width:36px;height:36px;border:0;border-radius:8px;background:#f1f5f9;font-size:22px;cursor:pointer}
.stockout-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.stockout-field{display:flex;flex-direction:column;gap:7px}.stockout-field.full{grid-column:1/-1}
.stockout-field label{font-size:13px;font-weight:600}.stockout-field input,.stockout-field select,.stockout-field textarea{width:100%;padding:12px 14px;border:1px solid #dbe3ee;border-radius:9px;box-sizing:border-box}
.stockout-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.stockout-cancel,.stockout-save{padding:11px 20px;border:0;border-radius:9px;font-weight:600;cursor:pointer}
.stockout-cancel{background:#eef2f7}.stockout-save{background:#ef4444;color:#fff}
@media(max-width:700px){.stockout-summary{grid-template-columns:1fr}.stockout-header,.stockout-top{align-items:flex-start;flex-direction:column}.add-stockout-btn,.stockout-search{width:100%}.stockout-grid{grid-template-columns:1fr}.stockout-field.full{grid-column:auto}}
.returns-page{display:none;padding:22px;width:100%;box-sizing:border-box}
.returns-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}
.returns-header h2{margin:0;font-size:26px;color:#0b1d3a}.returns-header p{margin:5px 0 0;color:#66758c;font-size:13px}
.add-return-btn{border:0;background:#7c3aed;color:#fff;padding:11px 18px;border-radius:8px;font-weight:600;cursor:pointer}
.returns-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}
.return-card,.returns-box{background:#fff;border:1px solid #e1e9f2;border-radius:10px;padding:16px;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.return-card span{display:block;color:#66758c;font-size:12px;margin-bottom:7px}.return-card strong{font-size:23px;color:#0b1d3a}
.returns-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.returns-top h3{margin:0}
.returns-search{height:38px;width:270px;border:1px solid #d9e3ef;border-radius:7px;padding:0 11px;outline:none}
.returns-table-wrap{overflow-x:auto}.returns-table{width:100%;border-collapse:collapse;min-width:980px}
.returns-table th{background:#f3f7fb;text-align:left;padding:11px 9px;font-size:11px}.returns-table td{padding:11px 9px;border-bottom:1px solid #e7edf4;font-size:12px;color:#17365d}
.return-delete{border:0;border-radius:6px;padding:6px 10px;font-size:10px;font-weight:600;cursor:pointer;background:#ffe8ec;color:#ff3151}
.return-stock-badge{display:inline-block;padding:4px 8px;border-radius:20px;font-size:10px;font-weight:700}
.return-stock-yes{background:#ddf8e9;color:#00a85a}.return-stock-no{background:#eef2f7;color:#64748b}
.return-modal{display:none;position:fixed;inset:0;background:rgba(15,35,55,.55);z-index:10007;align-items:center;justify-content:center;padding:20px}
.return-modal.show{display:flex}.return-modal-box{width:100%;max-width:760px;max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:24px}
.return-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.return-modal-head h2{margin:0}
.return-close{width:36px;height:36px;border:0;border-radius:8px;background:#f1f5f9;font-size:22px;cursor:pointer}
.return-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.return-field{display:flex;flex-direction:column;gap:7px}.return-field.full{grid-column:1/-1}
.return-field label{font-size:13px;font-weight:600}.return-field input,.return-field select,.return-field textarea{width:100%;padding:12px 14px;border:1px solid #dbe3ee;border-radius:9px;box-sizing:border-box}
.return-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.return-cancel,.return-save{padding:11px 20px;border:0;border-radius:9px;font-weight:600;cursor:pointer}
.return-cancel{background:#eef2f7}.return-save{background:#7c3aed;color:#fff}
@media(max-width:700px){.returns-summary{grid-template-columns:1fr}.returns-header,.returns-top{align-items:flex-start;flex-direction:column}.add-return-btn,.returns-search{width:100%}.return-grid{grid-template-columns:1fr}.return-field.full{grid-column:auto}}
.damage-page{display:none;padding:22px;width:100%;box-sizing:border-box}
.damage-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}
.damage-header h2{margin:0;font-size:26px;color:#0b1d3a}.damage-header p{margin:5px 0 0;color:#66758c;font-size:13px}
.add-damage-btn{border:0;background:#ef4444;color:#fff;padding:11px 18px;border-radius:8px;font-weight:600;cursor:pointer}
.damage-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}
.damage-card,.damage-chart-box,.damage-box{background:#fff;border:1px solid #e1e9f2;border-radius:10px;padding:16px;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.damage-card span{display:block;color:#66758c;font-size:12px;margin-bottom:7px}.damage-card strong{font-size:23px;color:#0b1d3a}
.damage-chart-box{margin-bottom:18px}.damage-chart-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:15px}
.damage-chart-head h3{margin:0;font-size:18px}.damage-chart-head p{margin:4px 0 0;color:#718096;font-size:11px}
.damage-chart{height:260px;display:flex;align-items:flex-end;gap:10px;padding:22px 6px 0;border-bottom:1px solid #dfe7f0;overflow-x:auto}
.damage-month{height:100%;min-width:58px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
.damage-value{font-size:9px;font-weight:700;margin-bottom:5px;white-space:nowrap}.damage-bar{width:68%;max-width:42px;min-height:3px;background:linear-gradient(180deg,#ff6b6b,#ef4444);border-radius:6px 6px 0 0}
.damage-label{font-size:10px;color:#66758c;margin-top:7px}
.damage-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.damage-top h3{margin:0}
.damage-search{height:38px;width:270px;border:1px solid #d9e3ef;border-radius:7px;padding:0 11px;outline:none}
.damage-table-wrap{overflow-x:auto}.damage-table{width:100%;border-collapse:collapse;min-width:1000px}
.damage-table th{background:#f3f7fb;text-align:left;padding:11px 9px;font-size:11px}.damage-table td{padding:11px 9px;border-bottom:1px solid #e7edf4;font-size:12px;color:#17365d}
.damage-delete{border:0;border-radius:6px;padding:6px 10px;font-size:10px;font-weight:600;cursor:pointer;background:#ffe8ec;color:#ff3151}
.damage-modal{display:none;position:fixed;inset:0;background:rgba(15,35,55,.55);z-index:10008;align-items:center;justify-content:center;padding:20px}.damage-modal.show{display:flex}
.damage-modal-box{width:100%;max-width:760px;max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:24px}
.damage-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.damage-modal-head h2{margin:0}.damage-close{width:36px;height:36px;border:0;border-radius:8px;background:#f1f5f9;font-size:22px;cursor:pointer}
.damage-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.damage-field{display:flex;flex-direction:column;gap:7px}.damage-field.full{grid-column:1/-1}
.damage-field label{font-size:13px;font-weight:600}.damage-field input,.damage-field select,.damage-field textarea{width:100%;padding:12px 14px;border:1px solid #dbe3ee;border-radius:9px;box-sizing:border-box}
.damage-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.damage-cancel,.damage-save{padding:11px 20px;border:0;border-radius:9px;font-weight:600;cursor:pointer}.damage-cancel{background:#eef2f7}.damage-save{background:#ef4444;color:#fff}
@media(max-width:700px){.damage-summary{grid-template-columns:1fr}.damage-header,.damage-top,.damage-chart-head{align-items:flex-start;flex-direction:column}.add-damage-btn,.damage-search{width:100%}.damage-grid{grid-template-columns:1fr}.damage-field.full{grid-column:auto}}
.profit-page{display:none;padding:22px;width:100%;box-sizing:border-box}
.profit-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.profit-head h2{margin:0;color:#0b1d3a;font-size:26px}.profit-head p{margin:5px 0 0;color:#68778d;font-size:13px}
.profit-controls{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.profit-controls select,.profit-controls button{height:40px;border:1px solid #dbe4ee;border-radius:8px;padding:0 13px;background:#fff;font-weight:600}.profit-controls button{background:#7c3aed;color:#fff;border:0;cursor:pointer}
.profit-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px}.profit-card{background:#fff;border:1px solid #dfe8f2;border-radius:11px;padding:15px;box-shadow:0 2px 8px rgba(0,0,0,.035)}
.profit-card span{display:block;color:#64748b;font-size:11px;margin-bottom:8px}.profit-card strong{font-size:20px;color:#0b1d3a}.profit-card small{display:block;margin-top:5px;color:#8390a2;font-size:9px}
.profit-main-grid{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin-bottom:18px}.profit-box{background:#fff;border:1px solid #dfe8f2;border-radius:11px;padding:16px;box-shadow:0 2px 8px rgba(0,0,0,.035)}.profit-box h3{margin:0 0 4px}.profit-box .sub{color:#7b8798;font-size:11px;margin-bottom:14px}
.profit-chart{height:285px;display:flex;align-items:flex-end;gap:8px;border-bottom:1px solid #dfe7f0;padding:20px 4px 0;overflow-x:auto}.profit-month{height:100%;min-width:56px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.profit-bar-value{font-size:8px;font-weight:700;margin-bottom:4px;white-space:nowrap}.profit-bar{width:65%;max-width:38px;min-height:3px;background:linear-gradient(180deg,#8b5cf6,#6d28d9);border-radius:6px 6px 0 0}.profit-bar.neg{background:linear-gradient(180deg,#fb7185,#e11d48)}.profit-month-label{font-size:9px;color:#64748b;margin-top:6px}
.profit-formula{font-size:12px;line-height:1.8;color:#334155}.profit-formula .formula-total{border-top:1px solid #e4eaf1;margin-top:8px;padding-top:9px;font-size:16px;font-weight:800}.profit-formula b{color:#0b1d3a}
.profit-settings{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.profit-field{display:flex;flex-direction:column;gap:6px}.profit-field label{font-size:11px;font-weight:700;color:#334155}.profit-field input{padding:10px;border:1px solid #dbe3ed;border-radius:8px}.profit-setting-actions{display:flex;align-items:flex-end}.profit-setting-actions button{width:100%;height:39px;border:0;border-radius:8px;background:#0ea5e9;color:#fff;font-weight:700;cursor:pointer}
.profit-note{margin-top:10px;background:#f8fafc;border:1px solid #e5ebf2;border-radius:8px;padding:10px;color:#64748b;font-size:10px;line-height:1.55}
@media(max-width:1100px){.profit-cards{grid-template-columns:repeat(2,1fr)}.profit-main-grid{grid-template-columns:1fr}.profit-settings{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.profit-head{align-items:flex-start;flex-direction:column}.profit-cards,.profit-settings{grid-template-columns:1fr}.profit-controls{width:100%}.profit-controls select,.profit-controls button{flex:1}}
/* =========================
   SHOP COSTING
========================= */
.shopcost-page{display:none;padding:22px;width:100%;box-sizing:border-box}
.shopcost-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}
.shopcost-head h2{margin:0;font-size:26px;color:#0b1d3a}.shopcost-head p{margin:5px 0 0;color:#66758c;font-size:13px}
.shopcost-add{border:0;background:#0878f9;color:#fff;padding:11px 18px;border-radius:8px;font-weight:700;cursor:pointer}
.shopcost-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}
.shopcost-card{background:#fff;border:1px solid #e1e9f2;border-radius:10px;padding:16px;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.shopcost-card span{display:block;color:#66758c;font-size:12px;margin-bottom:7px}.shopcost-card strong{font-size:23px;color:#0b1d3a}
.shopcost-chartbox,.shopcost-box{background:#fff;border:1px solid #e1e9f2;border-radius:10px;padding:16px;box-shadow:0 2px 7px rgba(0,0,0,.04);margin-bottom:18px}
.shopcost-charthead,.shopcost-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}
.shopcost-charthead h3,.shopcost-top h3{margin:0;font-size:18px}.shopcost-charthead p{margin:4px 0 0;color:#718096;font-size:11px}
.shopcost-chart{height:250px;display:flex;align-items:flex-end;gap:9px;padding:22px 6px 0;border-bottom:1px solid #dfe7f0;overflow-x:auto}
.shopcost-month{height:100%;min-width:58px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
.shopcost-value{font-size:9px;font-weight:700;margin-bottom:5px;white-space:nowrap}.shopcost-bar{width:68%;max-width:42px;min-height:3px;background:linear-gradient(180deg,#9a4cff,#6720e6);border-radius:6px 6px 0 0}
.shopcost-label{font-size:10px;color:#66758c;margin-top:7px}
.shopcost-search{height:38px;width:270px;border:1px solid #d9e3ef;border-radius:7px;padding:0 11px;outline:none}
.shopcost-tablewrap{overflow-x:auto}.shopcost-table{width:100%;border-collapse:collapse;min-width:900px}
.shopcost-table th{background:#f3f7fb;text-align:left;padding:11px 9px;font-size:11px}.shopcost-table td{padding:11px 9px;border-bottom:1px solid #e7edf4;font-size:12px;color:#17365d}
.shopcost-type{display:inline-block;padding:5px 9px;border-radius:20px;background:#eee9ff;color:#6720e6;font-size:10px;font-weight:700}
.shopcost-edit,.shopcost-delete{border:0;border-radius:6px;padding:6px 10px;font-size:10px;font-weight:700;cursor:pointer}.shopcost-edit{background:#e8f3ff;color:#0878f9}.shopcost-delete{background:#ffe8ec;color:#ff3151;margin-left:5px}
.shopcost-modal{display:none;position:fixed;inset:0;background:rgba(15,35,55,.55);z-index:10020;align-items:center;justify-content:center;padding:20px}.shopcost-modal.show{display:flex}
.shopcost-modalbox{width:100%;max-width:650px;max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.18)}
.shopcost-modalhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.shopcost-modalhead h2{margin:0}.shopcost-close{width:36px;height:36px;border:0;border-radius:8px;background:#f1f5f9;font-size:22px;cursor:pointer}
.shopcost-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.shopcost-field{display:flex;flex-direction:column;gap:7px}.shopcost-field.full{grid-column:1/-1}
.shopcost-field label{font-size:13px;font-weight:600}.shopcost-field input,.shopcost-field select,.shopcost-field textarea{width:100%;padding:12px 14px;border:1px solid #dbe3ee;border-radius:9px;box-sizing:border-box}
.shopcost-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.shopcost-cancel,.shopcost-save{padding:11px 20px;border:0;border-radius:9px;font-weight:700;cursor:pointer}.shopcost-cancel{background:#eef2f7}.shopcost-save{background:#1479f8;color:#fff}
@media(max-width:700px){.shopcost-page{padding:14px 10px}.shopcost-head,.shopcost-top,.shopcost-charthead{align-items:flex-start;flex-direction:column}.shopcost-add,.shopcost-search{width:100%}.shopcost-summary{grid-template-columns:1fr 1fr}.shopcost-grid{grid-template-columns:1fr}.shopcost-field.full{grid-column:auto}}
.dp-box{background:#fff;border:1px solid #e1e9f2;border-radius:12px;padding:16px;margin:16px 0}.dp-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.dp-head h3{margin:0}.dp-add{border:0;background:#0878f9;color:white;padding:10px 15px;border-radius:8px;font-weight:700;cursor:pointer}.dp-sum{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.dp-card{background:#f7faff;border:1px solid #e2eaf4;border-radius:9px;padding:12px}.dp-card span{display:block;font-size:11px;color:#66758c}.dp-card strong{font-size:19px}.dp-wrap{overflow-x:auto}.dp-table{width:100%;border-collapse:collapse;min-width:720px}.dp-table th{background:#f3f7fb;padding:10px 8px;text-align:left;font-size:11px}.dp-table td{padding:10px 8px;border-bottom:1px solid #e7edf4;font-size:12px}.dp-edit,.dp-del{border:0;border-radius:6px;padding:6px 9px;font-size:10px;font-weight:700;cursor:pointer}.dp-edit{background:#e8f3ff;color:#0878f9}.dp-del{background:#ffe8ec;color:#ff3151;margin-left:4px}.dp-modal{display:none;position:fixed;inset:0;background:rgba(15,35,55,.55);z-index:10050;align-items:center;justify-content:center;padding:20px}.dp-modal.show{display:flex}.dp-modalbox{width:100%;max-width:620px;background:white;border-radius:15px;padding:22px}.dp-mhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dp-close{width:34px;height:34px;border:0;border-radius:8px;font-size:21px}.dp-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.dp-field{display:flex;flex-direction:column;gap:6px}.dp-field.full{grid-column:1/-1}.dp-field input,.dp-field select{padding:11px;border:1px solid #dbe3ee;border-radius:8px}.dp-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.dp-actions button{border:0;border-radius:8px;padding:10px 17px;font-weight:700}.dp-save{background:#1479f8;color:white}@media(max-width:700px){.dp-head{flex-direction:column;align-items:flex-start}.dp-add{width:100%}.dp-sum{grid-template-columns:1fr}.dp-grid{grid-template-columns:1fr}.dp-field.full{grid-column:auto}}
.sidebar{padding-top:12px!important;padding-bottom:14px!important;overflow-y:auto}
.logo{margin-bottom:12px!important}
.logo-box{width:52px!important;height:52px!important}
.logo h2{margin-top:6px!important}
.menu li{margin-bottom:1px!important}
.menu a{padding:8px 12px!important;gap:10px!important;min-height:38px!important}
@media(max-width:900px){
 .sidebar{padding-top:10px!important}
 .menu a{padding:8px 5px!important;min-height:36px!important}
 .logo{margin-bottom:10px!important}
}
#profitPage{background:linear-gradient(135deg,#f7faff 0%,#f3f7ff 48%,#f8fbff 100%);border-radius:18px}
#profitPage .profit-head{padding:4px 4px 2px;margin-bottom:16px}
#profitPage .profit-head h2{font-size:28px;letter-spacing:-.5px;color:#10264a}
#profitPage .profit-head p{color:#72809a;font-size:12px}
#profitPage .profit-controls select{height:44px;border-radius:11px;border:1px solid #dce5f2;box-shadow:0 5px 15px rgba(31,65,114,.06)}
#profitPage .profit-controls button{height:44px;border-radius:11px;padding:0 18px;background:linear-gradient(135deg,#8b5cf6,#5b21f4);box-shadow:0 8px 18px rgba(109,40,217,.20);transition:.2s}
#profitPage .profit-controls button:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(109,40,217,.27)}
#profitPage .profit-cards{gap:12px;margin-bottom:16px}
#profitPage .profit-card{position:relative;overflow:hidden;border:1px solid transparent;border-radius:14px;padding:17px 16px;min-height:118px;box-shadow:0 8px 22px rgba(31,65,114,.07);transition:.2s}
#profitPage .profit-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(31,65,114,.11)}
#profitPage .profit-card:before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:14px 0 0 14px}
#profitPage .profit-card:nth-child(1){background:linear-gradient(135deg,#f0fff8,#e9fbf4);border-color:#ccefe0}#profitPage .profit-card:nth-child(1):before{background:#20bf78}#profitPage .profit-card:nth-child(1) strong{color:#087b4d}
#profitPage .profit-card:nth-child(2){background:linear-gradient(135deg,#f2f8ff,#eaf3ff);border-color:#d5e6fb}#profitPage .profit-card:nth-child(2):before{background:#1687ff}#profitPage .profit-card:nth-child(2) strong{color:#0969cf}
#profitPage .profit-card:nth-child(3){background:linear-gradient(135deg,#fff8f1,#fff0e6);border-color:#f7dfca}#profitPage .profit-card:nth-child(3):before{background:#ff7a1a}#profitPage .profit-card:nth-child(3) strong{color:#c9560a}
#profitPage .profit-card:nth-child(4){background:linear-gradient(135deg,#fbf5ff,#f3ebff);border-color:#ead8fb}#profitPage .profit-card:nth-child(4):before{background:#8b35ee}#profitPage .profit-card:nth-child(4) strong{color:#6d28d9}
#profitPage .profit-card:nth-child(5){background:linear-gradient(135deg,#effffc,#e6faf8);border-color:#c9efeb}#profitPage .profit-card:nth-child(5):before{background:#0aa99b}#profitPage .profit-card:nth-child(5) strong{color:#087f76}
#profitPage .profit-card span{font-size:11px;font-weight:700;color:#596b86;margin-bottom:10px}#profitPage .profit-card strong{font-size:24px;letter-spacing:-.4px}#profitPage .profit-card small{margin-top:9px;font-size:10px;color:#7c8aa0}
#profitPage .dp-box,#profitPage .profit-box{border:1px solid #dfe8f5;border-radius:14px;box-shadow:0 8px 24px rgba(31,65,114,.055);background:rgba(255,255,255,.96)}
#profitPage .dp-box{margin:0 0 16px;padding:17px}#profitPage .dp-head{padding-bottom:12px;border-bottom:1px solid #edf1f7}#profitPage .dp-head h3,#profitPage .profit-box h3{color:#122a50;font-size:17px}#profitPage .dp-head small,#profitPage .profit-box .sub{color:#8290a5}
#profitPage .dp-add{background:linear-gradient(135deg,#7c3aed,#4f46e5);border-radius:9px;box-shadow:0 7px 16px rgba(99,72,219,.18);transition:.2s}#profitPage .dp-add:hover{transform:translateY(-1px)}
#profitPage .dp-sum{gap:9px}#profitPage .dp-card{border:0;border-radius:10px;background:#f5f8ff;padding:11px 13px}#profitPage .dp-card:nth-child(1){background:#effbf6}#profitPage .dp-card:nth-child(2){background:#eef6ff}#profitPage .dp-card:nth-child(3){background:#f7f0ff}#profitPage .dp-card strong{font-size:18px;color:#132c50}
#profitPage .dp-table{border-collapse:separate;border-spacing:0}#profitPage .dp-table th{background:linear-gradient(180deg,#f5f7ff,#eff3fb);color:#425474;font-weight:800;padding:11px 9px}#profitPage .dp-table th:first-child{border-radius:8px 0 0 8px}#profitPage .dp-table th:last-child{border-radius:0 8px 8px 0}#profitPage .dp-table td{padding:10px 9px;color:#263e62}#profitPage .dp-table tbody tr{transition:.15s}#profitPage .dp-table tbody tr:hover{background:#f8fbff}
#profitPage .dp-edit{background:#e6f2ff;color:#0878f9}#profitPage .dp-del{background:#ffe9ed;color:#ef3152}
#profitPage .profit-settings{gap:11px}#profitPage .profit-field label{font-size:10.5px;color:#344764}#profitPage .profit-field input{height:41px;background:#fbfdff;border:1px solid #dce5f1;border-radius:9px;color:#10264a;font-weight:600;outline:none;transition:.18s}#profitPage .profit-field input:focus{background:#fff;border-color:#7c5cff;box-shadow:0 0 0 3px rgba(124,92,255,.10)}#profitPage .profit-field input[readonly]{background:linear-gradient(135deg,#f1f5fb,#e9eff8);color:#53647d}
#profitPage #pmiSave,#profitPage #saveProfitSettings{background:linear-gradient(135deg,#7c3aed,#1688ff);box-shadow:0 7px 16px rgba(72,80,220,.17);border-radius:9px}
#profitPage .profit-main-grid{gap:14px}#profitPage .profit-chart{height:300px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 58px,#edf2f8 59px);border-left:1px solid #e4eaf3;padding-top:26px}#profitPage .profit-bar{background:linear-gradient(180deg,#7755ff,#5b2ee6);box-shadow:0 4px 10px rgba(91,46,230,.16)}#profitPage .profit-bar.neg{background:linear-gradient(180deg,#fb7185,#e11d48)}
#profitPage .profit-formula{display:grid;grid-template-columns:1fr;gap:2px}#profitPage .profit-formula>div{display:flex;justify-content:space-between;gap:12px;padding:6px 8px;border-radius:7px}#profitPage .profit-formula>div:nth-child(odd){background:#f8faff}#profitPage .profit-formula .formula-total{margin-top:8px;padding:13px 11px;border:1px solid #bcebdc;border-radius:10px;background:linear-gradient(135deg,#edfff7,#e8faf6);color:#087b5d}#profitPage .profit-formula .formula-total span{font-size:20px;color:#087b5d}
#profitPage .profit-note{background:linear-gradient(135deg,#f8faff,#f3f7ff);border-color:#e1e8f4;border-left:4px solid #7c3aed;border-radius:9px}
#profitPage .dp-modalbox{border:1px solid #e3e9f4;box-shadow:0 25px 70px rgba(13,31,60,.22)}#profitPage .dp-field input,#profitPage .dp-field select{background:#fbfdff;outline:none}#profitPage .dp-field input:focus,#profitPage .dp-field select:focus{border-color:#7c5cff;box-shadow:0 0 0 3px rgba(124,92,255,.1)}#profitPage .dp-save{background:linear-gradient(135deg,#7c3aed,#1688ff)}
@media(max-width:1250px){#profitPage .profit-cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:850px){#profitPage .profit-cards{grid-template-columns:repeat(2,1fr)}#profitPage .profit-settings[style]{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:600px){#profitPage{padding:14px 10px}#profitPage .profit-cards{grid-template-columns:1fr}#profitPage .profit-card{min-height:auto}#profitPage .profit-settings[style]{grid-template-columns:1fr!important}}
#profitPage.profit-ref{padding:16px;background:linear-gradient(135deg,#f5f8ff 0%,#eef4ff 55%,#f8fbff 100%);font-family:Inter,Arial,sans-serif}
.profit-ref .profit-head{margin-bottom:13px}.profit-title-wrap{display:flex;align-items:center;gap:11px}.profit-title-icon,.box-title-icon{display:flex;align-items:center;justify-content:center;color:#633cff;background:linear-gradient(135deg,#eeeaff,#ded8ff);border-radius:9px;font-weight:900}
.profit-title-icon{width:42px;height:42px;font-size:24px}.profit-ref .profit-head h2{font-size:27px;color:#0c1f47}.profit-ref .profit-head p{font-size:11px;margin-top:2px;color:#71809b}
.profit-ref .profit-controls select,.profit-ref .profit-controls button{height:40px;border-radius:9px}.profit-ref .profit-controls button{background:linear-gradient(135deg,#8a45ff,#5524ee);box-shadow:0 6px 15px rgba(92,42,238,.22)}
.profit-ref .profit-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:13px}.profit-ref .profit-card{display:flex;gap:12px;align-items:flex-start;min-height:90px;padding:13px;border-radius:12px;box-shadow:0 6px 18px rgba(37,62,103,.07)}
.profit-ref .profit-card:before{display:none}.profit-ref .pc-icon{width:47px;height:47px;flex:0 0 47px;border-radius:11px;display:flex;align-items:center;justify-content:center;color:white;font-size:23px;font-weight:900;box-shadow:0 7px 16px rgba(0,0,0,.12)}
.profit-ref .pc-body{min-width:0;flex:1}.profit-ref .profit-card span{margin:2px 0 5px;font-size:10.5px}.profit-ref .profit-card strong{font-size:21px;color:#0b1d3f!important;white-space:nowrap}.profit-ref .profit-card small{font-size:9px;margin-top:9px}
.profit-ref .pc-green{background:linear-gradient(135deg,#f0fff8,#e6faf2)!important;border-color:#c8eedc!important}.profit-ref .pc-green .pc-icon{background:linear-gradient(135deg,#64db9f,#18b86f)}
.profit-ref .pc-blue{background:linear-gradient(135deg,#f2f8ff,#e8f2ff)!important;border-color:#d1e3fb!important}.profit-ref .pc-blue .pc-icon{background:linear-gradient(135deg,#31a1ff,#086af1)}
.profit-ref .pc-orange{background:linear-gradient(135deg,#fff7f0,#fff0e6)!important;border-color:#f7ddc9!important}.profit-ref .pc-orange .pc-icon{background:linear-gradient(135deg,#ff9c3b,#ff6c12)}
.profit-ref .pc-purple{background:linear-gradient(135deg,#fbf5ff,#f2e9ff)!important;border-color:#e8d6fb!important}.profit-ref .pc-purple .pc-icon{background:linear-gradient(135deg,#a94cff,#7222e9)}
.profit-ref .pc-teal{background:linear-gradient(135deg,#effffc,#e3faf7)!important;border-color:#c4ece8!important}.profit-ref .pc-teal .pc-icon{background:linear-gradient(135deg,#28c8bd,#059b93)}
.profit-upper-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(390px,.95fr);gap:12px;align-items:stretch;margin-bottom:12px}.profit-left-col,.profit-right-col{min-width:0}
.profit-ref .dp-box,.profit-ref .profit-box{margin:0;border-radius:12px;border:1px solid #dce5f3;background:rgba(255,255,255,.97);box-shadow:0 6px 20px rgba(37,62,103,.06)}
.profit-ref .dp-box{height:100%;box-sizing:border-box;padding:14px}.profit-ref .dp-head{margin-bottom:10px;padding-bottom:10px}.profit-ref .dp-head h3{font-size:16px}.profit-ref .dp-head small{font-size:9.5px}.profit-ref .dp-add{padding:9px 13px;border-radius:8px}
.profit-ref .dp-sum{display:grid}.profit-ref .dp-table{min-width:650px}.profit-ref .dp-table th{padding:9px 8px;font-size:9.5px;background:linear-gradient(180deg,#f1efff,#ebeaff)}.profit-ref .dp-table td{padding:9px 8px;font-size:10.5px}.profit-ref .dp-edit,.profit-ref .dp-del{padding:6px 9px}
.profit-ref .monthly-input-card{padding:13px}.box-title{display:flex;align-items:flex-start;gap:9px;margin-bottom:10px}.box-title-icon{width:31px;height:31px;flex:0 0 31px;font-size:17px}.box-title h3{font-size:16px!important;margin:0!important;color:#10264a}.box-title .sub{font-size:9px!important;margin:2px 0 0!important}
.profit-ref .monthly-fields{grid-template-columns:repeat(2,1fr);gap:8px 10px}.profit-ref .profit-field{gap:4px}.profit-ref .profit-field label{font-size:9.5px}.profit-ref .profit-field input{height:34px;padding:7px 9px;border-radius:7px;font-size:11px}
.monthly-save{width:100%;height:37px;margin-top:9px;border:0;border-radius:7px;color:white;font-weight:800;background:linear-gradient(90deg,#8445ff,#1398f6);cursor:pointer;box-shadow:0 6px 15px rgba(80,68,230,.18)}
.profit-lower-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(390px,.95fr);gap:12px;margin-bottom:12px}.profit-ref .chart-card,.profit-ref .calc-card{padding:13px}.profit-ref .profit-chart{height:250px;padding-top:18px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 48px,#edf2f8 49px)}
.formula-columns{display:grid!important;grid-template-columns:1fr 1fr;column-gap:20px;row-gap:0;font-size:10px!important;line-height:1.25!important}.profit-ref .formula-columns>div{padding:4px 5px!important;background:transparent!important;display:flex;justify-content:space-between;gap:8px}.profit-ref .formula-columns b{white-space:nowrap}
.formula-total-ref{margin-top:10px;padding:11px 13px;border:1px solid #aee7cf;border-radius:9px;background:linear-gradient(135deg,#ecfff6,#e5faf4);display:flex;align-items:center;justify-content:space-between;color:#087d59}.formula-total-ref span{font-size:15px;font-weight:800}.formula-total-ref strong{font-size:24px;color:#071b42}
.profit-ref .settings-card{padding:13px}.profit-ref .settings-card .profit-settings{grid-template-columns:repeat(4,1fr);gap:10px}.profit-ref .profit-note{margin-top:9px}
@media(max-width:1250px){.profit-upper-grid,.profit-lower-grid{grid-template-columns:1fr}.profit-ref .profit-cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){#profitPage.profit-ref{padding:10px}.profit-ref .profit-cards{grid-template-columns:1fr 1fr}.profit-ref .monthly-fields{grid-template-columns:1fr}.formula-columns{grid-template-columns:1fr}.profit-ref .settings-card .profit-settings{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.profit-ref .profit-cards{grid-template-columns:1fr}.profit-title-wrap{align-items:flex-start}.profit-ref .settings-card .profit-settings{grid-template-columns:1fr}}
.profit-ref .monthly-fields .highlight-month,
.profit-ref .monthly-fields .highlight-sales{
  padding:10px;
  border-radius:11px;
  position:relative;
}
.profit-ref .monthly-fields .highlight-month{
  background:linear-gradient(135deg,#f5f0ff 0%,#eee8ff 100%);
  border:1px solid #d9c9ff;
  box-shadow:0 5px 14px rgba(106,61,255,.10);
}
.profit-ref .monthly-fields .highlight-month label{
  color:#5d2eea;
  font-size:11px;
  font-weight:800;
}
.profit-ref .monthly-fields .highlight-month input{
  height:42px;
  border:2px solid #7546f6!important;
  background:#fbf9ff!important;
  color:#17224b;
  font-size:13px;
  font-weight:800;
  box-shadow:0 4px 12px rgba(117,70,246,.08);
}
.profit-ref .monthly-fields .highlight-sales{
  background:linear-gradient(135deg,#ecfff6 0%,#e2fbf0 100%);
  border:1px solid #aeeacb;
  box-shadow:0 5px 14px rgba(18,178,101,.10);
}
.profit-ref .monthly-fields .highlight-sales label{
  color:#07894d;
  font-size:11px;
  font-weight:800;
}
.profit-ref .monthly-fields .highlight-sales input{
  height:42px;
  border:2px solid #16b86b!important;
  background:#f5fffa!important;
  color:#092446;
  font-size:14px;
  font-weight:900;
  box-shadow:0 4px 12px rgba(22,184,107,.08);
}
.damage-type-badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#f0ebff;color:#6136df;font-size:10px;font-weight:800;white-space:nowrap}
.profit-ref .dp-sum{display:grid!important}
