/* Retail Pro — Fresher IT BD brand palette (https://fresheritbd.com) */
:root {
    --rp-primary-dark: #0d1b2a;
    --rp-primary: #1b3a6b;
    --rp-primary-light: #2563eb;
    --rp-primary-hover: #1d4ed8;
    --rp-accent: #2563eb;
    --rp-success: #059669;
    --rp-text: #0f172a;
    --rp-muted: #475569;
    --rp-gradient: linear-gradient(135deg, #0d1b2a 0%, #1b3a6b 45%, #2563eb 100%);
    --rp-gradient-login: linear-gradient(135deg, #0d1b2a 0%, #1b3a6b 50%, #2563eb 100%);
}

.module_title {
    background-color: var(--rp-primary-light) !important;
    text-align: center;
    font-size: 18px !important;
    font-weight: bold;
    font-style: italic;
    color: #fff !important;
}

.module_title span {
    font-size: 18px !important;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.preloader img {
    width: 100px;
    height: auto;
}

#toast-container .toast {
    opacity: 1 !important;
    box-shadow: none !important;
}

.stat-widget {
    border-radius: 4px;
    padding: 18px 20px;
    color: #fff;
    margin-bottom: 15px;
    min-height: 90px;
}

.stat-widget .stat-value {
    font-size: 28px;
    font-weight: bold;
    margin: 5px 0;
}

.stat-widget .stat-label {
    font-size: 13px;
    opacity: 0.9;
}

.stat-widget .stat-icon {
    font-size: 42px;
    opacity: 0.35;
    float: right;
    margin-top: -5px;
}

.bg-stat-blue { background: linear-gradient(135deg, var(--rp-primary-dark), var(--rp-primary-light)); }
.bg-stat-green { background: linear-gradient(135deg, var(--rp-success), #047857); }
.bg-stat-orange { background: linear-gradient(135deg, #f0ad4e, #ec971f); }
.bg-stat-purple { background: linear-gradient(135deg, var(--rp-primary), var(--rp-primary-hover)); }
.bg-stat-red { background: linear-gradient(135deg, #d9534f, #c9302c); }
.bg-stat-teal { background: linear-gradient(135deg, #5bc0de, #31b0d5); }

.module-card {
    display: block;
    background: #A7ECFB;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px 10px;
    text-align: center;
    margin-bottom: 15px;
    min-height: 120px;
    transition: transform 0.15s, box-shadow 0.15s;
    color: #333;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #333;
}

.module-card .module-icon {
    font-size: 48px;
    color: #337ab7;
    margin-bottom: 8px;
}

.module-card .module-name {
    font-weight: bold;
    font-size: 14px;
}

.scheduler-border {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.scheduler-border legend {
    width: auto;
    border: none;
    font-size: 16px;
    font-weight: bold;
    padding: 0 8px;
    margin-bottom: 0;
}

.bg-of-skyblue {
    background: #f0f8ff;
}

.page-toolbar {
    margin-bottom: 15px;
}

.page-toolbar .form-inline .form-group {
    margin-right: 10px;
}

table.data-table > thead > tr > th {
    text-align: center;
    background: var(--rp-primary);
    color: #fff;
    white-space: nowrap;
}

table.data-table > tbody > tr > td {
    vertical-align: middle !important;
}

.badge-retail { background: #5bc0de; }
.badge-wholesale { background: #f0ad4e; }

.pos-layout .product-grid {
    max-height: 420px;
    overflow-y: auto;
}

.pos-layout .product-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    background: #fff;
}

.pos-layout .product-item:hover {
    border-color: #337ab7;
    background: #f0f8ff;
}

.pos-layout .cart-panel {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    min-height: 480px;
}

.pos-total {
    font-size: 24px;
    font-weight: bold;
    color: var(--rp-primary);
}

.login-page {
    min-height: 100vh;
    background: var(--rp-gradient-login);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.login-box .brand-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-box .brand-logo h2 {
    color: var(--rp-primary);
    font-weight: bold;
    margin: 10px 0 5px;
}

.login-box .brand-logo p {
    color: #888;
    font-size: 13px;
}

.v-select .dropdown-toggle {
    padding: 0;
    height: 30px !important;
}

.v-select .dropdown-menu {
    width: 450px !important;
}

.paginateBtn {
    font-weight: bold;
    border: none;
    padding: 2px 8px;
    border-radius: 2px;
}

.active-page {
    background-color: #007bff;
    color: white;
}

.chart-placeholder {
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 4px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--rp-primary-light);
    object-fit: cover;
}

.module-tile-lg {
    min-height: 110px;
    padding: 18px 8px;
}

.module-tile-lg .module-icon {
    font-size: 42px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    height: 200px;
    gap: 8px;
    padding: 10px 0;
}

.chart-bar-wrap {
    flex: 1;
    text-align: center;
}

.chart-bar {
    background: linear-gradient(180deg, var(--rp-primary-light), var(--rp-primary));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    margin: 0 auto;
    width: 80%;
}

.chart-bar-wrap small {
    display: block;
    margin-top: 4px;
    color: #888;
}

/* Production layout polish */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body.skin-2 {
    min-height: 100vh;
}

.main-container {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.navbar-fixed-top + .main-container {
    padding-top: 45px;
}

#navbar.navbar {
    min-height: 45px;
    max-height: 45px;
    margin-bottom: 0;
    border-width: 0;
    z-index: 1030;
}

#navbar .navbar-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-height: 45px;
    overflow: hidden;
    padding-right: 8px;
}

#navbar .navbar-header {
    float: none !important;
    flex: 0 0 auto;
    max-width: min(220px, 35vw);
    overflow: hidden;
}

#navbar .navbar-header .navbar-brand {
    display: block;
    overflow: hidden;
    padding-top: 4px;
    padding-bottom: 4px;
}

#navbar .navbar-header .navbar-brand img {
    max-width: 100%;
    height: auto;
    max-height: 36px;
}

#navbar .navbar-buttons {
    float: none !important;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
}

#navbar .nav.ace-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
}

#navbar .nav.ace-nav > li {
    float: none;
    flex: 0 0 auto;
}

.navbar .user-info {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.navbar .user-info small {
    display: block;
    line-height: 1.1;
}

.clock_li a.clock {
    padding: 6px 10px !important;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.clock_li #clock-date,
.clock_li #timer {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px !important;
    line-height: 1.2;
}

#sidebar.sidebar {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#sidebar.sidebar .nav-list {
    overflow: visible;
}

#sidebar.sidebar .nav-list > li > a {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 9px 10px 9px 12px;
    white-space: normal;
    line-height: 1.35;
}

#sidebar.sidebar .nav-list .menu-text {
    white-space: normal;
    word-break: break-word;
    flex: 1 1 auto;
    min-width: 0;
}

#sidebar.sidebar .nav-list .menu-icon {
    flex: 0 0 auto;
    margin-top: 2px;
}

#sidebar.sidebar .submenu > li > a {
    white-space: normal;
    word-break: break-word;
    padding-left: 28px;
    line-height: 1.35;
}

.sidebar.sidebar-scroll {
    overflow-y: auto;
    max-height: calc(100vh - 45px);
}

.main-content {
    overflow-x: hidden;
    min-height: calc(100vh - 45px);
    max-width: 100%;
}

.main-content-inner,
.page-content {
    max-width: 100%;
    overflow-x: hidden;
}

.page-content {
    padding: 16px 20px 24px;
    min-height: calc(100vh - 180px);
}

.page-content .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.footer {
    position: relative;
    clear: both;
    max-width: 100%;
    overflow: hidden;
}

.breadcrumbs {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 1199px) {
    .clock_li #clock-date {
        display: none;
    }

    .clock_li #timer {
        max-width: 72px;
    }
}

@media (max-width: 991px) {
    .navbar .user-info {
        max-width: 90px;
    }

    .page-content {
        padding: 12px 10px 20px;
    }

    .stat-widget .stat-value {
        font-size: 22px;
    }
}

.breadcrumbs .nav-search {
    display: none;
}

@media (min-width: 992px) {
    .breadcrumbs .nav-search {
        display: block;
    }
}

@media (max-width: 767px) {
    .navbar-brand img {
        height: 30px !important;
    }

    .module-card {
        min-height: 90px;
        padding: 14px 8px;
    }
}

/* Fresher IT BD — override legacy purple/pink ace skin-2 colors */
.rp-navbar,
.rp-navbar .clock,
.rp-footer-brand {
    background: var(--rp-primary) !important;
}

.rp-preloader-text {
    color: var(--rp-primary);
}

.rp-navbar .navbar-brand img {
    background: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    max-height: 34px;
    width: auto;
}

body.skin-2 {
    background-color: #f8fafc;
}

body.skin-2 .navbar {
    background: var(--rp-primary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.skin-2 .sidebar,
body.skin-2 .nav-list > li > a {
    background-color: var(--rp-primary-dark) !important;
    color: #e2e8f0 !important;
}

body.skin-2 .sidebar-shortcuts {
    background-color: var(--rp-primary-dark) !important;
}

body.skin-2 .nav-list > li.hover-show > a,
body.skin-2 .nav-list > li.open > a,
body.skin-2 .nav-list > li:hover > a,
body.skin-2 .nav-list > li.active.highlight > a {
    background-color: var(--rp-primary) !important;
}

body.skin-2 .nav-list > li.active > a {
    background-color: var(--rp-primary-light) !important;
    color: #fff !important;
}

body.skin-2 .nav-list > li.active.hover-show > a,
body.skin-2 .nav-list > li.active.open > a,
body.skin-2 .nav-list > li.active:hover > a {
    background-color: var(--rp-primary-hover) !important;
}

body.skin-2 .nav-list > li > a > .menu-text,
body.skin-2 .nav-list > li > a > .menu-icon,
body.skin-2 .nav-list > li > a > .arrow {
    color: #e2e8f0 !important;
}

body.skin-2 .nav-list > li.active > a > .menu-text,
body.skin-2 .nav-list > li.active > a > .menu-icon,
body.skin-2 .nav-list > li.active > a > .arrow {
    color: #fff !important;
}

body.skin-2 .nav-list > li.hover-show > a > .menu-text,
body.skin-2 .nav-list > li:hover > a > .menu-text,
body.skin-2 .nav-list > li.open > a > .menu-text {
    color: #fff !important;
}

body.skin-2 .breadcrumbs {
    background: var(--rp-primary-light) !important;
    border-color: var(--rp-primary-light) !important;
}

body.skin-2 .btn-primary {
    background-color: var(--rp-primary-light) !important;
    border-color: var(--rp-primary-hover) !important;
}

body.skin-2 .btn-primary:hover,
body.skin-2 .btn-primary:focus {
    background-color: var(--rp-primary-hover) !important;
    border-color: var(--rp-primary-hover) !important;
}

.rp-accent-text {
    color: var(--rp-primary-light) !important;
}

.rp-login-page {
    background: var(--rp-gradient-login);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.rp-btn-login {
    background: var(--rp-primary-light);
    border-color: var(--rp-primary-hover);
}

.rp-btn-login:hover {
    background: var(--rp-primary-hover);
    border-color: var(--rp-primary-hover);
}

.selectize-dropdown .active,
.selectize-control.single .selectize-input.input-active {
    background-color: var(--rp-primary-light) !important;
}
