/**
 * HR Management Lite — Staff Reports (My Operational Reports)
 */
.hrml-staff-reports {
	background: #f0f0f1;
}

.hrml-staff-reports .content-wrapper {
	padding: 1.25rem 1.5rem 2rem;
}

.hrml-staff-reports .page-header {
	display: none;
}

/* Hero */
.hrml-rpt-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	background: #fff;
	border-radius: 12px;
	padding: 1.35rem 1.75rem;
	margin-bottom: 1.25rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border: 1px solid #eef2f7;
}

.hrml-rpt-hero__main {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex: 1;
	min-width: 260px;
}

.hrml-rpt-hero__icon {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: #4f46e5;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	flex-shrink: 0;
}

.hrml-rpt-hero__title {
	margin: 0 0 0.35rem;
	font-size: 1.45rem;
	font-weight: 700;
	color: #1e3a5f;
	line-height: 1.25;
}

.hrml-rpt-hero__subtitle {
	margin: 0;
	font-size: 0.88rem;
	color: #64748b;
	max-width: 560px;
	line-height: 1.5;
}

.hrml-rpt-hero__date {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1rem;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 0.875rem;
	color: #475569;
	font-weight: 500;
}

.hrml-rpt-hero__date i {
	color: #64748b;
}

/* Panels */
.hrml-rpt-panel {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #eef2f7;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	margin-bottom: 1.25rem;
	overflow: hidden;
}

.hrml-rpt-panel--config {
	border-left: 1px solid #eef2f7;
}

.hrml-rpt-panel--table {
	border-left: 1px solid #eef2f7;
}

.hrml-rpt-panel__head {
	padding: 1rem 1.35rem;
	border-bottom: 1px solid #f1f5f9;
}

.hrml-rpt-panel__head--split {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hrml-rpt-panel__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #2563eb;
}

.hrml-rpt-panel__title--green {
	color: #16a34a;
}

.hrml-rpt-panel__body {
	padding: 1.15rem 1.35rem 1.35rem;
}

/* Config form */
.hrml-rpt-config-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1rem;
}

.hrml-rpt-config-form__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	flex: 1 1 320px;
}

.hrml-rpt-config-form__action {
	flex: 0 0 auto;
	min-width: 200px;
}

.hrml-rpt-field {
	flex: 1 1 200px;
	min-width: 180px;
}

.hrml-rpt-field label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 0.4rem;
}

.hrml-rpt-field .form-control {
	min-height: 46px;
	border-radius: 6px;
	border: 1px solid #dcdcde;
	font-size: 0.9rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hrml-rpt-generate-btn {
	min-height: 46px;
	padding: 0.5rem 1.5rem;
	border: none;
	border-radius: 50px;
	font-weight: 600;
	color: #fff;
	background: #4f46e5;
	box-shadow: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
}

.hrml-rpt-generate-btn:hover,
.hrml-rpt-generate-btn:focus {
	color: #fff;
	background: #4338ca;
}

/* Table tools */
.hrml-rpt-table-tools {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hrml-rpt-expand-btn,
.hrml-rpt-collapse-btn {
	border-radius: 6px;
	padding: 0.4rem 0.85rem;
	font-size: 0.8125rem;
	font-weight: 600;
	background: #fff !important;
	box-shadow: none !important;
}

.hrml-rpt-expand-btn {
	border: 1px solid #86efac !important;
	color: #16a34a !important;
}

.hrml-rpt-collapse-btn {
	border: 1px solid #fca5a5 !important;
	color: #dc2626 !important;
}

/* Report table */
.hrml-staff-reports .report_table thead tr,
.hrml-staff-reports .report_table tfoot tr {
	background: #e7f1ff !important;
	color: #1e3a5f !important;
}

.hrml-staff-reports .report_table thead th,
.hrml-staff-reports .report_table tfoot th {
	font-weight: 700 !important;
	font-size: 0.75rem !important;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.85rem 0.75rem !important;
	border: none !important;
}

.hrml-staff-reports .report_table tbody tr td {
	padding: 0.85rem 0.75rem !important;
	font-size: 0.875rem;
	border-color: #eee !important;
	vertical-align: middle;
}

.hrml-staff-reports .report_table tbody tr:nth-child(odd) td {
	background: #f8f7fc;
}

.hrml-staff-reports .report_table tbody tr:nth-child(even) td {
	background: #fff;
}

.hrml-staff-reports tr.absent_report,
.hrml-staff-reports tr.sunday_report,
.hrml-staff-reports tr.holiday_report {
	color: #00bcd4 !important;
}

.hrml-staff-reports tr.sunday_report td,
.hrml-staff-reports tr.holiday_report td {
	color: #00bcd4 !important;
}

.hrml-rpt-placeholder-row td {
	text-align: center;
	color: #94a3b8;
	padding: 2.5rem 1rem !important;
	font-size: 0.9rem;
	background: #fafafa !important;
}

.hrml-staff-reports .card.table_card {
	border: none;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	padding: 0;
}

.hrml-staff-reports #report_salary_result .card-body {
	padding: 1.25rem 1.35rem !important;
}

.hrml-staff-reports #report_salary_result .card-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1e3a5f;
	margin-bottom: 0.75rem;
}

.hrml-staff-reports #report_salary_result .table {
	margin-bottom: 0;
	width: 100%;
}

.hrml-staff-reports #report_salary_result tbody tr td {
	padding: 0.9rem 0.25rem;
	border-top: 1px solid #ebebeb;
	font-size: 0.9rem;
	color: #333;
	vertical-align: middle;
}

.hrml-staff-reports #report_salary_result tbody tr:first-child td {
	border-top: none;
}

.hrml-staff-reports #report_salary_result tbody tr:nth-child(odd) td {
	background: #f8f7fc;
}

.hrml-staff-reports #report_salary_result tbody tr:nth-child(even) td {
	background: #fff;
}

.hrml-staff-reports #report_salary_result .right-td {
	text-align: right;
	font-weight: 600;
}

.hrml-staff-reports #report_salary_result tr.final-result-tr td {
	background: #4f46e5 !important;
	color: #fff !important;
	border: none;
	font-weight: 600;
	padding: 0.95rem 0.85rem !important;
}

.hrml-staff-reports #report_salary_result tr.final-result-tr .right-td {
	color: #fff !important;
	text-align: right;
}

.hrml-staff-reports #report_salary_result tr.final-result-tr .right-td,
.hrml-staff-reports #report_salary_result tr.final-result-tr .right-td * {
	display: inline-block;
	background: #fff;
	color: #333 !important;
	font-weight: 700;
	padding: 0.35rem 0.85rem;
	border-radius: 4px;
	min-width: 4.5rem;
	text-align: center;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Export card */
.hrml-rpt-export-card {
	border: none;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hrml-rpt-export-card .card-body {
	padding: 1.25rem 1.35rem 1.35rem !important;
}

.hrml-rpt-export-card__title {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #1e3a5f;
	margin: 0 0 1.15rem;
}

.hrml-rpt-export-card__icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: #4f46e5;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
}

.hrml-rpt-export-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1rem;
}

.hrml-rpt-export-form .hrml-rpt-field {
	flex: 1 1 140px;
}

.hrml-rpt-export-form .hrml-rpt-date {
	min-height: 46px;
	border-radius: 6px;
	border: 1px solid #dcdcde;
	width: 100%;
}

.hrml-rpt-export-btn {
	width: 100%;
	min-height: 48px;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	color: #fff;
	background: #4f46e5;
	box-shadow: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.hrml-rpt-export-btn:hover,
.hrml-rpt-export-btn:focus {
	color: #fff;
	background: #4338ca;
}

.hrml-rpt-bottom {
	margin-top: 0.25rem;
}

.hrml-staff-reports .dataTables_length label,
.hrml-staff-reports .dataTables_filter label {
	font-size: 0.875rem;
}

.hrml-staff-reports input.form-control.form-control-sm,
.hrml-staff-reports select.custom-select.custom-select-sm {
	border: 1px solid #c9b8ff;
	border-radius: 4px;
}

.hrml-staff-reports .page-item.active .page-link {
	background: #4f46e5;
	border-color: #4f46e5;
}

@media (max-width: 767px) {
	.hrml-staff-reports .content-wrapper {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.hrml-rpt-config-form__action {
		width: 100%;
	}
}
