:root {
 --vortix-ink: #121e36;
 --vortix-deep: #0c172b;
 --vortix-border: #273750;
 --vortix-surface: #f8fbfe;
 --vortix-sheet: #edf3f9;
 --vortix-panel-border: #d6e3ee;
 --vortix-panel-radius: 1.1rem;
 --vortix-gradient: radial-gradient(ellipse at 88% 8%, #203a55 0, #14233a 44%, #0d172b 82%);
 --vortix-font: system-ui, -apple-system, "Segoe UI", sans-serif;
 --vortix-accent: #f4b860;
 --vortix-accent-light: #ffda99;
 --vortix-accent-panel: #40332c;
 --vortix-accent-soft: #fbefd9;
 --vortix-main: #8b5016;
 --vortix-main-hover: #713b10;
 --vortix-main-active: #61300c;
 --vortix-text: #16253b;
 --vortix-rail: 15rem;
 --vortix-bar: 4rem;
}

.vortix-wordmark {
 display: inline-flex;
 align-items: center;
 gap: .7rem;
 color: #f5f9ff;
 font: 800 1.42rem/1 var(--vortix-font);
 letter-spacing: .08em;
 white-space: nowrap;
 text-decoration: none;
}
.vortix-wordmark strong { color: var(--vortix-accent); font-weight: inherit; }
.vortix-mark {
 display: inline-grid;
 place-items: center;
 width: 2.15rem;
 aspect-ratio: 1;
 flex: none;
 border-radius: .63rem;
 background: var(--vortix-accent);
 color: var(--vortix-deep);
 font: 800 1.18rem/1 var(--vortix-font);
 letter-spacing: 0;
}
.vortix-shell {
 --erp-accent: var(--vortix-accent);
 --employee-accent: var(--vortix-main);
 min-width: 0;
 min-height: 100vh;
 padding-left: var(--vortix-rail);
 background: var(--vortix-gradient) fixed;
 color: var(--vortix-text);
 font-family: var(--vortix-font);
}
.vortix-shell .vortix-rail {
 position: fixed;
 inset: 0 auto 0 0;
 z-index: 2100 !important;
 display: flex;
 flex-direction: column;
 align-items: stretch;
 justify-content: flex-start;
 gap: .95rem;
 width: var(--vortix-rail);
 min-height: 0;
 margin: 0;
 padding: 1.15rem .85rem 1rem;
 overflow: auto;
 overscroll-behavior: contain;
 scrollbar-color: #456078 var(--vortix-deep);
 color: #e7f0fb;
 background: linear-gradient(160deg, #172640 0, var(--vortix-deep) 68%) !important;
 border: 0;
 border-right: 1px solid var(--vortix-border);
 box-shadow: none;
}
.vortix-rail > .vortix-wordmark { padding: .28rem .42rem .9rem; border-bottom: 1px solid var(--vortix-border); }
.vortix-rail .vortix-nav-items {
 display: flex;
 flex-direction: column;
 align-items: stretch;
 gap: .26rem;
 width: 100%;
 min-width: 0;
 margin: 0;
}
.vortix-rail .nav-item { margin: 0; }
.vortix-rail .nav-link,
.vortix-rail .vortix-nav-items > a,
.vortix-rail .vortix-nav-items summary {
 display: flex;
 align-items: center;
 gap: .7rem;
 min-height: 2.72rem;
 padding: .57rem .68rem !important;
 border-radius: .55rem;
 color: #c4d2e3 !important;
 font-size: .88rem;
 font-weight: 550;
 white-space: normal;
 text-decoration: none;
}
.vortix-rail .nav-link i, .vortix-rail .vortix-nav-items i { width: 1.1rem; flex: none; text-align: center; opacity: 1; }
.vortix-rail .nav-link:hover,
.vortix-rail .vortix-nav-items > a:hover,
.vortix-rail .vortix-nav-items summary:hover { background: #21314b; color: #fff !important; }
.vortix-rail .nav-link.active,
.vortix-rail .vortix-nav-items > a[aria-current=page],
.vortix-rail details.employee-active > summary {
 color: var(--vortix-accent-light) !important;
 background: var(--vortix-accent-panel);
 box-shadow: inset 3px 0 0 var(--vortix-accent);
}
.vortix-rail .dropdown-toggle::after, .vortix-rail summary::after { margin-left: auto; }
.vortix-rail .dropdown-menu,
.vortix-rail details > div {
 position: static;
 inset: auto;
 min-width: 0;
 width: auto;
 margin: .26rem 0 .42rem .67rem;
 padding: .2rem 0 .2rem .48rem;
 border: 0;
 border-left: 1px solid #3a4c65;
 border-radius: 0;
 background: transparent;
 box-shadow: none;
}
.vortix-rail .dropdown-menu:not(.show) { display: none; }
.vortix-rail .dropdown-item,
.vortix-rail details > div a {
 display: flex;
 align-items: center;
 gap: .54rem;
 min-height: 2.27rem;
 padding: .4rem .56rem;
 margin: .1rem 0;
 border-radius: .4rem;
 color: #c4d2e3 !important;
 font-size: .83rem;
 line-height: 1.2;
 white-space: normal;
}
.vortix-rail .dropdown-item:is(:hover,:focus-visible,[aria-current=page]),
.vortix-rail details > div a:is(:hover,:focus-visible,[aria-current=page]) {
 color: var(--vortix-accent-light) !important;
 background: var(--vortix-accent-panel);
}
.vortix-rail .dropdown-header { padding: .5rem .56rem .3rem; color: #9fb3cd; }

.vortix-topbar {
 position: sticky;
 top: 0;
 z-index: 1050;
 display: flex;
 justify-content: flex-end;
 align-items: center;
 gap: .65rem;
 min-height: var(--vortix-bar);
 padding: .55rem clamp(1rem, 3vw, 2rem);
 background: #15273e;
 border-bottom: 1px solid #ffffff25;
}
.vortix-topbar .vortix-tools { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.vortix-topbar :is(#navQuickSearchBtn,#employee-search-trigger,#erp-switch-account,#employee-logout,[data-action=logout]) {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: .4rem;
 min-height: 2.35rem;
 color: #e7f2fd;
 background: #21374f;
 border: 1px solid #3b536b !important;
 border-radius: .55rem !important;
 padding: .4rem .64rem;
 font-weight: 600;
 white-space: nowrap;
}
.vortix-topbar kbd { color: #b8cadc; }
.vortix-topbar :is(#navQuickSearchBtn,#employee-search-trigger,#erp-switch-account,#employee-logout,[data-action=logout]):hover {
 color: var(--vortix-accent-light);
 background: var(--vortix-accent-panel);
}
.vortix-topbar [hidden] { display: none !important; }
#erp-switch-account span { display: inline; max-width: 8rem; overflow: hidden; text-overflow: ellipsis; }
.vortix-topbar .btn-sync { padding-inline: .82rem !important; border: 1px solid transparent; background: var(--vortix-main); box-shadow: none; }
.vortix-topbar .btn-sync:hover { background: var(--vortix-main-hover); }
.vortix-mobile-brand, .vortix-topbar .vortix-toggle, .vortix-nav-backdrop { display: none; }
.vortix-shell :is(.erp-footer,.employee-footer) { position: static; background: var(--vortix-ink); border-color: var(--vortix-border); }
.vortix-shell :is(#app,#employee-main) { min-width: 0; }
/* A light workspace keeps tables and forms legible inside the dark frame. */
body.vortix-shell:has(.erp-module-view) { background: var(--vortix-gradient) fixed; }
.vortix-shell :is(#app,#employee-main) {
 --vortix-gutter: clamp(.8rem, 2.1vw, 2rem);
 width: min(1440px, calc(100% - var(--vortix-gutter) * 2));
 max-width: none;
 min-width: 0;
 padding: clamp(1rem, 2.25vw, 2rem);
 margin: clamp(1.05rem, 3vw, 2.4rem) auto 2rem !important;
 border: 1px solid #e0ebf5;
 border-radius: var(--vortix-panel-radius);
 background: var(--vortix-sheet);
 color: var(--vortix-text);
 box-shadow: 0 1.25rem 3.6rem #050c1f45;
}
.vortix-shell #employee-main { max-width: 1160px; }
.vortix-shell #app.erp-module-view, .vortix-shell #app.original-faq-view {
 margin-block: clamp(1.05rem, 3vw, 2.4rem) 2rem !important;
}
.vortix-shell #app.erp-module-view > .container { padding-inline: 0; }
.vortix-shell #app.erp-module-view > .container:is(:has(#offer-list),:has(.erp-order-empty),.erp-settings-layout,.erp-partnership-layout) {
 margin-top: 0 !important;
}
.vortix-shell :is(.erp-content-card,.stat-card,.employee-card,.employee-dashboard-card),
.vortix-shell #app :is(.card:not([class*="bg-"]):not(.text-white),.card.bg-white:not(.text-white)) {
 border: 1px solid var(--vortix-panel-border);
 border-radius: var(--vortix-panel-radius);
 color: var(--vortix-text);
 background-color: var(--vortix-surface) !important;
 box-shadow: 0 .32rem 1rem #1529410b;
}
.vortix-shell .employee-dashboard-card:hover { transform: none; }
.vortix-shell :is(.erp-module-title,.employee-heading) {
 padding-bottom: .85rem;
 border-bottom: 1px solid #c5d7e7;
}
.vortix-shell #app .erp-module-title h1, .vortix-shell .employee-heading {
 font-size: clamp(1.65rem, 3vw, 2.15rem);
 font-weight: 750;
 line-height: 1.16;
 letter-spacing: -.038em;
}
.vortix-shell :is(.erp-module-title,.employee-heading) h1,
.vortix-shell .employee-heading { color: #142441; }
.vortix-shell .employee-heading i { color: var(--vortix-main); }
.vortix-shell #app .erp-content-card .table th,
.vortix-shell #app .table th:not(.text-white) { background: #e8f0f7; color: #304a65; }
.vortix-shell #app #erp-price-table th { color: #f5f9ff; background: #15273e; }
.vortix-shell :is(.form-control,.form-select,#employee-main input,#employee-main select,#employee-main textarea) {
 border-color: #a7b9ca;
 border-radius: .5rem;
}
.vortix-shell :is(.form-control,.form-select,#employee-main input,#employee-main select,#employee-main textarea):focus {
 border-color: var(--vortix-main);
 outline: 2px solid var(--vortix-main);
 outline-offset: 1px;
 box-shadow: none;
}
.vortix-shell .btn-outline-primary {
 --bs-btn-color: var(--vortix-main);
 --bs-btn-border-color: var(--vortix-main);
 --bs-btn-hover-bg: var(--vortix-main);
 --bs-btn-hover-border-color: var(--vortix-main);
 --bs-btn-active-bg: var(--vortix-main-hover);
 --bs-btn-active-border-color: var(--vortix-main-hover);
}
.vortix-shell .employee-button { background: var(--vortix-main); border-color: var(--vortix-main); }
.vortix-shell .employee-button:hover { background: var(--vortix-main-hover); border-color: var(--vortix-main-hover); }
.vortix-shell .employee-secondary { color: var(--vortix-main); border-color: var(--vortix-main); }
.vortix-shell .employee-secondary:hover { background: var(--vortix-accent-soft); }
.vortix-shell .employee-nav-actions { margin-top: 0; }
.vortix-shell:has(#employee-main) { padding-bottom: 0; }
@media (max-width: 575px) {
 .vortix-shell :is(#app,#employee-main) { --vortix-gutter: .55rem; padding: .8rem; }
}
.vortix-shell :is(.btn-primary,.employee-button) { --bs-btn-bg: var(--vortix-main); --bs-btn-border-color: var(--vortix-main); --bs-btn-hover-bg: var(--vortix-main-hover); --bs-btn-hover-border-color: var(--vortix-main-hover); --bs-btn-active-bg: var(--vortix-main-active); --bs-btn-active-border-color: var(--vortix-main-active); }
.vortix-shell :is(.employee-heading,.erp-module-view h1) { color: #122743; }
.vortix-shell :is(#navQuickSearchResults .nqs-item:hover,#navQuickSearchResults .nqs-item:focus-visible) { color: var(--vortix-deep); }
.vortix-shell.erp-shared-mode .vortix-rail, .vortix-shell.erp-shared-mode .vortix-topbar { display: none !important; }
.vortix-shell.erp-shared-mode { padding-left: 0; }

@media (max-width: 991px) {
 .vortix-shell { padding-left: 0; }
 .vortix-shell .vortix-rail { transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
 .vortix-shell.vortix-nav-open .vortix-rail { transform: translateX(0); visibility: visible; }
 .vortix-nav-open .vortix-nav-backdrop {
  position: fixed; inset: 0; z-index: 2080; display: block; border: 0; padding: 0; background: rgb(8 19 36 / 58%);
 }
 .vortix-nav-open { overflow: hidden; }
 .vortix-topbar { justify-content: space-between; }
 .vortix-topbar .vortix-toggle {
  display: inline-grid; place-items: center; border: 1px solid #3b536b; background: #21374f;
  color: #e7f2fd; border-radius: .55rem; padding: .28rem .48rem; font-size: 1.25rem; line-height: 1;
 }
 .vortix-mobile-brand { display: inline-flex; color: #f5f9ff; font-size: 1rem; }
 .vortix-mobile-brand strong { color: var(--vortix-accent); }
 .vortix-rail #mainNav, .vortix-rail #employee-menu { display: block !important; max-height: none; overflow: visible; }
}
@media (max-width: 575px) {
 .vortix-topbar { --vortix-bar: 3.6rem; gap: .36rem; padding: .5rem .62rem; }
 .vortix-topbar .vortix-tools { gap: .33rem; }
 .vortix-topbar #erp-switch-account span { display: none; }
 .vortix-topbar #erp-switch-account i, .vortix-topbar .btn-sync i { margin-right: 0 !important; }
 .vortix-topbar .btn-sync { padding-inline: .46rem !important; }
}
@media (prefers-reduced-motion: reduce) {
 .vortix-shell .vortix-rail { transition: none; }
}
@media print {
 .vortix-shell, body.vortix-shell:has(.erp-module-view) { padding-left: 0; background: #fff; }
 .vortix-shell :is(#app,#employee-main) { background: #fff; box-shadow: none; border: 0; }
 .vortix-shell :is(.vortix-rail,.vortix-topbar,.vortix-nav-backdrop) { display: none !important; }
}

.vortix-rail .employee-menu { display: block; flex: none; }
.vortix-mobile-brand { gap: 0; }
.vortix-shell :is(.vortix-rail,.vortix-topbar) :is(a,button,summary):focus-visible {
 outline: 2px solid var(--vortix-accent);
 outline-offset: 2px;
}

.sync-page { max-width: 70rem; margin-inline: auto; }
.sync-title {
 padding: .95rem 1.2rem;
 margin-bottom: 1rem;
 background: var(--vortix-surface);
 border: 1px solid var(--vortix-panel-border);
 border-radius: .45rem;
}
.sync-title h1 { margin: 0; font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 700; }
.sync-title i { margin-right: .4rem; }
.sync-screen {
 min-height: min(24rem, 58vh);
 max-height: 63vh;
 overflow: auto;
 overscroll-behavior: contain;
 padding: 1rem 1.2rem;
 color: #cddaf0;
 background: #101923;
 border: 1px solid #283345;
 border-radius: .45rem;
 font: .92rem/1.55 ui-monospace, Consolas, monospace;
}
.sync-line { overflow-wrap: anywhere; }
.sync-line.profile { color: #f4b860; margin: .65rem 0 .35rem; font-weight: 700; }
.sync-line.firm { color: #a9d4fb; margin-top: .6rem; font-weight: 700; }
.sync-line.error { color: #ffa3ae; }
.sync-line.warning { color: #ffdb9a; }
.sync-line.success { color: #88e4b5; }
.sync-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; margin-top: 1rem; }
.sync-actions [hidden] { display: none !important; }

/* Account invitations and permission groups */
.vortix-invite-label {
 color: #4b6077;
 font-size: .76rem;
 font-weight: 700;
 letter-spacing: .025em;
 text-transform: uppercase;
}
.vortix-invite-row {
 display: flex;
 align-items: center;
 gap: .55rem;
}
.vortix-invite-row :is(.form-control,.vortix-invite-code) { flex: 1; min-width: 0; }
.vortix-invite-code, .vortix-invite-row input.vortix-invite-code {
 padding: .62rem .85rem;
 border: 0;
 border-radius: 999px;
 background: #eef3f8;
 color: var(--vortix-main);
 font-weight: 700;
 letter-spacing: .025em;
 text-align: center;
}
.vortix-invite-icon {
 display: grid;
 flex: 0 0 2.15rem;
 width: 2.15rem;
 height: 2.15rem;
 padding: 0;
 place-items: center;
}
.vortix-invite-redeem {
 padding-top: 1rem;
 border-top: 1px solid var(--vortix-panel-border);
}
.vortix-invite-redeem input { min-height: 2.55rem; }
.vortix-grant-table { --bs-table-bg: transparent; }
.vortix-grant-scroll { max-height: 42dvh; overflow: auto; border: 1px solid var(--vortix-panel-border); border-radius: .5rem; }
.vortix-grant-table thead { position: sticky; top: 0; z-index: 1; }
.vortix-grant-table thead th { background: var(--vortix-surface); }
.vortix-grant-table thead th:not(:first-child),
.vortix-grant-table .vortix-grant-cell {
 border-inline-start: 1px solid var(--vortix-panel-border);
}
.vortix-grant-table .vortix-grant-cell { padding: 0; }
.vortix-grant-option {
 display: grid;
 min-height: 2.25rem;
 place-items: center;
}
.vortix-grant-option:has(input:enabled) { cursor: pointer; }
.vortix-grant-option:has(input:enabled):hover { background: #f4ece1; }
.vortix-grant-option .form-check-input {
 width: 1.375rem;
 height: 1.375rem;
 margin: 0;
 border: 2px solid #526476;
 border-radius: .3rem;
 background-color: #fff;
}
.vortix-grant-option .form-check-input:checked {
 background-color: var(--vortix-main);
 border-color: var(--vortix-main);
}
.vortix-grant-option .form-check-input:focus {
 border-color: var(--vortix-main);
 box-shadow: none;
}
.vortix-grant-option .form-check-input:focus-visible {
 outline: 2px solid #254b6e;
 outline-offset: 2px;
}
@media (forced-colors: active) {
 .vortix-grant-option .form-check-input { appearance: auto; }
 .vortix-grant-option .form-check-input:focus-visible { outline-color: Highlight; }
}
.vortix-grant-table .vortix-grant-group { --grant-bg: #edf3f8; --grant-ink: #24415e; --grant-accent: #7598b8; }
.vortix-grant-table .vortix-grant-group--1 { --grant-bg: #e6f0fd; --grant-ink: #224d80; --grant-accent: #4981bd; }
.vortix-grant-table .vortix-grant-group--2 { --grant-bg: #e3f4e8; --grant-ink: #245c42; --grant-accent: #459971; }
.vortix-grant-table .vortix-grant-group--3 { --grant-bg: #fff0d8; --grant-ink: #794712; --grant-accent: #c68233; }
.vortix-grant-table .vortix-grant-group--4 { --grant-bg: #f0eafb; --grant-ink: #573a80; --grant-accent: #8d70b7; }
.vortix-grant-table .vortix-grant-group--5 { --grant-bg: #fbeaf0; --grant-ink: #763a55; --grant-accent: #bd6a8d; }
.vortix-grant-table .vortix-grant-group--6 { --grant-bg: #e4f3f4; --grant-ink: #235762; --grant-accent: #51959b; }
.vortix-grant-table .vortix-grant-group--7 { --grant-bg: #eceef5; --grant-ink: #404b68; --grant-accent: #7889ab; }
.vortix-grant-table .vortix-grant-heading th {
 padding: .52rem .65rem;
 border-inline-start: .25rem solid var(--grant-accent);
 background: var(--grant-bg);
 color: var(--grant-ink);
}
.vortix-grant-table [data-grant-area] th { padding-inline-start: .95rem; font-weight: 600; }
