/* BizzCube V4 visual refresh. Keep behavior and page-specific layout intact. */
:root {
    --bc-ink: #101a38;
    --bc-muted: #62708e;
    --bc-line: #e6ebf5;
    --bc-panel: #ffffff;
    --bc-canvas: #f3f6fc;
    --bc-blue: #1769f5;
    --bc-blue-deep: #1558dc;
    --bc-purple: #5a38f5;
    --bc-shadow: 0 5px 18px rgba(39, 61, 113, .07);
}

html, body {
    color: var(--bc-ink);
    background: var(--bc-canvas);
    font-family: Inter, Poppins, "Segoe UI", Arial, sans-serif;
}

body {
    font-size: 14px;
}

html body .header-bar {
    height: 68px !important;
    padding: 9px 20px !important;
    background: linear-gradient(112deg, #f8faff 0%, #edf3ff 58%, #e3eaff 100%) !important;
    border-bottom: 1px solid #dce5fa !important;
    box-shadow: 0 2px 12px rgba(39, 61, 113, .05) !important;
}

html body .user-menu-trigger {
    border-radius: 2px !important;
    box-shadow: none !important;
}

.header-left {
    min-width: 236px !important;
    height: 68px;
}

.brand-wrap img {
    height: 45px !important;
}

.user-menu-trigger {
    min-height: 46px !important;
    border: 1px solid #e4e9f4 !important;
    border-radius: 7px !important;
    background: rgba(255,255,255,.88) !important;
    box-shadow: 0 3px 10px rgba(42, 65, 116, .06) !important;
}

.user-avatar {
    background: linear-gradient(145deg, #704bff, #4725e8) !important;
    color: #fff !important;
}

html body .user-menu-trigger:hover {
    border-color: #cbd8f4 !important;
}

.user-meta-name { color: var(--bc-ink) !important; }
.user-meta-role, .user-meta-caret { color: var(--bc-muted) !important; }

.custom-dropdown {
    border-color: var(--bc-line) !important;
    box-shadow: 0 16px 42px rgba(29, 46, 91, .17) !important;
}

html body .custom-dropdown,
html body .package-card,
html body .dropdown-link,
html body .reminder-modal,
html body .reminder-modal-close,
html body .submenu-indicator {
    border-radius: 5px !important;
}

.dropdown-head,
.reminder-modal-header {
    background: linear-gradient(115deg, #f1f5ff, #e8edff) !important;
    border-color: #e0e7fb !important;
}

.dropdown-company,
.reminder-modal-title { color: var(--bc-ink) !important; }
.package-card { background: #f8faff !important; border-color: var(--bc-line) !important; }
.package-card-head, .package-card-head i, .dropdown-link i { color: var(--bc-purple) !important; }
html body .dropdown-link:hover {
    color: #294fbb !important;
    background: #f2f5ff !important;
    border-color: #dce4ff !important;
}

.main-container {
    height: calc(100vh - 68px) !important;
    margin-top: 68px !important;
    background: var(--bc-canvas);
}

.sidebar {
    top: 68px !important;
    left: 0 !important;
    width: 260px !important;
    height: calc(100vh - 68px) !important;
    margin: 0 !important;
    padding: 15px 12px !important;
    border-right: 1px solid #e7ecf5;
    border-radius: 0 !important;
    background: #fbfcff !important;
    box-shadow: 2px 0 12px rgba(43, 61, 104, .025);
    z-index: 1040;
}

.sidebar .nav-link,
.sidebar .submenu .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 13px !important;
    margin: 3px 0 !important;
    border-radius: 2px !important;
    color: #263453 !important;
    font-size: 14px !important;
    font-weight: 500;
    transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.sidebar .nav-link > i {
    width: 20px;
    color: #34496f;
    font-size: 19px !important;
    text-align: center;
}

.sidebar .nav-link.active,
.sidebar .submenu .nav-link.active {
    color: #fff !important;
    background: #6570f5 !important;
    box-shadow: 0 6px 14px rgba(90, 91, 245, .22);
}

.sidebar .nav-link.active > i,
.sidebar .submenu .nav-link.active > i { color: #fff !important; }

@media (hover: hover) and (pointer: fine) {
    .sidebar .nav-link:hover,
    .sidebar .submenu .nav-link:hover {
        color: #3155c9 !important;
        background: #eef2ff !important;
    }
    .sidebar .nav-link.active:hover,
    .sidebar .submenu .nav-link.active:hover {
        color: #fff !important;
        background: #6570f5 !important;
    }
}

.sidebar .submenu .nav-link {
    min-height: 38px;
    padding: 8px 12px 8px 18px !important;
    color: #52617e !important;
    font-size: 13px !important;
}

.sidebar .submenu .nav-link > i { font-size: 15px !important; }
.sidebar .submenu .nav-link.active { background: #eef0ff !important; color: #5034e8 !important; box-shadow: none; }
.sidebar .submenu .nav-link.active > i { color: #5034e8 !important; }
.sidebar .nav-item.open > .submenu { padding: 3px 0 6px !important; }
.sidebar .nav-item.has-submenu > a.nav-link .submenu-caret { color: #5c6c8a; font-size: 17px !important; }

.sidebar-footer {
    margin-top: 12px !important;
    padding: 14px 8px 0 !important;
    border-top-color: #e5eaf4 !important;
    background: transparent !important;
}

.sidebar-footer p { color: #74809b !important; }
.sidebar-footer a { color: var(--bc-purple) !important; }

.content-container {
    margin-left: 260px !important;
    padding: 18px !important;
    background: var(--bc-canvas);
}

.content-container .card,
.content-container .modal-content,
.content-container .dash-card,
.content-container .chart-card,
.content-container .perf-card,
.content-container .notice-mini {
    border: 1px solid var(--bc-line);
    border-radius: 8px;
    box-shadow: var(--bc-shadow);
}

.content-container .card-header,
.content-container .card-header1 {
    border-radius: 7px 7px 0 0;
}

.content-container .form-control,
.content-container .form-select,
.content-container input:not([type="checkbox"]):not([type="radio"]),
.content-container select,
.content-container textarea {
    border-color: #dce3ef;
    border-radius: 6px;
}

.content-container .form-control:focus,
.content-container .form-select:focus,
.content-container input:focus,
.content-container select:focus,
.content-container textarea:focus {
    border-color: #8ba8ff;
    box-shadow: 0 0 0 .2rem rgba(67, 112, 246, .13);
}

.content-container .btn,
.content-container button:not(.reminder-modal-close):not(.grace-close) {
    border-radius: 6px;
    transition: box-shadow .16s ease, filter .16s ease, transform .16s ease;
}

.content-container .btn-primary,
.reminder-btn-ok {
    color: #fff !important;
    background: linear-gradient(110deg, #1769f5, #397cff) !important;
    border-color: #1769f5 !important;
    box-shadow: 0 4px 10px rgba(23, 105, 245, .15);
}

.content-container .btn-primary:hover,
.reminder-btn-ok:hover { filter: brightness(.96); }

.content-container .table {
    --bs-table-border-color: #e8edf5;
}

.content-container .table thead th {
    color: #596987;
    background-color: #f6f8fc;
    font-weight: 600;
}

.content-container .table > :not(caption) > * > * { padding: .65rem .75rem; }

.expired-grace-bar {
    color: #243d7b !important;
    background: linear-gradient(90deg, #edf3ff, #dfe9ff) !important;
    border-bottom-color: #cfdbf7 !important;
}

@media (max-width: 768px) {
    .header-bar { height: 60px !important; }
    .header-left { min-width: 0 !important; height: auto; }
    .brand-wrap img { height: 35px !important; }
    .main-container { height: calc(100vh - 60px) !important; margin-top: 60px !important; }
    .sidebar {
        top: 60px !important;
        width: min(290px, 86vw) !important;
        height: calc(100vh - 60px) !important;
        border-right: 1px solid var(--bc-line);
        box-shadow: 12px 0 28px rgba(24, 40, 80, .12);
    }
    .content-container { margin-left: 0 !important; padding: 14px !important; }
}

@media (max-width: 576px) {
    .content-container { padding: 11px !important; }
}

/* Dashboard composition aligned to the supplied reference. */
html body .db-wrap .kpi-row,
html body .db-wrap .table-row,
html body .db-wrap .bottom-row { gap: 14px; }

html body .db-wrap .kpi-card {
    min-height: 112px;
    padding: 17px 14px 14px 84px;
    justify-content: center;
    background: #fff !important;
    border: 1px solid #e8edf7;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(45, 69, 126, .07);
}

html body .db-wrap .kpi-card::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 19px;
    width: 52px;
    height: 58px;
    border-radius: 8px;
    background: #e8f0ff;
}

html body .db-wrap .kpi-card:nth-child(2)::before { background: #f0eaff; }
html body .db-wrap .kpi-card:nth-child(3)::before { background: #e3f8f0; }
html body .db-wrap .kpi-card:nth-child(4)::before { background: #fde8f5; }
html body .db-wrap .kpi-card .kpi-label { color: #596987; letter-spacing: .25px; }
html body .db-wrap .kpi-card .kpi-value { color: #101a38; font-size: 21px; }
html body .db-wrap .kpi-card .kpi-bg-icon {
    z-index: 1;
    left: 29px;
    right: auto;
    top: 34px;
    bottom: auto;
    opacity: 1;
    color: #1769f5;
    font-size: 25px;
}
html body .db-wrap .kpi-card:nth-child(2) .kpi-bg-icon { color: #613cff; }
html body .db-wrap .kpi-card:nth-child(3) .kpi-bg-icon { color: #16a875; }
html body .db-wrap .kpi-card:nth-child(4) .kpi-bg-icon { color: #ca2584; }

html body .db-wrap .dash-card,
html body .db-wrap .chart-card,
html body .db-wrap .perf-card {
    border: 1px solid #e6ebf5;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(45, 69, 126, .06);
}

html body .db-wrap .dash-card-header,
html body .db-wrap .chart-card-header,
html body .db-wrap .perf-card-header {
    min-height: 48px;
    padding: 11px 16px;
    color: #121d3c;
    background: #edf2fc !important;
    border-bottom: 1px solid #e5eafa;
}

html body .db-wrap .dash-card-header i,
html body .db-wrap .chart-card-header i,
html body .db-wrap .perf-card-header i { color: #1769f5; }
html body .db-wrap .dash-table thead th { color: #61708f; background: #f7f9fd; }
html body .db-wrap .dash-table tbody tr:hover { background: #f4f7ff; }
html body .db-wrap .dash-table tbody td.td-amount,
html body .db-wrap .dash-table tbody td.td-count { color: #1769f5; }
html body .db-wrap .dash-table tbody tr:last-child td { border-bottom: 0; }
html body .db-wrap .chart-select { border-color: #e0e7f3; color: #394e79; }
html body .db-wrap .perf-list-item { background: #f8faff; border-color: #edf0f7; }
html body .db-wrap .perf-list-item:hover { background: #f0f4ff; border-color: #d9e2ff; }
html body .db-wrap .perf-list-amount { color: #101a38; }

@media (max-width: 576px) {
    html body .db-wrap .kpi-card { min-height: 108px; padding-left: 72px; }
    html body .db-wrap .kpi-card::before { left: 11px; width: 48px; }
    html body .db-wrap .kpi-card .kpi-bg-icon { left: 24px; }
    html body .db-wrap .kpi-card .kpi-value { font-size: 17px; }
}

/* Consistent compact controls across pages with their own inline styles. */
html body .content-container {
    font-size: 13px;
}

html body .content-container .card,
html body .content-container [class$="-card"],
html body .content-container .info-box,
html body .content-container .alert,
html body .content-container .dropdown-menu,
html body .content-container .table-responsive,
html body .content-container .table-wrap,
html body .content-container [class$="-panel"],
html body .content-container .card-header1,
html body .content-container .card-header-custom,
html body .content-container .page-header,
html body .content-container .modal-content,
html body .modal-content {
    border-radius: 5px !important;
}

html body .content-container .table-responsive { overflow-x: auto; }
html body .content-container .badge { border-radius: 3px !important; }
html body .content-container .edit-quotation-action-group,
html body .content-container .btn-group-actions,
html body .content-container [class$="-filter-bar"] { border-radius: 5px !important; }
html body .content-container .edit-quotation-action-group .btn-add-source-2,
html body .content-container .edit-quotation-action-group .btn-add-source-2:first-child,
html body .content-container .edit-quotation-action-group .btn-add-source-2:last-child {
    border-radius: 4px !important;
}

html body .content-container .card-header,
html body .content-container .card-header1,
html body .content-container .card-header-custom {
    border-radius: 5px 5px 0 0 !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

html body .content-container .card-body,
html body .content-container .card-body-custom {
    padding: 16px !important;
}

html body .content-container .form-control,
html body .content-container .form-select,
html body .content-container input:not([type="checkbox"]):not([type="radio"]),
html body .content-container select,
html body .content-container textarea {
    border-radius: 4px !important;
    font-size: 13px;
}

html body .content-container .btn,
html body .content-container button:not(.btn-close):not(.reminder-modal-close):not(.grace-close),
html body .content-container input[type="button"],
html body .content-container input[type="submit"],
html body .modal-content .btn,
html body .modal-content button:not(.btn-close) {
    border-radius: 4px !important;
    font-size: 13px;
    font-weight: 500;
}

html body .content-container .table,
html body .content-container table:not(.dash-table) {
    font-size: 12px !important;
    --bs-table-border-color: #e8edf5;
}

html body .content-container .table > :not(caption) > * > *,
html body .content-container table:not(.dash-table) th,
html body .content-container table:not(.dash-table) td {
    padding: .4rem .55rem !important;
    border-color: #e8edf5 !important;
    line-height: 1.35;
}

html body .content-container .table thead th,
html body .content-container table:not(.dash-table) thead th {
    color: #596987;
    background: #f6f8fc;
    font-weight: 600 !important;
}

html body .content-container .table tbody td,
html body .content-container table:not(.dash-table) tbody td {
    font-weight: 400;
}

html body .btn-primary,
html body .btn-primary2,
html body .btn-primary-2,
html body .btn-login,
html body .btn-register,
html body .btn-reset,
html body .btn-save,
html body .btn-save-doc,
html body .btn-add-source-2,
html body .btn-add-source,
html body .btn-add-user,
html body .job-cost-add-btn,
html body .add-customer-btn,
html body .add-supplier-btn,
html body .btn-choose,
html body .btn-premium,
html body .modal-journal-btn-primary,
html body .aqi-btn-save,
html body .maim-btn-save,
html body .maqm-btn-save,
html body .po-btn-save,
html body .ncus-btn-save,
html body .confirm-btn-save,
html body .btn-modal-primary {
    color: #fff !important;
    background: #1769f5 !important;
    background-image: none !important;
    border-color: #1769f5 !important;
    box-shadow: 0 2px 6px rgba(23, 105, 245, .14) !important;
}

html body .btn-primary:hover,
html body .btn-primary2:hover,
html body .btn-primary-2:hover,
html body .btn-login:hover,
html body .btn-register:hover,
html body .btn-reset:hover,
html body .btn-save:hover,
html body .btn-save-doc:hover,
html body .btn-add-source-2:hover,
html body .btn-add-source:hover,
html body .btn-add-user:hover:enabled,
html body .job-cost-add-btn:hover,
html body .add-customer-btn:hover,
html body .add-supplier-btn:hover,
html body .btn-choose:hover,
html body .btn-premium:hover,
html body .modal-journal-btn-primary:hover,
html body .aqi-btn-save:hover,
html body .maim-btn-save:hover,
html body .maqm-btn-save:hover,
html body .po-btn-save:hover,
html body .ncus-btn-save:hover,
html body .confirm-btn-save:hover,
html body .btn-modal-primary:hover {
    color: #fff !important;
    background: #1558dc !important;
    background-image: none !important;
    border-color: #1558dc !important;
}

html body .btn-choose {
    display: block;
    width: fit-content;
    min-height: 34px;
    margin: 14px auto 0 !important;
    padding: 7px 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 6px rgba(23, 105, 245, .14) !important;
}

html body .btn-choose:hover,
html body .btn-add-source:hover,
html body .btn-add-user:hover:enabled,
html body .add-customer-btn:hover,
html body .add-supplier-btn:hover,
html body .btn-premium:hover,
html body .modal-journal-btn-primary:hover {
    color: #fff !important;
    background: #1558dc !important;
    box-shadow: 0 2px 6px rgba(23, 105, 245, .14) !important;
}

html body .btn-warning,
html body .btn-outline-warning {
    color: #1760df !important;
    background: #eef3ff !important;
    background-image: none !important;
    border-color: #d7e2ff !important;
}

html body .btn-secondary2,
html body .btn-secondary,
html body .btn-back,
html body .btn-modal-cancel {
    color: #43516d !important;
    background: #f3f5f9 !important;
    background-image: none !important;
    border-color: #e2e7f0 !important;
}

html body .btn-secondary2:hover,
html body .btn-secondary:hover,
html body .btn-back:hover,
html body .btn-modal-cancel:hover {
    color: #243552 !important;
    background: #e9edf5 !important;
    border-color: #d9e0ec !important;
}

html body .modal-journal-btn-secondary,
html body .maim-btn-cancel,
html body .maqm-btn-cancel,
html body .ncus-btn-cancel,
html body .po-btn-cancel,
html body .btn-soft,
html body .aqi-btn-back {
    color: #43516d !important;
    background: #f3f5f9 !important;
    border-color: #e2e7f0 !important;
    box-shadow: none !important;
}

html body .btn-add {
    color: #1769f5 !important;
}

html body .btn-add:hover {
    color: #1558dc !important;
}

html body .btn-ghost:hover {
    border-color: #8ba8ff !important;
}

html body .btn-edit {
    color: #fff !important;
    background: #1769f5 !important;
}

html body .job-cost-add-btn {
    background: #1769f5 !important;
}

html body .btn-premium,
html body .modal-journal-btn-primary,
html body .btn-login,
html body .btn-register,
html body .btn-reset {
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 14px !important;
    box-shadow: 0 2px 6px rgba(23, 105, 245, .14) !important;
}

html body .btn-register:disabled {
    color: #68748b !important;
    background: #e6eaf2 !important;
    border-color: #d8deea !important;
    box-shadow: none !important;
}

html body .add-customer-btn,
html body .add-supplier-btn,
html body .btn-add-source,
html body .btn-add-user {
    padding: 7px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

html body .value-bubble:not(.status-bubble) {
    color: #28426f !important;
    background: #eef3ff !important;
    border-color: #dce5f7 !important;
    box-shadow: none !important;
}

html body .content-container .page-header {
    color: #172342 !important;
    background: #edf2fc !important;
    padding: 16px 18px !important;
    margin-bottom: 16px !important;
    box-shadow: none !important;
}

html body .content-container .page-header::before {
    display: none !important;
}

html body .alert,
html body .modal-content .alert {
    border-radius: 4px !important;
}

html body .content-container .page-header h1,
html body .content-container .page-header h2,
html body .content-container .page-header h3,
html body .content-container .page-header p {
    color: #172342 !important;
}

html body .login-container,
html body .signup-container,
html body .forgot-container,
html body .reset-container {
    border-radius: 6px !important;
    box-shadow: 0 5px 18px rgba(39, 61, 113, .09) !important;
}

html body .login-header,
html body .forgot-header,
html body .reset-header {
    color: #172342 !important;
    background: #edf2fc !important;
}

html body .login-header::before,
html body .forgot-header::before,
html body .reset-header::before,
html body .signup-left::before {
    display: none !important;
}

html body .signup-left {
    color: #172342 !important;
    background: #edf2fc !important;
}

html body .welcome-title,
html body .welcome-subtitle,
html body .signup-link,
html body .forgot-title,
html body .forgot-subtitle,
html body .reset-title,
html body .reset-subtitle {
    color: #172342 !important;
}

html body .login-header,
html body .forgot-header,
html body .reset-header,
html body .signup-left {
    border-radius: 5px 5px 0 0 !important;
}

html body .login-container .form-control,
html body .signup-container .form-control,
html body .forgot-container .form-control,
html body .reset-container .form-control {
    border-radius: 4px !important;
    border-color: #dce3ef !important;
}

html body .login-container .form-control:focus,
html body .signup-container .form-control:focus,
html body .forgot-container .form-control:focus,
html body .reset-container .form-control:focus {
    border-color: #8ba8ff !important;
    box-shadow: 0 0 0 .2rem rgba(67, 112, 246, .13) !important;
}

html body .content-container .card,
html body .content-container [class$="-card"] {
    box-shadow: 0 3px 10px rgba(39, 61, 113, .055) !important;
}

html body .content-container .card-title,
html body .content-container .page-title,
html body .content-container .header-title,
html body .content-container .page-header h1,
html body .content-container .page-header h2,
html body .content-container h1,
html body .content-container h2,
html body .content-container h3,
html body .content-container h4,
html body .content-container h5 {
    font-weight: 600 !important;
}

html body .content-container .header-title { font-size: 16px !important; }

html body .content-container h1 { font-size: 23px !important; }
html body .content-container h2 { font-size: 20px !important; }
html body .content-container h3 { font-size: 18px !important; }
html body .content-container h4 { font-size: 16px !important; }
html body .content-container h5 { font-size: 14px !important; }
html body .content-container h6 { font-size: 13px !important; }

html body .modal-footer .btn-add-source-2:last-child {
    color: #fff !important;
    background: #dc3545 !important;
    border-color: #dc3545 !important;
}

html body .modal-footer .btn-add-source-2:first-child {
    color: #43516d !important;
    background: #f3f5f9 !important;
    border-color: #e2e7f0 !important;
}

html body .btn-outline-info,
html body .btn-info {
    color: #1760df !important;
    background-color: #eef3ff !important;
    border-color: #d7e2ff !important;
}

html body #v4WelcomeModal .modal-content.v4-modal-content,
html body #v4WelcomeModal .v4-hero-box,
html body #v4WelcomeModal .v4-feature-card,
html body #v4WelcomeModal .v4-modal-logo,
html body #v4WelcomeModal .v4-hero-icon,
html body #v4WelcomeModal .v4-feature-icon {
    border-radius: 5px !important;
}

html body #v4WelcomeModal .v4-modal-header {
    color: #172342 !important;
    background: #edf2fc !important;
    border-color: #e3e9f4 !important;
}

html body #v4WelcomeModal .v4-modal-title,
html body #v4WelcomeModal .v4-modal-logo,
html body #v4WelcomeModal .v4-hero-icon,
html body #v4WelcomeModal .v4-feature-icon {
    color: #1769f5 !important;
}

html body #v4WelcomeModal .v4-modal-body {
    background: #fff !important;
}

html body #v4WelcomeModal .v4-hero-box,
html body #v4WelcomeModal .v4-feature-card {
    border-color: #e6ebf5 !important;
    box-shadow: 0 2px 8px rgba(39, 61, 113, .045) !important;
}

html body #v4WelcomeModal .v4-feature-icon,
html body #v4WelcomeModal .v4-modal-logo {
    background: #edf3ff !important;
}

/* Keep page work areas white and use the same sharp, compact surfaces. */
html body .content-container {
    background: #fff !important;
}

html body .content-container .card,
html body .content-container [class$="-card"],
html body .content-container .info-box,
html body .content-container .table-responsive,
html body .content-container .table-wrap,
html body .content-container [class$="-panel"],
html body .content-container .page-header,
html body .content-container .card-header,
html body .content-container .card-header1,
html body .content-container .card-header-custom,
html body .content-container .modal-content,
html body .modal-content {
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body .content-container .card,
html body .content-container [class$="-card"],
html body .content-container .info-box,
html body .content-container .table-responsive,
html body .content-container .table-wrap,
html body .content-container [class$="-panel"] {
    background-color: #fff !important;
    border-color: #e5e8ed !important;
}

/* Page labels are redundant inside the shared application container. */
html body .content-container .page-header,
html body .content-container .page-title,
html body .content-container .aqi-page-title,
html body .content-container .pos-page-title,
html body .content-container .report-title {
    display: none !important;
}

html body .content-container .content > h1:not(:has(a, button)),
html body .content-container .content > h2:not(:has(a, button)),
html body .content-container .content > h3:not(:has(a, button)),
html body .content-container .content > h4:not(:has(a, button)),
html body .content-container .content > h5:not(:has(a, button)) {
    display: none !important;
}

html body .content-container input:focus,
html body .content-container select:focus,
html body .content-container textarea:focus,
html body .modal-content input:focus,
html body .modal-content select:focus,
html body .modal-content textarea:focus {
    border-color: #8ba8ff !important;
    box-shadow: 0 0 0 .18rem rgba(67, 112, 246, .13) !important;
}

/* The account menu stays plain and compact instead of using the legacy gold card. */
html body .custom-dropdown {
    min-width: 320px !important;
    border: 1px solid #e3e7ed !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(20, 32, 52, .12) !important;
}

html body .dropdown-head,
html body .reminder-modal-header {
    background: #f6f8fb !important;
    border-color: #e3e7ed !important;
    border-radius: 0 !important;
}

html body .dropdown-company,
html body .dropdown-username,
html body .package-card-head,
html body .package-label,
html body .package-value {
    color: #27344d !important;
}

html body .package-card {
    padding: 11px 12px !important;
    border: 1px solid #e3e7ed !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

html body .package-card-head,
html body .package-card-head i,
html body .dropdown-link i {
    color: #1769f5 !important;
}

html body .dropdown-link {
    border: 1px solid #e3e7ed !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #27344d !important;
}

html body .dropdown-link:hover {
    border-color: #b9c9e6 !important;
    background: #f4f7fc !important;
    color: #1558dc !important;
    transform: none !important;
}

/* Legacy inline gold action buttons follow the system blue action color. */
html body .content-container button[style*="#FFD000" i],
html body .content-container a[style*="#FFD000" i],
html body .content-container input[style*="#FFD000" i],
html body .content-container button[style*="#ffc107" i],
html body .content-container a[style*="#ffc107" i],
html body .content-container input[style*="#ffc107" i] {
    color: #fff !important;
    background: #1769f5 !important;
    background-image: none !important;
    border-color: #1769f5 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
}

html body .content-container button[style*="#FFD000" i]:hover,
html body .content-container a[style*="#FFD000" i]:hover,
html body .content-container input[style*="#FFD000" i]:hover,
html body .content-container button[style*="#ffc107" i]:hover,
html body .content-container a[style*="#ffc107" i]:hover,
html body .content-container input[style*="#ffc107" i]:hover {
    color: #fff !important;
    background: #1558dc !important;
    border-color: #1558dc !important;
}

/* Invoice and quotation lists mirror the compact reference table. */
html body .invoice-table-wrap,
html body .quotation-table-wrap {
    overflow: auto !important;
    border: 1px solid #e5e8ed !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

html body .invoice-list-heading,
html body .quotation-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 14px;
    border-bottom: 1px solid #e5e8ed;
    background: #fff;
    color: #172342;
    font-size: 14px;
    font-weight: 600;
}

html body .invoice-table-wrap .invoice-table,
html body .quotation-table-wrap .quotation-table {
    min-width: 720px;
    margin: 0 !important;
    font-size: 12px !important;
    border-collapse: collapse !important;
}

html body .invoice-table-wrap .invoice-table thead th,
html body .quotation-table-wrap .quotation-table thead th {
    padding: 9px 11px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #e8ebef !important;
    background: #f8f9fa !important;
    color: #526079 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

html body .invoice-table-wrap .invoice-table tbody td,
html body .invoice-table-wrap .invoice-table tfoot td,
html body .quotation-table-wrap .quotation-table tbody td {
    padding: 9px 11px !important;
    border-bottom: 1px solid #edf0f2 !important;
    background: #fff !important;
    color: #172342;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

html body .invoice-table-wrap .invoice-table tbody tr:hover,
html body .quotation-table-wrap .quotation-table tbody tr:hover {
    transform: none !important;
    box-shadow: none !important;
}

html body .invoice-table-wrap .invoice-table tbody tr:hover td,
html body .quotation-table-wrap .quotation-table tbody tr:hover td {
    background: #f8fafc !important;
}

html body .invoice-filter-bar,
html body .quotation-filter-bar {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 8px !important;
}

html body .invoice-filter-label,
html body .quotation-filter-label {
    margin-bottom: 3px !important;
    font-size: 11px !important;
}

html body .invoice-select,
html body .invoice-search-input,
html body .quotation-select,
html body .quotation-search-input {
    min-height: 38px !important;
    border-radius: 2px !important;
    border-color: #dfe4e9 !important;
    background-color: #fff !important;
    font-size: 12px !important;
}

html body .invoice-btn-action,
html body .invoice-btn-new,
html body .quotation-btn-action,
html body .quotation-btn-new {
    min-height: 38px !important;
    padding: 0 12px !important;
    border-radius: 2px !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

html body .invoice-btn-new,
html body .quotation-btn-new {
    color: #fff !important;
    background: #202a24 !important;
    border-color: #202a24 !important;
}

html body .invoice-btn-new:hover,
html body .quotation-btn-new:hover {
    color: #fff !important;
    background: #111a15 !important;
    border-color: #111a15 !important;
}

@media (max-width: 767px) {
    html body .content-container { padding: 10px !important; }
    html body .invoice-table-wrap .invoice-table,
    html body .quotation-table-wrap .quotation-table { min-width: 680px; }
    html body .invoice-list-heading,
    html body .quotation-list-heading { min-height: 40px; padding: 0 10px; }
}

/* Extend the compact list treatment to every module using the shared pagination. */
html body .content-container [class$="-table-wrap"],
html body .content-container .table-responsive,
html body .content-container .table-wrap {
    overflow-x: auto !important;
    border: 1px solid #e5e8ed !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

html body .content-container [class$="-table-wrap"] .table,
html body .content-container [class$="-table-wrap"] table,
html body .content-container .table-responsive .table,
html body .content-container .table-wrap table {
    margin-bottom: 0 !important;
    font-size: 12px !important;
}

html body .content-container [class$="-filter-bar"] {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 8px !important;
}

html body .content-container [class$="-filter-form"] {
    margin-bottom: 10px !important;
}

html body .content-container [class$="-filter-bar"] label,
html body .content-container [class$="-filter-form"] label {
    margin-bottom: 3px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

html body .content-container [class$="-filter-bar"] input:not([type="checkbox"]):not([type="radio"]),
html body .content-container [class$="-filter-bar"] select,
html body .content-container [class$="-filter-bar"] textarea,
html body .content-container [class$="-filter-form"] > select {
    min-height: 36px !important;
    border: 1px solid #dfe4e9 !important;
    border-radius: 2px !important;
    background: #fff !important;
    font-size: 12px !important;
}

html body .content-container [class$="-filter-bar"] .btn,
html body .content-container [class$="-filter-bar"] button,
html body .content-container [class$="-filter-bar"] input[type="submit"] {
    min-height: 36px !important;
    border-radius: 2px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

html body .content-container .pagination {
    justify-content: flex-end !important;
    gap: 3px !important;
    margin: 8px 0 0 !important;
}

html body .content-container .pagination .page-link {
    display: inline-flex;
    min-width: 30px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 4px 8px !important;
    border: 1px solid #e0e5eb !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #43516d !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

html body .content-container .pagination .page-item.active .page-link,
html body .content-container .pagination .page-link.active {
    border-color: #1769f5 !important;
    background: #1769f5 !important;
    color: #fff !important;
}

html body .content-container .pagination .page-item.disabled .page-link,
html body .content-container .pagination .page-link.disabled {
    background: #f7f8fa !important;
    color: #a0a8b5 !important;
}

/* Use readable regular text throughout; keep all UI text within the 13px ceiling. */
html body .content-container,
html body .content-container * {
    font-size: 13px !important;
    font-weight: 400 !important;
}

html body .content-container h1,
html body .content-container h2,
html body .content-container h3,
html body .content-container h4,
html body .content-container h5,
html body .content-container h6,
html body .content-container strong,
html body .content-container b,
html body .content-container th,
html body .content-container .card-header,
html body .content-container .card-header1,
html body .content-container .card-header-custom,
html body .content-container .card-title {
    font-size: 13px !important;
    font-weight: 600 !important;
}

html body .content-container .table,
html body .content-container table,
html body .content-container .table td,
html body .content-container .table th,
html body .content-container table td,
html body .content-container table th,
html body .content-container .pagination .page-link {
    font-size: 12px !important;
}

html body .content-container .btn,
html body .content-container button,
html body .content-container input[type="button"],
html body .content-container input[type="submit"] {
    font-size: 13px !important;
    font-weight: 500 !important;
}

html body .sidebar .nav-link,
html body .sidebar .submenu .nav-link {
    min-height: 39px !important;
    margin: 2px 0 !important;
    padding: 8px 10px !important;
    border-radius: 2px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    gap: 9px !important;
}

html body .sidebar .nav-link > i {
    width: 18px;
    font-size: 16px !important;
}

html body .sidebar .submenu .nav-link {
    min-height: 33px !important;
    padding: 6px 10px 6px 16px !important;
    font-size: 11px !important;
}

html body .sidebar .submenu .nav-link > i {
    font-size: 13px !important;
}

html body .sidebar-footer,
html body .sidebar-footer p,
html body .sidebar-footer a {
    font-size: 11px !important;
    font-weight: 400 !important;
}

html body .user-avatar-image {
    display: block;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    object-fit: cover;
}
