/*================================================================================
	Item Name: Robust - Responsive Admin Template
	Version: 2.0
	Author: PIXINVENT
	Author URL: http://www.themeforest.net/user/pixinvent
================================================================================

NOTE:
------
PLACE HERE YOUR OWN SCSS CODES AND IF NEEDED, OVERRIDE THE STYLES FROM THE OTHER STYLESHEETS.
WE WILL RELEASE FUTURE UPDATES SO IN ORDER TO NOT OVERWRITE YOUR STYLES IT'S BETTER LIKE THIS.  */

.delivery-container {
	margin-top: 20px;
}

.delivery-row {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 15px;
	background: white;
	border: 2px solid #e7e7e7;
	border-radius: 5px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	margin-bottom: 15px;
	overflow: hidden;
}

.delivery-left {
	background: #f8f9fa;
	padding: 15px;
	border-right: 1px solid #dee2e6;
}

.delivery-right {
	padding: 15px;
}

.delivery-info {
	font-weight: bold;
	font-size: 14px;
	color: #495057;
	margin-bottom: 5px;
}

.region-info {
	font-size: 12px;
	color: #6c757d;
	margin-bottom: 3px;
}

.order-info {
	font-size: 12px;
	color: #6c757d;
	margin-bottom: 3px;
}

.order-item {
	background: #f8f9fa;
	padding: 4px;
	padding-left: 6px;
	margin-bottom: 5px;
	border-radius: 5px;
	font-size: 12px;
	border-left: 5px solid #34aa49;
}

.orange-border-left {
	border-left: 5px solid #f6904e;
}

.bigger-icon {
	font-size:17px;
}

.empty-state {
	text-align: center;
	color: #6c757d;
	padding: 40px;
	background: #f8f9fa;
	border-radius: 5px;
	border: 1px solid #dee2e6;
}

.navigation-w-m {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#client, #quote, #data {
	padding: 0;
	margin: 0;
	background: none;
	border: none;
	font-weight: normal;
}

.delivery-left.loaded {
	background-color: #d6fadf !important;
}

.navigation-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.task-table {
	background: white;
	border: 2px solid #e7e7e7;
	border-radius: 5px;
	overflow: hidden;
}

.task-table table {
	margin-bottom: 0;
}

.task-table th {
	background-color: #f8f9fa;
	font-weight: 600;
	border-bottom: 2px solid #dee2e6;
}

.btn-style {
	min-width: 100px;
}

/* =================================================================
   Cutting Task & Create Block Pages - Shared Task Styles
   ================================================================= */

.task-sections {
	max-height: calc(100vh - 300px);
	overflow-y: auto;
}

.my-task-section {
	background: #f0fff3;
	border: 1px solid #ade2ba;
	border-radius: 5px;
	padding: 12px;
	margin-bottom: 20px;
}

.my-task-section.empty {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	text-align: center;
	color: #6c757d;
}

.finished-section, .available-section {
	max-height: 50vh;
	overflow-y: auto;
	background: white;
}

.finished-section {
	max-height: 25vh;
}

.task-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 3px;
	border: 2px solid #e7e7e7;
	border-radius: 2px;
	margin-bottom: 20px;
	background: white;
}

.task-row.finished {
	background: #f8f9fa;
	opacity: 0.8;
}

.task-row.highlight-move {
	animation: highlightFade 1.5s ease-out;
}

@keyframes highlightFade {
	0% {
		background-color: #fff3cd;
	}
	50% {
		background-color: #fff9e6;
	}
	100% {
		background-color: white;
	}
}

.task-info {
	flex-grow: 1;
}

.task-progress {
	font-weight: bold;
	margin: 0 25px;
}

.section-title {
	font-weight: 600;
	margin-bottom: 10px;
	color: #495057;
}

.progress-bar-style {
	height: 25px;
	border: solid 1px;
	border-color: #ade2ba;
}

/* =================================================================
   Cutting Task Page - Instruction Styles
   ================================================================= */

.instruction-box {
	background: #f5f5dc;
	padding: 4px 8px;
	border-radius: 3px;
}

.instruction-count {
	text-align: left;
	font-weight: bold;
	margin-bottom: 2px;
}

.result-box {
	background: #fff;
	border: 1px solid #ccc;
	padding: 6px 8px;
	border-radius: 3px;
	white-space: pre-wrap;
	font-size: 12px;
	color: #8b4513;
}

.result-box-sm {
	background: #fff;
	border: 1px solid #ccc;
	padding: 4px 6px;
	border-radius: 3px;
	font-size: 11px;
	color: #666;
	white-space: pre-wrap;
}

.empty-result {
	color: #999;
	font-size: 11px;
	font-style: italic;
}

.instruction-table {
	margin: 0;
	border-collapse: collapse;
	font-family: monospace;
	font-size: 11px;
}

.instruction-table td {
	padding: 0 4px;
}

.instruction-table .text-center {
	text-align: center;
}

.instruction-table .qty-row {
	color: #666;
}

.instruction-label {
	font-size: 11px;
	color: #666;
}

.instruction-wrapper {
	margin-top: 8px;
	padding: 8px;
	background: #f8f9fa;
	border-radius: 4px;
}

.instruction-item {
	margin-bottom: 6px;
}

.instruction-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
}

.instruction-row-flex {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 6px;
}

.instruction-col-main {
	flex: 1 1 50%;
}

.instruction-col-result {
	flex: 1 1 30%;
}

.instruction-col-actions {
	flex: 1 1 10%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
}

.task-header-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.task-content-flex {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.task-actions {
	white-space: nowrap;
}

.task-progress-right {
	flex: 1 1 40%;
	text-align: right;
	font-weight: bold;
}

.flex-grow {
	flex: 1 1 60%;
}

.instruction-edit-table {
	border-collapse: collapse;
	font-size: 12px;
}

.input-dim {
	width: 60px;
	text-align: center;
	border: 1px solid #ccc;
}

.input-dim-sm {
	width: 50px;
	text-align: center;
	border: 1px solid #ccc;
}

/* =================================================================
   Create Block Page - Form Styles
   ================================================================= */

.entry-row {
	display: flex;
	gap: 15%;
	align-items: center;
}

.entry-row #blockSelector {
	flex: 2;
}

.entry-row #nextSequence {
	font-size: 1.2rem;
	color: #007bff;
	font-weight: 600;
	min-width: 80px;
	text-align: center;
}

.entry-row #weightInput {
	flex: 1;
}

.entry-row #saveBtn {
	min-width: 120px;
}