/* 📌 Path: client/assets/css/style.css */

/*
 * Application layering scale (single source of truth)
 * ─────────────────────────────────────────────────────
 * header / content        30–40
 * sidebar / mobile nav    50
 * popovers                100
 * page overlays           1000
 * nested page confirm     1100
 * global confirmation     2000
 * global toast            3000
 *
 * Page-specific overlays should use --z-page-overlay (or the same numeric
 * value with a fallback) instead of inventing larger z-index values.
 */
:root {
	--z-popover: 100;
	--z-page-overlay: 1000;
	--z-nested-overlay: 1100;
	--z-confirm: 2000;
	--z-toast: 3000;
}

#confirmModal {
	z-index: var(--z-confirm);
}

#toast {
	z-index: var(--z-toast);
	pointer-events: none;
}

#notificationPreview {
	z-index: var(--z-popover);
}

/* ሎካል ፋይል (file://) በ Chrome ሲከፈት የሚደረግ የዲዛይን ጥበቃ reset */
*,
::before,
::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	background-color: #020617;
	/* Slate 950 */
	color: #f8fafc;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	-webkit-text-size-adjust: 100%;
	touch-action: manipulation;
}

/* በስልክ ስክሪን ላይ ፎንት ከ 16px በታች ሲሆን የሚፈጠረውን Auto-zoom መከላከያ */
@media screen and (max-width: 768px) {

	input,
	select,
	textarea {
		font-size: 12px !important;
	}
}

@media screen and (max-width: 640px) {
	#top-header > div:first-child {
		flex: 1 1 auto;
	}

	#top-header > div:last-child {
		gap: 0.375rem;
	}

	#top-header #notificationBell,
	#top-header a[href="/pages/auth/changepassword.html"],
	#top-header > div:last-child > button {
		min-width: 2rem;
		min-height: 2rem;
		justify-content: center;
	}

	#scrollableContent,
	#mainForm,
	#view-dashboard,
	#view-modules,
	#moduleContener {
		min-width: 0;
		max-width: 100%;
	}

	/* Mobile icon-only actions are scoped explicitly through .m-icon-btn in
	   assets/css/mobile.css. Keeping this rule broad hid the labels of primary
	   and section-banner buttons, so it intentionally lives there now. */

	#scrollableContent #top-right-container-tabs button,
	#stickyContent #top-right-container-tabs button {
		font-size: 11px !important;
		gap: 0.375rem !important;
	}

	#revenue-tax-module .rt-mobile-actions .rt-btn {
		min-width: 2.5rem;
		min-height: 2.5rem;
		padding: 0.5rem;
	}

	#revenue-tax-module .rt-mobile-actions .rt-btn svg {
		flex: 0 0 auto;
	}
}

@media screen and (min-width: 768px) {
	.scrollable-table table {
		display: flex;
		flex-direction: column;
	}

	.scrollable-table thead {
		display: table;
		width: 100%;
		table-layout: fixed;
	}

	.scrollable-table tbody {
		display: block;
		max-height: 256px;
		/* 290px */
		overflow-y: auto;
		width: 100%;
	}

	.scrollable-table tr {
		display: table;
		width: 100%;
		table-layout: fixed;
	}
}

.test-color {
	color: #fbfbfb;
}

/* Compact Density 12px/13px paddings */
.compact-field {
	height: 30px !important;
	padding-top: 4px !important;
	padding-bottom: 4px !important;
	padding-left: 10px !important;
	padding-right: 10px !important;
	font-size: 12px !important;
}

.compact-input {
	padding-top: 6px;
	padding-bottom: 6px;
	font-size: 12px;
	height: 30px !important;
}

.compact-row {
	padding: 4px 6px;
	font-size: 12px;
}

.compact-btn {
	height: 30px !important;
	padding-left: 12px !important;
	padding-right: 12px !important;
	font-size: 12px !important;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.compact-table-cell {
	padding-top: 8px !important;
	padding-bottom: 8px !important;
	padding-left: 10px !important;
	padding-right: 10px !important;
	font-size: 12px !important;
}

/* company css for high density compact enterprise UI */
.compact-input-company input,
.compact-input-company select {
	height: 1.81rem !important;
	/* 30px 1.875rem compact height */
	font-size: 0.75rem !important;
}

.compact-label-company {
	font-size: 0.7rem !important;
	height: 1.81rem !important;
}

.expand-transition-company {
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism & Gradient Effects */
.glass-card {
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-nav {
	background: rgba(15, 23, 42, 0.92);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Lucide SVG Icons sizing in Chrome */
svg.lucide {
	display: inline-block !important;
	vertical-align: middle;
	/* shrink: 0; */
}

/* Glassmorphic ዲዛይን እና የፕሪሚየም የጀርባ ቀለሞች */
.glassmorphic-card {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Custom ultra thin scrollbar for high density look */
::-webkit-scrollbar {
	width: 5px;
	height: 5px;
}

::-webkit-scrollbar-track {
	background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

/* ለስላሳ እስክሮል ባር */
.custom-scroll::-webkit-scrollbar {
	width: 5px;
}

.custom-scroll::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.custom-scroll::-webkit-scrollbar-thumb {
	background: #c7d2fe;
	border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
	background: #4c1d95;
}

/* Hidden scrollbar utilities */
.no-scrollbar::-webkit-scrollbar {
	display: none;
}

.no-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}


/* selectbox hide arrow */
.selectbox-hide-arrow {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: none;
}

.gradient-border {
	border-image: linear-gradient(to right, #0284c7, #38bdf8, #94a3b8, #0284c7) 1;
}

.glow-panel {
	box-shadow: 0 4px 20px -2px rgba(14, 165, 233, 0.12), 0 2px 10px -1px rgba(100, 116, 139, 0.08);
}

button * {
	pointer-events: none;
}

a * {
	pointer-events: none;
}

/* <button id="btn_companyNameDetails_1" type="button" class="...">
    <i data-lucide="layers" class="tw-w-4 tw-h-4 tw-pointer-events-none"></i>
</button> */
