/*---------------------------------------------------------
For deshboard.html css start here
-----------------------------------------------------------*/

    /*------------Sidebar CSS start here---------------*/
    :root {
      --sidebar-width: 260px;
      --navy: #172554;
      --navy-light: #23366f;
      --page-bg: #f5f7fb;
      --text-main: #182230;
      --muted: #667085;
      --border: #e8edf4;
    }
    * { box-sizing: border-box; }
    body { margin: 0; background: var(--page-bg); color: var(--text-main); font-family: Inter, "Segoe UI", Arial, sans-serif; }
    .sidebar {
      width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; z-index: 1040;
      background: var(--navy); color: #fff; overflow-y: auto; transition: transform .25s ease;
    }
    .brand { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.12); display:flex; gap:12px; align-items:center; }
    .brand-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; background:#3156b5; font-size:21px; }
    .brand-name { font-weight:750; letter-spacing:.4px; font-size:18px; }
    .brand-sub { color:#b8c5e8; font-size:11px; margin-top:2px; }
    .nav-section { color:#91a4d2; text-transform:uppercase; font-size:10px; font-weight:700; letter-spacing:1.1px; padding:20px 20px 8px; }
    .side-link { color:#d9e2f7; text-decoration:none; display:flex; align-items:center; gap:12px; padding:10px 20px; margin:2px 10px; border-radius:8px; font-size:13px; transition:.15s; }
    .side-link i { font-size:16px; width:19px; text-align:center; }
    .side-link:hover, .side-link.active { color:#fff; background:var(--navy-light); }
    .side-link.active { box-shadow:inset 3px 0 #78a3ff;}
    /*------------Sidebar CSS End here---------------*/

    .main { margin-left:var(--sidebar-width); min-height:100vh; }
    .topbar { height:72px; background:#fff; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; padding:0 28px; position:sticky; top:0; z-index:1020; }
    .topbar-title { font-size:17px; font-weight:700; }
    .top-actions { display:flex; align-items:center; gap:12px; }
    .icon-btn { width:38px; height:38px; border:1px solid var(--border); background:#fff; color:#475467; border-radius:9px; display:grid; place-items:center; }
    .avatar { width:36px; height:36px; border-radius:50%; background:#e7edff; color:#2346a0; display:grid; place-items:center; font-weight:700; font-size:13px; }
    .content { padding:28px; max-width:1600px; margin:auto; }
    .page-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:22px; }
    .page-heading h1 { font-size:24px; font-weight:750; margin:0 0 5px; }
    .page-heading p { color:var(--muted); margin:0; font-size:13px; }
    .stat-card, .panel { background:#fff; border:1px solid var(--border); border-radius:13px; }
    .stat-card { padding:18px; height:100%; }
    .stat-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
    .stat-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:11px; font-size:19px; }
    .stat-label { color:var(--muted); font-size:12px; font-weight:600; }
    .stat-value { font-size:23px; font-weight:750; margin:4px 0 5px; letter-spacing:-.5px; }
    .stat-note { font-size:11px; color:#667085; }
    .trend-up { color:#079455; font-weight:650; }
    .trend-down { color:#d92d20; font-weight:650; }
    .panel { padding:20px; }
    .panel-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px; }
    .panel-heading h2 { font-size:15px; font-weight:750; margin:0; }
    .panel-heading small { color:var(--muted); font-size:11px; }
    .chart-wrap { height:270px; position:relative; }
    .table { --bs-table-bg:transparent; margin-bottom:0; }
    .table thead th { color:#667085; font-size:10px; text-transform:uppercase; letter-spacing:.5px; font-weight:700; border-bottom-color:var(--border); padding:11px 10px; white-space:nowrap; }
    .table tbody td { font-size:12px; padding:13px 10px; vertical-align:middle; border-bottom-color:#f0f2f6; }
    .table tbody tr:last-child td { border-bottom:0; }
    .product-cell { display:flex; align-items:center; gap:10px; min-width:150px; }
    .product-thumb { width:34px; height:34px; border-radius:8px; background:#f0f3fa; color:#53668f; display:grid; place-items:center; font-size:15px; }
    .product-name { font-weight:650; font-size:12px; }
    .product-code { color:#98a2b3; font-size:10px; margin-top:2px; }
    .status { display:inline-flex; align-items:center; gap:5px; border-radius:20px; padding:5px 9px; font-size:10px; font-weight:700; }
    .status-paid { background:#e9f8ef; color:#087443; }
    .status-due { background:#fff4e5; color:#b54708; }
    .status-low { background:#fff0ee; color:#c43220; }
    .alert-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #f0f2f6; }
    .alert-row:last-child { border-bottom:0; padding-bottom:0; }
    .alert-product { display:flex; align-items:center; gap:10px; }
    .alert-product strong { display:block; font-size:12px; }
    .alert-product small { color:var(--muted); font-size:10px; }
    .stock-count { font-size:11px; font-weight:700; color:#c43220; white-space:nowrap; }
    .quick-action { border:1px solid var(--border); border-radius:10px; padding:13px 10px; text-decoration:none; color:var(--text-main); display:flex; flex-direction:column; align-items:center; gap:8px; font-size:11px; font-weight:650; height:100%; transition:.15s; }
    .quick-action:hover { border-color:#9bb5f5; background:#f8faff; color:#2346a0; transform:translateY(-1px); }
    .quick-action i { font-size:20px; color:#3156b5; }
    .footer { color:#98a2b3; font-size:10px; text-align:center; padding:24px 0 8px; }
    .mobile-overlay { display:none; }
    @media (max-width: 991.98px) {
      .sidebar { transform:translateX(-100%); }
      .sidebar.show { transform:translateX(0); }
      .main { margin-left:0; }
      .mobile-overlay.show { display:block; position:fixed; inset:0; z-index:1030; background:rgba(16,24,40,.45); }
      .topbar { padding:0 16px; }
      .content { padding:20px 16px; }
    }
    @media (max-width: 575.98px) {
      .page-heading { flex-direction:column; }
      .page-heading h1 { font-size:21px; }
      .topbar-title { font-size:14px; }
      .top-actions { gap:7px; }
      .stat-value { font-size:20px; }
      .panel { padding:15px; }
    }

/*---------------------------------------------------------
For deshboard.html css End here
-----------------------------------------------------------*/

/*--------------Side Bar sub manu css start here-------------*/
/*=========================================================
  REMS - REPORTS DROPDOWN MENU
=========================================================*/

/* Main dropdown container */
.sidebar .nav-dropdown {
    position: relative;
    width: 100%;
}

/* Reports main menu: use a button so click toggling works reliably. */
/* Normalize Reports button to match the other sidebar links */
.sidebar .nav-dropdown > button.report-menu {
    appearance: none;
    -webkit-appearance: none;

    display: flex;
    align-items: center;

    width: calc(100% - 20px);
    margin: 2px 10px;
    padding: 10px 20px;

    border: none !important;
    border-radius: 8px;

    background-color: transparent !important;
    color: #d9e2f7;

    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: normal;

    text-align: left;
    text-decoration: none;

    box-shadow: none !important;
    cursor: pointer;
    transition: .15s;
}

/* Reports hover and active state */
.sidebar .nav-dropdown > button.report-menu:hover,
.sidebar .nav-dropdown > button.report-menu.active {
    background-color: var(--navy-light) !important;
    color: #fff !important;
}

/* Remove unwanted browser focus styling */
.sidebar .nav-dropdown > button.report-menu:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none !important;
}

/* Keep keyboard navigation accessible */
.sidebar .nav-dropdown > button.report-menu:focus-visible {
    outline: 2px solid #9bb5ff;
    outline-offset: 2px;
}

.sidebar .nav-dropdown > .report-menu:focus-visible {
    outline: 2px solid #9bb5f5;
    outline-offset: 2px;
}

/* Dropdown arrow */
.sidebar .dropdown-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s ease;
}

/* Submenu stays hidden until JavaScript adds is-open. */
.sidebar .nav-dropdown .nav-submenu {
    display: none;
    flex-direction: column;
    padding: 5px 10px 5px 25px;
    gap: 3px;
}

.sidebar .nav-dropdown .nav-submenu.is-open {
    display: flex;
}

/* Rotate arrow only while the dropdown is open. */
.sidebar .nav-dropdown.is-open .dropdown-arrow {
    transform: rotate(90deg);
}

/* Submenu links */
.sidebar .nav-dropdown .side-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    margin: 0;
    color: #d9e2f7;
    text-decoration: none;
    font-size: 12px;
    border-radius: 7px;
    transition: all 0.2s ease;
}

/* Submenu icons */
.sidebar .nav-dropdown .side-sublink i {
    width: 19px;
    text-align: center;
    font-size: 14px;
}

/* Submenu hover */
.sidebar .nav-dropdown .side-sublink:hover,
.sidebar .nav-dropdown .side-sublink.active {
    background: var(--navy-light);
    color: #fff;
}

/* Highlight parent when submenu is active */
.sidebar .nav-dropdown:has(.side-sublink.active) > .report-menu {
    background: var(--navy-light);
    color: #fff;
}

/* Keyboard accessibility */

/*--------------Side Bar sub manu css end here-------------*/

/*=========================================================
  REMS - REPORT PAGES css start here
=========================================================*/

/* Report filter panel */
.report-filter-panel {
    margin-bottom: 20px;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr)) auto;
    align-items: end;
    gap: 15px;
}

.report-filter-grid .form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.report-filter-grid label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.report-filter-grid input {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
    color: var(--text-main);
}

.report-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Report summary cards */
.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.report-summary-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.report-summary-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf0ff;
    color: #2546a8;
    border-radius: 10px;
    font-size: 22px;
    flex-shrink: 0;
}

.report-summary-card p {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--muted);
}

.report-summary-card h3 {
    margin: 0;
    font-size: 21px;
    color: var(--text-main);
}

/* Report table header */
.report-table-panel {
    overflow: hidden;
}

.report-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.report-table-header h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.report-table-header p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.report-table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Report search */
.report-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0 10px;
    min-width: 210px;
    height: 40px;
    background: #fff;
}

.report-search i {
    color: var(--muted);
}

.report-search input {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    font-size: 13px;
}

/* Report table */
.report-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.report-table th,
.report-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 13px;
}

.report-table th {
    background: #f8fafc;
    color: #475467;
    font-weight: 600;
}

.report-table tbody tr:hover {
    background: #f8fafc;
}

.report-table-footer {
    padding: 14px 18px;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

/* Responsive report pages */
@media (max-width: 768px) {

    .report-filter-grid {
        grid-template-columns: 1fr;
    }

    .report-summary-grid {
        grid-template-columns: 1fr;
    }

    .report-table-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-table-actions {
        width: 100%;
    }

    .report-search {
        flex: 1;
        min-width: 0;
    }

}

/*=========================================================
  REMS - REPORT PAGES css end here
=========================================================*/

/*=========================================================
  REMS - COMMON MAIN CONTENT LAYOUT
  Compatible with .main and .main-content
=========================================================*/

.main,
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
}

/* Responsive layout for tablets and mobile devices */
@media (max-width: 991.98px) {

    .main,
    .main-content {
        margin-left: 0;
        width: 100%;
    }

}


/* Keep the reports submenu closed when the user collapses it. */
.sidebar .nav-dropdown .nav-submenu[hidden] { display: none !important; }



/* ==========================================================
   REMS 1.2.0 - Shared login and pagination components
   ========================================================== */
.login-page {
    min-height: 100vh;
    background: #f5f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, .08);
}
.login-logo {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #172554;
    color: #fff;
    border-radius: 15px;
    font-size: 30px;
}
.login-card .form-control { min-height: 46px; }
.login-btn {
    width: 100%;
    min-height: 46px;
    background: #172554;
    color: #fff;
    border: none;
    border-radius: 8px;
}
.login-btn:hover,
.login-btn:focus-visible {
    background: #23366f;
    color: #fff;
}
.load-more-btn:disabled { cursor: wait; opacity: .75; }
.pagination-error { flex-basis: 100%; }
@media (max-width: 575.98px) {
    .login-card { padding: 26px 20px; }
}
