HRM-10/HRM.UI/ClientApp/src/app/payroll/allowance-deduction/allowance-deduction-parameterization/allowance-deduction-parameterization-entry/allowance-deduction-parameterization-entry.component.css

206 lines
4.3 KiB
CSS
Raw Normal View History

2026-11-09 17:40:15 +06:00
kendo-numerictextbox{
width: 100%;
}
2026-11-15 13:09:32 +06:00
/* .checkBoxGrid.grid {
2026-11-09 17:40:15 +06:00
justify-content: space-evenly;
2026-11-15 13:09:32 +06:00
} */
/* ---- Layout only (alignment / spacing); no behaviour depends on these classes ---- */
.adp-card {
padding: 14px 16px;
margin-bottom: 12px;
}
.adp-section-title {
font-weight: 600;
font-size: 13px;
color: #495057;
padding-bottom: 6px;
margin-bottom: 10px;
border-bottom: 1px solid #e9ecef;
}
.adp-required {
color: #dc3545;
}
/* label + control on one line, labels the same width so the controls line up */
.adp-field {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 8px;
}
.adp-label {
flex: 0 0 110px;
margin: 0;
white-space: nowrap;
}
.adp-control {
flex: 1 1 auto;
min-width: 0;
}
/* every input on the page the same height, so the rows line up */
.adp-page kendo-dropdownlist,
.adp-page kendo-numerictextbox,
.adp-page kendo-datepicker {
height: 32px;
}
.adp-page kendo-dropdownlist.form-control {
padding: 0;
font-size: inherit;
min-height: 0;
}
/* the four check boxes in two even columns, starting under the inputs (label width + gap) */
.adp-checks {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px 12px;
margin: 4px 0 0 120px;
padding: 10px 12px;
border: 1px solid #dee2e6;
border-radius: 6px;
background: #fafbfc;
}
.adp-check {
display: flex;
align-items: center;
gap: 6px;
margin: 0;
white-space: nowrap;
}
.adp-check .k-checkbox-label {
margin: 0;
}
/* the tab panels on this page are empty (only the headers are used), so drop their padding */
:host ::ng-deep .adp-card .tab-view-compat-panels {
padding: 0 !important;
}
.adp-detail-text {
margin: 12px 0 8px;
}
/* employee entry: label above each control, all on one row */
.adp-entry-row {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 12px 16px;
margin-bottom: 10px;
}
.adp-entry-item {
display: flex;
flex-direction: column;
gap: 4px;
flex: 0 1 200px;
min-width: 160px;
}
.adp-entry-emp {
flex-basis: 140px;
min-width: 120px;
}
/* the picker (icon + count) sits in a 32px box like the inputs */
.adp-entry-emp app-employee-picker {
display: flex;
align-items: center;
min-height: 32px;
}
/* the picker sizes its search button and count as 15% of its box; on this page give them a fixed size
(this page only — the picker component itself is unchanged) */
/* direct path only, so the buttons inside the picker's pop-up dialog are not touched */
:host ::ng-deep .adp-entry-emp app-employee-picker > div > div > div > button {
width: 32px !important;
max-width: none !important;
height: 32px;
flex: 0 0 32px;
}
:host ::ng-deep .adp-entry-emp app-employee-picker > div > div > div > label {
width: auto !important;
max-width: none !important;
margin: 0 0 0 8px;
white-space: nowrap;
}
:host ::ng-deep .adp-entry-emp app-employee-picker > div > div > div {
display: flex;
align-items: center;
}
/* every label the same height (the To Date one has a check box), so all inputs start on one line */
.adp-entry-label {
display: flex;
align-items: center;
gap: 4px;
height: 22px;
margin: 0;
white-space: nowrap;
}
.adp-entry-label .k-checkbox-label {
margin: 0;
}
/* Sum on the left, buttons on the right */
.adp-action-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 8px 0;
margin-bottom: 8px;
border-top: 1px solid #e9ecef;
}
2026-11-15 13:49:48 +06:00
/* virtual scrolling needs every row the same height ([rowHeight]="40"): 32px inputs + 4px padding */
:host ::ng-deep .adp-emp-grid .k-grid-content td {
height: 40px;
padding-top: 4px;
padding-bottom: 4px;
}
2026-11-15 13:09:32 +06:00
.adp-sum {
font-weight: bold;
}
.adp-actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
2026-11-09 17:40:15 +06:00
}
@media screen and (max-width: 400px) {
.topGrid.grid > div{
width: 100%;
}
.middleGrid.grid > div{
width: 100%;
}
.checkBoxGrid.grid {
flex-flow: column wrap;
justify-content: flex-start;
}
2026-11-15 13:09:32 +06:00
.adp-checks {
grid-template-columns: 1fr;
margin-left: 0;
}
.adp-entry-item {
flex: 1 1 100%;
}
2026-11-09 17:40:15 +06:00
}