/* ==========================================================================
   Netra¹ Reconciliation Intelligence — KNEC Amber Workspace Styling
   ========================================================================== */

.netra-portal-shell {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #e2e8f0;
	max-width: 1320px;
	margin: 2rem auto;
	padding: 0 1rem;
}

/* Glass panel */
.netra-portal-shell .glass-strong {
	background: linear-gradient(165deg, rgba(22, 27, 34, 0.96) 0%, rgba(13, 17, 23, 0.98) 100%);
	border: 1px solid rgba(250, 181, 13, 0.25);
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 20px rgba(250, 181, 13, 0.05);
}

/* Chips & Badges */
.netra-chip {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 0.22rem 0.68rem;
	border-radius: 999px;
	text-transform: uppercase;
}
.netra-chip-amber, .netra-chip-cyan {
	background: rgba(250, 181, 13, 0.14);
	color: #fab50d;
	border: 1px solid rgba(250, 181, 13, 0.45);
	box-shadow: 0 0 10px rgba(250, 181, 13, 0.15);
}
.netra-chip-muted {
	background: rgba(255, 255, 255, 0.06);
	color: #94a3b8;
	border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Top Bar */
.netra-top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.65rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
	gap: 1rem;
}
.netra-top-left {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.netra-header-logo {
	height: 42px;
	width: auto;
	border-radius: 6px;
	object-fit: contain;
	filter: drop-shadow(0 0 8px rgba(250, 181, 13, 0.35));
}
.netra-badge-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.25rem;
}
.netra-header-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: #f8fafc;
	letter-spacing: -0.01em;
}

/* Top Actions */
.netra-top-actions {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-wrap: wrap;
}

/* ==========================================================================
   Multi-Client Territory Selector Bar
   ========================================================================== */
.netra-client-selector-bar {
	padding: 1.15rem 1.5rem;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}
.netra-csb-left {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex: 1 1 auto;
}
.netra-csb-title-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}
.netra-csb-title {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fab50d;
	font-weight: 700;
}
.netra-csb-count-badge {
	font-size: 0.7rem;
	font-weight: 700;
	background: rgba(250, 181, 13, 0.15);
	color: #fab50d;
	border: 1px solid rgba(250, 181, 13, 0.4);
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
}
.netra-client-pills {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-wrap: wrap;
}
.netra-pill-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(15, 23, 42, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.15);
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	font-size: 0.84rem;
	color: #cbd5e1;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}
.netra-pill-checkbox:hover {
	border-color: rgba(250, 181, 13, 0.5);
	color: #ffffff;
}
.netra-pill-checkbox.is-selected {
	background: rgba(250, 181, 13, 0.16);
	border-color: #fab50d;
	color: #fab50d;
	box-shadow: 0 0 12px rgba(250, 181, 13, 0.18);
}
.netra-pill-checkbox input[type="checkbox"] {
	accent-color: #fab50d;
	width: 15px;
	height: 15px;
	cursor: pointer;
}
.netra-pill-name {
	font-weight: 600;
}
.netra-pill-edit-btn {
	font-size: 0.68rem;
	padding: 0.1rem 0.45rem;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
	color: #e2e8f0;
	border: none;
	cursor: pointer;
	margin-left: 0.2rem;
}
.netra-pill-edit-btn:hover {
	background: #fab50d;
	color: #000;
}
.netra-pill-checkbox.is-editing {
	border-color: #f59e0b;
	outline: 2px solid rgba(250, 181, 13, 0.4);
}
.netra-csb-helpers {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.74rem;
}
.netra-btn-link {
	background: none;
	border: none;
	color: #fab50d;
	cursor: pointer;
	padding: 0;
	font-size: 0.75rem;
	text-decoration: underline;
}
.netra-btn-link:hover {
	color: #fde68a;
}
.netra-sep {
	color: #475569;
}
.netra-csb-right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.netra-sel-label {
	font-size: 0.68rem;
	text-transform: uppercase;
	color: #94a3b8;
	font-weight: 700;
	margin-bottom: 0.25rem;
	display: block;
}
.netra-select {
	background: #0f172a;
	border: 1px solid rgba(250, 181, 13, 0.35);
	color: #f8fafc;
	padding: 0.45rem 0.85rem;
	border-radius: 8px;
	font-size: 0.86rem;
	font-weight: 600;
	cursor: pointer;
}
.netra-select:focus {
	outline: none;
	border-color: #fab50d;
	box-shadow: 0 0 0 2px rgba(250, 181, 13, 0.3);
}

/* Buttons */
.netra-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 1.1rem;
	border-radius: 10px;
	font-size: 0.84rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
	border: none;
}
.netra-btn-primary {
	background: linear-gradient(135deg, #fab50d 0%, #f59e0b 100%);
	color: #0b0f19;
	border: 1px solid #f59e0b;
	font-weight: 700;
	box-shadow: 0 4px 14px rgba(250, 181, 13, 0.4);
}
.netra-btn-primary:hover {
	background: linear-gradient(135deg, #fde68a 0%, #fab50d 100%);
	color: #000000;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(250, 181, 13, 0.6);
}
.netra-btn-secondary {
	background: rgba(250, 181, 13, 0.12);
	border: 1px solid rgba(250, 181, 13, 0.5);
	color: #fab50d;
}
.netra-btn-secondary:hover {
	background: rgba(250, 181, 13, 0.25);
	border-color: #fab50d;
	transform: translateY(-1px);
}
.netra-btn-outline {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #f1f5f9;
}
.netra-btn-outline:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(250, 181, 13, 0.4);
	color: #ffffff;
}
.netra-btn-danger {
	background: rgba(239, 68, 68, 0.14);
	border: 1px solid rgba(239, 68, 68, 0.45);
	color: #f87171;
}
.netra-btn-danger:hover {
	background: rgba(239, 68, 68, 0.28);
	border-color: #ef4444;
	color: #ffffff;
	transform: translateY(-1px);
}
.netra-btn-ghost {
	background: transparent;
	border: 1px solid transparent;
	color: #94a3b8;
}
.netra-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #f8fafc;
}

/* Alert Banner */
.netra-alert {
	padding: 0.85rem 1.25rem;
	border-radius: 10px;
	margin-bottom: 1.25rem;
	font-size: 0.88rem;
	font-weight: 500;
}
.netra-alert-success {
	background: rgba(16, 185, 129, 0.15);
	border: 1px solid rgba(16, 185, 129, 0.4);
	color: #34d399;
}
.netra-alert-error {
	background: rgba(239, 68, 68, 0.15);
	border: 1px solid rgba(239, 68, 68, 0.4);
	color: #f87171;
}
.netra-alert-amber {
	background: rgba(250, 181, 13, 0.15);
	border: 1px solid rgba(250, 181, 13, 0.45);
	color: #fde68a;
}

/* Form Panel */
.netra-form-panel {
	padding: 1.65rem 1.75rem;
}

/* Meta Card */
.netra-meta-card {
	background: rgba(15, 23, 42, 0.7);
	border: 1px solid rgba(250, 181, 13, 0.15);
	border-radius: 12px;
	padding: 1.25rem;
	margin-bottom: 1.75rem;
}
.netra-meta-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
@media (max-width: 900px) {
	.netra-meta-grid {
		grid-template-columns: 1fr;
	}
}

.netra-form-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.netra-form-group label {
	font-size: 0.76rem;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.netra-input {
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	padding: 0.55rem 0.8rem;
	color: #f8fafc;
	font-size: 0.88rem;
	transition: border-color 0.2s;
}
.netra-input:focus {
	outline: none;
	border-color: #fab50d;
	box-shadow: 0 0 0 2px rgba(250, 181, 13, 0.25);
}

/* Sections */
.netra-section-box {
	background: rgba(15, 23, 42, 0.5);
	border: 1px solid rgba(250, 181, 13, 0.12);
	border-radius: 12px;
	padding: 1.25rem;
	margin-bottom: 1.5rem;
}
.netra-sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.85rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	padding-bottom: 0.65rem;
}
.netra-sec-head h3 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #f1f5f9;
}
.netra-sec-sub {
	font-size: 0.74rem;
	color: #fab50d;
	font-family: monospace;
	opacity: 0.9;
}
.netra-btn-add-row {
	background: rgba(250, 181, 13, 0.12);
	border: 1px solid rgba(250, 181, 13, 0.4);
	color: #fab50d;
	padding: 0.35rem 0.75rem;
	border-radius: 6px;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}
.netra-btn-add-row:hover {
	background: rgba(250, 181, 13, 0.25);
	color: #ffffff;
}

/* Tables */
.netra-table-wrap {
	overflow-x: auto;
	border-radius: 8px;
	border: 1px solid rgba(250, 181, 13, 0.2);
}
.netra-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 0.82rem;
}
.netra-table th {
	background: #0f172a;
	color: #fab50d;
	font-weight: 700;
	padding: 0.65rem 0.6rem;
	border: 1px solid rgba(250, 181, 13, 0.2);
	text-align: center;
	vertical-align: middle;
	white-space: pre-line;
	line-height: 1.25;
}
.netra-table td {
	padding: 0.35rem 0.35rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.25);
}
.netra-cell-input {
	width: 100%;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 4px;
	padding: 0.35rem 0.45rem;
	color: #f8fafc;
	font-size: 0.82rem;
	text-align: center;
	box-sizing: border-box;
}
.netra-cell-input:focus {
	outline: none;
	background: rgba(0, 0, 0, 0.6);
	border-color: #fab50d;
}
.netra-row-del {
	background: none;
	border: none;
	color: #ef4444;
	font-size: 1.1rem;
	cursor: pointer;
	padding: 0 0.35rem;
	opacity: 0.6;
	transition: opacity 0.2s;
}
.netra-row-del:hover {
	opacity: 1;
}

/* Section 5 Summary */
.netra-summary-grid {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.5rem 0;
}
.netra-summary-item {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	font-size: 0.9rem;
}
.netra-sum-dot {
	color: #fab50d;
	font-size: 1.2rem;
}
.netra-summary-item label {
	font-weight: 600;
	color: #cbd5e1;
	min-width: 280px;
}
.netra-sum-input {
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 6px;
	padding: 0.35rem 0.65rem;
	color: #f8fafc;
	font-weight: 700;
	width: 65px;
	text-align: center;
}
.netra-sum-select {
	background: #0f172a;
	border: 1px solid rgba(250, 181, 13, 0.3);
	border-radius: 6px;
	padding: 0.35rem 0.85rem;
	color: #f8fafc;
	font-weight: 600;
	cursor: pointer;
}

/* Signoff Grid */
.netra-signoff-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}
@media (max-width: 768px) {
	.netra-signoff-grid {
		grid-template-columns: 1fr;
	}
}
.netra-signoff-col {
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(250, 181, 13, 0.15);
	border-radius: 10px;
	padding: 1.15rem;
}
.netra-signoff-col h4 {
	margin: 0 0 0.85rem;
	font-size: 0.92rem;
	color: #fab50d;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.netra-sig-preview {
	margin-top: 0.85rem;
	padding: 0.65rem;
	background: #ffffff;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.sig-label {
	font-size: 0.68rem;
	color: #475569;
	font-weight: 600;
	margin-bottom: 0.35rem;
	align-self: flex-start;
}
.sig-img {
	height: 38px;
	width: auto;
	object-fit: contain;
}

/* Bottom Actions */
.netra-bottom-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	flex-wrap: wrap;
	gap: 1rem;
}
.netra-actions-right {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

/* Confirmation Card Screen */
.netra-confirmation-card {
	padding: 2.5rem;
	max-width: 960px;
	margin: 2rem auto;
	text-align: center;
}
.netra-card-header {
	margin-bottom: 2rem;
}
.netra-badge-wrap {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
}
.netra-status-icon {
	margin: 1rem auto;
}
.netra-status-icon svg {
	filter: drop-shadow(0 0 12px rgba(250, 181, 13, 0.4));
}
.netra-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: #f8fafc;
	margin: 0 0 0.5rem;
}
.netra-subtitle {
	color: #cbd5e1;
	font-size: 0.95rem;
	max-width: 640px;
	margin: 0 auto;
	line-height: 1.6;
}
.netra-alert-info {
	background: rgba(250, 181, 13, 0.12);
	border: 1px solid rgba(250, 181, 13, 0.45);
	color: #fde68a;
	padding: 1rem 1.25rem;
	border-radius: 10px;
	font-size: 0.9rem;
	margin-bottom: 1.75rem;
	text-align: left;
	line-height: 1.5;
}
.netra-section-heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.netra-section-heading {
	text-align: left;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fab50d;
	margin: 0;
	font-weight: 700;
}
.netra-review-toolbar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	justify-content: center;
	flex-wrap: wrap;
	background: rgba(15, 23, 42, 0.7);
	padding: 0.85rem 1.25rem;
	border-radius: 12px;
	border: 1px solid rgba(250, 181, 13, 0.25);
}
.netra-territory-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-bottom: 2rem;
	text-align: left;
}
@media (max-width: 700px) {
	.netra-territory-grid {
		grid-template-columns: 1fr;
	}
}
.netra-territory-card {
	background: rgba(15, 23, 42, 0.85);
	border: 1px solid rgba(250, 181, 13, 0.25);
	border-radius: 12px;
	padding: 1.25rem;
	transition: all 0.2s ease;
	position: relative;
}
.netra-territory-card:hover {
	border-color: rgba(250, 181, 13, 0.55);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(250, 181, 13, 0.15);
}
.netra-tcard-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding-bottom: 0.5rem;
}
.netra-tcard-title-wrap {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}
.netra-country-name {
	font-weight: 700;
	color: #f8fafc;
	font-size: 1.05rem;
}
.netra-tcard-status {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	background: rgba(250, 181, 13, 0.15);
	color: #fab50d;
	border: 1px solid rgba(250, 181, 13, 0.45);
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
}
.netra-tcard-status.is-cancelled {
	background: rgba(239, 68, 68, 0.15);
	color: #f87171;
	border-color: rgba(239, 68, 68, 0.45);
}
.netra-tcard-status.is-pending {
	background: rgba(148, 163, 184, 0.15);
	color: #cbd5e1;
	border-color: rgba(148, 163, 184, 0.35);
}
.netra-tcard-body {
	font-size: 0.82rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1rem;
}
.netra-tcard-row {
	display: flex;
	justify-content: space-between;
}
.netra-tcard-row .label {
	color: #94a3b8;
}
.netra-tcard-row .val {
	color: #e2e8f0;
	font-weight: 600;
}
.netra-tcard-row .val code {
	color: #fab50d;
	background: rgba(0, 0, 0, 0.4);
	padding: 2px 6px;
	border-radius: 4px;
}
.netra-tcard-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.netra-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 1.5rem;
	flex-wrap: wrap;
	gap: 1rem;
}
.netra-footer-hint {
	font-size: 0.74rem;
	color: #94a3b8;
}

/* Modal */
.netra-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	overflow-y: auto;
}
.netra-modal.is-open {
	display: flex;
}
.netra-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 8, 14, 0.88);
	backdrop-filter: blur(8px);
}
.netra-modal-container {
	position: relative;
	width: 100%;
	max-width: 900px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	background: #111827;
	border: 1px solid rgba(250, 181, 13, 0.35);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 25px rgba(250, 181, 13, 0.15);
}
.netra-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	background: #0f172a;
	border-bottom: 1px solid rgba(250, 181, 13, 0.2);
}
.netra-modal-title h3 {
	margin: 0.2rem 0 0;
	font-size: 1.1rem;
	color: #ffffff;
}
.netra-modal-close {
	background: none;
	border: none;
	color: #94a3b8;
	font-size: 1.75rem;
	cursor: pointer;
}
.netra-modal-close:hover {
	color: #fab50d;
}
.netra-modal-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 1.5rem;
	background: #f1f5f9;
	color: #0f172a;
}
.netra-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background: #0f172a;
	border-top: 1px solid rgba(250, 181, 13, 0.2);
}

/* Printable PDF Page Preview Simulation */
.netra-paper-page {
	background: #ffffff;
	color: #000000;
	width: 100%;
	max-width: 210mm;
	min-height: 297mm;
	margin: 0 auto 2rem;
	padding: 15mm;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 9pt;
	line-height: 1.35;
	position: relative;
}
.netra-paper-header {
	display: flex;
	width: 100%;
	border: 1px solid #777;
	height: 26px;
	line-height: 26px;
	margin-bottom: 12px;
}
.netra-paper-header-left {
	flex: 1;
	padding-left: 8px;
	font-weight: normal;
}
.netra-paper-header-right {
	width: 180px;
	border-left: 1px solid #777;
	text-align: right;
	padding-right: 8px;
}
.netra-paper-title {
	text-align: center;
	font-weight: bold;
	font-size: 10.5pt;
	margin: 10px 0 12px;
}
.netra-paper-meta {
	font-size: 9pt;
	line-height: 1.6;
	margin-bottom: 8px;
}
.netra-paper-meta strong {
	display: inline-block;
	width: 190px;
}
.netra-paper-table {
	width: 100%;
	border-collapse: collapse;
	margin: 6px 0 10px;
	font-size: 8pt;
}
.netra-paper-table th, .netra-paper-table td {
	border: 1px solid #777;
	padding: 4px;
	text-align: center;
	vertical-align: middle;
}
.netra-paper-table th {
	background: #f7f7f7;
	font-weight: bold;
}
.netra-paper-hr {
	border: none;
	border-top: 1px solid #aaa;
	margin: 10px 0;
}
.netra-paper-footer {
	position: absolute;
	bottom: 12mm;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 8.5pt;
	color: #333;
}
