/* =========================
   ROOT VARIABLES (ENTERPRISE)
========================= */
:root {
    --sidebar-width: 200px;
    --sidebar-width-collapsed: 60px;
    --header-height: 46px;
    --footer-height: 30px;

    --primary-color: #0ea5e9;
    --sidebar-bg: rgb(63, 84, 98);
    --text-light: rgba(255,255,255,0.9);
    --text-muted: rgba(255,255,255,0.6);
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: "Segoe UI", "Inter", sans-serif;
    overflow-x: hidden;
    background: #f4f6f9;
}

#app {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* =========================
   SIDEBAR
========================= */
.pc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    z-index: 1050;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--sidebar-bg);
    color: #fff;
    transition: all 0.3s ease;
}

.pc-sidebar::-webkit-scrollbar {
    display: none;
}

.pc-sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

/* =========================
   SIDEBAR STRUCTURE
========================= */
.navbar-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.navbar-content {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
}

.navbar-content::-webkit-scrollbar {
    display: none;
}

.m-header {
    padding: 12px;
    text-align: center;
    background: rgba(0,0,0,0.1);
}

.logo-sm {
    height: 30px;
}

/* dashboard.blade.php css code  */
/* =========================================
   DASHBOARD CHAT STRIP
========================================= */

.dashboard-chat-strip{
    width: 100%;
    min-height: 50px;
    background: #ffffff;
    border-radius: 20px;
    padding: 12px 18px;
    margin-bottom: 25px;

    display: flex;
    align-items: center;
    gap: 18px;

    overflow-x: auto;

    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.dashboard-chat-strip::-webkit-scrollbar{
    height: 5px;
}

.dashboard-chat-strip::-webkit-scrollbar-thumb{
    background: #d4d4d4;
    border-radius: 10px;
}

.dashboard-chat-user{
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;

    background: #f8f9fa;

    padding: 8px 14px;

    border-radius: 14px;

    transition: 0.2s ease;

    white-space: nowrap;
}

.dashboard-chat-user:hover{
    background: #eef3ff;
    transform: translateY(-2px);
}

.dashboard-chat-avatar{
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.dashboard-chat-avatar-default{
    background: #0d6efd;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 700;
}

.dashboard-chat-name{
    font-size: 14px;
    font-weight: 600;
    color: #343a40;
}

/* =========================
   MENU
========================= */
.pc-navbar {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pc-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pc-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pc-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.pc-link.active {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.pc-micon {
    display: flex;
    align-items: center;
    flex: 0 0 22px;
    width: 22px;
    margin-right: 12px;
    text-align: center;
}

.pc-micon i {
    width: 22px;
    font-size: 17px;
    text-align: center;
}

.pc-mtext {
    flex-grow: 1;
    font-size: 15px;
}

body.sidebar-collapsed .pc-sidebar {
    width: var(--sidebar-width-collapsed);
}

body.sidebar-collapsed .pc-sidebar .m-header {
    padding-inline: 8px;
}

body.sidebar-collapsed .pc-sidebar .logo-sm {
    max-width: 38px;
    object-fit: contain;
}

body.sidebar-collapsed .pc-sidebar .pc-caption,
body.sidebar-collapsed .pc-sidebar .pc-mtext {
    display: none;
}

body.sidebar-collapsed .pc-sidebar .pc-link {
    justify-content: center;
    padding: 12px 0;
}

body.sidebar-collapsed .pc-sidebar .pc-micon {
    margin-right: 0;
}

.erp-chat-float{
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b2ff7, #f107a3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.20);
    z-index: 99999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.erp-chat-float:hover{
    transform: scale(1.08);
    text-decoration: none;
}

.erp-chat-float i{
    font-size: 28px;
    color: #ffffff;
}

@media(max-width:768px){

    .erp-chat-float{
        width: 56px;
        height: 56px;
        right: 15px;
        bottom: 15px;
    }

    .erp-chat-float i{
        font-size: 24px;
    }
}

/* =========================
   HEADER
========================= */
header.navbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    z-index: 1040;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: left 0.3s ease;
    overflow: visible;
}

header.navbar .container-fluid {
    min-height: var(--header-height);
    padding-left: 0;
    padding-right: 0;
}

/* Header icons */
.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    color: #4a5568;
}

.header-icon:hover {
    color: var(--primary-color);
}

/* Dropdown */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.profile-dropdown-menu {
    min-width: 240px;
}

/* =========================
   MAIN CONTENT
========================= */
.main-content-area {
    position: absolute;
    top: var(--header-height);
    left: var(--sidebar-width);
    right: 0;
    bottom: var(--footer-height);
    overflow-y: auto;
    overflow-x: hidden;
    background: #f4f6f9;
    width: calc(100% - var(--sidebar-width));
    transition: all 0.3s ease;
}

.main-content {
    min-height: 100%;
    padding: 18px;
}

.scrollable-container,
.scrollable-container .pc-container,
.scrollable-container .pc-content {
    width: 100%;
    max-width: 100%;
}

.scrollable-container .pc-container {
    margin: 0;
}

body.sidebar-collapsed header.navbar {
    left: var(--sidebar-width-collapsed);
}

body.sidebar-collapsed .main-content-area {
    left: var(--sidebar-width-collapsed);
    width: calc(100% - var(--sidebar-width-collapsed));
}

body.sidebar-collapsed footer {
    left: var(--sidebar-width-collapsed);
}

/* =========================
   FOOTER
========================= */
footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--footer-height);
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .container {
    max-width: 100%;
}

/* =========================
   LOGIN PAGE
========================= */
body.login-page .pc-sidebar,
body.login-page header.navbar,
body.login-page footer {
    display: none;
}

body.login-page .main-content-area {
    position: static;
    width: 100%;
    height: 100vh;
    overflow: visible;
    background: transparent;
}

body.login-page .main-content {
    padding: 0;
}

/* =========================
   GLOBAL CARDS
========================= */
.card {
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid #eef1f5;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* =========================
   DASHBOARD CARDS FINAL
========================= */

.dashboard-card {
    background: #fff;
    border-radius: 8px;
    min-height: 170px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: all 0.25s ease;
    border: 1px solid #eef1f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.dashboard-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 5px;
    background: var(--card-color);
    border-radius: 10px;
}

.dashboard-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
}

.dashboard-card-value {
    font-size: 30px;
    font-weight: 700;
    margin: 10px 0;
}

.dashboard-card-icon {
    font-size: 40px;
}

.admin-module-cards {
    row-gap: 0;
}

.admin-module-card {
    min-height: 170px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #eef1f5;
    background: #fff;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.admin-module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.admin-module-card-bar {
    height: 6px;
    width: 100%;
}

.admin-module-card-body {
    min-height: 164px;
    padding: 20px;
    text-align: center;
}

.admin-module-title {
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-module-value {
    margin-bottom: 5px;
    color: #111827;
    font-size: 1.5rem;
    font-weight: 800;
}

.admin-module-icon {
    margin-top: 10px;
    font-size: 2.3rem;
}

/* charts */
.dashboard-wrapper .row {
    margin-left: calc(-0.5 * var(--bs-gutter-x));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
}

.dashboard-wrapper .card {
    border-radius: 8px;
}

.dashboard-chart-grid > [class*="col-"] {
    display: flex;
}

.chart-card {
    width: 100%;
    min-height: 360px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.chart-card .card-header {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: rgb(63, 84, 98);
    color: #48baf0;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 0;
}

.chart-card .card-body {
    flex: 1 1 auto;
    min-height: 0;
    height: 310px;
    padding: 24px 28px 18px;
    position: relative;
    background: #f8fafc;
}

.chart-card canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-card #revenueSummaryChart {
    max-height: 240px;
}

.chart-card #revenueAmount {
    color: #111827;
    font-weight: 800;
}

.chart-card #revenuePeriod {
    color: #6b7280;
}

.chart-card .form-select {
    max-width: 130px;
    border-color: #d9e1ea;
    font-size: 13px;
}

.compact-chart-card {
    min-height: 365px;
}

.compact-chart-card .card-body {
    height: 310px;
}

.wide-chart-card {
    min-height: 365px;
}

.wide-chart-card .card-body {
    height: 310px;
}

.insight-chart-card {
    min-height: 430px;
}

.chart-year-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    color: #eaf6ff;
    background: rgba(255,255,255,0.10);
    font-size: 13px;
    font-weight: 700;
}

.chart-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.chart-max-badge {
    color: #d1fae5;
    border-color: rgba(187, 247, 208, 0.40);
    background: rgba(22, 163, 74, 0.20);
}

.chart-insight-body {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.55fr);
    gap: 14px;
    align-items: center;
}

.chart-visual {
    position: relative;
    width: 100%;
    height: 305px;
    min-width: 0;
}

.chart-side-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.chart-side-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    background: #f8fafc;
}

.chart-side-item span {
    min-width: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-side-item strong {
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.chart-empty-state {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    background: #f8fafc;
    font-size: 13px;
    text-align: center;
}

.revenue-summary-visual {
    display: grid;
    place-items: center;
}

.chart-stat-row {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    pointer-events: none;
}

.chart-stat-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
}

.chart-stat-primary {
    background: #0d6efd;
}

.chart-stat-success {
    background: #198754;
}

.revenue-summary-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.revenue-summary-value h5 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
}

.revenue-summary-value small {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.recent-orders-card {
    overflow: hidden;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.recent-orders-card .card-header {
    min-height: 54px;
    padding: 14px 18px;
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
}

.recent-orders-table thead th {
    padding: 12px 18px;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #edf1f5;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.recent-orders-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 14px;
}

.recent-orders-table tbody tr:last-child td {
    border-bottom: 0;
}

.recent-order-link {
    color: #0d6efd;
    font-weight: 800;
    text-decoration: none;
}

.status-soft {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 800;
}

.status-quote {
    color: #7c3aed;
    background: #f3e8ff;
}

.status-confirmed {
    color: #0369a1;
    background: #e0f2fe;
}

.status-invoiced {
    color: #047857;
    background: #d1fae5;
}

.status-delivered {
    color: #15803d;
    background: #dcfce7;
}

.status-cancelled {
    color: #b91c1c;
    background: #fee2e2;
}

/* =========================
   PRODUCTS
========================= */
.product-form-page,
.product-create-page,
.product-show-page,
.products-index-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.product-form-card,
.product-create-card,
.product-show-card,
.products-index-card {
    width: 100%;
    border: 1px solid #e6ebf1;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.product-form-card .card-header,
.product-create-card .card-header {
    min-height: 56px;
    padding: 14px 18px;
    background: rgb(63, 84, 98);
    border-bottom: 1px solid #edf1f5;
}

.product-show-card .card-header,
.products-index-card .card-header {
    min-height: 56px;
    padding: 14px 18px;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
    border-radius: 0;
}

.product-page-title,
.product-create-title {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.product-show-card .product-page-title,
.products-index-card .product-page-title {
    color: #1f2937;
}

.product-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.product-form-grid .full-width {
    grid-column: 1 / -1;
}

.product-form-grid .form-label {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.product-form-grid .form-control,
.product-form-grid .form-select {
    min-height: 40px;
    border-color: #d9e1ea;
    border-radius: 7px;
    font-size: 14px;
}

.product-form-grid textarea.form-control {
    min-height: 96px;
}

.product-image-preview {
    max-width: 180px;
    max-height: 180px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
    object-fit: cover;
}

.product-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    margin-top: 6px;
    border-top: 1px solid #edf1f5;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 24px;
}

.product-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.product-detail-item {
    padding: 14px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #f8fafc;
}

.product-detail-item.full-width {
    grid-column: 1 / -1;
}

.product-detail-label {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-detail-value {
    margin: 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.product-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.product-status-pill.in-stock {
    color: #047857;
    background: #d1fae5;
}

.product-status-pill.out-stock {
    color: #b91c1c;
    background: #fee2e2;
}

.product-media-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 18px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #f8fafc;
}

.product-media-panel img {
    width: 100%;
    max-width: 320px;
    max-height: 320px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
}

.product-empty-image {
    color: #64748b;
    font-weight: 700;
    text-align: center;
}

.products-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.products-import-btn {
    color: #fff !important;
    background-color: #1e40af !important;
    border-color: #1e40af !important;
}

.products-import-btn:hover,
.products-import-btn:focus {
    color: #fff !important;
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.products-search-form {
    max-width: 400px;
    margin-left: auto;
    gap: 8px;
}

.products-table-wrap {
    width: 100%;
    overflow-x: hidden;
}

.products-table {
    width: 100%;
    min-width: 0;
    margin: 0;
    table-layout: fixed;
}

.products-table thead,
.products-table thead tr,
.products-table tbody tr {
    height: 28px;
    line-height: 28px;
}

.products-table th,
.products-table td {
    height: 24px;
    padding: 1px 10px;
    vertical-align: middle;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-table .serial-col {
    width: 60px;
    white-space: nowrap;
    border-left: none;
}

.products-table .actions-col {
    width: 118px;
    border-right: none;
}

.products-table .truncate-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-table .table-heading-text,
.products-table .table-heading-link {
    display: inline-block;
    color: #212529;
    font-size: 12px;
    line-height: 20px;
    text-decoration: none;
}

.products-stock-badge {
    font-size: 9px;
    padding: 1px 6px;
}

.creator-inline {
    display: flex;
    align-items: center;
    height: 20px;
}

.creator-avatar {
    width: 18px;
    height: 18px;
    font-size: 9px;
    background-color: #0d6efd;
}

.creator-avatar.admin {
    width: 16px;
    height: 16px;
    font-size: 8px;
}

.creator-name {
    font-size: 10px;
}

.product-row-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    height: 20px;
}

.product-action-btn {
    width: 26px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 14px;
}

.products-results-text {
    font-size: 11px;
}

/* =========================
   MODULE INDEX PAGES
========================= */
.module-index-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.module-index-card {
    width: 100%;
    border: 1px solid #e6ebf1;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.module-index-card .card-header {
    min-height: 56px;
    padding: 14px 18px;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
    border-radius: 0;
}

.module-page-title {
    margin: 0;
    color: #1f2937;
    font-size: 17px;
    font-weight: 800;
}

.index-page-title {
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0;
}

.module-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.module-search-form {
    max-width: 400px;
    margin-left: auto;
    gap: 8px;
}

.module-table-wrap {
    width: 100%;
    overflow-x: hidden;
}

.module-table {
    width: 100%;
    min-width: 0;
    margin: 0;
    table-layout: fixed;
}

.module-table thead,
.module-table thead tr,
.module-table tbody tr {
    height: 28px;
    line-height: 28px;
}

.module-table th,
.module-table td {
    height: 24px;
    padding: 1px 10px;
    vertical-align: middle;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-table .serial-col {
    width: 60px;
    white-space: nowrap;
    border-left: none;
}

.module-table .actions-col {
    width: 118px;
    border-right: none;
}

.module-table .truncate-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-table .table-heading-text,
.module-table .table-heading-link {
    display: inline-block;
    color: #212529;
    font-size: 12px;
    line-height: 20px;
    text-decoration: none;
}

.module-row-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    height: 20px;
}

.module-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 14px;
}

.module-results-text {
    font-size: 11px;
}

/* =========================
   TAXES
========================= */
.tax-form-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.tax-form-card {
    width: 100%;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.tax-form-card .card-header {
    min-height: 56px;
    padding: 14px 18px;
    background: rgb(63, 84, 98);
    border-bottom: 1px solid #edf1f5;
}

.tax-page-title {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.tax-form-grid {
    display: grid;
    grid-template-columns: minmax(240px, 520px);
    gap: 18px;
}

.tax-form-grid .form-label {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.tax-form-grid .form-control {
    min-height: 40px;
    border-color: #d9e1ea;
    border-radius: 7px;
    font-size: 14px;
}

.tax-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    margin-top: 24px;
    border-top: 1px solid #edf1f5;
}

.tax-detail-grid {
    display: grid;
    grid-template-columns: minmax(240px, 520px);
    gap: 16px;
}

.tax-detail-item {
    padding: 14px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #f8fafc;
}

.tax-detail-label {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.tax-detail-value {
    margin: 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}


/* chart */
.chart-container {
    height: 280px;
    padding: 20px;
}

/* =========================
   TABLE
========================= */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 13px;
}

.table tbody tr:hover {
    background: #f1f5f9;
}

/* =========================================
   REPORT SUBMENU
========================================= */

.report-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    background: rgba(0,0,0,0.08);
    border-radius: 0;
}

.report-submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.report-submenu .pc-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.report-submenu .pc-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.report-submenu .pc-link.active {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.report-submenu .pc-mtext {
    margin-left: 0;
}

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

    .pc-sidebar {
        transform: translateX(-100%);
        width: 240px;
    }

    .pc-sidebar.active {
        transform: translateX(0);
    }

    header.navbar {
        left: 0;
    }

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

    footer {
        left: 0;
    }

    body.sidebar-collapsed header.navbar,
    body.sidebar-collapsed footer {
        left: 0;
    }

    body.sidebar-collapsed .main-content-area {
        left: 0;
        width: 100%;
    }

    body.sidebar-collapsed .pc-sidebar {
        width: 240px;
    }

    body.sidebar-collapsed .pc-sidebar .logo-sm {
        max-width: none;
    }

    body.sidebar-collapsed .pc-sidebar .pc-caption,
    body.sidebar-collapsed .pc-sidebar .pc-mtext {
        display: initial;
    }

    body.sidebar-collapsed .pc-sidebar .pc-link {
        justify-content: flex-start;
        padding: 10px 20px;
    }

    body.sidebar-collapsed .pc-sidebar .pc-micon {
        margin-right: 10px;
    }
}

@media (max-width: 767px) {
    :root {
        --header-height: 52px;
        --footer-height: 40px;
    }

    .main-content {
        padding: 12px;
    }

    .dashboard-card {
        min-height: 150px;
    }

    .chart-card {
        min-height: 340px;
    }

    .compact-chart-card {
        min-height: 270px;
    }

    .chart-card .card-header {
        min-height: 50px;
        padding: 12px 14px;
    }

    .chart-card .card-body {
        height: 285px;
        padding: 14px;
    }

    .compact-chart-card .card-body {
        height: 205px;
    }

    .wide-chart-card {
        min-height: 275px;
    }

    .wide-chart-card .card-body {
        height: 210px;
    }

    .chart-insight-body {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .chart-visual {
        height: 220px;
    }

.recent-orders-table {
    min-width: 680px;
}

.recent-order-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 26px;
    padding: 0;
    border-radius: 6px;
}

    .product-create-card .card-header,
    .product-form-card .card-header,
    .product-show-card .card-header,
    .products-index-card .card-header,
    .tax-form-card .card-header,
    .product-form-actions,
    .product-form-actions > div,
    .tax-form-actions,
    .tax-form-actions > div {
        align-items: stretch !important;
        flex-direction: column;
    }

    .product-form-grid,
    .product-detail-grid,
    .product-detail-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-form-actions .btn,
    .tax-form-actions .btn,
    .product-show-card .card-header .btn,
    .products-index-card .card-header .btn,
    .tax-form-card .card-header .btn {
        width: 100%;
    }

    .products-toolbar,
    .products-search-form,
    .module-toolbar,
    .module-search-form {
        width: 100%;
        flex-direction: column;
    }

    .products-search-form,
    .module-search-form {
        max-width: 100%;
    }

    .products-table-wrap,
    .module-table-wrap {
        overflow-x: auto;
    }

    .products-table,
    .module-table {
        min-width: 900px;
    }

    .tax-form-grid,
    .tax-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .product-detail-grid,
    .product-detail-list {
        grid-template-columns: 1fr;
    }
}

/* =========================
   SIDEBAR OVERLAY
========================= */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1045;
    display: none;
    background: rgba(15, 23, 42, 0.45);
}

.sidebar-overlay.active {
    display: block;
}

/* =========================
   ADMIN PAGE SPACING ONLY
   Keep module/table styling intact.
========================= */
.scrollable-container {
    width: 100%;
    max-width: 100%;
}

.scrollable-container > .pc-container[style*="margin-top: 20px"],
.scrollable-container > .pc-container[style*="margin-top:20px"],
.scrollable-container > .container-fluid.mt-4 {
    margin-top: 0 !important;
}

.scrollable-container > .pc-container[style*="margin-left: -10px"],
.scrollable-container > .pc-container[style*="margin-left:-10px"] {
    margin-left: 0 !important;
}
