/*==================================================
  ProERP — Modern UI (matches app-header renderer)
  Brand: #285b86 / #367cb5 / #dee7ec
==================================================*/

:root {
	--brand-900: #1d4669;
	--brand-800: #285b86;
	--brand-600: #367cb5;
	--brand-400: #8cacbb;
	--brand-200: #dee7ec;
	--brand-100: #eef4f8;
	--surface: #ffffff;
	--page-bg: #f1f5f9;
	--text: #0f172a;
	--muted: #475569;
	--border: #cbd5e1;
	--border-soft: #e2e8f0;
	--danger: #dc2626;
	--danger-bg: #fee2e2;
	--warn: #d97706;
	--warn-bg: #fef3c7;
	--ok: #15803d;
	--ok-bg: #dcfce7;
	--radius: 8px;
	--radius-sm: 6px;
	--shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
	--shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);
	--header-h: 108px;
	--font: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { height: 100%; }

body {
	font-family: var(--font);
	background: var(--surface);
	color: var(--text);
	font-size: 12px;
	margin: 0 !important;
	padding: 0;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

body#loginscreen {
	padding-top: 0 !important;
	background: linear-gradient(145deg, #0f172a 0%, var(--brand-800) 55%, var(--brand-600) 100%);
}

body.sidebar-open { overflow: hidden; }

tr, td, th {
	font-family: inherit;
	font-size: inherit;
	line-height: 1.45;
}

/* ---------- Forms ---------- */
textarea {
	font-family: inherit;
	font-size: 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 8px 10px;
	background: var(--surface);
	color: var(--text);
	width: 100%;
	max-width: 100%;
	resize: vertical;
}

textarea:focus {
	border-color: var(--brand-600);
	box-shadow: 0 0 0 3px rgba(54, 124, 181, 0.2);
	outline: none;
}

input, select {
	font-family: inherit;
	font-size: 12px;
	height: 34px;
	padding: 4px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	outline: none;
	vertical-align: middle;
}

select { max-width: 260px; cursor: pointer; }

input:focus, select:focus {
	border-color: var(--brand-600);
	box-shadow: 0 0 0 3px rgba(54, 124, 181, 0.2);
}

option.inactive { text-decoration: line-through; color: #94a3b8; }
input.big { width: 100px; }
input.small { width: 50px; }

a {
	color: var(--brand-800);
	text-decoration: none;
	font-weight: 500;
}

a:hover, a:focus { color: #166534; text-decoration: underline; }
.inactive { color: #94a3b8; }

/* ---------- Buttons ---------- */
button,
input[type="submit"],
input[type="button"],
.inputsubmit,
.ajaxsubmit {
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	min-height: 34px;
	border: 1px solid var(--brand-600);
	background: linear-gradient(180deg, var(--brand-600), var(--brand-800));
	color: #fff;
	padding: 6px 14px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 2px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.inputsubmit:hover,
.ajaxsubmit:hover {
	filter: brightness(1.06);
	color: #fff;
	text-decoration: none;
}

button img, span { vertical-align: middle; padding: 0 2px; }

.editbutton {
	color: var(--brand-600);
	background: transparent;
	border: none;
	text-decoration: underline;
	cursor: pointer;
	min-height: auto;
	box-shadow: none;
	padding: 2px 4px;
}

.editbutton:hover { color: var(--brand-800); background: transparent; filter: none; }
.listsubmit { display: none; }

/* ==================================================
   APP HEADER (sticky) — matches renderer.php
================================================== */
.app-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 500;
	background: var(--brand-800);
	box-shadow: var(--shadow-lg);
}

.app-nav {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 60px;
	padding: 0 20px;
	background: linear-gradient(180deg, var(--brand-800), var(--brand-900));
}

nav.tabs,
.app-nav .tabs {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	width: 100%;
	height: 100%;
	white-space: nowrap;
}

nav.tabs a,
.app-nav .tabs a,
div.tabs a {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 18px;
	color: rgba(255, 255, 255, 0.88);
	font-weight: 600;
	font-size: 15px;
	border-radius: 9px 9px 0 0;
	text-decoration: none;
	white-space: nowrap;
}

nav.tabs a:hover,
.app-nav .tabs a:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	text-decoration: none;
}

nav.tabs a.selected,
.app-nav .tabs a.selected {
	background: var(--page-bg);
	color: var(--brand-800);
	font-weight: 700;
}

.app-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 48px;
	padding: 0 22px;
	background: var(--surface);
	border-bottom: 1px solid var(--border-soft);
	color: var(--muted);
}

.app-status-text {
	font-size: 17px;
	font-weight: 600;
	letter-spacing: .01em;
	color: #42586b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.app-status-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	white-space: nowrap;
}

.app-status-right a {
	font-size: 13px;
	color: var(--brand-800);
	text-decoration: none;
	font-weight: 500;
}

.app-status-right a:hover {
	color: var(--brand-600);
	text-decoration: underline;
}

/* Legacy aliases (older markup / cached pages) */
.quick_menu { display: none; }
.logoutBar { display: none; }
.top-nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 500;
	background: var(--brand-800);
}
.top-nav-inner {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 12px;
}
.top-nav-brand { color: #fff; font-weight: 700; white-space: nowrap; }
.top-nav-tabs { display: flex; gap: 4px; overflow-x: auto; flex: 1; }
.top-nav-tab { color: rgba(255,255,255,.85); padding: 8px 12px; text-decoration: none; border-radius: 6px; white-space: nowrap; }
.top-nav-tab.is-active { background: var(--page-bg); color: var(--brand-800); font-weight: 700; }
.top-nav-aside { display: flex; align-items: center; gap: 10px; color: #fff; }
.top-nav-actions a { color: #fff; font-size: 11px; margin-left: 8px; }

/* ---------- Hamburger / drawer ---------- */
.mobile-hamburger-btn {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 34px;
	padding: 7px 8px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--radius-sm);
	cursor: pointer;
	flex-shrink: 0;
	margin: 0;
	min-height: 34px;
	box-shadow: none;
}

.mobile-hamburger-btn span,
.mobile-hamburger-btn div {
	display: block;
	width: 100%;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	padding: 0;
}

.mobile-hamburger-btn:hover {
	background: rgba(255, 255, 255, 0.22);
	filter: none;
}

.mobile-sidebar-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	z-index: 99998;
}

.mobile-sidebar-overlay.open {
	opacity: 1;
	pointer-events: auto;
}

.mobile-sidebar-panel {
	position: fixed;
	top: 0;
	left: 0;
	width: 300px;
	max-width: 88vw;
	height: 100vh;
	height: 100dvh;
	background: var(--brand-800);
	color: #fff;
	z-index: 99999;
	transform: translate3d(-105%, 0, 0);
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--shadow-lg);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.mobile-sidebar-panel.open { transform: translate3d(0, 0, 0); }

.mobile-sidebar-header {
	padding: 16px 18px;
	background: var(--brand-900);
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-sidebar-title { font-weight: 700; font-size: 15px; color: #fff; }

.mobile-sidebar-close {
	background: transparent !important;
	border: none !important;
	color: #fff !important;
	font-size: 26px !important;
	cursor: pointer;
	line-height: 1;
	padding: 0 4px !important;
	min-height: auto !important;
	box-shadow: none !important;
}

.mobile-user-info {
	padding: 12px 16px;
	background: rgba(0, 0, 0, 0.18);
	font-size: 12px;
	color: var(--brand-200);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-links { display: flex; flex-direction: column; padding: 8px 0 16px; }

.mobile-nav-item,
.mobile-nav-item-compact {
	padding: 13px 18px;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	display: flex;
	align-items: center;
	gap: 8px;
}

.mobile-nav-item:hover,
.mobile-nav-item-compact:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	text-decoration: none;
}

.mobile-nav-item.active {
	background: var(--brand-200);
	color: var(--brand-800);
	font-weight: 700;
}

.mobile-nav-section-title {
	padding: 12px 18px 6px;
	font-size: 11px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.65);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.mobile-nav-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.15);
	margin: 8px 0;
}

/* ---------- Shell / content ---------- */
.app-shell {
	width: 100%;
	min-height: 0;
	background: var(--surface);
}

/* Offset content only when sticky header is present */
.app-header + .app-shell,
.app-header ~ .app-shell {
	margin-top: var(--header-h);
}

/* Legacy top-nav offset */
.top-nav + .callout_main,
.top-nav ~ .callout_main,
.top-nav + table.callout_main {
	margin-top: 48px;
}

.callout_main {
	border: none;
	width: 100% !important;
	max-width: 100%;
	margin: 0;
	padding: 0;
	table-layout: fixed;
}

.main_page {
	background: var(--surface);
	border: none;
	width: 100% !important;
	max-width: 100%;
	margin: 0;
	padding: 0 0 16px;
	table-layout: fixed;
}

.content-cell { padding: 0; vertical-align: top; max-width: 100%; }

#_page_body {
	padding: 8px 12px 20px;
	min-height: 40vh;
}

#_page_body > center {
	display: block;
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* ---------- Page title ---------- */
#title,
.page-title-bar,
.page-title {
	margin: 12px 12px 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.titletext,
h1.titletext {
	font-weight: 700;
	font-size: 16px;
	margin: 0;
	padding: 8px 4px 10px;
	border-bottom: 2px solid var(--brand-200);
	width: 100%;
	color: var(--text);
	letter-spacing: -0.01em;
}

.headingtext {
	font-weight: 700;
	font-size: 14px;
	color: var(--text);
	padding: 8px 0;
	border-bottom: 2px solid var(--border-soft);
	margin-bottom: 10px;
}

.headingtext2 { font-size: 13px; color: var(--text); }
.headingtext3 { font-weight: 600; font-size: 11px; color: var(--muted); }
.errortext { font-size: 13px; color: var(--danger); font-weight: 700; }

#hints {
	font-size: 12px;
	padding: 6px 10px;
	border: 1px solid #fde68a;
	background: #fffbeb;
	border-radius: var(--radius-sm);
	color: #92400e;
}

#hotkeyshelp { font-size: 11px; color: var(--muted); }

/* ---------- Main menu modules ---------- */
.app-menu {
	padding: 12px 16px 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.menu_module {
	background: var(--surface);
	border: 1px solid var(--brand-400);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.menu_group {
	display: block;
	font-size: 13px;
	padding: 10px 14px;
	margin: 0;
	color: var(--brand-800);
	background: linear-gradient(180deg, var(--brand-100), var(--brand-200));
	font-weight: 700;
	border-bottom: 1px solid var(--brand-400);
}

.menu_group_body,
.menu_group_items {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}

.menu_group_body > .menu_group_items,
.menu_col {
	padding: 10px 14px;
	line-height: 1.8;
}

.menu_group_body > .menu_group_items + .menu_group_items,
.menu_col + .menu_col {
	border-left: 1px solid var(--border-soft);
}

.menu-link,
.menu_link { padding: 2px 0; }
.menu-spacer,
.menu_spacer { height: 10px; }

.menu_module_transactions .menu_group_body > .menu_group_items:first-child {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(4, auto);
	grid-auto-flow: column;
}

/* When only one column of items exists without body wrapper */
section.menu_module > .menu_group_items {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 10px 14px;
}

/* ---------- Alerts ---------- */
div.err_msg, div.warn_msg, div.note_msg {
	margin: 10px 12px;
	padding: 10px 14px;
	text-align: center;
	border-radius: var(--radius);
	font-weight: 500;
	box-shadow: var(--shadow);
}

div.err_msg { border: 1px solid #fecaca; background: var(--danger-bg); color: var(--danger); }
div.warn_msg { border: 1px solid #fde68a; background: var(--warn-bg); color: var(--warn); }
div.note_msg { border: 1px solid #bbf7d0; background: var(--ok-bg); color: var(--ok); }

/* ---------- Tables ---------- */
.tableheader, .tableheader2 {
	font-weight: 700;
	background: linear-gradient(180deg, var(--brand-100), var(--brand-200));
	color: var(--brand-800);
	text-align: center;
}
.tableheader2 { text-align: left; }

table.tablestyle,
table.tablestyle2 {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
	overflow: hidden;
	margin: 6px auto;
}

table.tablestyle td,
table.tablestyle2 td {
	border: none;
	border-bottom: 1px solid var(--border-soft);
	padding: 8px 12px;
}

table.tablestyle tr:last-child td,
table.tablestyle2 tr:last-child td { border-bottom: none; }

table.tablestyle_inner {
	border-collapse: collapse;
	border: 1px solid var(--border-soft);
	background: var(--surface);
	width: 100%;
}

table.tablestyle_inner td {
	border: 1px solid var(--border-soft);
	padding: 6px 10px;
}

.tablestyle_noborder {
	padding: 4px;
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

td.label, .label {
	background: var(--brand-100);
	color: var(--muted);
	font-weight: 600;
	padding: 8px 12px !important;
	white-space: nowrap;
	vertical-align: middle;
	border-right: 1px solid var(--border-soft);
	min-width: 120px;
}

.oddrow { background-color: #f8fafc; }
.evenrow { background-color: #eef2f7; }
.overduebg { background-color: #fecaca; }
.overduefg { color: var(--danger); }
.settledbg { background-color: #bbf7d0; }
.settledfg { color: var(--ok); }
.redfg, a.redfg { color: var(--danger); font-weight: 700; }
.currentfg { color: #ef4444; }
.inquirybg { background-color: #fefce8; }
.currencybg { background-color: #fecaca; }
.stockmankobg { background-color: #fce7f3; }
.stockmankofg { color: var(--danger); }
.amount, input.amount { text-align: right; }

/* ---------- Pager / ajax tabs ---------- */
.navibar {
	padding: 4px 8px;
	border-collapse: collapse;
	background: var(--brand-200);
	border-radius: var(--radius-sm);
	margin: 6px 0;
}
.navibar tr td { border: none; }

button.navibutton {
	background: transparent;
	border: none;
	color: var(--brand-800);
	box-shadow: none;
	min-height: 28px;
	padding: 4px 8px;
}
.navibutton[disabled], .navibutton[disabled] span { color: #94a3b8; }

ul.ajaxtabs {
	padding: 4px 0 0;
	margin: 6px;
	font-weight: 600;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
}
ul.ajaxtabs li { list-style: none; display: inline-block; margin: 0; }
ul.ajaxtabs li button {
	background: var(--brand-200);
	padding: 6px 12px;
	border: 1px solid var(--brand-400);
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
	color: var(--brand-800);
	box-shadow: none;
}
ul.ajaxtabs li button.current,
ul.ajaxtabs li button.current:hover {
	background: var(--brand-800);
	border-color: var(--brand-800);
	color: #fff;
}
div.spaceBox { background: var(--brand-400); height: 6px; }
div.contentBox {
	border: 1px solid var(--brand-400);
	border-top: none;
	background: var(--surface);
	padding: 8px;
}

/* ---------- Calendar ---------- */
#CCIframe {
	display: none; left: 0; position: absolute; top: 0;
	height: 250px; width: 250px; z-index: 99;
}
#CC {
	position: absolute; background: var(--surface); margin: 0; padding: 0;
	display: none; z-index: 100; border-radius: var(--radius);
	box-shadow: var(--shadow-lg); overflow: hidden;
}
#CC table { font-family: inherit; font-size: 11px; border: none; }
#CC th { font-weight: 500; text-align: center; }
#CC th a { color: #fff; text-decoration: none; }
#CC td { text-align: center; }
#CC .header { background: var(--brand-800); }
#CC .weekday { background: #f1f5f9; }
#CC .weekend { background: #fef9c3; }
#CC .weekno { background: #dbeafe; color: #64748b; }
#CC .current { background: var(--brand-800); color: #fff; }
#CC .weekday, #CC .weekend, #CC .current {
	display: block; text-decoration: none; border: 1px solid #fff;
	width: 2em; border-radius: 4px;
}
#CC .weekday:hover, #CC .weekend:hover, #CC .current:hover {
	color: #fff; background: var(--brand-600);
}
#CC .previous, #CC .next { padding: 2px 6px; font-size: 1.3em; }
#CC .previous a, #CC .next a { color: #fff; font-weight: 700; text-decoration: none; }
#CC .title { text-align: center; font-weight: 700; color: #fff; }
#CC .empty { background: #e2e8f0; }

/* ---------- Footer ---------- */
.bottomBar, .bottomBar2 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 14px;
	background: var(--surface);
	color: var(--muted);
	border-top: 1px solid var(--border-soft);
	width: 100%;
}

.bottomBarCell { font-size: 11px; color: var(--muted); }

#footer, .app-footer, .site-footer {
	text-align: center;
	padding: 10px;
	background: var(--brand-800);
	color: rgba(255, 255, 255, 0.8);
	font-size: 11px;
}

#footer a, .app-footer a, .site-footer a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}
#footer a:hover, .app-footer a:hover { text-decoration: underline; }
.power-by { color: #fde047 !important; }

/* ---------- Dashboard ---------- */
div.square {
	display: inline-block;
	width: 100%;
	max-width: 240px;
	min-height: 96px;
	padding: 16px;
	text-align: center;
	color: #fff;
	border-radius: 12px;
	box-shadow: var(--shadow);
	margin: 6px;
	vertical-align: top;
	transition: transform 0.2s ease;
}
div.square:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
div.square1 { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); }
div.square2 { background: linear-gradient(135deg, #f97316, #c2410c); }
.span1 { font-size: 30px; font-weight: 700; display: block; padding: 8px 0; }

/* ==================================================
   MOBILE
================================================== */
@media screen and (max-width: 768px) {
	:root { --header-h: 48px; }

	body {
		padding-bottom: 44px !important;
	}

	.app-header + .app-shell,
	.app-header ~ .app-shell {
		margin-top: var(--header-h);
	}

	.app-status,
	.top-nav-aside,
	.top-nav-brand,
	nav.tabs,
	.app-nav .tabs,
	.top-nav-tabs {
		display: none !important;
	}

	.app-nav, .top-nav-inner {
		height: 48px;
		justify-content: flex-start;
	}

	.mobile-hamburger-btn { display: flex !important; }

	#_page_body { padding: 8px; }

	#title, .page-title-bar, .page-title { margin: 8px; }
	.titletext, h1.titletext { font-size: 15px; }

	.menu_group_body,
	.menu_group_items,
	section.menu_module > .menu_group_items {
		grid-template-columns: 1fr !important;
	}

	.menu_module_transactions .menu_group_body > .menu_group_items:first-child {
		grid-template-columns: 1fr !important;
		grid-template-rows: none;
		grid-auto-flow: row;
	}

	.menu_module_transactions .menu_group_body > .menu_group_items:first-child .menu-spacer {
		display: none;
	}

	.menu_group_body > .menu_group_items + .menu_group_items,
	.menu_col + .menu_col {
		border-left: none;
		border-top: 1px solid var(--border-soft);
	}

	/* Page content layout (forms, grids, filters) lives in themes/default/mobile.css */

	#footer, .app-footer, .site-footer,
	.bottomBar, .bottomBar2 {
		position: fixed !important;
		bottom: 0 !important;
		left: 0 !important;
		width: 100% !important;
		background: var(--brand-900) !important;
		color: #fff !important;
		z-index: 9000 !important;
		margin: 0 !important;
		border: none !important;
		box-shadow: 0 -2px 10px rgba(0,0,0,.25) !important;
	}

	.bottomBar, .bottomBar2 { display: none !important; }

	#footer a, .app-footer a, .site-footer a,
	.bottomBarCell, #hotkeyshelp { color: rgba(255,255,255,.9) !important; }

	div.square { width: calc(50% - 12px); max-width: none; }
	.span1 { font-size: 24px; }
}

@media screen and (max-width: 480px) {
	div.square { width: 100% !important; margin: 4px 0 !important; }
}

@media screen and (min-width: 1200px) {
	body { font-size: 13px; }
	nav.tabs a, .app-nav .tabs a { padding: 0 16px; font-size: 13px; }
	.titletext, h1.titletext { font-size: 17px; }
}

@media print {
	.app-header, .top-nav, .mobile-hamburger-btn,
	.mobile-sidebar-panel, .mobile-sidebar-overlay,
	#footer, .app-footer, .bottomBar, .bottomBar2 { display: none !important; }
	body { padding: 0 !important; background: #fff !important; }
	.main_page { background: #fff; }
}

/* Document process overlay (Place Invoice / Process Invoice) */
#doc_process_overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(2px);
}
body.doc-processing {
	overflow: hidden;
	cursor: wait;
}
.doc-process-box {
	min-width: 260px;
	max-width: 90vw;
	padding: 28px 32px;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
	text-align: center;
	font-family: var(--font, 'Inter', 'Segoe UI', Tahoma, sans-serif);
}
.doc-process-spinner {
	width: 36px;
	height: 36px;
	margin: 0 auto 14px;
	border: 3px solid #dee7ec;
	border-top-color: #285b86;
	border-radius: 50%;
	animation: doc-process-spin 0.8s linear infinite;
}
.doc-process-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 4px;
}
.doc-process-sub {
	font-size: 12.5px;
	color: #64748b;
}
@keyframes doc-process-spin {
	to { transform: rotate(360deg); }
}
