HRM-10/HRM.UI/ClientApp/src/app/fund-admin/month-end/month-end.component.scss
Mohaimen Hasan 838b8d4480 first commit
2026-11-03 13:06:00 +06:00

178 lines
4.5 KiB
SCSS

/* Use theme CSS variables where available so the component follows the app theme */
// Local fallback palette for the var(--x, fallback) PrimeNG theme vars below -- only ever
// rendered if those theme vars are undefined, which doesn't happen in this app, but tokenized
// per docs/css-centralization-progress.md rather than left as scattered hex/rgb literals.
// Two fallbacks (--text-color and --text-color-secondary) previously had a second, inconsistent
// hardcoded value at one call site each (#264653 vs #072b4f, #6b7280 vs #5b6b78); normalized to
// one canonical value per token since both are unreachable fallbacks with zero visual difference.
@use '../../../styles/abstracts/tokens' as *;
$monthend-surface-b: #fbfdff;
$monthend-ink: #0F172A;
$monthend-text: #072b4f;
$monthend-text-secondary: #5b6b78;
$monthend-primary: #2196F3;
$monthend-accent: #03A9F4;
.month-end-card {
max-width: 960px;
margin: 16px auto;
background: linear-gradient(180deg, var(--surface-a, $color-white) 0%, var(--surface-b, $monthend-surface-b) 100%);
border-radius: 10px;
box-shadow: 0 6px 18px rgba($color-black, 0.06);
overflow: hidden;
border: 1px solid var(--divider, rgba($monthend-ink, 0.04));
font-family: var(--font-family, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
color: var(--text-color, $monthend-text);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 18px 20px;
border-bottom: 1px solid var(--divider, rgba($monthend-ink, 0.04));
background-color: var(--surface-b, rgba($monthend-accent, 0.03));
}
/* title + icon */
.title-wrap {
display: flex;
align-items: center;
gap: 12px;
}
.header-icon {
display: inline-flex;
width: 34px;
height: 34px;
align-items: center;
justify-content: center;
color: var(--primary-color, $monthend-primary);
background: rgba($monthend-primary, 0.08);
border-radius: 8px;
}
.header-icon svg {
width: 18px;
height: 18px;
fill: currentColor;
}
.header-left .card-title {
margin: 0;
font-size: 1.15rem;
color: var(--text-color, $monthend-text);
font-weight: 600;
}
.header-left .card-subtitle {
margin: 4px 0 0;
font-size: 0.875rem;
color: var(--text-color-secondary, $monthend-text-secondary);
}
.status-pill {
display: inline-block;
border: 1px solid var(--primary-color, $monthend-primary);
color: var(--primary-color, $monthend-primary);
background: rgba($monthend-primary, 0.06); /* subtle accent while keeping readable text */
padding: 6px 10px;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 600;
}
.card-body {
padding: 18px 20px;
}
/* Grid: 2 columns on desktop, single column on small screens */
.controls-grid {
display: grid;
grid-template-columns: 200px 1fr;
gap: 12px 20px;
align-items: center;
}
/* label styling */
.control-label {
font-size: 0.9rem;
color: var(--text-color, $monthend-text);
margin-right: 8px;
}
/* make Kendo inputs fill their cell */
kendo-dropdownlist,
kendo-datepicker {
width: 100%;
min-width: 0;
}
/* help text spans full width */
.help-text {
grid-column: 1 / -1;
color: var(--text-color-secondary, $monthend-text-secondary);
margin-top: 6px;
}
/* actions align end on larger screens; full width on small screens */
.actions {
grid-column: 1 / -1;
display: flex;
justify-content: flex-end;
margin-top: 8px;
}
/* primary update button */
.update-btn {
min-width: 120px;
background: var(--primary-color, $monthend-primary);
color: var(--primary-color-text, $color-white);
border: 1px solid var(--primary-color, $monthend-primary);
box-shadow: 0 6px 12px rgba($monthend-primary, 0.12);
border-radius: 6px;
font-weight: 600;
transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
display: inline-flex;
align-items: center;
gap: 8px;
}
.update-btn kendo-icon,
.update-btn .k-icon,
.update-btn svg {
fill: currentColor;
}
/* pressed state */
.update-btn:active {
transform: translateY(1px);
box-shadow: 0 3px 8px rgba($monthend-primary, 0.14);
}
/* Responsive: collapse to one column on narrow screens */
@media (max-width: 720px) {
.controls-grid {
grid-template-columns: 1fr;
}
.control-label {
margin-bottom: 6px;
}
.actions {
justify-content: stretch;
}
.update-btn {
width: 100%;
}
.card-header {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
}