[v-cloak] { display: none; }
:root {
	color-scheme: light;
}
body {
	margin: 0;
	background: #f2f4f8;
	font-family: Vazirmatn, Tahoma, Arial, sans-serif;
	color: #18202b;
}
.page-container {
	width: calc(100% - 32px);
	max-width: 1680px;
	padding-top: 28px;
	padding-bottom: 64px;
}
.version-badge {
	margin-inline-end: 16px;
	font: 600 13px system-ui, sans-serif;
	color: rgba(255,255,255,.85);
	direction: ltr;
}
.hero-panel {
	min-height: 150px;
	padding: 28px 32px;
	/* border-radius: 22px; */
	color: white;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: linear-gradient(125deg,#1a237e 0%,#283593 58%,#3949ab 100%);
	box-shadow: 0 16px 40px rgba(26,35,126,.2);
}
.hero-panel h1 {
	font-size: clamp(23px,3vw,35px);
	line-height: 1.45;
	margin: 5px 0 8px;
}
.hero-panel p {
	margin: 0;
	color: rgba(255,255,255,.78);
	max-width: 700px;
}
.eyebrow {
	direction: ltr;
	text-align: right;
	color: #c5cae9;
	font: 600 12px system-ui, sans-serif;
	letter-spacing: .08em;
}
.metric-grid {
	display: grid;
	grid-template-columns: repeat(4,minmax(0,1fr));
	gap: 14px;
}
.metric-card,.content-card {
	border: 1px solid #e5e8ef !important;
	/* border-radius: 16px !important; */
	box-shadow: 0 5px 18px rgba(31,41,55,.045) !important;
}
.metric-card .v-card-text {
	min-height: 116px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}
.metric-value {
	font-size: 24px;
	font-weight: 800;
	margin-top: 8px;
	direction: ltr;
}
.period-value {
	direction: rtl;
	font-size: 20px;
	white-space: nowrap;
}
.metric-label {
	color: #6b7280;
	font-size: 13px;
}
.metric-symbol {
	min-width: 43px;
	height: 24px;
	padding-inline: 8px;
	display: inline-grid;
	place-items: center;
	border-radius: 8px;
	font: 700 11px system-ui,sans-serif;
	direction: ltr;
}
.indigo-symbol {
	color:#283593;
	background:#e8eaf6;
}
.teal-symbol {
	color:#00695c;
	background:#e0f2f1;
}
.orange-symbol {
	color:#bf360c;
	background:#fbe9e7;
}
.grey-symbol {
	color:#455a64;
	background:#eceff1; }
.main-tabs {
	background: #fff;
	/* border-radius: 14px; */
	border: 1px solid #e5e8ef;
	padding: 3px;
}
.two-column {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.content-card {
	padding: 8px;
}
.rule-row {
	padding: 14px 4px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #eef0f4;
}
.rule-row:last-child { border-bottom: 0; }
.release-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.release-list li {
	padding: 10px 24px 10px 0;
	position: relative;
}
.release-list li::before {
	content: "✓";
	position: absolute;
	right: 0;
	color: #16836b;
	font-weight: 800;
}
.release-list li.pending::before {
	content: "…";
	color: #9a6700;
}
.card-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 16px 16px 20px;
}
.card-heading h2 {
	margin: 0 0 4px;
	font-size: 19px;
}
.card-heading p {
	margin: 0;
	color: #6b7280;
	font-size: 13px;
}
.table-wrap {
	width: 100%;
	overflow-x: auto;
}
.schedule-table-wrap {
	width: 100%;
	max-height: 620px;
	overflow: auto;
	border: 1px solid #e2e5ea;
	/* border-radius: 8px; */
}
.schedule-table {
	width: 100%;
	/* min-width: 1120px; */
	/* border-collapse: separate; */
	border-collapse: collapse;
	border-spacing: 0;
	font-size: .86rem;
}
.schedule-table th {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: 9px 7px;
	text-align: center;
	white-space: nowrap;
	color: #4f5869;
	background: #f1f3f7;
	border-bottom: 2px solid #d8dde6;
}
.schedule-table td {
	padding: 6px 7px;
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
	border-bottom: 1px solid #eceff3;
}
.schedule-table tbody tr:hover { background: #f5f5f5; }
.schedule-table code {
	direction: ltr;
	display: inline-block;
	font-size: .82rem;
	color: #303f9f;
}
.schedule-actions { min-width: 92px; }
.schedule-editor-grid {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 4px 16px;
	padding-top: 8px;
}
.audit-reason-field { grid-column: 1 / -1; }
.audit-reason-input { min-width: 230px; }
.data-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 700px;
}
.data-table th {
	padding: 2px 2px;
	white-space: nowrap;
	color: #586174;
	background: #f7f8fb;
	font-size: 12px;
	font-weight: 700;
	border-block: 1px solid #e7eaf0;
}
.table-sort-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 5px 7px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.table-sort-button:hover,
.table-sort-button:focus-visible {
	color: #303f9f;
	outline: none;
}
.data-table td {
	padding: 10px 2px;
	border-bottom: 1px solid #edf0f4;
	text-align: center;
	font-size: 13px;
}
.employee-days-table tbody tr {
	transition: background-color 140ms ease;
}
.employee-days-table tbody tr:hover {
	background: #f3f6ff;
}
.employee-days-table .metric-underwork-initial {
	color: #c25b00;
	font-weight: 700;
}
.employee-days-table .metric-underwork-final {
	color: #c62828;
	font-weight: 700;
}
.employee-days-table .metric-overtime-ordinary {
	color: #1565c0;
	font-weight: 700;
}
.employee-days-table .metric-overtime-holiday {
	color: #7b1fa2;
	font-weight: 700;
}
.employee-days-table .metric-overtime-payable {
	color: #2e7d32;
	font-weight: 700;
}
.row-number-column {
	width: 52px;
	min-width: 52px;
	text-align: center;
}
.ltr {
	direction: ltr;
	unicode-bidi: isolate;
}
.hidden-input { display: none; }
.source-list { border-top: 1px solid #edf0f4; }
.source-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 10px;
	border-bottom: 1px solid #edf0f4;
}
.source-icon {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	color: #087f5b;
	background: #e6fcf5;
	border-radius: 12px;
}
.source-meta {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.source-meta strong {
	text-align: right;
	overflow: hidden;
	text-overflow: ellipsis;
}
.source-meta span {
	color: #7b8494;
	font-size: 12px;
}
.source-actions,
.download-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.dialog-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.dialog-heading > div {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.dialog-heading small {
	color: #697386;
	font-size: 11px;
}
.import-metrics {
	display: grid;
	grid-template-columns: repeat(5,minmax(0,1fr));
	gap: 10px;
}
.import-metrics > div {
	padding: 13px;
	/* border-radius: 12px; */
	background: #f5f6fa;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.import-metrics strong { font-size: 21px; }
.import-metrics span {
	color: #697386;
	font-size: 12px;
}
.download-actions > span {
	color: #697386;
	font-size: 13px;
	margin-inline-start: auto;
}
.section-title {
	font-size: 15px;
	margin: 0 0 12px;
}
.header-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}
.assignment-table { min-width: 900px; }
.assignment-table td:nth-child(4) { min-width: 220px; }
.assignment-table td:nth-child(5) { min-width: 150px; }
.ltr-field input {
	direction: ltr;
	text-align: left;
}
.calculation-metrics {
	display: grid;
	grid-template-columns: repeat(6,minmax(0,1fr));
	gap: 9px;
}
.calculation-metrics > div {
	padding: 8px 6px;
	/* border-radius: 12px; */
	background: #f5f6fa;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.calculation-metrics strong { font-size: 18px; }
.calculation-metrics span {
	color: #697386;
	font-size: 11px;
}
.calculation-table { min-width: 1080px; }
.persistence-metrics {
	display: grid;
	grid-template-columns: repeat(5,minmax(0,1fr));
	gap: 10px;
}
.persistence-metrics > div {
	padding: 14px 10px;
	background: #f5f6fa;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.persistence-metrics strong { font-size: 18px; }
.persistence-metrics span {
	color: #697386;
	font-size: 11px;
}
.history-table { min-width: 1050px; }
.audit-table { min-width: 1000px; }
.workflow-table { min-width: 1150px; }
.workflow-table td:nth-last-child(2) {
	min-width: 180px;
	max-width: 360px;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
}
.approver-table { min-width: 850px; }
.users-table { min-width: 960px; }
.workflow-actions { white-space: nowrap; }
.workflow-form-grid {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 4px 16px;
}
.workflow-form-full { grid-column: 1 / -1; }
.period-calendar-panel {
	padding: 12px;
	border: 1px solid #e2e5ea;
	background: #fafbfe;
}
.calendar-caption {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	font-size: 13px;
}
.period-calendar-table {
	display: grid;
	grid-template-columns: repeat(7,minmax(58px,1fr));
	gap: 6px;
	direction: rtl;
}
.calendar-weekday {
	min-height: 44px;
	padding: 7px 4px;
	display: grid;
	place-items: center;
	text-align: center;
	font-size: 11px;
	font-weight: 800;
	color: #4f5869;
	background: #eef1f7;
}
.calendar-day {
	min-height: 62px;
	padding: 6px 3px;
	border: 1px solid #dfe3eb;
	background: #fff;
	color: #253047;
	cursor: pointer;
	font: inherit;
}
.calendar-day:hover { border-color: #5c6bc0; background: #f3f4ff; }
.calendar-day.selected { border: 2px solid #3949ab; background: #e8eaf6; }
.calendar-day.holiday { color: #b42318; background: #fff4f2; }
.calendar-day.official-holiday { color: #9f1239; background: #fff1f2; }
.calendar-day.organizational-holiday { color: #9a6700; background: #fff8e6; }
.calendar-day.empty { cursor: default; background: transparent; border-style: dashed; opacity: .35; }
.calendar-day span,.calendar-day small,.calendar-day i { display: block; }
.calendar-day span { font-weight: 800; }
.calendar-day small { margin-top: 2px; font-size: 10px; }
.calendar-day i { margin-top: 2px; font-size: 9px; font-style: normal; }
.attendance-context .v-card-text {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 18px;
}
.attendance-context span { font-size: 12px; }
.attendance-context .context-warning { color: #9a6700; }
.workflow-history-item { padding: 12px; border-bottom: 1px solid #e7eaf0; }
.workflow-history-item span { display: block; color: #697386; font-size: 12px; margin-top: 3px; }
.workflow-history-item p { margin: 6px 0 0; }
.history-table code,
.audit-table code {
	color: #303f9f;
	font-size: 12px;
}
.issue-list {
	display: grid;
	gap: 2px;
}
.issue-row {
	display: flex;
	gap: 10px;
	padding: 12px;
	border: 1px solid #eceff3;
	border-radius: 12px;
}
.issue-row.error { background: #fff5f5; }
.issue-row.warning { background: #fff9e8; }
.issue-row p {
	margin: 2px 0 0;
	color: #616b7d;
	font-size: 13px;
}
.issue-row small {
	color: #7b8494;
	font-size: 11px;
}
.decision-grid {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 12px;
}
.decision-card {
	border: 1px solid #e7eaf0;
	/* border-radius: 14px; */
	padding: 7px;
	background: #fafbfc;
}
.decision-card span {
	color: #3f51b5;
	font: 700 12px system-ui,sans-serif;
	direction: ltr;
}
.decision-card h3 {
	margin: 6px 0;
	font-size: 15px;
}
.decision-card p {
	margin: 0;
	color: #697386;
	line-height: 1.8;
	font-size: 13px;
}
.inspect-grid {
	display: grid;
	grid-template-columns: 145px 1fr;
	gap: 10px;
}
.inspect-grid dt { color: #697386; }
.inspect-grid dd { margin: 0; }
.hash-value {
	direction: ltr;
	word-break: break-all;
	font: 11px monospace;
}
.employee-portal-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	color: #5d6675;
	font-size: 13px;
}
.employee-portal-meta b { color: #252c37; margin-inline-start: 5px; }
.portal-metrics {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 12px;
}
.portal-metrics > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 15px 17px;
	background: #f7f8fc;
	border: 1px solid #e5e8f1;
	border-radius: 10px;
}
.portal-metrics span { color: #626c7c; font-size: 13px; }
.portal-metrics strong { color: #283593; font-size: 18px; }
.leave-balance-grid {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 12px;
}
.leave-balance-grid > div {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 14px 16px;
	border: 1px solid #e3e7f0;
	border-radius: 10px;
	background: #f8f9fc;
}
.leave-balance-grid span { color: #667085; font-size: 12px; }
.leave-balance-grid strong,.balance-value { color: #283593; font-weight: 700; }
.leave-balance-grid .balance-available { background: #edf7f3; border-color: #b9dfd0; }
.leave-ledger-table { min-width: 1900px; }
.leave-ledger-table .leave-value { direction: rtl; unicode-bidi: plaintext; white-space: nowrap; }
.period-table { min-width: 1100px; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor-full { grid-column: 1 / -1; }
.employee-days-table { min-width: 1320px; }
.tehran-clock {
	display: flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	margin-inline-start: auto;
	padding: 8px 14px;
	border: 1px solid #dfe3ee;
	border-radius: 12px;
	background: #fff;
	color: #303f9f;
}
.tehran-clock small { color: #757575; }
.period-selector { min-width: 260px; }
.filter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 12px;
	align-items: center;
}
.workflow-filters { padding: 14px; border-radius: 14px; background: #f7f8fc; }
.filter-actions, .workflow-counts, .pagination-bar, .request-markers { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination-bar { justify-content: space-between; margin-top: 16px; }
.request-markers { justify-content: center; min-width: 42px; }
@media (max-width: 850px) {
	.metric-grid { grid-template-columns: 1fr 1fr; }
	.two-column,.decision-grid { grid-template-columns: 1fr; }
	.portal-metrics { grid-template-columns: 1fr 1fr; }
	.leave-balance-grid { grid-template-columns: 1fr 1fr; }
	.hero-panel { align-items: flex-start; flex-direction: column; }
	.card-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 850px) {
	.import-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.download-actions > span { width: 100%; margin-inline-start: 0; }
}
@media (max-width: 850px) {
	.calculation-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.persistence-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
	.schedule-editor-grid { grid-template-columns: 1fr; }
	.workflow-form-grid { grid-template-columns: 1fr; }
	.period-calendar-panel { overflow-x: auto; }
	.period-calendar-table { min-width: 620px; }
	.workflow-form-full { grid-column: auto; }
}
@media (max-width: 500px) {
	.metric-grid { grid-template-columns: 1fr; }
	.portal-metrics { grid-template-columns: 1fr; }
	.leave-balance-grid,.editor-grid { grid-template-columns: 1fr; }
	.editor-full { grid-column: auto; }
	.page-container { width: calc(100% - 24px); padding-inline: 0; }
	.hero-panel { padding: 23px; }
	.inspect-grid { grid-template-columns: 1fr; }
}
