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

/* === 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;
}

/* === Hero banner (scanbalie) === */
.toolpilot-scan-hero {
	background: linear-gradient(135deg, #1f2a44 0%, #2d4774 100%);
	border-radius: 10px;
	color: #fff;
	margin-bottom: 20px;
	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 > .panel-heading {
	padding: 12px 16px;
}
.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 {
	display: inline-block;
}
.panel-heading .tp-heading-export .dt-button {
	color: #fff !important;
	border: 1px solid rgba(255,255,255,.35);
	background: rgba(255,255,255,.12);
	padding: 2px 8px;
	margin-left: 4px;
	font-size: 12px;
	border-radius: 3px;
	cursor: pointer;
}
.panel-heading .tp-heading-export .dt-button:hover {
	background: rgba(255,255,255,.25);
	border-color: rgba(255,255,255,.5);
}

/* === 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;
}
