/* Global Variables & Resets */
* {
	--bs-border-color: #CCCCCC33;
}

body {
	background-color: #00534A;
}

/* Primary Button Override */
.btn-primary {
	--bs-btn-bg: #72B184;
	--bs-btn-border-color: #72B184;
	--bs-btn-hover-bg: #619b73;
	--bs-btn-hover-border-color: #619b73;
	--bs-btn-active-bg: #548962; 
	--bs-btn-active-border-color: #548962;
	--bs-btn-disabled-bg: #72B184AA;
	--bs-btn-disabled-border-color: #72B184AA;
}

/* Typography */
.brand-text {
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: #fff;
	line-height: 1;
	font-size: 2.5em;
	text-decoration: none;
}

.subtitle-location {
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
}

.table-header {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.4);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 0.5rem;
	user-select: none;
}

/* Common Layout Components */
.nudge-left { 
	margin-left: -4px; 
}

#progressOverlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.75);
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	z-index: 9999;
}

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 4rem 2rem;
	color: rgba(255, 255, 255, 0.4);
	text-align: center;
}

.empty-state i {
	font-size: 3rem;
	margin-bottom: 1rem;
	color: #72B184;
	opacity: 0.5;
}

.empty-state span {
	font-size: 1.1rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}

/* Shared Components & Buttons */
.btn-back {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	padding: 0;
	font-size: 1.25rem;
}

.btn-back:hover {
	background: rgba(255, 255, 255, 0.15);
	transform: scale(1.08);
	color: #fff;
}

.btn-back:active {
	transform: scale(0.92);
	background: rgba(255, 255, 255, 0.2);
}

.action-btn { 
	min-width: 84px; 
	font-size: 0.9rem; 
	font-weight: 500; 
	padding: 0.5rem 1rem; 
	border-radius: 8px; 
}
.action-btn-lg { min-width: 120px; }
.btn-lg { padding-top: .6rem; padding-bottom: .6rem; }

.btn-accept { background-color: #72B184; border-color: #72B184; }
.btn-accept:hover { background-color: #619b73; border-color: #619b73; }
.btn-error:hover { background-color: transparent; color: #dc3545; }

#confirmDeliveryBtn {
	box-shadow: 0 4px 20px rgba(114, 177, 132, 0.2);
}

/* Navbar */
.navbar-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0;
}
.navbar-title {
	font-family: "Montserrat", sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 1.25rem;
	color: #fff;
	margin: 0;
}
.navbar-actions {
	display: flex;
	gap: 0.75rem;
}
.btn-nav {
	background: rgba(255, 255, 255, 0.08);
	border: none;
	color: #fff;
	padding: 0.6rem 1rem;
	border-radius: 12px;
	font-size: 0.85rem;
	font-weight: 600;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
}
.btn-nav:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}
.btn-nav:active {
	transform: scale(0.96);
}
.btn-nav-primary {
	background-color: #72B184;
	box-shadow: 0 4px 15px rgba(114, 177, 132, 0.2);
}
.btn-nav-primary:hover {
	background-color: #619b73;
}

/* Segmented Control */
.segmented-control {
	display: flex;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 14px;
	padding: 4px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
	width: 100%;
}
.segmented-control__btn {
	flex: 1;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	padding: 10px;
	font-weight: 500;
	font-size: 0.95rem;
	border-radius: 10px;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	justify-content: center;
}
.segmented-control__btn i {
	font-size: 1.1rem;
}
.segmented-control__btn:hover {
	color: #fff;
}
.segmented-control__btn.active {
	background: #72B184;
	color: #fff;
	box-shadow: 0 4px 12px rgba(114, 177, 132, 0.3);
}

/* Items and Lists */
.list-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
	transition: all 0.15s ease;
	cursor: pointer;
	padding-top: 1.1rem !important;
	padding-bottom: 1.1rem !important;
}
.list-item:nth-child(even) {
	background-color: rgba(255, 255, 255, 0.012);
}
.list-item:hover {
	background-color: rgba(255, 255, 255, 0.04) !important;
}
.list-item:active {
	background-color: rgba(255, 255, 255, 0.06) !important;
	transform: scale(0.998);
}

.item-row {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
	transition: background-color 0.15s ease;
}
.item-row:nth-child(even) {
	background-color: rgba(255, 255, 255, 0.015);
}

.item-name { font-size: 1.05rem; }
.item-unit { font-weight: 700; }
.item-amount {
	font-size: 1.05rem;
	letter-spacing: -0.01em;
}

.item-status-badge {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.35em 0.65em;
}

.status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 12px;
	flex-shrink: 0;
}
.status-dot.todo { background-color: #ffc107; box-shadow: 0 0 8px rgba(255, 193, 7, 0.4); }
.status-dot.success { background-color: #72B184; box-shadow: 0 0 8px rgba(114, 177, 132, 0.4); }
.status-dot.recheck { background-color: #0d6efd; box-shadow: 0 0 8px rgba(13, 110, 253, 0.4); }
.status-dot.approved { background-color: #72B184; box-shadow: 0 0 8px rgba(114, 177, 132, 0.6); border: 1.5px solid #fff; }

.delivery-date {
	font-variant-numeric: tabular-nums;
	font-size: 0.85rem;
	opacity: 0.7;
	padding-left: 5px;
}

.disclosure {
	opacity: 0.3;
	transition: opacity 0.15s ease;
	font-size: 1.25rem; 
	line-height: 1;
}
.list-item:hover .disclosure {
	opacity: 1;
}

/* Modals and Sheets */
.fab-add { 
	position: fixed; 
	right: 1.5rem; 
	bottom: 1.5rem; 
	z-index: 1060; 
	width: 56px; 
	height: 56px; 
	border-radius: 50%; 
	box-shadow: 0 4px 15px rgba(114, 177, 132, 0.4); 
	font-size: 1.25rem; 
}

.sheet { 
	position: fixed; 
	inset: 0; 
	z-index: 1100; 
	background: rgba(0,0,0,.6); 
	backdrop-filter: blur(12px); 
	display: grid; 
	grid-template-rows: auto 1fr; 
	transition: all 0.3s ease; 
}
.sheet.hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }
.sheet-header { padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }

#searchList .list-action { 
	background: transparent; 
	border: 0; 
	padding: 1rem 0; 
	border-bottom: 1px solid rgba(255,255,255,0.05); 
	transition: background 0.2s ease; 
	border-radius: 8px; 
	margin-bottom: 4px; 
	padding-left: 10px; 
}
#searchList .list-action:hover { background: rgba(255,255,255,0.05); }

.loc-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); }
.loc-modal.hidden { display: none; }

/* Tabs Component */
#pane-deliveries .nav-tabs .nav-link {
	border: none;
	color: rgba(255, 255, 255, 0.5);
	background: transparent;
	padding: 0.8rem 1.2rem;
	font-weight: 500;
	font-size: 0.9rem;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	transition: all 0.2s ease;
}
#pane-deliveries .nav-tabs .nav-link:hover {
	color: #FFF;
	border-color: transparent;
}
#pane-deliveries .nav-tabs .nav-link.active {
	color: #72B184 !important;
	background-color: transparent !important;
	border-bottom: 3px solid #72B184 !important;
	font-weight: 600;
}

/* Stock Count Details */
.drag-handle {
	cursor: grab;
	padding: 0.5rem 10px;
	margin-left: -0.5rem;
	color: rgba(255, 255, 255, 0.5);
	transition: color 0.15s ease;
}
.drag-handle:active { cursor: grabbing; }
.item-row:hover .drag-handle { color: rgba(255, 255, 255, 0.6); }

/* Forms & Inputs */
.form-control, .form-select {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	color: #fff;
	border-radius: 10px;
}
.form-control:focus, .form-select:focus {
	background: rgba(255,255,255,0.08);
	border-color: #72B184;
	box-shadow: 0 0 0 3px rgba(114, 177, 132, 0.2);
	color: #fff;
}
.form-control::placeholder {
	color: rgba(255,255,255,0.3);
}

.qty-input {
	text-align: right;
	font-weight: 600;
}

.btn-delete {
	opacity: 0.7;
	transition: opacity 0.2s ease;
}
.item-row:hover .btn-delete { opacity: 1; }
