/* Scoped to reconstructed department/audit pages; shared Console shell is preserved. */
.baseline-page{color:#292f33;height:100vh;overflow:hidden}
.baseline-page .topbar{height:64px;border-bottom:0}
.baseline-page .topbar h1{font-weight:600}
.baseline-toolbar{display:flex;align-items:center;gap:16px;padding:3px 22px 8px;height:47px}
.baseline-search{display:flex;align-items:center;gap:8px;width:450px;height:36px;padding:0 16px;background:#f6f7f8;border-radius:3px;flex-shrink:0}
.baseline-search img{width:18px;height:18px;opacity:.65}
.baseline-search input{width:100%;min-width:0;height:100%;border:0;outline:0;background:transparent;color:#292f33;font-size:14px;padding:0}
.baseline-search input::placeholder{color:#9ba2a7}
.baseline-toolbar>.primary{margin-left:auto;white-space:nowrap;height:36px;min-width:120px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;cursor:pointer}
.baseline-pager{height:47px;display:flex;align-items:center;justify-content:flex-end;gap:7px;padding:0 20px;color:#42484c;font-size:14px}
.baseline-pager label{display:flex;align-items:center;gap:6px;margin-right:5px;white-space:nowrap}
.baseline-pager select{width:54px;height:30px;border:1px solid #e1e1e1;border-radius:4px;background:#fff;color:#333;padding:0 5px}
.baseline-pager input{width:26px;height:30px;text-align:center;border:1px solid #ddd;border-radius:4px;padding:0;color:#777;background:#fff}
.baseline-pager button{width:28px;height:29px;display:grid;place-items:center;padding:0 0 3px;font-size:27px;line-height:1;border:0;border-radius:4px;background:#248cf0;color:#fff;cursor:pointer}
.baseline-pager button:disabled{background:#d5d7d8;cursor:default}
.baseline-table-scroll{overflow:auto;height:calc(100vh - 158px);border-top:1px solid #ddd;padding:0 12px 24px}
.baseline-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}
.baseline-table th{text-align:left;font-weight:400;color:#859096;font-size:12px;height:35px;padding:8px 22px;border-bottom:1px solid #e8e9ea}
.baseline-table td{height:48px;padding:8px 22px;border-bottom:1px solid #e2e4e6;overflow-wrap:anywhere}
.baseline-table .outline{font-size:14px;height:30px;padding:0 10px;margin:0;border-color:#dedfe0;border-radius:3px;cursor:pointer;font-weight:400}
.department-table th:nth-child(-n+3){width:25%}
.department-table td:last-child,.department-members-table td:last-child{text-align:right;padding-right:28px}
.department-table a{color:#228dcf;text-decoration:underline}
.department-title{color:#007fbd;font-weight:700}
.department-fields{padding:20px 22px;border-top:1px solid #ddd}
.department-fields>label{display:grid;grid-template-columns:15% 1fr;align-items:start;min-height:61px}
.department-fields>label>span{font-size:16px;font-weight:600;padding-top:10px}
.department-fields input{height:42px;width:100%;border:0;border-radius:4px;padding:0 11px;background:#e4e5e5;color:#222;font-size:16px}
.department-fields input:focus{outline:1px solid #248cf0}
#departmentError{color:#c84242;display:block;font-size:12px;padding-top:3px}
.department-actions{justify-content:flex-start;height:64px;padding:0 22px;gap:10px}
.department-actions button{width:120px;height:32px;cursor:pointer}
.department-actions .cancel{color:#777;background:#fff;border:1px solid #ddd}
.department-actions button:disabled{background:#fff;border:1px solid #eee;color:#cbd0d3;cursor:default}
.department-actions .danger-outline{margin-left:auto;border:1px solid #bd4545;background:#fff;color:#bd4545}
.department-delete-dialog{position:relative;width:660px;max-width:calc(100vw - 40px);min-height:250px;background:white;padding:20px 24px;border-radius:4px;box-shadow:0 20px 36px #0004}
.department-delete-dialog h2{font-size:20px;font-weight:500;margin:0 0 36px}
.department-delete-dialog p{font-size:16px;margin:0 0 16px}
.department-delete-dialog .dialog-actions{margin-top:54px;display:flex;justify-content:flex-end;gap:13px}
.department-delete-dialog .dialog-actions button{width:120px;height:32px;border:0;border-radius:4px;color:#fff;cursor:pointer}
.department-delete-dialog .danger{background:#c84141}.department-delete-dialog .cancel{background:#bfbfbf}
.audit-page .baseline-toolbar{height:56px;border-bottom:1px solid #eee;padding:6px 20px 10px;gap:16px}
.audit-toolbar .baseline-search{width:372px;height:40px;padding:0 14px}
.audit-filter{display:flex;align-items:center;gap:8px;white-space:nowrap;color:#879297;font-size:14px}
.audit-filter-anchor{position:relative}
.audit-filter-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:104px;height:36px;padding:0 15px;background:#fff;border:1px solid #dedfe0;border-radius:3px;cursor:pointer;color:#555;overflow:hidden}
.audit-filter-trigger img{width:20px;height:20px;flex-shrink:0}
.audit-toolbar>.primary{min-width:102px;height:40px;font-weight:600}
.audit-toolbar>.primary:disabled{background:#d3d5d7;cursor:default}
.audit-secondary{height:78px;display:flex;align-items:center;justify-content:space-between;padding-left:22px}
.audit-dates{display:flex;align-items:center;gap:10px;color:#849095}
.audit-date{position:relative}
.audit-date>input{cursor:pointer;width:138px;height:36px;border:1px solid #e0e1e2;border-radius:4px;background:#fff url('assets/ic_caret_down.svg') no-repeat right 6px center;background-size:20px;padding:0 12px;font:14px Arial;color:#222}
.audit-date>input:focus{outline:1px solid #78b4e2;box-shadow:0 0 3px #78b4e2}
.audit-page .baseline-table-scroll{height:calc(100vh - 198px);border-top:0;padding:0 10px 24px}
.audit-table th,.audit-table td{padding:8px;vertical-align:middle}
.audit-table th{height:40px;font-size:12px;font-weight:600}
.audit-table th button{padding:0;border:0;background:none;color:inherit;cursor:pointer;font-size:12px;font-weight:600}
.sort-arrow{margin-left:8px;font-size:10px;color:#aab0b4}.sort-arrow.active{color:#248cf0}
.audit-table td{line-height:24px}.audit-table td small{display:block;color:#a3abb0;font-size:14px}
.audit-detail{white-space:pre-wrap}
.audit-filter-popover{position:absolute;top:36px;left:0;width:450px;max-width:calc(100vw - 32px);background:#fff;color:#333;border-radius:8px;box-shadow:0 3px 12px #0004;z-index:45;overflow:hidden;white-space:normal}
.audit-filter-popover header{height:58px;padding:17px 16px;display:flex;align-items:center;font-weight:600}
.audit-filter-popover header button{margin-left:auto;border:0;background:transparent;width:30px;height:30px;cursor:pointer}
.audit-filter-popover header img{width:18px;height:18px}
.audit-filter-options{max-height:min(570px,calc(100vh - 240px));overflow:auto;padding:8px 48px 8px 40px;scrollbar-width:thin}
.audit-filter-options label{height:41px;display:flex;align-items:center;justify-content:space-between;gap:18px;cursor:pointer}
.audit-filter-options input,.audit-filter-popover footer input{width:16px;height:16px;accent-color:#248cf0;margin:0;flex-shrink:0}
.audit-filter-popover footer{height:70px;border-top:1px solid #eee;padding:16px 20px 16px 26px;display:flex;align-items:center;justify-content:space-between}
.audit-filter-popover footer label{display:flex;align-items:center;gap:12px;cursor:pointer}
.audit-filter-popover footer button{width:104px;height:32px;padding:0;cursor:pointer}
.audit-calendar{position:absolute;left:-52px;top:46px;width:242px;background:white;border:1px solid #c9c9c9;border-radius:4px;z-index:40;color:#111;font:13px Arial;overflow:hidden}
.audit-calendar header{height:30px;display:flex;align-items:center;justify-content:center;background:#f0f0f0;position:relative}
.audit-calendar header strong{font-size:14px}.audit-calendar header button{position:absolute;left:9px;width:22px;height:24px;border:0;background:transparent;color:#aaa;font-size:24px;cursor:pointer}.audit-calendar header button:last-child{left:auto;right:9px}
.calendar-week{display:grid;grid-template-columns:repeat(7,1fr);height:29px;align-items:center;text-align:center;background:#f0f0f0;border-bottom:1px solid #bbb;padding:0 6px}
.calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;padding:9px}
.calendar-days button{border:0;background:#fff;font:12px Arial;height:27px;width:27px;padding:0;border-radius:4px;cursor:pointer;color:#111}
.calendar-days button.selected{background:#2875a5;color:#fff;font-weight:700}.calendar-days button:disabled,.calendar-days button.outside{color:#ccc;cursor:default}.calendar-days button:not(:disabled):hover{background:#e5edf2}
@media(max-width:1450px){.audit-toolbar .baseline-search{width:clamp(220px,24vw,372px)}.audit-page .baseline-toolbar{gap:10px}.audit-filter{gap:5px}.audit-filter-trigger{width:98px;padding:0 9px}.audit-filter-popover{left:auto;right:0}}
@media(max-width:1200px){.audit-page .baseline-toolbar{height:auto;min-height:96px;flex-wrap:wrap}.audit-secondary{height:78px}.audit-page .baseline-table-scroll{height:calc(100vh - 238px)}.department-fields>label{grid-template-columns:180px 1fr}.audit-table{min-width:1000px}}

.baseline-pager button img{width:24px;height:24px}.baseline-search img{width:14px;height:14px;opacity:1}.department-form-page .topbar{height:68px}
.baseline-search-clear{padding:0;border:0;background:none;width:18px;height:22px;cursor:pointer;flex-shrink:0}.baseline-search-clear img{width:12px;height:12px}.baseline-search-clear[hidden]{display:none}.department-leave-dialog{min-height:205px;padding-top:32px}
.audit-secondary>.audit-dates,.audit-secondary>#auditPager{transform:translateY(4px)}.calendar-days button.outside:not(:disabled){color:#111;cursor:pointer}
