body {
	margin-left: 10px;
	margin-top: 10px;
	margin-right: 10px;
	margin-bottom: 10px;
}
a:hover{
	text-decoration:underline;
}
.LogoText {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 32px;
	font-weight: normal;
	color: #727172;
	text-decoration: none;
}
.WhiteText_11px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: normal;
	color: #FFFFFF;
	text-decoration: none;
}
.InnerGridTextBox
{
	text-align: right;
	width:70px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 9px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
	
}
.InnerGridPATextBox
{
	text-align: right;
	width:100px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}
.WhiteTextBold_11px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: bold;
	color: #FFFFFF;
	text-decoration: none;
}
.LightGreenBg {
	background-color: #edf3eb;
}
.DarkGreenBg {
	background-color: #8bb467;
}
.BlackText_12px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}
.BlackText_10px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}
.BlackTextBold_12px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #000000;
	text-decoration: none;
}

.WhiteText_12px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: normal;
	color: #FFFFFF;
	text-decoration: none;
}
.WhiteTextBold_12px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-decoration: none;
}
.GreenButton {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-decoration: none;
	background-color: #8bb467;
	border: 1px solid #71994D;
}
.GreenButton1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: bold;
	color: #FFFFFF;
	width:110px;
	text-decoration: none;
	background-color: #8bb467;
	border: 1px solid #71994D;
}
.GreenButton150 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: bold;
	color: #FFFFFF;
	width:150px;
	text-decoration: none;
	background-color: #8bb467;
	border: 1px solid #71994D;
}
.GreenTextOver {
	FONT-SIZE: 12px;
	COLOR: #000000;
	FONT-FAMILY: Verdana, Arial;
	background-color: #8BB467;
}
.PurpleTextOver {
	FONT-SIZE: 12px;
	COLOR: #000000;
	FONT-FAMILY: Verdana, Arial;
	background-color: #9C85E3;
}
.AltRowBgWhite {
	background-color: #FFFFFF;
}
.AltRowBgBlue
{
		background-color: #E3ECF9;
}
.AltRowBgGreen
{
		background-color: #f3f7f2;
}
.AltRowBgOrange
{
		background-color: #FDF0E1;
}
.BlackTextBold_14px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: bold;
	color: #000000;
	text-decoration: none;
}
.BlackTextBold_16px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: bold;
	color: #000000;
	text-decoration: none;
}
.LightPurpleBg {
	background-color: #ECE5F9;
}
.DarkPurpleBg {
	background-color: #9C85E3;
}
.PurpleButton {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-decoration: none;
	background-color: #9C85E3;
	border: 1px solid #8162DB;
}
.LightBlueBg {
	background-color: #E3ECF9;
}
.LightBlueBgW {
	background-color: #FFFFFF;
	font-weight: bold;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
}
.LightBlueBgB {
	background-color: #E3ECF9;
	font-weight: bold;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
}
.DarkBlueBg {
	background-color: #5B8BD7;
}
.BlueButton {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-decoration: none;
	background-color: #5B8BD7;
	border: 1px solid #3770CE;
}


.DarkOrangeBg {
	background-color: #F28D1D;
}
.LightOrangeBg {
	background-color: #FDF0E1;
}
.OrangeButton {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-decoration: none;
	background-color: #F28D1D;
	border: 1px solid #DF7B0D;
}
.BlueTextOver {
	FONT-SIZE: 12px;
	COLOR: #000000;
	FONT-FAMILY: Verdana, Arial;
	background-color: #5B8BD7;
}
.OrangeTextOver {
	FONT-SIZE: 12px;
	COLOR: #000000;
	FONT-FAMILY: Verdana, Arial;
	background-color: #F28D1D;
}
.OrangeBox {
	background-color: #FFFFFF;
	border: 1px solid #F28D1D;
}
.RedText_12px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: normal;
	color: #990000;
	text-decoration: none;
}
.RedTextBold_12px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #990000;
	text-decoration: none;
}
.RedTextBold_14px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: bold;
	color: #990000;
	text-decoration: none;
}

.RedTextBold_16px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: bold;
	color: #990000;
	text-decoration: none;
}
.RedTextBold_24px {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 32px;
	font-weight: bold;
	color: #990000;
	text-decoration: none;
}

.BlueBox {
	background-color: #FFFFFF;
	border: 1px solid #5B8BD7;
}
.BlueBox1 {
	
	border: 1px solid #5B8BD7;
}
.GreenBox {
	background-color: #FFFFFF;
	border: 1px solid #8bb467;
}
.GreenBox1 {
	border: 1px solid #8bb467;
}
.LightestBlueBg {
	background-color: #EFF4FC;
}
.LightestGreenBg {
	background-color: #f3f7f2;
}
.GridHeaderBG {
	background-image: url(../images/top_nav_grey_bg.gif);
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: normal;
	color: #FFFFFF;
	text-decoration: none;
}

.watermark {
	background: #FFAAFF;
}

.popupControl {
	background-color:#AAD4FF;
	position:absolute;
	visibility:hidden;
	border-style:solid;
	border-color: Black;
	border-width: 2px;
}

.modalBackground {
	background-color:Gray;
	filter:alpha(opacity=70);
	opacity:0.7;
}

.modalPopup {
	background-color:#ffffff;
	border-width:3px;
	border-style:solid;
	border-color:Gray;
	padding:0px;
	width:700px;
}
.modalPopupOuter {
	background-color:#ffffff;
	border-width:3px;
	border-style:solid;
	border-color:Gray;
	padding:3px;
	width:700px;
	height:550px;
}
/* DIV TAG STYLE SHEET */
.balloonstyle{
position:absolute;
top: -500px;
left: 0;
padding: 5px;
visibility: hidden;
border:1px solid black;
font:normal 12px Verdana;
line-height: 18px;
z-index: 100;
background-color: white;
width: 300px;
}

#arrowhead{
z-index: 99;
position:absolute;
top: -500px;
left: 0;
visibility: hidden;
}

.LightGreyBorder {
	border: 1px solid #E8E8E8;
}

/* TOOL TIP STYLE SHEET */
#dhtmltooltip{
position: absolute;
left: -300px;
width: 150px;
border: 1px solid black;
padding: 2px;
background-color: lightyellow;
visibility: hidden;
z-index: 100;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: normal;
	color: #585858;
	text-decoration: none;
}

#dhtmlpointer{
position:absolute;
left: -300px;
z-index: 101;
visibility: hidden;
}

.re
{
    cursor:pointer;
}

/* Modern loader: full-screen dimmed overlay + CSS spinner.
   Hides the legacy ajax-loader*.gif images and replaces them with a single
   visible animated spinner that works on every theme (purple/blue/green/orange). */
#loading
{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    background-color: rgba(15, 23, 42, 0.55) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

#loading img,
#loading img[src*="ajax-loader"]
{
    display: none !important;
}

#loading::before
{
    content: '';
    display: block;
    width: 64px;
    height: 64px;
    border: 6px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: qs-spin 0.9s linear infinite;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

#loading::after
{
    content: 'Loading\2026';
    position: absolute;
    bottom: calc(50% - 70px);
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

@keyframes qs-spin
{
    to { transform: rotate(360deg); }
}

/* ================== Quick-win UX additions ================== */

/* Status badges — applied via qs-ui.js to status labels in grids */
/* Status indicator: small colored dot before the status text.
   Same width as plain text — no pill, no wrapping issues. */
.status-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    text-transform: none;
    letter-spacing: 0;
}
.status-badge::before {
    content: '';
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.18);
}
.status-badge-success { color: #065f46 !important; }
.status-badge-success::before { background: #10b981; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); }

.status-badge-info { color: #1e3a8a !important; }
.status-badge-info::before { background: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }

.status-badge-warning { color: #92400e !important; }
.status-badge-warning::before { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2); }

.status-badge-danger { color: #991b1b !important; }
.status-badge-danger::before { background: #ef4444; box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2); }

.status-badge-neutral { color: #374151 !important; }
.status-badge-neutral::before { background: #9ca3af; box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.2); }

/* Allow the status cell to render the dot+text without ellipsis-clipping. */
td.status-cell {
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Empty-state styling — when lblRecord is non-empty after a query that returned 0 rows.
   The .LogoText class is the legacy class on every page's empty-state label. */
span.LogoText[id$="_lblRecord"]:not(:empty),
span.LogoText[id$="lblRecord"]:not(:empty) {
    display: block !important;
    text-align: center !important;
    padding: 40px 20px !important;
    margin: 16px 0 !important;
    background: #fafbfd !important;
    border: 1px dashed #d1d5db !important;
    border-radius: 10px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

/* Sortable grid column indicators — modern SVG chevrons.
   qs-ui.js adds .sortable-col / .sorted-asc / .sorted-desc to the <td>. */
.qs-grid td.sortable-col {
    cursor: pointer;
}
.qs-grid td.sortable-col a {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}
.qs-grid td.sortable-col a::after {
    content: '';
    width: 10px;
    height: 14px;
    flex: 0 0 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 14px;
    opacity: 0.55;
    transition: opacity 0.15s ease;
    /* default = sortable hint: stacked up + down chevrons */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M2 5 L5 2 L8 5'/><path d='M2 9 L5 12 L8 9'/></svg>");
}
.qs-grid td.sortable-col:hover a::after {
    opacity: 0.9;
}
.qs-grid td.sorted-asc a::after,
.qs-grid td.sorted-desc a::after {
    opacity: 1;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background-size: 12px 12px;
    background-color: rgba(255, 255, 255, 0.22);
    border-radius: 4px;
}
.qs-grid td.sorted-asc a::after {
    /* up chevron only */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 8 L6 3 L10 8'/></svg>");
}
.qs-grid td.sorted-desc a::after {
    /* down chevron only */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 4 L6 9 L10 4'/></svg>");
}

/* Floating help button (bottom-right) — opens the keyboard shortcut help overlay.
   Theme-tinted per role for natural visual fit. */
.qs-help-fab {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 999997;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}
.qs-help-fab:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}
.qs-help-fab:active { transform: translateY(0); }
.qs-help-fab .qs-help-fab-icon {
    font-size: 18px;
    line-height: 1;
}
/* Hide the FAB while another modal is open so it doesn't peek through */
body:has(.qs-modal-overlay.open) .qs-help-fab,
body:has(.qs-shortcut-help.open) .qs-help-fab {
    opacity: 0;
    pointer-events: none;
}
/* Theme tints */
body.dashboard-page .qs-help-fab { background: linear-gradient(135deg, #7c3aed 0%, #4b2e83 100%); box-shadow: 0 4px 14px rgba(76, 29, 149, 0.4); }
body.salesrep-page  .qs-help-fab { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); box-shadow: 0 4px 14px rgba(29, 78, 216, 0.4); }
body.pa-page        .qs-help-fab { background: linear-gradient(135deg, #10b981 0%, #047857 100%); box-shadow: 0 4px 14px rgba(4, 120, 87, 0.4); }
body.vendor-page    .qs-help-fab { background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4); }

/* Keyboard shortcut help overlay — opens via `?`, closes via Esc / click-outside / × button. */
.qs-shortcut-help {
    position: fixed;
    inset: 0;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.18s ease;
    padding: 16px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.qs-shortcut-help.open { opacity: 1; }

.qs-shortcut-help-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 4px 0 8px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.2s ease;
    overflow: hidden;
}
.qs-shortcut-help.open .qs-shortcut-help-card { transform: translateY(0) scale(1); }

.qs-shortcut-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #eef0f5;
}
.qs-shortcut-help-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}
.qs-shortcut-help-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}
.qs-shortcut-help-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.qs-shortcut-list {
    list-style: none;
    padding: 8px 22px 14px;
    margin: 0;
}
.qs-shortcut-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    font-size: 13px;
    color: #4b5563;
}
.qs-shortcut-list kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    padding: 0 8px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-bottom-width: 2px;
    border-radius: 5px;
    font-family: ui-monospace, "SF Mono", Menlo, Monaco, "Roboto Mono", monospace;
    font-size: 12px;
    color: #111827;
    font-weight: 600;
}

/* Styled confirmation modal (replaces native confirm(...) popups).
   Triggered via OnClientClick="return confirm('...')" patterns. */
.qs-modal-overlay {
    position: fixed;
    inset: 0;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.18s ease;
    padding: 16px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.qs-modal-overlay.open { opacity: 1; }

.qs-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 440px;
    transform: translateY(8px) scale(0.98);
    transition: transform 0.2s ease;
    overflow: hidden;
}
.qs-modal-overlay.open .qs-modal { transform: translateY(0) scale(1); }

.qs-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px 4px;
}
.qs-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}
.qs-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fef3c7;
    color: #b45309;
    flex-shrink: 0;
}

.qs-modal-body {
    padding: 8px 22px 18px 70px;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.qs-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 22px 18px;
    background: #f9fafb;
    border-top: 1px solid #eef0f5;
}
.qs-modal-footer button {
    height: 36px;
    padding: 0 18px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.qs-modal-footer .qs-modal-cancel {
    background: #ffffff;
    color: #374151;
    border-color: #d1d5db;
}
.qs-modal-footer .qs-modal-cancel:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}
.qs-modal-footer .qs-modal-confirm {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.25);
}
.qs-modal-footer .qs-modal-confirm:hover {
    filter: brightness(1.07);
    box-shadow: 0 5px 14px rgba(220, 38, 38, 0.35);
}
.qs-modal-footer button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

/* Drag-and-drop row reordering — used on position grids
   (e.g. ViewQuoteNC.aspx). qs-ui.js injects a grab handle into the
   Position cell of any row whose template contains a textsorting input. */
.qs-dnd-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0 auto 6px;
    border-radius: 6px;
    color: #6b7280;
    background: rgba(99, 102, 241, 0.05);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
    touch-action: none;
}
.qs-dnd-handle:hover {
    background: #eef2ff;
    color: #1e40af;
}
.qs-dnd-handle:active {
    cursor: grabbing;
    transform: scale(0.94);
}
.qs-dnd-row { transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1); }
.qs-dnd-row.qs-dnd-placeholder > td {
    opacity: 0.25;
    filter: grayscale(0.4);
}
.qs-dnd-row.qs-dnd-placeholder table.collapsible {
    background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 8px, #e2e8f0 8px, #e2e8f0 16px) !important;
    border-color: #cbd5e1 !important;
}
.qs-dnd-ghost-host {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    opacity: 0.95;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.25), 0 4px 12px rgba(15, 23, 42, 0.15);
    transform: rotate(0.6deg);
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}
.qs-dnd-ghost-host > tbody > tr > td { background: #ffffff; }

/* Page-size selector — injected by qs-ui.js above each opted-in
   .qs-grid[data-qs-pagesize]. Cookie-driven; reloads on change. */
.qs-pagesize-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.qs-pagesize-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.qs-pagesize-select {
    box-sizing: border-box;
    height: 32px;
    padding: 0 32px 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-family: inherit;
    font-size: 13px;
    color: #111827;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.qs-pagesize-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

/* CSV export button (auto-injected into any .qs-grid's toolbar, or above the grid).
   Theme-tinted secondary button so it complements rather than competes with
   the primary "Add New X" / "Search" actions on the same toolbar. */
.qs-csv-bar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 8px 0;
}
.qs-csv-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.qs-csv-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.qs-csv-btn:active { transform: translateY(1px); }
.qs-csv-btn svg { color: currentColor; }

/* Theme: Admin (purple) */
body.dashboard-page .qs-csv-btn {
    background: #faf7ff;
    color: #4b2e83;
    border-color: #c4b5fd;
}
body.dashboard-page .qs-csv-btn:hover {
    background: #ede9fe;
    border-color: #a78bfa;
    color: #2e1065;
    box-shadow: 0 2px 8px rgba(76, 29, 149, 0.18);
}

/* Theme: SalesRep (blue) */
body.salesrep-page .qs-csv-btn {
    background: #f5f9ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
body.salesrep-page .qs-csv-btn:hover {
    background: #dbeafe;
    border-color: #60a5fa;
    color: #1e3a8a;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.18);
}

/* Theme: PA (green) */
body.pa-page .qs-csv-btn {
    background: #f4fbf6;
    color: #047857;
    border-color: #a7f3d0;
}
body.pa-page .qs-csv-btn:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #064e3b;
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.18);
}

/* Theme: Vendor (orange) */
body.vendor-page .qs-csv-btn {
    background: #fff9f3;
    color: #c2410c;
    border-color: #fed7aa;
}
body.vendor-page .qs-csv-btn:hover {
    background: #ffedd5;
    border-color: #fdba74;
    color: #7c2d12;
    box-shadow: 0 2px 8px rgba(194, 65, 12, 0.18);
}

/* Auto-injected empty state for any .qs-grid that has 0 data rows.
   qs-ui.js adds a div.qs-empty-state inside the grid wrapper. */
.qs-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: #fafbfd;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
    border-top: 1px dashed #e5e7eb;
}
.qs-empty-state svg { color: #9ca3af; margin-bottom: 12px; }
.qs-empty-state .qs-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}
.qs-empty-state .qs-empty-sub {
    font-size: 13px;
    color: #6b7280;
}

/* Disabled / busy button visuals — applied automatically by qs-ui.js
   when a submit button has been clicked and the postback is in flight. */
input.btn-busy,
button.btn-busy,
input[type="submit"]:disabled,
input[type="button"]:disabled,
input[type="image"]:disabled,
button:disabled {
    opacity: 0.65 !important;
    cursor: wait !important;
    filter: saturate(0.7);
    pointer-events: none;
}

/* Per-role spinner color overrides
   Admin     = Purple, SalesRep = Blue, PA = Green, Vendor = Orange */
body.dashboard-page #loading::before
{
    border: 6px solid rgba(196, 181, 253, 0.25);
    border-top-color: #c4b5fd;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
}
body.dashboard-page #loading
{
    background-color: rgba(46, 16, 101, 0.55) !important;
}

body.salesrep-page #loading::before
{
    border: 6px solid rgba(147, 197, 253, 0.25);
    border-top-color: #93c5fd;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}
body.salesrep-page #loading
{
    background-color: rgba(23, 37, 84, 0.55) !important;
}

body.pa-page #loading::before
{
    border: 6px solid rgba(110, 231, 183, 0.25);
    border-top-color: #6ee7b7;
    box-shadow: 0 6px 18px rgba(4, 120, 87, 0.45);
}
body.pa-page #loading
{
    background-color: rgba(6, 78, 59, 0.55) !important;
}

body.vendor-page #loading::before,
body.vendor-print #loading::before
{
    border: 6px solid rgba(253, 186, 116, 0.25);
    border-top-color: #fdba74;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
}
body.vendor-page #loading,
body.vendor-print #loading
{
    background-color: rgba(67, 20, 7, 0.55) !important;
}
