/* Scoped spreadsheet-like personnel workspace; no editable/movable data cells. */
#mxControls, .mx-dialog, .mx-summary { font-family: inherit; font-size:13px; color:#453727; }
#mxControls button, #mxControls select, .mx-dialog button, .mx-dialog input, .mx-dialog select, .mx-table button { font:inherit; }
#mxControls button, .mx-dialog button { border:1px solid #dfc9ac; background:#fffaf3; color:#745021; border-radius:9px; padding:7px 11px; cursor:pointer; }
#mxControls button:hover, .mx-dialog button:hover { background:#f2e6d3; }
#mxControls button:disabled, .mx-dialog button:disabled { opacity:.45; cursor:default; }
#mxControls select, .mx-dialog select, .mx-dialog input:not([type=checkbox]) { border:1px solid #dfc9ac; border-radius:7px; background:white; color:#453727; padding:8px; min-height:34px; max-width:100%; }
#mxControls input[type=checkbox], .mx-dialog input[type=checkbox], .mx-table input[type=checkbox] { accent-color:#ac782e; width:16px; height:16px; vertical-align:middle; }
.mx-controls { padding:8px 14px; border-bottom:1px solid #eadcc9; background:#fffdf9; flex-shrink:0; }
.mx-bar { display:flex; flex-wrap:wrap; gap:7px; align-items:center; }
.mx-result-count { margin-left:auto; color:#000; font-size:11px; }
.mx-header-controls { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
#mxHeaderControls .personnel-custom-list-launch { display:inline-flex; align-items:center; justify-content:center; gap:6px; cursor:pointer; font-family:inherit; }
.mx-header-paging { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; font-family:inherit; font-size:12px; color:#825a2a; }
.mx-header-paging button { width:30px; height:34px; border:1px solid #dfc9ac; border-radius:9px; background:#fffaf3; color:#825a2a; cursor:pointer; font:inherit; }
.mx-header-paging button:disabled { opacity:.4; cursor:default; }
#mxControls[hidden] { display:none !important; }
#mxAdvanced { margin-top:8px; border-top:1px solid #eadcc9; padding-top:8px; }
#mxAdvanced[hidden], .mx-table [hidden] { display:none !important; }
.mx-bar label { display:flex; gap:8px; align-items:center; margin:0; }
.mx-bar label select { max-width:245px; }
.mx-subbar { margin-top:7px; color:#796b5a; font-size:12px; }
.mx-paging { margin-left:auto; display:flex; align-items:center; gap:8px; }
.mx-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:5px; max-height:100px; overflow:auto; }
.mx-chip-group { display:inline-flex; flex-wrap:wrap; align-items:center; gap:5px; border:1px dashed #ccb592; border-radius:9px; padding:4px; }
#mxControls .mx-chip { padding:4px 8px; font-size:12px; background:#f4ecdf; white-space:normal; text-align:left; }
#mxMessage { color:#a73723; margin-top:4px; }
.mx-summary { display:flex; flex-wrap:wrap; gap:12px; align-items:center; padding:12px 15px; background:#faf6ee; border-bottom:1px solid #e4d6c2; }
.mx-summary small { flex-basis:100%; color:#887965; }
#hrDocMatrixModal .mx-table { border-collapse:collapse; table-layout:fixed; width:max-content; min-width:100%; }
.mx-table th, .mx-table td { box-sizing:border-box; overflow:hidden; text-overflow:ellipsis; }
#hrDocMatrixModal .mx-table th { z-index:4 !important; height:44px; }
#hrDocMatrixModal .mx-table th[style*="left:"] { z-index:5 !important; }
.mx-table th span:first-child { display:inline-block; max-width:100%; overflow:hidden; text-overflow:ellipsis; vertical-align:middle; }
.mx-table th button { border:0; background:transparent; color:#976d35; padding:2px 5px; cursor:pointer; }
.mx-table th>button { position:absolute; right:7px; top:50%; transform:translateY(-50%); z-index:2; opacity:0; }
.mx-table th:hover>button, .mx-table th:focus-within>button, .mx-table th>button.mx-filtered { opacity:1; background:var(--charcoal,#1f1e1b); }
.mx-table th button.mx-filtered { background:#a7732d; color:white; border-radius:4px; }
.mx-table th[draggable=true] { cursor:grab; }
.mx-table .mx-select { width:42px; min-width:42px; max-width:42px; position:sticky; left:0; z-index:3; text-align:center; padding:4px; }
.mx-table td.mx-number { text-align:right; font-variant-numeric:tabular-nums; }
.mx-table button { cursor:pointer; }
#hrDocMatrixModal .mx-table .hr-doc-matrix-person-btn { font-weight:700; }
.mx-table .mx-cell-link { border:0; background:transparent; padding:0; color:inherit; width:100%; overflow:hidden; text-overflow:ellipsis; text-align:inherit; }
.mx-table .mx-cell-link:hover { text-decoration:underline; }
.mx-table .mx-group button { border:0; padding:0; background:transparent; font:inherit; color:inherit; text-transform:inherit; text-align:left; }
#hrDocMatrixModal .mx-table .hr-doc-matrix-action-cell { position:sticky; right:0; z-index:3; }
#hrDocMatrixModal .mx-table th.hr-doc-matrix-action-cell { z-index:6 !important; }
.mx-table.mx-wrap td { white-space:normal; overflow-wrap:anywhere; line-height:1.5; padding-top:13px; padding-bottom:13px; }
.mx-resize { position:absolute; top:0; right:0; width:7px; height:100%; cursor:col-resize; touch-action:none; background:transparent; }
.mx-resize:hover { background:#c8a367; }
@media(hover:none) { .mx-table th>button { opacity:1; top:auto; bottom:0; transform:none; padding:0 3px; font-size:10px; } }
.mx-dialog { width:min(1120px,94vw); max-height:90vh; padding:0; border:1px solid #d9c4a5; border-radius:20px; box-shadow:0 20px 80px #0003; background:#fffcf7; margin:auto; }
.mx-dialog::backdrop { background:rgba(28,22,14,.45); }
.mx-dialog[open] { display:flex; flex-direction:column; }
.mx-dialog header, .mx-dialog footer { display:flex; gap:12px; align-items:center; justify-content:space-between; padding:16px 22px; background:#f7efe3; flex-shrink:0; }
.mx-dialog h2 { font-family:inherit; font-size:20px; margin:0; }
.mx-dialog header>button { margin-left:auto; }
.mx-dialog nav { display:flex; flex-wrap:wrap; gap:7px; padding:10px 22px; border-bottom:1px solid #e4d4bc; }
.mx-panel-body { padding:18px 22px; overflow:auto; min-height:100px; }
.mx-panel-body p { margin:8px 0 13px; color:#8a7961; }
.mx-column-toolbar { padding:14px; border:1px solid #e6d2b3; border-radius:14px; background:linear-gradient(135deg,#f8ecd7,#fffaf2); margin-bottom:12px; }
.mx-column-toolbar>input { width:100%; margin-bottom:10px; box-sizing:border-box; }
.mx-dialog .mx-column-actions>button:first-child { background:#a87531; color:white; border-color:#a87531; }
.mx-dialog .mx-column-actions>button:nth-child(2) { background:#fff0eb; color:#a0472d; border-color:#e5b9a8; }
.mx-column-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.mx-column-global-actions { margin-bottom:12px; }
.mx-column-section { margin-bottom:12px; }
.mx-column-section-title { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 2px; margin-bottom:8px; border-bottom:1px solid #e5d9c8; color:#87633d; text-transform:uppercase; }
.mx-column-section-title h3 { margin:0; font-size:12px; font-weight:700; }
.mx-column-section-title span { font-size:11px; font-weight:650; white-space:nowrap; }
.mx-column { display:flex; flex-direction:row; gap:6px; align-items:center; padding:6px 8px; min-height:36px; box-sizing:border-box; min-width:0; border:1px solid #e5d9c8; border-radius:8px; background:#fff; box-shadow:none; }
.mx-column:has([data-edit=visible]:checked) { border-color:#c99a5c; background:#fff5e6; box-shadow:none; }
.mx-column[hidden] { display:none; }
.mx-column>label:first-child { flex:1; min-width:0; font-weight:650; line-height:1.3; overflow-wrap:anywhere; }
.mx-column small { color:#8c7d69; display:block; padding-left:23px; }
.mx-column-options { display:flex; align-items:center; gap:4px; flex-wrap:nowrap; padding:0; border:0; flex-shrink:0; }
.mx-column-options>label { margin:0 auto 0 0; white-space:nowrap; font-size:12px; }
.mx-dialog .mx-column-options>input[type=number] { width:62px; min-width:0; padding:5px; box-sizing:border-box; }
.mx-dialog .mx-column-options>button { width:23px; min-height:26px; padding:2px; background:#fffaf2; }
.mx-column>label:first-child { font-size:12px; }
.mx-column-toolbar { padding:10px; background:#faf7f1; }
.mx-dialog .mx-column-actions>button { padding:6px 8px; font-size:12px; }
.mx-column>label { margin:0; }
.mx-rule-group { border:1px solid #cbb690; border-radius:14px; padding:16px; margin:8px 0 16px; min-width:0; background:linear-gradient(135deg,#f5ead6,#fffcf7); }
.mx-rule-group .mx-rule-group { background:#edf5f2; border-color:#adcdbf; }
.mx-dialog nav button[aria-pressed=true] { background:linear-gradient(135deg,#b98136,#946126); color:#fff; border-color:#946126; box-shadow:0 3px 8px #94612630; font-weight:700; }
.mx-rule-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.mx-rule-actions button:first-child,.mx-setting-card>button { background:#a87531; color:white; border-color:#a87531; }
.mx-empty { padding:18px; color:#76654e; text-align:center; border:1px dashed #d6c3a4; border-radius:10px; background:#fffaf2; }
.mx-rule>label { flex:1; min-width:150px; margin:0; display:flex; flex-direction:column; gap:6px; color:#57452d; font-size:13px; font-weight:650; }
.mx-rule>label select,.mx-rule>label input { width:100%; min-width:0; box-sizing:border-box; font-weight:400; background:white; }
.mx-rule>button { align-self:flex-end; background:#fff0ed; color:#a53e2c; }
.mx-setting-card { padding:16px; margin-bottom:14px; border:1px solid #dec7a5; border-radius:14px; background:linear-gradient(130deg,#fff7e9,#fffdf8); }
.mx-setting-card h3 { margin:0 0 14px; font-size:16px; color:#79501f; }
.mx-setting-group { background:linear-gradient(135deg,#e8f3ee,#f8fcfa); border-color:#b4d2c2; }
.mx-setting-group h3 { color:#2d6c51; }
.mx-setting-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.mx-setting-grid label { display:flex; flex-direction:column; gap:8px; min-width:0; font-size:13px; font-weight:650; }
.mx-setting-card select { max-width:100%; box-sizing:border-box; }
.mx-setting-card>label { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:12px 0; }
.mx-dialog :is(button,input,select):focus-visible { outline:3px solid #bd945f; outline-offset:2px; }
#hrDocMatrixModal .hr-doc-matrix-wrapper { touch-action:pan-x pan-y; }
.mx-rule-group legend { font-size:13px; max-width:100%; }
.mx-rule { display:flex; flex-wrap:wrap; gap:8px; margin:9px 0; align-items:flex-start; }
.mx-rule>select, .mx-rule>input { flex:1; min-width:130px; width:190px; }
.mx-rule>select[multiple] { min-height:95px; }
.mx-dialog footer .mx-primary { background:#a87531; color:white; }
#mxPanelError { color:#b13822; flex:1; }
.mx-panel-body>label { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:10px 0; }
@media(max-width:950px) { .mx-column-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
    .mx-setting-grid { grid-template-columns:1fr; }
    .mx-rule>label { min-width:100%; }
    .mx-column-list { grid-template-columns:1fr; }
    .mx-header-controls { justify-content:flex-start; gap:6px; }
    #hrDocMatrixModal .hr-doc-matrix-header-actions { justify-content:flex-start; }
    #hrDocMatrixModal #mxHeaderControls .personnel-custom-list-launch { font-size:11px; padding:7px 9px; }
    .mx-controls { padding:6px 8px; max-height:30vh; overflow:auto; }
    .mx-bar { gap:5px; } .mx-paging { margin-left:0; }
    .mx-dialog { width:96vw; max-height:94vh; }
    .mx-dialog header, .mx-dialog footer, .mx-dialog nav, .mx-panel-body { padding:12px; }
    .mx-column { gap:10px; }
    .mx-rule>select, .mx-rule>input { min-width:100%; width:100%; box-sizing:border-box; }
    .mx-rule-group { padding:8px; } .mx-dialog h2 { font-size:17px; }
}
