/* POS-X R177 isolated attendance dashboard */
.r177-workspace{--r177-green:#058b59;--r177-ink:#193346;--r177-line:#dbe7e4;color:var(--r177-ink);width:100%;max-width:none!important}
.r177-workspace .hr-hub-context-tools{display:none!important}
.r177-two-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0 12px}
.r177-tab{display:flex;gap:5px;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:#fff;border:1px solid #cde4d7;border-radius:12px;min-height:72px;font-size:17px;font-weight:800;color:#174d3c;cursor:pointer}
.r177-tab small{font-size:11px;font-weight:500;color:#67807b}.r177-tab.active{background:linear-gradient(112deg,#04965e,#006d48);color:#fff}.r177-tab.active small{color:#dcfff2}
.r177-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:12px;background:#fff;border:1px solid var(--r177-line);border-radius:12px;margin:12px 0}
.r177-toolbar>label{display:flex;flex-direction:column;gap:4px;font-weight:650;font-size:12px;min-width:125px}.r177-toolbar input,.r177-toolbar select,.r177-readonly{display:block;min-height:34px;border:1px solid #d2e2dc;border-radius:8px;padding:6px 9px;background:white;color:#153a30;font:inherit;font-size:13px}.r177-readonly{min-width:115px;background:#f4f8f6}
.r177-toolbar .r177-search{flex:1 1 160px}.r177-actions{display:flex;gap:7px;flex-wrap:wrap;margin-left:auto}.r177-btn{border-radius:8px;border:1px solid #bdd9cf;padding:8px 12px;white-space:nowrap;background:#fff;color:#176747;font:inherit;font-weight:750;font-size:13px;cursor:pointer}.r177-btn.ghost{background:#eaf9f1}.r177-btn.outline{border-color:#8ab3ec;color:#1d59ad;background:#f5faff}.r177-btn.primary{color:white;border-color:#087d52;background:linear-gradient(115deg,#009c66,#02764b)}.r177-btn:disabled{opacity:.45;cursor:not-allowed}
.r177-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 12px}.r177-kpi{border:1px solid #deebe5;background:#f3fbf7;border-radius:12px;min-height:82px;padding:11px 15px;display:flex;flex-direction:column;gap:5px}.r177-kpi small{font-size:12px;font-weight:750}.r177-kpi strong{font-size:25px;color:#092f27}.r177-kpi em{font-style:normal;font-size:12px;font-weight:500}.r177-kpi.late{background:#fff7e4}.r177-kpi.absent{background:#fff0f0}.r177-kpi.leave{background:#f4efff}.r177-kpi.ot{background:#edf6ff}
.r177-selected{display:flex;align-items:center;gap:14px;justify-content:space-between;background:linear-gradient(95deg,#f5fff9,#fff);border:1px solid #91d4ae;border-radius:12px;padding:12px;margin:0 0 10px;min-height:88px}.r177-person{display:flex;align-items:center;gap:10px;min-width:235px}.r177-avatar{display:grid;place-items:center;width:52px;height:52px;border-radius:12px;background:#d7f1e4;color:#04704a;font-size:25px;font-weight:800}.r177-person strong{display:block;font-size:16px}.r177-person small{display:block;font-size:12px;color:#61736e}.r177-person-cards{display:grid;grid-template-columns:repeat(4,minmax(85px,1fr));flex:1 1 auto;gap:10px;max-width:650px}.r177-person-card{padding:10px 14px;border-radius:10px;background:#edf8f1;display:flex;justify-content:space-between;align-items:center;gap:7px}.r177-person-card span{font-weight:700;font-size:12px}.r177-person-card strong{white-space:nowrap;font-size:17px}.r177-person-card small{font-size:11px}.r177-person-card.absent{background:#ffecee;color:#bf263e}.r177-person-card.late{background:#fff3df;color:#b46c00}.r177-person-card.leave{background:#f0e9ff;color:#7938bb}.r177-person-card.ot{background:#e6f1ff;color:#1b68cc}
.r177-calendar-head{display:flex;align-items:center;justify-content:space-between;padding:7px 0}.r177-calendar-head h2{font-size:15px;margin:0}.r177-calendar-head span{font-size:12px;color:#5b756c}
.r177-scroll{border:1px solid #dce6e5;border-radius:12px;overflow-x:auto;background:#fff;box-shadow:0 4px 9px #133b270c}.r177-table{width:100%;min-width:1320px;border-collapse:collapse;table-layout:fixed;font-size:10.5px}.r177-table th,.r177-table td{border-bottom:1px solid #e8eff0;border-right:1px solid #eff3f3;text-align:center;padding:5px 2px}.r177-table thead th{background:#eff5f8;color:#203944;position:sticky;top:0;z-index:2}.r177-table th.r177-first,.r177-table td.r177-first{width:72px;white-space:nowrap}.r177-table th.r177-name,.r177-table td.r177-name{width:158px;text-align:left;padding-left:6px}.r177-table th.r177-dept,.r177-table td.r177-dept{width:83px}.r177-table .r177-day-title{width:27px}.r177-table .r177-day-title small{display:block;font-size:8px;font-weight:500}.r177-table .r177-day-title.sun{color:#c23642}.r177-table .r177-summary{width:42px;background:#e6f2ec}.r177-table tr.is-selected{background:#f0fff4;outline:1px solid #50ca88}.r177-table tr:hover{background:#f7fef9}.r177-day-cell button{border:0;background:transparent;padding:0;display:flex;gap:1px;flex-wrap:wrap;justify-content:center;width:100%;min-height:22px;align-content:center;cursor:pointer}.r177-person-link{font:inherit;font-size:10.5px;font-weight:750;border:0;background:none;color:#143d34;text-align:left;cursor:pointer;padding:0}.r177-status{display:inline-block;text-align:center;font-weight:700;border-radius:4px;white-space:nowrap;padding:4px 2px;font-size:9px;line-height:1.05;min-width:24px}.r177-status.r177-ok{color:#006d30;background:#d9f6e2}.r177-status.r177-late{color:#a35e02;background:#ffebc5}.r177-status.r177-absent{color:#ce263c;background:#ffe0e3}.r177-status.r177-leave{color:#7b37ad;background:#eddfff}.r177-status.r177-off{color:#6d7887;background:#ecedf1}.r177-status.r177-review{color:#a23a19;background:#ffeadb}.r177-status.r177-unassigned{color:#8a6578;background:#f5e8f0}.r177-status.r177-scheduled{color:#466a6b;background:#e9f5f6}.r177-status.r177-ot{color:#145cba;background:#d8e9ff;font-size:8px;min-width:15px;padding:4px 1px}.r177-stat{font-weight:800;font-size:12px}.r177-stat.absent{color:#c83644}.r177-stat.late{color:#b16a0a}.r177-stat.leave{color:#7530ad}.r177-stat.ot{color:#1261be}.r177-empty{padding:30px!important;color:#84908d}
.r177-legend{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0;padding:10px;background:#fff;border-radius:10px;border:1px solid #e0e9e8;font-size:11px;align-items:center}.r177-legend>span{display:flex;gap:5px;align-items:center}.r177-footnote{background:#eaf8f1;border:1px solid #cae9d9;padding:10px;border-radius:10px;font-size:12px;color:#31634d}.r177-notice{background:#edfbf5;border:1px solid #a4d6bc;padding:10px;border-radius:8px;margin-bottom:10px;font-size:13px}.r177-notice[data-kind=error]{background:#fff0ef;border-color:#ffbfc0;color:#b12532}.r177-notice[hidden]{display:none}
.r177-modal{width:min(770px,calc(100% - 20px));max-height:min(88vh,800px);border:0;border-radius:16px;padding:0;box-shadow:0 25px 95px #123b3848}.r177-modal::backdrop{background:rgba(10,36,45,.5)}.r177-dialog>header{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;border-bottom:1px solid #e0ebe6}.r177-dialog>header h2{margin:0;font-size:20px}.r177-dialog>header button{font-size:21px;border:0;background:#f1f7f4;border-radius:8px;cursor:pointer}.r177-dialog-body{padding:18px 24px;max-height:70vh;overflow:auto;font-size:13px}.r177-dialog-body label{display:flex;flex-direction:column;gap:5px;margin:10px 0}.r177-dialog-body input,.r177-dialog-body select{padding:10px;border:1px solid #cbded5;border-radius:9px}.r177-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:14px;border:1px solid #e1e8e7;border-radius:10px}.r177-detail-grid span{color:#6e7778}.r177-import-preview{max-height:230px;overflow:auto;margin-top:10px}.r177-import-preview table{width:100%;border-collapse:collapse}.r177-import-preview td,.r177-import-preview th{border-bottom:1px solid #e0e6e3;padding:6px;text-align:left}.r177-import-actions{display:flex;justify-content:space-between;margin:15px 0}.r177-muted{font-size:12px;color:#6c7e78}.r177-review-list{max-height:400px;overflow:auto}.r177-review-list button{display:flex;width:100%;justify-content:space-between;gap:10px;padding:12px;background:white;border:0;border-bottom:1px solid #e0eae5;cursor:pointer;text-align:left}.r177-errors{background:#fff2ee;color:#a23121;padding:8px}
@media(max-width:1100px){.r177-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.r177-selected{flex-wrap:wrap}.r177-person-cards{max-width:none;width:100%}.r177-actions{width:100%}}
@media(max-width:650px){.r177-two-tabs{gap:6px}.r177-tab{font-size:13px;min-height:60px}.r177-tab small{font-size:10px}.r177-toolbar{gap:6px}.r177-toolbar>label{min-width:130px;flex:1 1 44%}.r177-actions{display:grid;grid-template-columns:1fr 1fr}.r177-btn{font-size:11px}.r177-kpis{gap:5px}.r177-kpi{padding:9px;min-height:70px}.r177-kpi strong{font-size:18px}.r177-person-cards{gap:5px;grid-template-columns:repeat(2,1fr)}.r177-calendar-head{align-items:start;flex-direction:column;gap:3px}.r177-table{min-width:1340px}}
.r177-payroll-bridge{margin:10px 0;padding:14px 17px;border:1px solid #b4e1c7;border-radius:10px;background:#f1fcf7}.r177-payroll-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.r177-payroll-title strong{color:#086d49;font-size:15px}.r177-payroll-title small{color:#54836b}.r177-payroll-scroll{max-height:280px;overflow:auto;margin:10px 0}.r177-payroll-scroll .hr-table{width:100%;font-size:12px}.r177-payroll-scroll td,.r177-payroll-scroll th{padding:6px}.r177-payroll-bridge p{font-size:11px;color:#568071;margin:6px 0 0}
.r177-workspace .hr-header-context{height:auto!important;min-height:auto!important;align-self:start;background:transparent!important;box-shadow:none!important}
