/* Twenty-inspired, quiet and compact employee workspace. */
.erp-ui .content:has(.attendance-v4){padding:20px 28px 64px!important;background:#fafafa;}
.attendance-v3,.employee-dialog{font-family:inherit;font-size:13px;line-height:1.45;font-weight:400;color:#414141;}
.attendance-v4{max-width:1570px!important;margin:0 auto;}
.attendance-v3 :is(button,input,select),.employee-dialog :is(button,input,select){font-family:inherit;font-weight:400;}
.attendance-v3 :is(strong,b),.employee-dialog :is(strong,b){font-weight:500;}
.attendance-v3 .page-heading h1{font-size:20px;font-weight:600;letter-spacing:-.4px;color:#292929;}
.attendance-v3 .page-heading .eyebrow{display:none;}
.attendance-v3 .page-heading p{font-size:12px;color:#858585;margin-top:4px;}
.attendance-v3 .attendance-month-nav{border:1px solid #e5e5e5;background:#fff;border-radius:5px;box-shadow:none;}
.attendance-v3 .attendance-month-nav strong{font-size:13px;font-weight:500;}
.attendance-v3 .attendance-month-nav button{min-height:28px;background:#fff;color:#777;border:0;font-size:15px;}
.attendance-v4 .attendance-context-bar{min-height:42px;padding:6px 10px;border:1px solid #e5e5e5;border-radius:6px;background:#fff;gap:10px;}
.attendance-v4 .attendance-context-bar button{height:28px;padding:0 10px;font-size:13px;font-weight:400;color:#666;border-color:#e5e5e5;border-radius:4px;}
.attendance-v4 .attendance-context-bar button.active{background:#f0f0f0;color:#333;border-color:#d8d8d8;}
.attendance-v4 .attendance-context-bar p,.attendance-v4 .attendance-context-bar>div>span{font-size:12px;color:#888;}
.attendance-v4 .attendance-context-bar p strong{font-size:12px;font-weight:500;color:#555;}
.attendance-v4 .attendance-management-layout{grid-template-columns:190px minmax(0,1fr);gap:12px;}
.attendance-v4 .attendance-studio-menu{border:1px solid #e5e5e5;border-radius:6px;background:#fff;}
.attendance-v4 .attendance-studio-menu>header{min-height:43px;padding:8px 10px;background:#fafafa;border-color:#eee;}
.attendance-v4 .attendance-studio-menu>header strong{font-size:13px;font-weight:500;color:#555;}
.attendance-v4 .attendance-studio-menu>header small{font-size:11px;color:#999;}
.attendance-v4 .attendance-studio-menu>button{min-height:46px;grid-template-columns:20px 1fr 12px;padding:6px 10px;gap:7px;border-color:#f0f0f0;color:#666;}
.attendance-v4 .attendance-studio-menu>button strong{font-size:13px;font-weight:500;}
.attendance-v4 .attendance-studio-menu>button small{font-size:11px;color:#999;}
.attendance-v4 .attendance-studio-menu>button>i{width:20px;height:20px;border-radius:4px;background:#f3f3f3;color:#888;font-size:11px;font-weight:400;}
.attendance-v4 .attendance-studio-menu>button.active,.attendance-v4 .attendance-studio-menu>button:hover{background:#f5f5f5;color:#333;}
.attendance-v4 .attendance-studio-menu>button.active>i{background:#e9e9e9;color:#555;}
.attendance-v4 .attendance-work-head{min-height:40px;padding:6px 2px;border:0;background:transparent;border-radius:0;}
.attendance-v4 .attendance-work-head h2{font-size:14px;font-weight:500;color:#444;}
.attendance-v4 .attendance-work-head p,.attendance-v4 .attendance-work-head>span{font-size:11px;color:#999;}
.attendance-v4 .attendance-overview-grid{gap:0;margin:8px 0;border:1px solid #e5e5e5;border-radius:6px;overflow:hidden;background:white;}
.attendance-v4 .attendance-overview-grid article{min-height:62px;padding:8px 12px;border:0;border-right:1px solid #ededed;border-radius:0;background:transparent;}
.attendance-v4 .attendance-overview-grid article:last-child{border-right:0;}
.attendance-v4 .attendance-overview-grid span{font-size:12px;color:#888;}
.attendance-v4 .attendance-overview-grid strong{display:inline-block;font-size:17px;font-weight:500;line-height:1.3;margin-top:3px;color:#444;}
.attendance-v4 .attendance-overview-grid small{display:inline-block;margin:0 0 0 8px;font-size:11px;color:#999;}
.attendance-v4 .attendance-v4-card{margin-top:10px;border:1px solid #e5e5e5;border-radius:6px;box-shadow:none;background:#fff;}
.attendance-v4 .attendance-v4-card>header{min-height:39px;padding:7px 10px;background:#fff;border-bottom:1px solid #ededed;}
.attendance-v4 .employee-register-button{margin-left:auto;font-size:14px;font-weight:500;white-space:nowrap;}
.attendance-v4 .attendance-v4-card>header>div{display:flex;align-items:center;gap:8px;}
.attendance-v4 .attendance-v4-card>header>div>b{display:inline-grid;place-items:center;width:20px;height:20px;background:#f2f2f2;color:#888;border-radius:4px;font-size:12px;font-weight:400;}
.attendance-v4 .attendance-v4-card>header strong{font-size:13px;font-weight:500;color:#444;}
.attendance-v4 .attendance-v4-card>header small{display:none;}
.attendance-v4 .attendance-v4-card>header em{font-size:11px;font-weight:400;background:#f5f5f5;color:#999;}
.attendance-v4 .attendance-v4-head,.attendance-v4 .attendance-v4-row{grid-template-columns:minmax(150px,1.3fr) repeat(4,minmax(60px,.65fr)) repeat(2,minmax(90px,.9fr)) 78px 92px;gap:6px;padding:0 10px;}
.attendance-v4 .attendance-v4-head{min-height:30px;font-size:12px;font-weight:400;color:#999;background:#fafafa;text-align:center;}
.attendance-v4 .attendance-v4-head>span:first-child{text-align:left;}
.attendance-v4 .attendance-v4-row{min-height:35px;font-size:13px;font-weight:400;color:#555;border-top:1px solid #efefef;cursor:default;text-align:center;align-items:center;}
.attendance-v4 .attendance-v4-row :is(b,strong,em){font-weight:400;font-style:normal;color:inherit;}
.attendance-v4 .attendance-v4-row .staff-identity strong{font-size:13px;font-weight:500;}
.attendance-v4 .attendance-v4-row .staff-identity i{width:22px;height:22px;font-size:11px;font-weight:400;background:#f0f0f0;color:#888;border-radius:4px;}
.attendance-v4 .attendance-v4-row .staff-identity strong:after{content:none;}
.attendance-v4 .attendance-v4-row.selected,.attendance-v4 .attendance-v4-row:hover{background:#f7f7f7;}
.attendance-v4 .attendance-v4-row .has-issue{color:#b26b39;font-weight:500;}
.attendance-v4 .employee-detail-button{min-height:26px;height:26px;padding:2px 8px;border:1px solid #dedede;border-radius:4px;background:#fff;color:#555;font-size:11px;font-weight:500;cursor:pointer;}
.attendance-v4 .employee-detail-button:hover,.attendance-v4 .employee-detail-button:focus-visible{background:#eeeeee;border-color:#c9c9c9;outline:none;}
.attendance-v4 .attendance-history-card .monthly-attendance-head{min-height:30px;font-size:12px;font-weight:400;background:#fafafa;color:#999;position:sticky;top:0;}
.attendance-v4 .attendance-history-card .monthly-attendance-row{min-height:34px;border-color:#efefef;font-size:13px;}
.attendance-v4 .monthly-attendance-row :is(strong,time){font-size:13px;font-weight:400;color:#555;font-variant-numeric:tabular-nums;}
.attendance-v4 .monthly-attendance-row em{font-size:11px;font-weight:400;border-radius:4px;padding:3px 7px;}
.employee-dialog{position:fixed;inset:0;width:min(820px,calc(100vw - 40px));max-height:calc(100dvh - 64px);margin:auto;padding:0;border:1px solid #e0e0e0;border-radius:8px;box-shadow:0 16px 48px #0000001f;overflow:auto;background:#fff;}
.employee-dialog::backdrop{background:#00000040;}
.employee-dialog-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#fff;border-bottom:1px solid #eee;}
.employee-dialog-heading h2{margin:0;font-size:16px;font-weight:500;letter-spacing:-.3px;}
.employee-dialog-heading button{padding:4px 9px;border:1px solid #e5e5e5;border-radius:4px;background:#fff;color:#777;font-size:12px;cursor:pointer;}
.employee-dialog .employee-profile-card{margin:0;border:0;border-radius:0;box-shadow:none;}
.employee-dialog .employee-profile-card>header{padding:8px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;}
.employee-dialog .employee-profile-card>header strong{display:none;}
.employee-dialog .employee-profile-card>header small{font-size:11px;font-weight:400;color:#999;}
.employee-dialog .employee-profile-save{height:28px;padding:0 10px;font-size:12px;font-weight:500;background:#444;border:1px solid #444;border-radius:4px;}
.employee-dialog .employee-profile-grid{padding:10px 16px 16px;gap:10px 12px;grid-template-columns:repeat(3,minmax(0,1fr));}
.employee-dialog .employee-profile-grid label>span{font-size:12px;font-weight:400;color:#888;}
.employee-dialog .employee-profile-grid :is(input,select){height:30px;font-size:13px;font-weight:400;border:1px solid #e5e5e5;border-radius:4px;padding:4px 7px;color:#555;background:#fff;}
.employee-dialog .employee-profile-grid :is(input,select):focus{border-color:#aaa;box-shadow:0 0 0 2px #00000008;}
.employee-dialog .employee-sensitive-field button{font-size:11px;font-weight:400;background:#f5f5f5;color:#666;}
.employee-dialog .employee-money-input i{font-size:12px;color:#999;}
.employee-dialog .employee-profile-security{padding:8px 16px;background:#fafafa;border-color:#eee;}
.employee-dialog .employee-profile-security>span,.employee-dialog .employee-profile-security>p{font-size:11px;font-weight:400;color:#999;background:transparent;}
@media(max-width:1000px){.attendance-v4 .attendance-management-layout{grid-template-columns:1fr;}.attendance-v4 .attendance-studio-menu>button{min-width:150px;}}
@media(max-width:760px){.attendance-v4 .attendance-work-head{flex-wrap:wrap;gap:5px;}.employee-dialog .employee-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.employee-dialog .employee-profile-grid .span-wide{grid-column:1/-1;}}
@media(max-width:650px){.erp-ui .content:has(.attendance-v4){padding:20px 12px 60px!important;}.attendance-v4 .attendance-overview-grid small{display:block;margin:3px 0 0;}}
@media(max-width:480px){.employee-dialog .employee-profile-grid{grid-template-columns:1fr;}.employee-dialog .employee-profile-grid .span-two{grid-column:auto;}}
/* Narrow portrait layout only for employee details; notice composer stays wide. */
.employee-dialog:has(.employee-profile-card){width:min(560px,calc(100vw - 32px));}
.employee-dialog:has(.employee-profile-card) .employee-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 14px;padding:16px;}
.employee-dialog:has(.employee-profile-card) .employee-profile-grid>label{grid-column:auto;min-width:0;order:0;}
.employee-dialog:has(.employee-profile-card) .employee-profile-grid>label:nth-child(n+9){order:1;}
.employee-dialog:has(.employee-profile-card) .employee-profile-grid>label:nth-child(10),.employee-dialog:has(.employee-profile-card) .employee-profile-grid>label:nth-child(11){order:2;}
.employee-dialog:has(.employee-profile-card) .employee-profile-grid>label:nth-child(n+13){order:3;}
.employee-dialog:has(.employee-profile-card) .employee-profile-grid>label.span-wide{grid-column:1/-1;}
.employee-dialog:has(.employee-profile-card) .employee-profile-grid :is(input,select){height:36px;font-size:14px;}
.employee-dialog:has(.employee-profile-card) .employee-dialog-heading{gap:8px;padding:12px;}
.employee-dialog:has(.employee-profile-card) .employee-dialog-heading h2{font-size:15px;overflow-wrap:anywhere;}
.employee-dialog:has(.employee-profile-card) .employee-dialog-heading button{flex-shrink:0;}
.employee-dialog:has(.employee-profile-card) .employee-profile-card>header{flex-wrap:wrap;}
.employee-dialog:has(.employee-profile-card) .employee-profile-security{display:block;}
@media(max-width:480px){.employee-dialog:has(.employee-profile-card) .employee-profile-grid{grid-template-columns:1fr;}}
