/* ToolPilot UI — gedeelde stijlen voor alle paginas */

/* === ToolPilot merk lichtblauw (Pro Suite) === */
html.wsapps-prosuite-enabled[data-wsapps-app="toolpilot"] header.navbar.navbar-fixed-top {
	background: #56a9f6 !important;
	border-bottom-color: #3e9df4 !important;
}
html.wsapps-prosuite-enabled[data-wsapps-app="toolpilot"] .navbar-branding {
	background: #56a9f6 !important;
	border-right-color: rgba(255, 255, 255, 0.12) !important;
}
html.wsapps-prosuite-enabled[data-wsapps-app="toolpilot"] .navbar-branding .navbar-brandS,
html.wsapps-prosuite-enabled[data-wsapps-app="toolpilot"] .navbar-branding .wsapps-ps-app-toggle,
html.wsapps-prosuite-enabled[data-wsapps-app="toolpilot"] header.navbar .navbar-nav.navbar-left > li > a,
html.wsapps-prosuite-enabled[data-wsapps-app="toolpilot"] header.navbar .navbar-nav.navbar-right > li > a,
html.wsapps-prosuite-enabled[data-wsapps-app="toolpilot"] header.navbar .navbar-nav.navbar-right .fa {
	color: #fff !important;
}
html.wsapps-prosuite-enabled[data-wsapps-app="toolpilot"] header.navbar .navbar-nav.navbar-left > li > a:hover,
html.wsapps-prosuite-enabled[data-wsapps-app="toolpilot"] header.navbar .navbar-nav.navbar-left > li > a:focus,
html.wsapps-prosuite-enabled[data-wsapps-app="toolpilot"] header.navbar .navbar-nav.navbar-right > li > a:hover,
html.wsapps-prosuite-enabled[data-wsapps-app="toolpilot"] header.navbar .navbar-nav.navbar-right > li > a:focus {
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
}
html.wsapps-prosuite-enabled[data-wsapps-app="toolpilot"] header.navbar .navbar-nav.navbar-left > li > a.topbar-menu-toggle {
	background: rgba(255, 255, 255, 0.18) !important;
	border-color: rgba(255, 255, 255, 0.45) !important;
	color: #fff !important;
}
html.wsapps-prosuite-enabled[data-wsapps-app="toolpilot"] #topbar-dropmenu .wsapps-app-tile-accent {
	border-color: #56a9f6 !important;
}

/* === Stat cards === */
.tp-stat-card,
.tp-inventory-card,
.toolpilot-stat-card {
	background: #fff;
	border: 1px solid #e6e9ef;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
	margin-bottom: 14px;
	min-height: 80px;
	padding: 18px 20px;
}
.tp-stat-card strong,
.tp-inventory-card strong,
.toolpilot-stat-value {
	color: #1f2a44;
	display: block;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
}
.tp-stat-card span,
.tp-inventory-card span,
.toolpilot-stat-label {
	color: #687387;
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .07em;
	margin-top: 6px;
	text-transform: uppercase;
}

/* === Actief magazijn badge === */
.tp-active-warehouse {
	align-items: center;
	background: linear-gradient(135deg, #24d364 0%, #3ef08a 55%, #24d364 100%);
	border: 3px solid rgba(255,255,255,.55);
	box-shadow: 0 6px 22px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.45);
	color: #062a16;
	display: inline-flex;
	gap: 16px;
	padding: 12px 24px;
}
.tp-active-warehouse__icon {
	align-items: center;
	background: rgba(255,255,255,.35);
	border-radius: 50%;
	display: inline-flex;
	flex-shrink: 0;
	font-size: 30px;
	height: 56px;
	justify-content: center;
	line-height: 1;
	width: 56px;
}
.tp-active-warehouse__text {
	display: block;
	line-height: 1.15;
}
.tp-active-warehouse__label {
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.tp-active-warehouse__name {
	display: block;
	font-size: 28px;
	font-weight: 900;
	letter-spacing: .02em;
	line-height: 1.05;
	margin-top: 4px;
	text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.tp-active-warehouse--hero {
	align-items: center;
	border: none;
	border-bottom: 4px solid rgba(255,255,255,.45);
	border-radius: 10px 10px 0 0;
	display: flex;
	gap: 20px;
	justify-content: center;
	margin: 0;
	padding: 26px 32px;
	width: 100%;
}
.tp-active-warehouse--hero .tp-active-warehouse__icon {
	font-size: 48px;
	height: 78px;
	width: 78px;
}
.tp-active-warehouse--hero .tp-active-warehouse__label {
	font-size: 15px;
	letter-spacing: .14em;
}
.tp-active-warehouse--hero .tp-active-warehouse__name {
	font-size: 46px;
	margin-top: 6px;
}
/* === Hero banner (scanbalie) === */
.toolpilot-scan-hero {
	background: linear-gradient(135deg, #1f2a44 0%, #2d4774 100%);
	border-radius: 10px;
	color: #fff;
	margin-bottom: 20px;
	overflow: hidden;
	padding: 0;
}
.toolpilot-scan-hero__body {
	padding: 28px;
}
.toolpilot-scan-hero h2 {
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 6px;
}
.toolpilot-scan-hero p {
	color: rgba(255,255,255,.85);
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

/* === Scan inputs === */
.toolpilot-scan-input {
	font-size: 22px;
	height: 54px;
	letter-spacing: .03em;
}

/* === Scan result boxes === */
.toolpilot-result {
	background: #f8fafc;
	border: 1px solid #e5eaf2;
	border-radius: 8px;
	margin-top: 10px;
	min-height: 80px;
	padding: 14px;
}
.toolpilot-result strong {
	color: #1f2a44;
	display: block;
	font-size: 16px;
}
.toolpilot-result span {
	color: #687387;
	display: block;
	font-size: 13px;
	margin-top: 3px;
}

/* === Action buttons (scanbalie) === */
.toolpilot-action-btn {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 8px;
	padding: 14px 16px;
	width: 100%;
}

/* === Flow steps sidebar === */
.toolpilot-flow-step {
	align-items: flex-start;
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
}
.toolpilot-flow-step .badge {
	background: #2d4774;
	border-radius: 50%;
	flex-shrink: 0;
	font-size: 13px;
	height: 26px;
	line-height: 26px;
	text-align: center;
	width: 26px;
}
.toolpilot-flow-step > span:last-child {
	font-size: 13px;
	line-height: 1.4;
	padding-top: 3px;
}

/* === Scan status bar === */
.toolpilot-scan-status {
	border-radius: 8px;
	font-size: 14px;
	margin-top: 14px;
	padding: 14px;
}

/* === Scan card panels === */
.toolpilot-scan-card {
	border-radius: 10px;
	overflow: hidden;
}
.toolpilot-scan-card .panel-heading {
	padding: 14px 20px;
}

/* === Type labels === */
.tp-type-label {
	border-radius: 12px;
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	text-transform: uppercase;
	white-space: nowrap;
}
.tp-type-loan { background: #e8f2ff; color: #2262a8; }
.tp-type-consumable { background: #edf8ee; color: #2f7d32; }
.tp-low-stock { color: #c0392b; font-weight: 700; }

/* === Filter toolbar === */
.tp-toolbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px 15px 8px;
}
.tp-toolbar .btn-group { margin: 0; }
.tp-toolbar .tp-zero-toggle { margin-left: auto; }
.tp-toolbar .tp-zero-toggle label {
	cursor: pointer;
	font-weight: 400;
	margin: 0;
}

/* === Topbar button spacing === */
#topbar .topbar-right .ib.topbar-dropdown {
	margin-left: 6px;
}
#topbar .topbar-right .btn-group {
	margin-right: 6px;
}

/* === Tables: consistent DataTables styling === */
.panel-body.pn table.dataTable {
	margin-bottom: 0 !important;
}
table.dataTable thead th {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* === Action buttons in table rows === */
.table td .btn-xs {
	margin-bottom: 2px;
	margin-right: 2px;
}

/* === Consistent panel headings === */
.panel-dark.tp-inventory-panel {
	overflow: visible;
}
.panel-dark > .panel-heading,
.panel-dark > .panel-heading.tp-panel-heading {
	padding: 12px 16px;
}
.panel-dark > .panel-heading.tp-panel-heading {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	line-height: 1.4;
	min-height: 48px;
	overflow: visible;
}
.panel-dark > .panel-heading.tp-panel-heading .panel-title {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	float: none;
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
	line-height: 1.4;
	margin: 0;
}
.panel-dark > .panel-heading.tp-panel-heading .panel-title .glyphicon {
	line-height: 1;
	top: 0;
}
.panel-dark > .panel-heading.tp-panel-heading .panel-title .label {
	display: inline-flex;
	align-items: center;
	line-height: 1.2;
	margin: 0;
	vertical-align: middle;
}
.panel-dark > .panel-heading.tp-panel-heading .tp-heading-export {
	align-items: center;
	align-self: center;
	display: flex;
	flex-shrink: 0;
	float: none;
	margin: 0;
}
.panel-dark > .panel-heading .panel-title {
	font-size: 14px;
	font-weight: 700;
}

/* === Empty state placeholder === */
.tp-empty-state {
	color: #8e99a8;
	padding: 40px 20px;
	text-align: center;
}
.tp-empty-state .fa,
.tp-empty-state .glyphicon {
	display: block;
	font-size: 48px;
	margin-bottom: 14px;
	opacity: .4;
}
.tp-empty-state p {
	font-size: 15px;
	margin: 0 0 14px;
}

/* === Modal improvements === */
.modal-lg .modal-body .form-group {
	margin-bottom: 16px;
}
.modal-lg .modal-body label {
	font-weight: 600;
	margin-bottom: 5px;
}
.modal-lg .modal-body small.text-muted {
	display: block;
	font-size: 11px;
	margin-top: 4px;
}

/* === Breadcrumb in topbar === */
#topbar .breadcrumb {
	margin: 0;
	padding: 8px 0;
}
#topbar .breadcrumb li {
	font-size: 14px;
}

/* === marginTopOnHide fix === */
.marginTopOnHide {
	margin-top: 8px;
}

/* === Sidebar active items: witte iconen op donkere achtergrond === */
.sidebar-menu > li.active > a,
.sidebar-menu > li.active > a:hover,
.sidebar-menu > li.active > a:focus {
	color: #fff !important;
}
.sidebar-menu > li.active > a > .glyphicon,
.sidebar-menu > li.active > a > .fa,
.sidebar-menu > li.active > a > .glyphicons,
.sidebar-menu > li.active > a > [class^="icon-"] {
	color: #fff !important;
}
.sidebar-menu > li.active > a > .sidebar-title {
	color: #fff !important;
}
.sidebar-menu .sub-nav li.active > a {
	color: #fff !important;
}
.sidebar-menu .sub-nav li.active > a > .glyphicon,
.sidebar-menu .sub-nav li.active > a > .fa {
	color: #fff !important;
}

/* === Barcode preview in artikeldetail === */
.tp-barcode-preview {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 6px;
	margin: 12px auto;
	padding: 16px;
	text-align: center;
}
.tp-barcode-preview svg {
	max-width: 100%;
}
.tp-barcode-preview .tp-barcode-value {
	color: #333;
	font-family: 'Courier New', monospace;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	margin-top: 8px;
}

/* === Panel heading export buttons === */
.panel-heading .tp-heading-export .dt-buttons {
	align-items: center;
	align-self: center;
	display: inline-flex !important;
	flex-wrap: wrap;
	float: none !important;
	gap: 6px;
	margin: 0 !important;
	vertical-align: middle;
}
.panel-heading .tp-heading-export .dt-button,
.panel-heading .tp-heading-export .dt-button.btn {
	align-items: center;
	background: rgba(255,255,255,.12) !important;
	background-image: none !important;
	border: 1px solid rgba(255,255,255,.35) !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex !important;
	filter: none !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	justify-content: center;
	line-height: 1.3 !important;
	margin: 0 !important;
	min-height: 30px !important;
	padding: 5px 10px !important;
	white-space: nowrap;
}
.panel-heading .tp-heading-export .dt-button:hover,
.panel-heading .tp-heading-export .dt-button:focus {
	background: rgba(255,255,255,.25) !important;
	border-color: rgba(255,255,255,.55) !important;
	color: #fff !important;
	outline: none;
}
.panel-heading .tp-heading-export .dt-button::before,
.panel-heading .tp-heading-export .dt-button::after {
	color: #fff !important;
}
.panel-heading .tp-heading-export .buttons-print .fa {
	color: #fff !important;
	font-size: 13px;
}
html.wsapps-prosuite-horizontal-enabled .panel-heading .tp-heading-export .dt-buttons .dt-button,
html.wsapps-prosuite-horizontal-enabled .panel-heading .tp-heading-export .dt-buttons .btn.buttonPrint {
	background: rgba(255,255,255,.12) !important;
	border: 1px solid rgba(255,255,255,.35) !important;
	color: #fff !important;
	font-size: 12px !important;
	margin: 0 !important;
	min-height: 30px !important;
	padding: 5px 10px !important;
}
html.wsapps-prosuite-horizontal-enabled .panel-heading .tp-heading-export .dt-buttons .buttons-csv,
html.wsapps-prosuite-horizontal-enabled .panel-heading .tp-heading-export .dt-buttons .buttons-excel,
html.wsapps-prosuite-horizontal-enabled .panel-heading .tp-heading-export .dt-buttons .buttons-pdf {
	font-size: 12px !important;
}
html.wsapps-prosuite-horizontal-enabled .panel-heading .tp-heading-export .dt-buttons .buttons-csv::before,
html.wsapps-prosuite-horizontal-enabled .panel-heading .tp-heading-export .dt-buttons .buttons-excel::before,
html.wsapps-prosuite-horizontal-enabled .panel-heading .tp-heading-export .dt-buttons .buttons-pdf::before,
html.wsapps-prosuite-horizontal-enabled .panel-heading .tp-heading-export .dt-buttons .buttons-csv::after,
html.wsapps-prosuite-horizontal-enabled .panel-heading .tp-heading-export .dt-buttons .buttons-excel::after,
html.wsapps-prosuite-horizontal-enabled .panel-heading .tp-heading-export .dt-buttons .buttons-pdf::after {
	color: #fff !important;
	font-size: 12px !important;
}

/* === Table action buttons alignment === */
.tp-action-cell {
	white-space: nowrap;
	padding: 6px 8px !important;
}
.tp-action-cell .btn-xs {
	display: inline-block;
	width: 28px;
	height: 26px;
	line-height: 18px;
	text-align: center;
	padding: 4px 0;
	margin: 0 1px;
	float: none !important;
}
