.emp-page {
    --emp-primary: #4573d2;
    --emp-primary-soft: #edf2fc;
    --emp-text: #1e1f21;
    --emp-muted: #6d6e6f;
    --emp-border: #e8e8e8;
    --emp-bg: #f7f8f9;
    color: var(--emp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    padding: 4px 4px 28px;
}

.emp-page h1 {
    font-size: 23px;
    font-weight: 650;
    letter-spacing: -.35px;
    margin: 2px 0 3px;
}

.emp-page p { margin: 0; color: var(--emp-muted); }
.emp-eyebrow { color: var(--emp-primary); font-size: 10px; font-weight: 700; letter-spacing: .09em; }

.emp-page-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    min-height: 56px;
}

.emp-page .btn {
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    min-height: 34px;
}

.emp-primary {
    align-items: center;
    background: var(--emp-primary);
    border-color: var(--emp-primary);
    display: inline-flex;
    gap: 7px;
}

.emp-primary:hover { background: #3867c8; border-color: #3867c8; }

.emp-filter-card {
    align-items: end;
    background: #fff;
    border: 1px solid var(--emp-border);
    border-radius: 10px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(260px, 1.6fr) minmax(180px, .8fr) minmax(180px, .8fr) auto;
    margin-bottom: 14px;
    padding: 13px;
}

.emp-search {
    align-items: center;
    border: 1px solid #d7d8d9;
    border-radius: 7px;
    display: flex;
    height: 36px;
    padding: 0 10px;
}

.emp-search:focus-within { border-color: var(--emp-primary); box-shadow: 0 0 0 2px rgba(69,115,210,.12); }
.emp-search i { color: #9a9b9c; margin-right: 8px; }
.emp-search input { border: 0; font-size: 13px; min-width: 0; outline: 0; width: 100%; }

.emp-filter-field label,
.emp-field label {
    color: #565759;
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 5px;
}

.emp-filter-field select {
    background-color: #fff;
    border: 1px solid #d7d8d9;
    border-radius: 7px;
    font-size: 12.5px;
    height: 36px;
    padding: 0 30px 0 9px;
    width: 100%;
}

.emp-filter-button { background: #f5f5f5; border: 1px solid #d7d8d9; display: flex; gap: 6px; align-items: center; }
.emp-alert { align-items: center; border-radius: 8px; display: flex; font-size: 12.5px; gap: 8px; padding: 10px 12px; }

.emp-list-card,
.emp-form-card,
.emp-loading-card {
    background: #fff;
    border: 1px solid var(--emp-border);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(30,31,33,.04);
    overflow: hidden;
}

.emp-list-heading {
    align-items: center;
    border-bottom: 1px solid var(--emp-border);
    display: flex;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px;
}

.emp-list-heading strong { font-size: 13.5px; font-weight: 650; }
.emp-list-heading span { color: var(--emp-muted); font-size: 11.5px; margin-left: 9px; }
.emp-icon-button { background: transparent; border: 0; border-radius: 6px; color: var(--emp-muted); height: 30px; width: 30px; }
.emp-icon-button:hover { background: #f1f2f3; color: var(--emp-text); }

.emp-table { font-size: 12.5px; }
.emp-table thead th { background: #fafafa; border-bottom: 1px solid var(--emp-border); color: #6d6e6f; font-size: 10.5px; font-weight: 650; letter-spacing: .025em; padding: 9px 13px; text-transform: uppercase; white-space: nowrap; }
.emp-table tbody td { border-color: #f0f0f0; padding: 10px 13px; vertical-align: middle; }
.emp-table tbody tr:hover td { background: #fbfcff; }

.emp-person { align-items: center; display: flex; gap: 9px; min-width: 210px; }
.emp-avatar { align-items: center; background: #e8eefb; border-radius: 50%; color: #315ca8; display: flex; flex: 0 0 32px; font-size: 10px; font-weight: 700; height: 32px; justify-content: center; }
.emp-person strong { display: block; font-size: 12.5px; font-weight: 650; }
.emp-person span:not(.emp-avatar), .emp-cell-sub { color: #858688; display: block; font-size: 10.75px; margin-top: 1px; }
.emp-cell-main { color: #3d3e40; font-size: 12px; }

.emp-status { align-items: center; background: #f2f2f2; border-radius: 99px; color: #565759; display: inline-flex; font-size: 10.5px; gap: 6px; max-width: 170px; padding: 4px 8px; }
.emp-status > span { background: #a2a0a2; border-radius: 50%; height: 6px; width: 6px; }
.emp-status.is-active { background: #edf8f3; color: #287a55; }
.emp-status.is-active > span { background: #36a873; }
.emp-status.is-inactive { background: #fceeee; color: #a63c3c; }
.emp-status.is-inactive > span { background: #d85a5a; }

.emp-edit-button { align-items: center; background: transparent; border: 0; color: var(--emp-primary); display: inline-flex; font-size: 11.5px; font-weight: 600; gap: 5px; padding: 5px; }
.emp-edit-button:hover { text-decoration: underline; }
.emp-empty { color: var(--emp-muted); height: 180px; text-align: center; }
.emp-empty > i, .emp-empty > strong, .emp-empty > span { display: block; }
.emp-empty > i { color: #b7b8b9; font-size: 25px; margin-bottom: 7px; }
.emp-empty > strong { color: #565759; margin-bottom: 2px; }
.emp-empty .spinner-border { margin-right: 5px; }

.emp-pagination { align-items: center; border-top: 1px solid var(--emp-border); color: var(--emp-muted); display: flex; justify-content: space-between; min-height: 44px; padding: 0 14px; }
.emp-pagination div { display: flex; gap: 5px; }
.emp-pagination button { background: #fff; border: 1px solid #d7d8d9; border-radius: 6px; color: #565759; height: 28px; width: 30px; }
.emp-pagination button:disabled { color: #b7b8b9; opacity: .6; }

.emp-editor-header { margin-bottom: 15px; }
.emp-back-button { background: #fff; border: 1px solid var(--emp-border); border-radius: 7px; color: #565759; height: 34px; margin-top: 2px; width: 34px; }
.emp-back-button:hover { background: #f5f5f5; }
.emp-code-badge { background: #f1f2f3; border-radius: 6px; color: #565759; font-size: 11px; font-weight: 650; padding: 6px 9px; }
.emp-loading-card { align-items: center; color: var(--emp-muted); display: flex; gap: 8px; justify-content: center; min-height: 180px; }

.emp-editor-shell { align-items: start; display: grid; gap: 14px; grid-template-columns: 210px minmax(0, 1fr); }
.emp-form-nav { background: #fff; border: 1px solid var(--emp-border); border-radius: 10px; padding: 7px; position: sticky; top: 12px; }
.emp-form-nav-item { align-items: center; background: transparent; border: 0; border-radius: 7px; color: #565759; display: flex; gap: 10px; padding: 9px; text-align: left; width: 100%; }
.emp-form-nav-item + .emp-form-nav-item { margin-top: 2px; }
.emp-form-nav-item > i { font-size: 14px; width: 17px; }
.emp-form-nav-item strong, .emp-form-nav-item small { display: block; }
.emp-form-nav-item strong { font-size: 12px; font-weight: 600; }
.emp-form-nav-item small { color: #9a9b9c; font-size: 10px; margin-top: 1px; }
.emp-form-nav-item:hover { background: #f5f6f7; }
.emp-form-nav-item.is-active { background: var(--emp-primary-soft); color: #315ca8; }
.emp-form-nav-item.is-active small { color: #6281b9; }

.emp-form-card-header { align-items: start; border-bottom: 1px solid var(--emp-border); display: flex; justify-content: space-between; padding: 14px 16px; }
.emp-form-card-header h2 { font-size: 15px; font-weight: 650; margin: 0 0 2px; }
.emp-form-card-header p, .emp-form-card-header > span { color: var(--emp-muted); font-size: 10.75px; }
.emp-form-card-body { min-height: 430px; padding: 16px; }
.emp-form-footer { align-items: center; background: #fbfbfb; border-top: 1px solid var(--emp-border); display: flex; padding: 11px 16px; }

.emp-subform-grid { align-items: start; display: grid; gap: 22px; grid-template-columns: 150px minmax(0, 1fr); }
.emp-photo-panel { align-items: center; display: flex; flex-direction: column; text-align: center; }
.emp-photo-preview { align-items: center; background: #f1f2f3; border: 1px solid var(--emp-border); border-radius: 12px; display: flex; height: 126px; justify-content: center; overflow: hidden; width: 126px; }
.emp-photo-preview img { height: 100%; object-fit: cover; width: 100%; }
.emp-photo-preview i { color: #b7b8b9; font-size: 44px; }
.emp-upload-button { align-items: center; border: 1px solid #d7d8d9; border-radius: 7px; color: #565759; cursor: pointer; display: flex; font-size: 10.75px; font-weight: 600; gap: 5px; margin-top: 9px; padding: 6px 8px; }
.emp-upload-button:hover { background: #f5f5f5; }
.emp-upload-button input { display: none; }
.emp-photo-panel > span { color: #9a9b9c; font-size: 9.5px; margin-top: 6px; }

.emp-fields-grid { display: grid; gap: 13px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.emp-fields-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.emp-span-2 { grid-column: span 2; }
.emp-span-4 { grid-column: span 4; }
.emp-field b { color: #d1453b; font-weight: 600; }
.emp-field .form-control, .emp-field .form-select { border: 1px solid #d7d8d9; border-radius: 7px; font-size: 12.5px; min-height: 35px; padding: 7px 9px; }
.emp-field textarea.form-control { min-height: 72px; }
.emp-field .form-control:focus, .emp-field .form-select:focus { border-color: var(--emp-primary); box-shadow: 0 0 0 2px rgba(69,115,210,.12); }
.emp-field small { color: #9a9b9c; display: block; font-size: 9.75px; margin-top: 4px; }
.emp-field .validation-message { color: #c92a2a; font-size: 10px; margin-top: 3px; }

.emp-section-intro { align-items: center; background: #f8f9fb; border-radius: 8px; display: flex; gap: 10px; margin-bottom: 16px; padding: 10px 11px; }
.emp-section-intro > i { align-items: center; background: #fff; border: 1px solid var(--emp-border); border-radius: 7px; color: var(--emp-primary); display: flex; height: 30px; justify-content: center; width: 30px; }
.emp-section-intro strong, .emp-section-intro span { display: block; }
.emp-section-intro strong { font-size: 12px; }
.emp-section-intro span { color: var(--emp-muted); font-size: 10.5px; }
.emp-choice-card { align-items: center; border: 1px solid var(--emp-border); border-radius: 8px; display: flex; gap: 9px; min-height: 56px; padding: 9px 11px; }
.emp-choice-card input { height: 15px; width: 15px; }
.emp-choice-card strong, .emp-choice-card span { display: block; }
.emp-choice-card strong { font-size: 11.5px; }
.emp-choice-card span { color: var(--emp-muted); font-size: 9.75px; }
.emp-form-divider { border-bottom: 1px solid var(--emp-border); height: 17px; margin-bottom: 5px; }
.emp-form-divider span { background: #fff; color: #858688; font-size: 10px; font-weight: 650; padding-right: 8px; text-transform: uppercase; }
.emp-validation-summary { background: #fff5f5; border: 1px solid #ffd8d8; border-radius: 7px; color: #b42318; font-size: 10.5px; margin-bottom: 14px; padding: 8px 10px; }
.emp-validation-summary:empty { display: none; }

.emp-detail-section { border-top: 1px solid var(--emp-border); margin-top: 20px; padding-top: 16px; }
.emp-detail-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 10px; }
.emp-detail-heading h3 { font-size: 12.5px; font-weight: 650; margin: 0 0 2px; }
.emp-detail-heading p { font-size: 10.5px; }
.emp-detail-heading .btn { align-items: center; display: inline-flex; gap: 5px; min-height: 30px; }
.emp-detail-table-wrap { border: 1px solid var(--emp-border); border-radius: 8px; }
.emp-detail-table { font-size: 11.5px; margin: 0; min-width: 920px; }
.emp-detail-table thead th { background: #fafafa; border-bottom: 1px solid var(--emp-border); color: #6d6e6f; font-size: 9.75px; font-weight: 650; padding: 7px 8px; text-transform: uppercase; white-space: nowrap; }
.emp-detail-table tbody td { border-color: #f0f0f0; padding: 6px 8px; vertical-align: middle; }
.emp-detail-table .form-control, .emp-detail-table .form-select { border-color: #dedede; border-radius: 5px; font-size: 11px; min-height: 30px; min-width: 105px; padding: 5px 7px; }
.emp-detail-table .emp-table-comment { min-width: 170px; }
.emp-detail-table .emp-money { min-width: 94px; text-align: right; }
.emp-detail-empty { color: var(--emp-muted); padding: 24px !important; text-align: center; }
.emp-total { color: #245c46; font-weight: 650; white-space: nowrap; }
.emp-row-number { color: #858688; text-align: center; width: 38px; }
.emp-row-remove { background: transparent; border: 0; border-radius: 5px; color: #a0a1a2; height: 28px; width: 28px; }
.emp-row-remove:hover { background: #fceeee; color: #b42318; }

.emp-state-card { align-items: center; background: #f8f9fb; border: 1px dashed #d7d8d9; border-radius: 8px; color: var(--emp-muted); display: flex; gap: 8px; justify-content: center; min-height: 120px; }
.emp-report-grid { border: 1px solid var(--emp-border); border-radius: 8px; overflow: hidden; }
.emp-report-row { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(190px, .8fr) minmax(240px, 1.2fr) minmax(220px, 1fr); padding: 11px 12px; }
.emp-report-row + .emp-report-row { border-top: 1px solid #f0f0f0; }
.emp-report-row:hover { background: #fcfcfc; }
.emp-report-label { align-items: center; display: flex; gap: 8px; min-height: 35px; }
.emp-report-label span { align-items: center; background: var(--emp-primary-soft); border-radius: 5px; color: #315ca8; display: flex; flex: 0 0 28px; font-size: 10px; font-weight: 700; height: 24px; justify-content: center; }
.emp-report-label strong { font-size: 11.5px; font-weight: 600; }

.emp-payroll-summary { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.emp-payroll-summary > div { background: #f8f9fb; border: 1px solid var(--emp-border); border-radius: 8px; padding: 9px 11px; }
.emp-payroll-summary span, .emp-payroll-summary strong { display: block; }
.emp-payroll-summary span { color: var(--emp-muted); font-size: 9.75px; text-transform: uppercase; }
.emp-payroll-summary strong { font-size: 13px; font-weight: 650; margin-top: 2px; }
.emp-history-table { min-width: 980px; }
.emp-history-groups { display: grid; gap: 16px; }
.emp-history-year { border: 1px solid var(--emp-border); border-radius: 9px; overflow: hidden; }
.emp-history-year-heading { align-items: center; background: #f5f7fb; cursor: pointer; display: flex; gap: 7px; list-style: none; padding: 9px 12px; user-select: none; }
.emp-history-year-heading::-webkit-details-marker, .emp-history-month-heading::-webkit-details-marker { display: none; }
.emp-history-year-heading:hover { background: #eef2f9; }
.emp-history-year[open] > .emp-history-year-heading { border-bottom: 1px solid var(--emp-border); }
.emp-history-year-title { color: #315ca8; font-size: 14px; font-weight: 700; }
.emp-history-year-totals { align-items: center; display: flex; gap: 18px; margin-left: auto; }
.emp-history-year-totals > span { display: grid; gap: 1px; min-width: 105px; }
.emp-history-year-totals small { color: var(--emp-muted); font-size: 9px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.emp-history-year-totals strong { color: #242a35; font-size: 11px; font-weight: 700; }
.emp-history-count { color: var(--emp-muted); font-size: 10.5px; min-width: 65px; text-align: right; }
.emp-history-month { padding: 0; }
.emp-history-month + .emp-history-month { border-top: 1px solid var(--emp-border); }
.emp-history-month-heading { align-items: center; cursor: pointer; display: flex; gap: 7px; list-style: none; padding: 10px 12px 7px; user-select: none; }
.emp-history-month-heading:hover { background: #fbfcff; }
.emp-history-month-heading strong { font-size: 11.5px; font-weight: 650; }
.emp-history-month-heading > span:last-child { color: var(--emp-muted); font-size: 10px; margin-left: auto; }
.emp-history-month > .emp-detail-table-wrap { margin: 0 12px 12px; }
.emp-history-toggle { align-items: center; color: #858688; display: inline-flex; flex: 0 0 16px; font-size: 10px; justify-content: center; }
.emp-history-toggle i { transition: transform .16s ease; }
.emp-history-year[open] > .emp-history-year-heading .emp-history-toggle i,
.emp-history-month[open] > .emp-history-month-heading .emp-history-toggle i { transform: rotate(90deg); }
@media (max-width: 900px) {
    .emp-history-year-heading { align-items: flex-start; flex-wrap: wrap; }
    .emp-history-year-totals { flex-basis: calc(100% - 23px); margin-left: 23px; }
    .emp-history-count { margin-left: auto; }
}

.emp-document-summary { align-items: center; background: #f8f9fb; border: 1px solid var(--emp-border); border-radius: 8px; display: grid; gap: 5px 14px; grid-template-columns: minmax(180px, .5fr) minmax(220px, 1fr) auto; margin-bottom: 12px; padding: 10px 12px; }
.emp-document-summary strong, .emp-document-summary span { display: block; }
.emp-document-summary strong { font-size: 11.5px; font-weight: 650; }
.emp-document-summary span, .emp-document-summary small { color: var(--emp-muted); font-size: 9.75px; }
.emp-document-summary small { grid-column: span 2; }
.emp-new-document-type { grid-column: 3; grid-row: 1 / span 2; white-space: nowrap; }
.emp-document-progress { background: #e4e7eb; border-radius: 99px; height: 7px; overflow: hidden; }
.emp-document-progress span { background: #36a873; border-radius: inherit; height: 100%; transition: width .2s ease; }
.emp-document-list { border: 1px solid var(--emp-border); border-radius: 8px; overflow: hidden; }
.emp-document-category + .emp-document-category { border-top: 1px solid var(--emp-border); }
.emp-document-category-header { align-items: center; background: #fcfcfc; display: grid; gap: 10px; grid-template-columns: 28px minmax(180px, 1fr) auto; min-height: 54px; padding: 8px 10px; }
.emp-document-category.is-complete .emp-document-category-header { background: #fbfdfc; }
.emp-document-category-empty { color: #9a9b9c; font-size: 9.75px; padding: 0 10px 9px 48px; }
.emp-document-attachments { border-top: 1px solid #f0f0f0; margin-left: 48px; }
.emp-document-attachment { align-items: center; display: grid; gap: 10px; grid-template-columns: minmax(220px, 1fr) auto; min-height: 47px; padding: 6px 10px 6px 0; }
.emp-document-attachment + .emp-document-attachment { border-top: 1px solid #f3f3f3; }
.emp-new-type-panel { align-items: end; background: #fff; border: 1px solid #cbd8f0; border-radius: 8px; display: grid; gap: 8px; grid-template-columns: minmax(260px, 1fr) auto auto; margin-bottom: 12px; padding: 11px 12px; }
.emp-document-row { align-items: center; display: grid; gap: 10px; grid-template-columns: 28px minmax(175px, .7fr) minmax(230px, 1.2fr) auto; min-height: 57px; padding: 8px 10px; }
.emp-document-row + .emp-document-row { border-top: 1px solid #f0f0f0; }
.emp-document-row:hover { background: #fcfcfc; }
.emp-document-check { align-items: center; background: #f1f2f3; border: 1px solid #dedede; border-radius: 50%; color: #9a9b9c; display: flex; height: 22px; justify-content: center; width: 22px; }
.emp-document-row.is-complete .emp-document-check { background: #e8f6ef; border-color: #b8dfcb; color: #287a55; }
.emp-document-kind strong, .emp-document-kind span, .emp-document-file strong, .emp-document-file span { display: block; }
.emp-document-kind strong { font-size: 11.5px; font-weight: 600; }
.emp-document-kind span { color: #9a9b9c; font-size: 9.5px; margin-top: 1px; }
.emp-document-row.is-complete .emp-document-kind span { color: #287a55; }
.emp-document-file { align-items: center; display: flex; gap: 8px; min-width: 0; }
.emp-document-file > i { color: #6281b9; font-size: 18px; }
.emp-document-file > div { min-width: 0; }
.emp-document-file strong { font-size: 10.75px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emp-document-file span, .emp-document-empty { color: #9a9b9c; font-size: 9.5px; }
.emp-document-actions { align-items: center; display: flex; gap: 5px; justify-content: flex-end; }
.emp-doc-action, .emp-doc-upload, .emp-doc-confirm { align-items: center; background: #fff; border: 1px solid #d7d8d9; border-radius: 6px; color: #565759; cursor: pointer; display: inline-flex; font-size: 10px; font-weight: 600; gap: 5px; height: 29px; justify-content: center; padding: 0 8px; text-decoration: none; }
.emp-doc-action { padding: 0; width: 29px; }
.emp-doc-action:hover, .emp-doc-upload:hover { background: #f4f5f6; color: #315ca8; }
.emp-doc-action.is-danger:hover { background: #fceeee; border-color: #efc5c5; color: #b42318; }
.emp-doc-upload input { display: none; }
.emp-doc-upload.is-loading { cursor: wait; opacity: .7; }
.emp-doc-upload .spinner-border { height: 12px; width: 12px; }
.emp-doc-confirm { background: #b42318; border-color: #b42318; color: #fff; }
.emp-doc-confirm:hover { background: #961c13; }

@media (max-width: 1050px) {
    .emp-filter-card { grid-template-columns: 1fr 1fr; }
    .emp-editor-shell { grid-template-columns: 1fr; }
    .emp-form-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); position: static; }
    .emp-form-nav-item small { display: none; }
    .emp-report-row { grid-template-columns: 1fr 1fr; }
    .emp-report-label { grid-column: span 2; }
    .emp-document-row { grid-template-columns: 28px minmax(170px, .8fr) minmax(210px, 1fr); }
    .emp-document-actions { grid-column: 2 / span 2; justify-content: flex-start; }
    .emp-document-attachment .emp-document-actions { grid-column: auto; justify-content: flex-end; }
    .emp-document-summary { grid-template-columns: minmax(180px, .5fr) minmax(220px, 1fr); }
    .emp-new-document-type { grid-column: span 2; grid-row: auto; justify-self: start; }
}

@media (max-width: 760px) {
    .emp-page-header { align-items: stretch; flex-direction: column; gap: 12px; }
    .emp-filter-card { grid-template-columns: 1fr; }
    .emp-form-nav { grid-template-columns: repeat(2, 1fr); }
    .emp-subform-grid { grid-template-columns: 1fr; }
    .emp-photo-panel { margin-bottom: 6px; }
    .emp-fields-grid, .emp-fields-wide { grid-template-columns: 1fr; }
    .emp-span-2, .emp-span-4 { grid-column: span 1; }
    .emp-form-card-header > span { display: none; }
    .emp-form-footer { align-items: stretch; flex-direction: column; gap: 8px; }
    .emp-form-footer .ms-auto { margin-left: 0 !important; }
    .emp-report-row { grid-template-columns: 1fr; }
    .emp-report-label { grid-column: span 1; }
    .emp-payroll-summary { grid-template-columns: 1fr; }
    .emp-document-summary { grid-template-columns: 1fr; }
    .emp-document-summary small { grid-column: span 1; }
    .emp-new-document-type { grid-column: span 1; }
    .emp-new-type-panel { grid-template-columns: 1fr; }
    .emp-document-category-header { grid-template-columns: 28px minmax(0, 1fr); }
    .emp-document-category-header .emp-doc-upload { grid-column: 2; justify-self: start; }
    .emp-document-attachments { margin-left: 38px; }
    .emp-document-attachment { grid-template-columns: 1fr; }
    .emp-document-attachment .emp-document-actions { grid-column: 1; }
    .emp-document-row { grid-template-columns: 28px minmax(0, 1fr); }
    .emp-document-file, .emp-document-actions { grid-column: 2; }
}

.emp-permission-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.emp-permission-fieldset:disabled {
    opacity: .82;
}

.emp-readonly-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #7c5c09 !important;
    background: #fff8dc;
    border: 1px solid #f0dda1;
    border-radius: 999px;
    padding: .35rem .65rem;
    font-weight: 700;
}

@media (max-width: 460px) {
    .emp-form-nav { grid-template-columns: 1fr; }
    .emp-page-header .emp-primary-button { width: 100%; }
    .emp-document-attachments { margin-left: 0; }
}
