:root {
    --vsco-red: #c51f2b;
    --vsco-red-dark: #9f1721;
    --vsco-navy: #172033;
    --vsco-navy-soft: #24324a;
    --vsco-blue: #2563eb;
    --vsco-gold: #f2b84b;
    --vsco-bg: #f3f6fa;
    --vsco-surface: #ffffff;
    --vsco-surface-soft: #f8fafc;
    --vsco-border: #dbe3ee;
    --vsco-text: #172033;
    --vsco-muted: #667085;
    --vsco-success: #16865b;
    --vsco-warning: #b56b09;
    --vsco-danger: #c51f2b;

    /* --- Extended palette (2026-08-28): the colours the module stylesheets used
       to hardcode as off-token hex. Every module CSS now points its own local
       variables at these, so the whole app tracks one palette. Reconciled the
       four drifting reds (#c5232d/#a90329/#b8324a/#96331e) onto --vsco-red, and
       the many near-miss navies/greys onto --vsco-navy / --vsco-muted. --- */
    --vsco-blue-dark: #1d4fd7;
    --vsco-teal: #0c7c86;          /* secondary accent (billing, tasks, reviews, HDD) */
    --vsco-teal-dark: #0a5f66;
    --vsco-navy-deep: #14213d;     /* gradient hero start (heroes, KPI headers) */

    /* Soft status/accent tints for badges, alerts, pills and panel fills. */
    --vsco-blue-soft: #e8f0fe;
    --vsco-teal-soft: #e4f1f2;
    --vsco-success-soft: #e2f3ec;
    --vsco-warning-soft: #f8eeda;
    --vsco-danger-soft: #fbeaec;

    --vsco-radius: 12px;
    --vsco-radius-lg: 16px;
    --vsco-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
    --vsco-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
}

html {
    min-height: 100% !important;
    background: var(--vsco-bg);
}

body,
body.smart-style-0,
body.smart-style-1,
body.smart-style-2,
body.smart-style-3,
body.smart-style-4,
body.smart-style-5,
body.smart-style-6 {
    color: var(--vsco-text);
    background: var(--vsco-bg);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: var(--vsco-blue);
}

a:hover,
a:focus {
    color: #1d4ed8;
    text-decoration: none;
}

*:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.24);
    outline-offset: 2px;
}

/* Application shell */
#header {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    display: flex !important;
    align-items: center;
    height: 68px !important;
    min-height: 68px;
    padding: 0 16px 0 0 !important;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(120deg, #111827 0%, var(--vsco-navy) 55%, #26334a 100%) !important;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.2);
}

#logo-group {
    position: relative;
    display: flex;
    flex: 0 0 250px;
    align-items: center;
    width: 250px !important;
    height: 68px !important;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.12);
}

#logo {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    height: 100%;
    margin: 0 !important;
}

#logo img {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px;
    padding: 2px;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#entityName {
    display: block;
    min-width: 0;
    margin-left: 11px !important;
    overflow: hidden;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vsco-context {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 20px;
}

.vsco-context__eyebrow {
    display: block;
    margin-bottom: 1px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vsco-context__title {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#header > .pull-right {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: 68px;
}

#header .btn-header {
    height: 68px;
    margin: 0 2px;
}

#header .btn-header > span {
    height: 68px;
}

#header .btn-header > span > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.82) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
}

#header .btn-header > span > a:hover,
#header .btn-header > span > a:focus {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14) !important;
}

#header .header-search {
    position: relative;
    width: 260px;
    height: 40px;
    margin: 14px 8px 0;
}

#header .header-search > input {
    width: 100%;
    height: 40px;
    padding: 0 42px 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

#header .header-search > input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

#header .header-search > input:focus {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

#header .header-search > a {
    top: 10px;
    right: 12px;
    color: rgba(255, 255, 255, 0.65);
}

#left-panel {
    position: fixed !important;
    top: 0 !important;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 250px;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding-top: 68px !important;
    box-sizing: border-box;
    overflow: hidden;
    border: 0;
    background: var(--vsco-navy) !important;
    box-shadow: 6px 0 24px rgba(15, 23, 42, 0.08);
}

#left-panel .login-info {
    flex: 0 0 auto;
    min-height: 72px;
    height: auto;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
}

#left-panel > nav {
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 58px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

#left-panel > nav::-webkit-scrollbar {
    width: 7px;
}

#left-panel > nav::-webkit-scrollbar-track {
    background: transparent;
}

#left-panel > nav::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.32);
    background-clip: padding-box;
}

#left-panel > nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
    background-clip: padding-box;
}

#mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 903;
    display: none;
    padding: 0;
    border: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.52);
    transition: opacity 180ms ease, visibility 180ms ease;
}

#left-panel .login-info > span {
    height: auto;
    border: 0;
}

#left-panel .login-info a {
    display: flex !important;
    align-items: center;
    min-height: 46px;
    color: rgba(255, 255, 255, 0.88);
}

#left-panel .login-info img {
    width: 38px;
    height: 38px;
    margin: 0 11px 0 0;
    border: 2px solid rgba(255, 255, 255, 0.68);
    border-radius: 50%;
    object-fit: cover;
}

#left-panel .login-info a span {
    padding-top: 0 !important;
    font-size: 13px;
    font-weight: 600;
}

nav ul {
    padding: 8px;
}

nav ul li {
    margin: 2px 0;
}

nav ul li a,
.smart-style-2 nav ul li a {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 13px;
    line-height: 21px;
    text-shadow: none !important;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

nav ul li.active > a,
nav ul li.open > a {
    color: #fff !important;
    background: linear-gradient(100deg, rgba(197, 31, 43, 0.92), rgba(159, 23, 33, 0.92)) !important;
    box-shadow: 0 6px 14px rgba(159, 23, 33, 0.24);
}

nav ul li a .fa,
.smart-style-2 nav > ul > li > a > i {
    width: 24px;
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 15px !important;
}

nav ul li.active > a .fa,
nav ul li a:hover .fa {
    color: #fff;
}

nav ul ul {
    margin: 3px 0 6px 18px;
    padding: 3px 0 3px 9px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent !important;
}

nav ul ul li a {
    min-height: 36px;
    padding: 7px 10px !important;
    font-size: 12px !important;
}

.minifyme {
    right: 10px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
}

.minified #left-panel {
    width: 64px !important;
}

.minified #main,
.minified .page-footer {
    margin-left: 64px !important;
}

.minified #logo-group {
    flex-basis: 64px;
    width: 64px !important;
    padding: 0 8px;
}

.minified #entityName,
.minified .login-info span span {
    display: none !important;
}

#main {
    min-height: calc(100vh - 116px);
    margin-left: 250px !important;
    padding: 68px 0 48px;
    background: var(--vsco-bg);
}

#ribbon {
    min-height: 52px;
    margin: 0;
    padding: 0 24px;
    border: 0;
    border-bottom: 1px solid var(--vsco-border);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

#ribbon .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 52px;
    margin: 0;
    padding: 0;
    color: var(--vsco-muted);
    font-size: 12px;
}

#ribbon .breadcrumb > li + li::before {
    color: #a5b0c0;
    content: "\f105";
    font-family: FontAwesome;
}

#ribbon .breadcrumb > li:last-child {
    color: var(--vsco-text);
    font-weight: 700;
}

#content {
    padding: 24px !important;
}

.page-footer {
    height: 48px;
    margin-left: 250px;
    padding: 14px 24px 0;
    border-top: 1px solid var(--vsco-border);
    color: var(--vsco-muted);
    background: var(--vsco-surface);
}

.page-footer .txt-color-white {
    color: var(--vsco-muted) !important;
}

/* Cards, widgets and dashboards */
.card-box,
.jarviswidget,
.well,
.ibox-content,
.panel,
.dxrpControl {
    border: 1px solid var(--vsco-border) !important;
    border-radius: var(--vsco-radius) !important;
    background: var(--vsco-surface);
    box-shadow: var(--vsco-shadow);
}

.card-box {
    padding: 0;
}

.jarviswidget {
    margin-bottom: 22px;
    overflow: visible;
}

.jarviswidget > header {
    display: flex;
    align-items: center;
    min-height: 56px;
    height: auto;
    padding: 8px 12px 8px 16px;
    border: 0 !important;
    border-bottom: 1px solid var(--vsco-border) !important;
    border-radius: var(--vsco-radius) var(--vsco-radius) 0 0 !important;
    color: var(--vsco-text) !important;
    background: var(--vsco-surface) !important;
}

.jarviswidget > header > .widget-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 9px;
    border-radius: 9px;
    color: var(--vsco-red);
    background: rgba(197, 31, 43, 0.09);
}

.jarviswidget > header > h2 {
    flex: 1 1 auto;
    margin: 0;
    color: var(--vsco-text) !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.jarviswidget > header .btn {
    margin: 0 0 0 8px !important;
}

.jarviswidget > div {
    border: 0 !important;
    border-radius: 0 0 var(--vsco-radius) var(--vsco-radius);
    background: var(--vsco-surface) !important;
}

.jarviswidget .widget-body {
    min-height: 48px;
    border-radius: 0 0 var(--vsco-radius) var(--vsco-radius);
}

.jarviswidget .widget-body.no-padding {
    margin: 0 !important;
}

#widget-grid > .row > a > [class*="col-"] {
    margin-bottom: 20px;
}

#widget-grid .well {
    position: relative;
    min-height: 148px;
    margin-bottom: 0;
    padding: 26px 22px;
    overflow: hidden;
    border: 0 !important;
    text-align: left !important;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

#widget-grid a:hover .well {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(23, 32, 51, 0.16);
}

#widget-grid .well::after {
    position: absolute;
    right: -26px;
    bottom: -46px;
    width: 120px;
    height: 120px;
    border: 18px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    content: "";
}

#widget-grid .well h2 {
    position: relative;
    z-index: 1;
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 650;
    letter-spacing: 0;
    opacity: 0.9;
}

#widget-grid .well h4 {
    position: relative;
    z-index: 1;
    margin: 12px 0 0 !important;
    font-size: 34px !important;
    font-weight: 750;
    letter-spacing: -0.04em;
}

#widget-grid .well br {
    display: none;
}

#widget-grid .well.bg-color-redLight {
    background: linear-gradient(135deg, #c51f2b, #9f1721) !important;
}

#widget-grid .well.bg-color-pink {
    background: linear-gradient(135deg, #6552b8, #49388f) !important;
}

#widget-grid .well.bg-color-teal {
    background: linear-gradient(135deg, #07877f, #056861) !important;
}

#widget-grid .well.bg-color-blue {
    background: linear-gradient(135deg, #2773d9, #1d4fa1) !important;
}

/* Forms */
.smart-form fieldset {
    padding: 22px 22px 8px;
    border: 0;
    background: var(--vsco-surface);
}

.smart-form footer {
    padding: 16px 22px;
    border-top: 1px solid var(--vsco-border);
    border-radius: 0 0 var(--vsco-radius) var(--vsco-radius);
    background: var(--vsco-surface-soft);
}

.smart-form section,
.form-group {
    margin-bottom: 18px;
}

.smart-form .label,
label {
    margin-bottom: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 650;
}

.form-control,
.smart-form .input input,
.smart-form .select select,
.smart-form .textarea textarea,
.select2-container .select2-choice,
.select2-container .select2-selection {
    min-height: 40px;
    padding: 8px 11px !important;
    border: 1px solid #cfd8e5 !important;
    border-radius: 8px !important;
    color: var(--vsco-text);
    background: #fff;
    box-shadow: none !important;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-control:focus,
.smart-form .input input:focus,
.smart-form .select select:focus,
.smart-form .textarea textarea:focus,
.select2-container--focus .select2-selection {
    border-color: var(--vsco-blue) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control,
.select2-container--disabled .selection .select2-selection {
    color: #667085 !important;
    background: #eef2f6 !important;
}

textarea.form-control {
    min-height: 88px;
    resize: vertical;
}

.smart-form .icon-append,
.smart-form .icon-prepend {
    top: 1px;
    width: 36px;
    height: 38px;
    border-color: #d8e0ea;
    color: #8290a5;
    line-height: 38px;
}

.smart-form .input .icon-append + input,
.smart-form .textarea .icon-append + textarea {
    padding-right: 42px !important;
}

.rqspan,
.text-danger,
.error {
    color: var(--vsco-danger) !important;
}

.help-block,
.note {
    color: var(--vsco-muted) !important;
}

.checkbox,
.radio {
    min-height: 20px;
}

.select2-dropdown {
    overflow: hidden;
    border: 1px solid var(--vsco-border) !important;
    border-radius: 9px !important;
    box-shadow: var(--vsco-shadow-lg);
}

.select2-results li {
    padding: 8px 10px;
}

/* Buttons and badges */
.btn {
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.01em;
    box-shadow: none;
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.btn-primary {
    border-color: #1d4ed8 !important;
    color: #fff !important;
    background: var(--vsco-blue) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: #1e40af !important;
    background: #1d4ed8 !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.btn-danger {
    border-color: var(--vsco-red-dark) !important;
    color: #fff !important;
    background: var(--vsco-red) !important;
}

.btn-danger:hover,
.btn-danger:focus {
    background: var(--vsco-red-dark) !important;
    box-shadow: 0 6px 14px rgba(197, 31, 43, 0.2);
}

.btn-success,
.ui-priority-primary {
    border-color: #11714c !important;
    color: #fff !important;
    background: var(--vsco-success) !important;
}

.btn-default {
    border-color: #cfd8e5 !important;
    color: #344054 !important;
    background: #fff !important;
}

.btn-default:hover,
.btn-default:focus {
    border-color: #aeb9c8 !important;
    background: #f8fafc !important;
}

.btn-xs {
    min-height: 30px;
    padding: 5px 9px;
}

.label,
.badge {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.label-info {
    color: #155e75 !important;
    background: #cffafe !important;
}

.label-success {
    color: #166534 !important;
    background: #dcfce7 !important;
}

.label-warning {
    color: #92400e !important;
    background: #fef3c7 !important;
}

.label-danger {
    color: #991b1b !important;
    background: #fee2e2 !important;
}

/* Tables and DataTables */
.table-responsive {
    border: 0;
}

.table {
    width: 100% !important;
    margin-bottom: 0;
    color: var(--vsco-text);
    background: var(--vsco-surface);
}

.table > thead > tr > th {
    padding: 12px 11px;
    border: 0 !important;
    border-bottom: 1px solid var(--vsco-border) !important;
    color: #475467;
    background: var(--vsco-surface-soft);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.055em;
    line-height: 1.35;
    text-transform: uppercase;
    vertical-align: middle;
}

.table > tbody > tr > td {
    padding: 11px;
    border: 0 !important;
    border-bottom: 1px solid #edf1f6 !important;
    font-size: 12px;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: #fbfcfe;
}

.table-hover > tbody > tr:hover {
    background: #f1f6ff;
}

.table-bordered {
    border: 0;
}

.dt-toolbar,
.dt-toolbar-footer {
    padding: 14px 16px;
    border-color: var(--vsco-border) !important;
    background: var(--vsco-surface) !important;
}

.dt-toolbar {
    border-radius: var(--vsco-radius) var(--vsco-radius) 0 0;
}

.dt-toolbar-footer {
    border-radius: 0 0 var(--vsco-radius) var(--vsco-radius);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 36px;
    border: 1px solid #cfd8e5;
    border-radius: 8px;
    background: #fff;
}

.pagination > li > a,
.pagination > li > span {
    min-width: 34px;
    margin: 0 2px;
    border: 1px solid var(--vsco-border);
    border-radius: 7px !important;
    color: #475467;
    background: #fff;
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span {
    border-color: var(--vsco-blue);
    background: var(--vsco-blue);
}

.dataTables_processing {
    border: 1px solid var(--vsco-border);
    border-radius: 10px;
    box-shadow: var(--vsco-shadow);
}

/* Dialogs, dropdowns and feedback */
.modal-content,
.alertify .ajs-dialog {
    overflow: hidden;
    border: 0;
    border-radius: 14px !important;
    box-shadow: var(--vsco-shadow-lg);
}

.modal-header,
.alertify .ajs-header {
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--vsco-border);
    color: var(--vsco-text) !important;
    background: #fff !important;
    font-size: 16px;
    font-weight: 700;
}

.modal-body,
.alertify .ajs-body .ajs-content {
    padding: 20px !important;
    color: var(--vsco-text) !important;
}

.modal-footer,
.alertify .ajs-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--vsco-border);
    background: var(--vsco-surface-soft);
}

.dropdown-menu,
.ui-autocomplete {
    padding: 6px;
    border: 1px solid var(--vsco-border);
    border-radius: 10px;
    box-shadow: var(--vsco-shadow-lg);
}

.dropdown-menu > li > a,
.ui-menu .ui-menu-item a {
    padding: 8px 10px;
    border-radius: 7px;
}

.alert {
    border: 0;
    border-left: 4px solid currentColor;
    border-radius: 9px;
}

.ui-datepicker {
    padding: 8px;
    border: 1px solid var(--vsco-border) !important;
    border-radius: 10px;
    box-shadow: var(--vsco-shadow-lg);
}

#loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 20px !important;
    box-sizing: border-box;
    opacity: 1;
    background: rgba(243, 246, 250, 0.94);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 2147483000;
}

#loading .vsco-loading-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(440px, 92vw);
    min-height: 220px;
    padding: 12px 20px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

#loading-image {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
}

#sideMenuloading {
    display: none !important;
}

@media (max-width: 480px) {
    #loading {
        padding: 14px !important;
    }

    #loading .vsco-loading-card {
        width: 94vw;
        min-height: 180px;
        padding: 8px 12px;
        border-radius: 14px;
    }

    #loading-image {
        max-width: 340px;
    }
}

/* Report and chart surfaces */
.chart {
    min-height: 320px;
    padding: 18px !important;
}

.dx-designer,
.dxrd-preview,
.dxdvControl,
.dxrpControl {
    overflow: hidden;
}

/* Login */
.vsco-login-page {
    min-height: 100vh;
    margin: 0;
    overflow: auto;
    color: var(--vsco-text);
    background:
        radial-gradient(circle at 15% 10%, rgba(197, 31, 43, 0.12), transparent 34%),
        radial-gradient(circle at 90% 90%, rgba(37, 99, 235, 0.11), transparent 36%),
        #eef2f7;
}

.vsco-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
    width: min(1120px, calc(100% - 40px));
    min-height: 660px;
    margin: max(28px, calc((100vh - 660px) / 2)) auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(23, 32, 51, 0.18);
}

.vsco-login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 660px;
    padding: 48px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.92)),
        url("../img/ERp.jpeg") center / cover no-repeat;
}

.vsco-login-visual::before {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 310px;
    height: 310px;
    border: 42px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.vsco-login-kicker,
.vsco-login-copy,
.vsco-login-points {
    position: relative;
    z-index: 1;
}

.vsco-login-kicker {
    margin-bottom: 14px;
    color: var(--vsco-gold);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vsco-login-copy h1 {
    max-width: 520px;
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.vsco-login-copy p {
    max-width: 500px;
    margin: 18px 0 28px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 15px;
    line-height: 1.65;
}

.vsco-login-points {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vsco-login-points li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 600;
}

.vsco-login-points i {
    margin-right: 7px;
    color: var(--vsco-gold);
}

.vsco-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #fff;
}

.vsco-login-card {
    width: 100%;
    max-width: 390px;
}

.vsco-login-brand {
    display: flex;
    align-items: center;
    margin-bottom: 34px;
}

.vsco-login-brand img {
    width: 78px;
    height: 76px;
    margin-right: 15px;
    border: 1px solid var(--vsco-border);
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 6px 18px rgba(23, 32, 51, 0.1);
}

.vsco-login-brand strong {
    display: block;
    color: var(--vsco-navy);
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.vsco-login-brand span {
    display: block;
    margin-top: 3px;
    color: var(--vsco-muted);
    font-size: 12px;
}

.vsco-login-card h2 {
    margin: 0 0 8px;
    color: var(--vsco-text);
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -0.035em;
}

.vsco-login-subtitle {
    margin: 0 0 28px;
    color: var(--vsco-muted);
    font-size: 13px;
}

.vsco-login-field {
    margin-bottom: 18px;
}

.vsco-login-field label {
    display: block;
}

.vsco-login-input {
    position: relative;
}

.vsco-login-input > i {
    position: absolute;
    top: 13px;
    left: 14px;
    color: #8b98aa;
}

.vsco-login-input input {
    width: 100%;
    height: 46px;
    padding: 10px 13px 10px 42px;
    border: 1px solid #cfd8e5;
    border-radius: 10px;
    color: var(--vsco-text);
    background: #fff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.vsco-login-input input:focus {
    border-color: var(--vsco-blue);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.vsco-login-error {
    margin: 2px 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #991b1b;
    background: #fef2f2;
    font-size: 12px;
    font-weight: 600;
}

.vsco-login-submit {
    width: 100%;
    height: 46px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(100deg, var(--vsco-red), var(--vsco-red-dark));
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(197, 31, 43, 0.2);
}

.vsco-login-submit:hover,
.vsco-login-submit:focus {
    color: #fff;
    background: var(--vsco-red-dark);
}

.vsco-login-footnote {
    margin: 22px 0 0;
    color: #98a2b3;
    font-size: 11px;
    text-align: center;
}

/* Session timeout */
.vsco-session-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 15%, rgba(197, 31, 43, 0.11), transparent 34%),
        var(--vsco-bg);
}

.vsco-session-card {
    width: min(460px, 100%);
    padding: 42px;
    border: 1px solid var(--vsco-border);
    border-radius: 18px;
    text-align: center;
    background: #fff;
    box-shadow: var(--vsco-shadow-lg);
}

.vsco-session-card img {
    width: 82px;
    height: 80px;
    margin-bottom: 20px;
    border: 1px solid var(--vsco-border);
    border-radius: 16px;
    object-fit: contain;
}

.vsco-session-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #92400e;
    background: #fef3c7;
    font-size: 20px;
}

.vsco-session-card h1 {
    margin: 0 0 10px;
    color: var(--vsco-text);
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -0.035em;
}

.vsco-session-card p {
    margin: 0 0 24px;
    color: var(--vsco-muted);
    line-height: 1.65;
}

/* Responsive behavior */
@media (max-width: 1199px) {
    .vsco-context {
        padding: 0 12px;
    }

    #header .header-search {
        width: 210px;
    }
}

@media (max-width: 979px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    #header {
        padding-right: 8px !important;
    }

    #logo-group {
        flex-basis: 210px;
        width: 210px !important;
    }

    .vsco-context {
        display: none;
    }

    #left-panel {
        left: 0 !important;
        z-index: 904;
        width: min(300px, 86vw);
        max-width: 86vw;
        pointer-events: none;
        transform: translate3d(-105%, 0, 0);
        transition: transform 220ms ease;
        will-change: transform;
        box-shadow: 12px 0 36px rgba(15, 23, 42, 0.28);
    }

    body.hidden-menu #left-panel {
        left: 0 !important;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
    }

    body.hidden-menu #main,
    body.hidden-menu .page-footer,
    body.hidden-menu.fixed-ribbon #ribbon {
        left: 0 !important;
        width: auto !important;
    }

    #mobile-menu-backdrop {
        display: block;
    }

    body.hidden-menu #mobile-menu-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    html.hidden-menu-mobile-lock,
    html.hidden-menu-mobile-lock body {
        overflow: hidden !important;
    }

    .minifyme {
        display: none !important;
    }

    #main,
    .page-footer {
        margin-left: 0 !important;
    }

    #content {
        width: 100%;
        max-width: 100%;
        padding: 18px !important;
        box-sizing: border-box;
    }

    #content .dataTables_wrapper,
    #content .table-responsive,
    #content .dxgvControl,
    #content .dxeListBox,
    #content .dxdvControl {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #content table {
        max-width: 100%;
    }

    .modal-dialog {
        width: auto;
        max-width: calc(100vw - 24px);
        margin: 12px auto;
    }

    #header .header-search {
        display: none;
    }
}

@media (max-width: 767px) {
    #header {
        height: 60px !important;
        min-height: 60px;
    }

    #logo-group {
        flex-basis: 185px;
        width: 185px !important;
        height: 60px !important;
        padding: 0 10px;
    }

    #logo img {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px;
    }

    #entityName {
        max-width: 116px;
        font-size: 12px;
    }

    #header > .pull-right,
    #header .btn-header,
    #header .btn-header > span {
        height: 60px;
    }

    #header .btn-header > span > a {
        width: 36px;
        height: 36px;
        margin-top: 12px;
    }

    #fullscreen,
    #resetpassword {
        display: none;
    }

    #left-panel {
        padding-top: 60px !important;
    }

    #main {
        padding-top: 60px;
    }

    #ribbon,
    #ribbon .breadcrumb {
        min-height: 46px;
    }

    #ribbon {
        padding: 0 15px;
    }

    #content {
        padding: 14px !important;
    }

    .fixed-page-footer .page-footer {
        position: static !important;
        width: 100%;
        min-height: 48px;
        margin-left: 0 !important;
        padding: 14px 15px !important;
    }

    #content .form-control,
    #content input,
    #content select,
    #content textarea,
    #content .select2-container {
        max-width: 100%;
        font-size: 16px;
    }

    #content .form-horizontal .control-label {
        padding-top: 0;
        text-align: left;
    }

    #content .btn {
        min-height: 40px;
    }

    #content .jarviswidget,
    #content .well,
    #content .panel {
        max-width: 100%;
    }

    .jarviswidget > header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .jarviswidget > header > h2 {
        width: calc(100% - 46px);
        min-height: 34px;
        padding-top: 7px;
    }

    .jarviswidget > header .btn {
        margin: 7px 0 0 43px !important;
    }

    .smart-form fieldset {
        padding: 16px 14px 4px;
    }

    .dt-toolbar,
    .dt-toolbar-footer {
        padding: 12px;
    }

    .page-footer {
        padding-left: 15px;
    }

    .vsco-login-shell {
        grid-template-columns: 1fr;
        width: min(520px, calc(100% - 24px));
        min-height: 0;
        margin: 12px auto;
    }

    .vsco-login-visual {
        min-height: 250px;
        padding: 28px;
    }

    .vsco-login-copy h1 {
        font-size: 32px;
    }

    .vsco-login-copy p {
        margin-bottom: 0;
    }

    .vsco-login-points {
        display: none;
    }

    .vsco-login-panel {
        padding: 34px 26px;
    }
}

@media (max-width: 479px) {
    #logo-group {
        flex-basis: 140px;
        width: 140px !important;
    }

    #entityName {
        display: none;
    }

    #search-mobile {
        display: inline-block !important;
    }

    .vsco-login-visual {
        min-height: 210px;
        padding: 24px;
    }

    .vsco-login-copy p {
        display: none;
    }

    .vsco-login-panel {
        padding: 28px 20px;
    }

    .vsco-login-brand {
        margin-bottom: 26px;
    }

    .vsco-session-card {
        padding: 32px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
