/* Reuse the customer workspace scale, cards, controls and colors without CSS zoom. */
.notice-workspace .nw-toolbar{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;margin-bottom:10px;background:white;border:1px solid var(--cw-border);border-radius:6px;gap:12px;}
.nw-tabs,.nw-filters{display:flex;gap:6px;flex-wrap:wrap;}
.notice-workspace button[aria-pressed=true]{background:#edf6f3;color:var(--cw-brand);border-color:#9ebdb4;}
.nw-layout{display:grid;grid-template-columns:minmax(340px,.9fr) minmax(0,1.4fr);gap:10px;align-items:start;}
.nw-list-tools{padding:10px 12px;border-bottom:1px solid var(--cw-border);display:grid;gap:8px;}
.notice-workspace .nw-list-tools input{text-align:left;text-align-last:auto;}
.notice-workspace .nw-list>button{display:block;width:100%;padding:12px;border:0;border-bottom:1px solid var(--cw-border);border-radius:0;text-align:left;white-space:normal;}
.nw-list>button>div{display:flex;align-items:center;gap:8px;}
.nw-list strong{font-size:15px;font-weight:600;flex:1;}
.nw-list small{display:block;margin-top:5px;line-height:1.5;}
.nw-tag{font-size:12px;padding:3px 7px;background:#edf6f3;color:var(--cw-brand);border:1px solid #c8d9d2;border-radius:5px;white-space:nowrap;}
.nw-unread{font-size:12px;color:#a6500d;white-space:nowrap;}
.nw-detail-heading{padding:16px 18px 12px;}
.notice-workspace .nw-detail-heading h2{font-size:22px;font-weight:700;margin-bottom:6px;}
.nw-detail-heading>span{font-size:13px;color:var(--cw-muted);}
.nw-target-summary{display:flex;gap:14px;padding:10px 18px;border-block:1px solid var(--cw-border);background:#f5f8f7;font-size:14px;}
.nw-target-summary>span{flex-shrink:0;color:var(--cw-muted);}
.nw-target-summary strong{font-weight:400;}
.notice-workspace .nw-body{padding:20px 18px;min-height:200px;font-size:16px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;}
.nw-read{padding:10px 18px;border-top:1px solid var(--cw-border);font-size:13px;color:var(--cw-muted);}
.nw-read summary{cursor:pointer;}
.nw-detail>footer{display:flex;justify-content:flex-end;padding:10px 18px;border-top:1px solid var(--cw-border);}
.employee-dialog:has(.nw-compose){width:min(820px,calc(100vw - 32px));font-size:14px;color:#263d48;}
.nw-compose{padding:18px 22px;display:grid;gap:14px;}
.nw-compose label{display:grid;gap:5px;font-size:14px;font-weight:500;}
.nw-compose-fields{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;}
.employee-dialog .nw-compose :is(input,select,textarea){width:100%;min-width:0;height:32px;padding:4px 7px;font:inherit;font-size:14px;color:#263d48;background:white;border:1px solid #cfdbdf;border-radius:6px;}
.employee-dialog .nw-compose textarea{height:170px;resize:vertical;line-height:1.6;}
.nw-targets{border:1px solid #dce5e9;border-radius:8px;padding:12px;min-width:0;}
.nw-targets legend{font-size:14px;padding:0 5px;}
.nw-target-tools{display:flex;align-items:center;gap:8px;margin-bottom:10px;}
.nw-target-tools>span{margin-right:auto;font-size:13px;color:#647982;}
.nw-compose button{font:inherit;font-size:14px;padding:5px 9px;min-height:30px;border:1px solid #dce5e9;border-radius:6px;background:white;color:#263d48;cursor:pointer;}
.nw-brand-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.nw-brand-grid>section{border:1px solid #dce5e9;border-radius:6px;overflow:hidden;}
.nw-compose .nw-brand-title{display:flex;align-items:center;padding:10px;background:#f0f6f4;border-bottom:1px solid #dce5e9;gap:8px;}
.nw-brand-title small{margin-left:auto;color:#647982;font-size:12px;font-weight:400;}
.nw-brand-grid>section>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;}
.nw-compose .nw-branch{display:flex;align-items:center;gap:8px;font-weight:400;cursor:pointer;}
.employee-dialog .nw-compose input[type=checkbox]{width:17px;height:17px;accent-color:#24695c;flex-shrink:0;}
.nw-compose footer{display:flex;justify-content:flex-end;gap:8px;padding-top:12px;border-top:1px solid #dce5e9;}
.nw-compose .nw-submit{background:#24695c;color:white;border-color:#24695c;}
.nw-compose button:disabled{opacity:.45;cursor:not-allowed;}
.nw-compose :is(button,input,textarea,select):focus-visible{outline:2px solid #75afa0;outline-offset:2px;}
/* Employee typography now uses actual customer-size values, not a 125% wrapper. */
.erp-ui .content:has(.attendance-v4){background:#f3f6f8;}
.attendance-v4{font-size:16px;color:#263d48;}
.attendance-v4 .page-heading h1{font-size:23px!important;font-weight:700!important;}
.attendance-v4 .attendance-v4-card>header strong,.attendance-v4 .attendance-work-head h2{font-size:16px!important;font-weight:600!important;color:#263d48!important;}
.attendance-v4 .attendance-v4-row,.attendance-v4 .attendance-v4-row .staff-identity strong,.attendance-v4 .attendance-studio-menu>button strong{font-size:14px!important;color:#263d48!important;}
.attendance-v4 .attendance-v4-row{min-height:38px;}
.attendance-v4 .attendance-v4-head{font-size:12px;color:#647982;}
.attendance-v4 .employee-detail-button{font-size:13px;height:30px;}
.attendance-v4 .monthly-attendance-row :is(strong,time),.attendance-v4 .attendance-context-bar button{font-size:14px!important;}
.attendance-v4 .attendance-overview-grid span{font-size:14px;}
.attendance-v4 .attendance-studio-menu>button small,.attendance-v4 .attendance-work-head p{font-size:12px;color:#647982;}
@media(max-width:1000px){.nw-layout{grid-template-columns:1fr;}.nw-list{max-height:330px;overflow:auto;}}
@media(max-width:650px){.nw-brand-grid,.nw-compose-fields{grid-template-columns:1fr;}.nw-toolbar,.nw-target-tools{flex-wrap:wrap;}.nw-compose{padding:14px;}.nw-list>button>div{flex-wrap:wrap;}}
/* Brand and branch navigation stays in a compact left rail beside employee data. */
.attendance-v4 .attendance-page-heading h1{font-size:50px!important;line-height:1.1;}
.attendance-v4 .attendance-management-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;align-items:start;}
.employee-branch-lines{display:grid;grid-template-columns:1fr;gap:10px;margin:0;position:sticky;top:18px;}
.employee-branch-lines>div{display:grid;grid-template-columns:1fr;gap:0;min-width:0;overflow:hidden;background:white;border:1px solid #dce5e9;border-radius:8px;}
.employee-branch-lines strong{min-width:0;padding:12px 14px;font-size:14px;color:#263d48;background:#f3f7f6;border-bottom:1px solid #dce5e9;}
.employee-branch-lines>div>span{display:none;}
.employee-branch-lines button{width:100%;min-height:40px;padding:9px 14px;text-align:left;font-size:13px;border:0;border-top:1px solid #edf1f2;border-radius:0;background:white;color:#526870;cursor:pointer;}
.employee-branch-lines>div>button:first-of-type{border-top:0;}
.employee-branch-lines button:hover{background:#f7faf9;color:#24695c;}
.employee-branch-lines button[aria-pressed=true]{background:#edf6f3;color:#24695c;font-weight:600;box-shadow:inset 3px 0 0 #24695c;}
.attendance-v4 .attendance-work-head{min-height:58px;}
.attendance-v4 .attendance-overview-grid article{min-height:86px;padding:16px;}
.attendance-v4 .attendance-v4-card{margin-top:16px;}
.attendance-v4 .attendance-v4-card>header{min-height:48px;padding:12px 14px;}
.attendance-v4 .attendance-v4-head{min-height:40px;}
.attendance-v4 .attendance-v4-row{min-height:48px;}
.attendance-v4 .attendance-history-card .monthly-attendance-head{min-height:40px;}
.attendance-v4 .attendance-history-card .monthly-attendance-row{min-height:46px;}
.attendance-v4 .attendance-history-card .monthly-attendance-table{max-height:450px;}
/* Board first: compare notices in rows, then read the selected notice below. */
/* Reference layout: generous lead-in, aligned branch rail and employee summary. */
.erp-ui .content:has(.master-attendance-v3){padding-top:26px!important;padding-bottom:80px!important;background:#eef4f6;}
.master-attendance-v3.attendance-v4{width:auto;margin-left:clamp(0px,calc((100vw - 1280px) * .4),300px);margin-right:0;}
.master-attendance-v3.attendance-v4 .attendance-page-heading{margin:0 0 64px;padding:0 0 12px;min-height:0;border-bottom:1px solid #dce5e9;}
.master-attendance-v3.attendance-v4 .attendance-page-heading h1{font-weight:700;}
.master-attendance-v3.attendance-v4 .attendance-management-layout{grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start;}
.master-attendance-v3 .attendance-work{min-width:0;}
.master-attendance-v3 .attendance-overview-grid{margin-top:0;}
.master-attendance-v3 .employee-branch-lines{margin-top:0;}
.master-attendance-v3 .attendance-history-card>header{gap:12px;flex-wrap:wrap;}
@media(max-width:1200px){
 .master-attendance-v3.attendance-v4{margin-left:0;}
 .master-attendance-v3.attendance-v4 .attendance-management-layout{grid-template-columns:190px minmax(0,1fr);gap:16px;}
 .master-attendance-v3.attendance-v4 .attendance-page-heading{margin-bottom:36px;}
}
@media(max-width:900px){
 .master-attendance-v3.attendance-v4 .attendance-management-layout{grid-template-columns:1fr;}
 .master-attendance-v3.attendance-v4 .attendance-page-heading{margin-bottom:24px;}
}
.nw-board{display:grid;gap:16px;}
.nw-board .cw-card>header{padding:12px 16px;min-height:48px;}
.nw-board-search{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 16px;border-bottom:1px solid var(--cw-border);}
.notice-workspace .nw-board-search input{max-width:350px;text-align:left;text-align-last:auto;height:36px;}
.nw-table-scroll{overflow:auto;max-height:360px;}
.nw-notice-table{width:100%;border-collapse:collapse;}
.notice-workspace .nw-notice-table th{padding:10px 16px;background:#f5f8f7;font-size:13px;color:var(--cw-muted);text-align:left;}
.notice-workspace .nw-notice-table td{padding:10px 16px;font-size:14px;vertical-align:middle;}
.nw-notice-table th:nth-child(2){width:42%;}
.nw-notice-table th:nth-child(3){width:26%;}
.nw-notice-table td:nth-child(4),.nw-notice-table td:nth-child(5){white-space:nowrap;}
.notice-workspace .nw-notice-table td>button{background:transparent;border:0;padding:4px 0;white-space:normal;text-align:left;font-size:15px;font-weight:600;}
.nw-notice-table tr.selected{background:#edf6f3;}
.nw-notice-table tr:hover{background:#f4f8f7;}
.nw-seen{color:#647982;font-size:13px;}
.nw-reading>header>div{display:flex;gap:10px;align-items:center;}
.notice-workspace .nw-reading>header h2{font-size:22px;line-height:1.5;}
.nw-reading-meta{padding:12px 18px;display:flex;gap:12px 30px;flex-wrap:wrap;font-size:13px;color:var(--cw-muted);border-bottom:1px solid var(--cw-border);}
.notice-workspace .nw-reading-body{padding:24px;min-height:200px;max-width:1000px;font-size:16px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;}
.nw-reading footer{padding:12px 18px;background:#f8faf9;border-top:1px solid var(--cw-border);font-size:13px;color:var(--cw-muted);}
@media(max-width:1000px){.attendance-v4 .attendance-management-layout{grid-template-columns:1fr;}.employee-branch-lines{grid-template-columns:repeat(2,minmax(0,1fr));position:static;}}
@media(max-width:650px){.nw-board-search{align-items:stretch;flex-direction:column;}.notice-workspace .nw-board-search input{max-width:none;}.nw-notice-table{min-width:650px;}.nw-reading>header{flex-wrap:wrap;}.employee-branch-lines{grid-template-columns:1fr;}.attendance-v4 .attendance-page-heading h1{font-size:34px!important;}}
