/* POS-X HR timetable layout based on the approved two-panel mockup. */
.r254-root{--r254-green:#00895e;--r254-dark:#006a51;--r254-border:#d5dfeb;--r254-pale:#e9f8f1;--r254-font:#152436;color:var(--r254-font);background:linear-gradient(120deg,#f7f9fc,#edf2fa);font-family:inherit;padding:16px 18px 22px!important;box-sizing:border-box;min-height:calc(100vh - 66px);font-size:13px}
.r254-root *{box-sizing:border-box}
.r254-root button,.r254-root input,.r254-root select{font:inherit}
.r254-root button{cursor:pointer}
.r254-root button:disabled{opacity:.48;cursor:not-allowed}
.r254-root :is(i[data-lucide],svg.lucide){width:19px;height:19px;display:inline-block;vertical-align:middle;flex-shrink:0}
.r254-top-block{display:flex;gap:20px;align-items:center;min-height:85px;margin:0 0 11px 2px}
.r254-top-block .r254-icon{width:60px;height:60px;display:grid;place-items:center;flex-shrink:0;border-radius:14px;background:linear-gradient(#00a96a,#007451);box-shadow:0 9px 17px #006e5033;color:white}
.r254-top-block .r254-icon svg{width:31px;height:31px}
.r254-top-block small{color:#00634f;font-size:11px;font-weight:750}
.r254-top-block h1{font-size:27px!important;line-height:1.15!important;margin:4px 0!important;font-weight:750}
.r254-top-block p{margin:0;font-size:13px;font-weight:550}
.r254-layout{display:grid;grid-template-columns:minmax(0,44fr) minmax(0,56fr);gap:12px;align-items:start}
.r254-left,.r254-right{min-width:0}
.r254-right{margin-top:-40px}
.r254-tabs{display:grid;grid-template-columns:1.14fr 1fr 1.12fr;gap:4px;margin-bottom:18px}
.r254-tabs button{height:52px;min-width:0;border:1px solid var(--r254-border);border-radius:10px;background:linear-gradient(#fcfdfe,#f1f4f8);color:#233140;font-size:12.3px;font-weight:750;box-shadow:0 3px 0 #e7eaf0;white-space:nowrap;padding:5px 7px}
.r254-tabs button i{margin-right:4px;vertical-align:middle}
.r254-tabs button.active{background:linear-gradient(#009a69,#006a53);color:white;border-color:#00895e;box-shadow:0 4px 8px #008c6036}
.r254-card{background:white;border:1px solid var(--r254-border);border-radius:17px;box-shadow:0 7px 13px #233a5c12;overflow:hidden}
.r254-shift-list{margin-bottom:21px;padding:12px 10px 12px}
.r254-list-heading{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:0 2px 9px;flex-wrap:nowrap}
.r254-list-heading h2,.r254-panel-heading h2{margin:0!important;font-size:17px!important;font-weight:750!important;color:#152737;display:flex;align-items:center;gap:7px;white-space:nowrap}
.r254-list-heading h2 :is(i,svg),.r254-panel-heading h2 :is(i,svg){color:#00895e;width:23px;height:23px}
.r254-search{display:flex;align-items:center;position:relative;min-width:90px;flex:1;max-width:205px}
.r254-root .r254-search input{height:37px;width:100%;border:1px solid #cbd6e4;border-radius:8px;background:#f8f9fc;padding:5px 9px 5px 32px;font-size:12px}
.r254-search :is(i,svg){position:absolute;inset-inline-start:10px;color:#657287;width:17px;pointer-events:none}
.r254-btn{border:1px solid #cbd5e3;border-radius:8px;background:linear-gradient(#f9fafc,#edf0f5);min-height:35px;padding:8px 15px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.15;white-space:nowrap;color:#202b39}
.r254-btn.green{color:white;border-color:#007451;background:linear-gradient(#00a56a,#006f50);box-shadow:0 2px 3px #00845817}
.r254-btn.subtle{background:linear-gradient(#fbfcfe,#eef1f6)}
.r254-btn.small{padding:6px 10px;font-size:12px;min-height:30px}
.r254-btn.green i{color:inherit}
.r254-table-scroll{width:100%;overflow-x:auto;border-radius:9px;border:1px solid #e2ebed}
.r254-root table.r254-shift-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:12px;white-space:nowrap}
.r254-col-code{width:14%}
.r254-col-name{width:27%}
.r254-col-minutes{width:11%}
.r254-col-status{width:13%}
.r254-col-actions{width:13%}
.r254-root .r254-shift-table th{text-align:center;background:#e4f4ec;padding:8px 3px;font-weight:750;line-height:1.25}
.r254-root .r254-shift-table td{text-align:center;padding:5px 3px;border-bottom:1px solid #e5edf1;overflow:hidden;text-overflow:ellipsis}
.r254-shift-table tr:last-child td{border-bottom:0}
.r254-shift-table td:nth-child(2){text-align:left;overflow:hidden}
.r254-shift-table th:nth-child(2),.r254-shift-list .r254-shift-table td:nth-child(2){text-align:left;padding-inline-start:8px}
.r254-code{display:inline-flex;padding:5px 7px;border-radius:7px;background:#d7f3e2;color:#067953;font-weight:800;font-size:11px}
.r254-shift-table tr:nth-child(2n) .r254-code{background:#e0eafb;color:#0f4aaf}
.r254-shift-table tr .r254-code.off{background:#e8edf2;color:#253449}
.r254-badge{display:inline-block;border-radius:9px;padding:5px 9px;font-size:11px;font-weight:750;white-space:nowrap}
.r254-badge.green{background:#dcf8e8;color:#07804b}
.r254-badge.red{background:#ffe3e7;color:#ca2f3d}
.r254-badge.gray{background:#e8edf2;color:#607084}
.r254-actions{white-space:nowrap}
.r254-actions button{border:1px solid #d3dfeb;background:#fff;border-radius:5px;display:inline-grid;place-items:center;width:25px;height:25px;color:#0d8c65;padding:1px;margin:0 1px}
.r254-actions button.danger{color:#e53949;background:#fff1f1;border-color:#fbd3d5}
.r254-actions svg{width:15px!important;height:15px!important}
.r254-empty{padding:20px!important;color:#667085}
.r254-panel-heading{display:flex;align-items:center;justify-content:space-between;padding:15px 21px 13px;border-bottom:1px solid #e7edf3}
.r254-panel-heading h2{font-size:20px!important}
.r254-panel-heading h2 svg{width:26px!important;height:26px!important}
.r254-root .r254-close{height:32px;width:32px;border:0;background:#eef1f6;border-radius:8px;font-size:23px;line-height:1;color:#202a36}
.r254-form-table{width:auto;margin:4px 10px 0}
.r254-form-table label{display:inline;margin:0;font:inherit}
.r254-root .r254-form-table td{padding:6px}
.r254-root .r254-form-table :is(input,select){width:100%;height:35px;min-height:0;min-width:0;border:1px solid #cad6e6;border-radius:8px;background:white;padding:4px 6px;font-size:12px;color:#152536;font-weight:650}
.r254-root .r254-form-table input[type=number]{text-align:center}
.r254-root .r254-form-table select{color:#06724f;background:#e5f8ed;padding-inline-start:4px}
.r254-accordion{display:flex;align-items:center;width:calc(100% - 24px);border:1px solid #cad6e7;background:linear-gradient(#f9fafd,#f2f4f9);margin:10px 12px 10px;border-radius:9px;padding:11px 14px;gap:7px;text-align:left;min-height:43px;color:#263348;font-size:12px}
.r254-accordion .r254-chevron{margin-left:auto}
.r254-extras{padding:0 14px 10px}
.r254-extras[hidden]{display:none!important}
.r254-extras p{font-size:11px;color:#768499;margin:0 0 9px}
.r254-extras-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.r254-extras-grid label{font-size:11px;display:flex;flex-direction:column;gap:5px}
.r254-extras-grid input{border:1px solid #cad6e6;border-radius:8px;height:37px;padding:4px 8px}
.r254-panel-footer{display:flex;justify-content:flex-end;align-items:center;gap:14px;padding:16px 17px 17px;border-top:1px solid #e7edf3;margin-top:10px}
.r254-panel-footer .r254-btn{min-width:105px;min-height:42px;font-size:14px}
.r254-shift-edit .r254-panel-footer{margin-top:12px}
.r254-week-edit{padding:0}
.r254-week-edit form>.r254-week-top,.r254-week-edit form>.r254-preset-title,.r254-week-edit form>.r254-presets,.r254-week-edit form>.r254-default-shift,.r254-week-edit form>.r254-day-heading,.r254-week-edit form>.r254-week-middle{margin-left:21px;margin-right:21px}
.r254-week-top{display:grid;grid-template-columns:1fr 1fr;gap:29px;padding-top:10px}
.r254-week-top label,.r254-default-shift{font-size:12px;font-weight:750;display:flex;flex-direction:column;gap:8px}
.r254-root :is(.r254-week-edit input:not([type=checkbox]),.r254-week-edit select,.r254-assignment select,.r254-assignment input){height:37px;min-height:0;background:white;border:1px solid #cbd6e5;border-radius:8px;padding:5px 13px;width:100%;min-width:0;color:#172535}
.r254-root .required{color:#d82437}
.r254-preset-title{font-weight:750;font-size:12px;margin-top:12px;margin-bottom:6px}
.r254-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.r254-presets .r254-btn{font-size:12px;min-height:41px;padding:8px 3px}
.r254-presets .r254-btn.selected{background:linear-gradient(#039669,#006f52);border-color:#008156;color:white}
.r254-presets .r254-btn svg{width:19px;height:19px}
.r254-presets .r254-btn.selected svg:last-child{width:16px;height:16px}
.r254-default-shift{max-width:clamp(280px,63%,520px);margin-top:12px;margin-bottom:12px}
.r254-default-shift select{font-weight:650}
.r254-day-heading{display:flex;justify-content:space-between;align-items:center;margin-top:8px;margin-bottom:9px}
.r254-day-heading h3{font-size:17px!important;font-weight:750!important;color:#005f49;margin:0!important}
.r254-week-middle{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,32%);gap:16px}
.r254-day-table{border:1px solid #dce4ee;border-radius:9px;overflow:hidden}
.r254-day-th,.r254-day-row{display:grid;grid-template-columns:28% 22% 50%;align-items:center;min-height:36px}
.r254-day-th{min-height:38px;background:linear-gradient(#e8f7f2,#dff2ea);font-weight:750;text-align:center}
.r254-day-row{border-top:1px solid #e8edf2}
.r254-day-row label{display:flex;align-items:center;gap:11px;margin-left:12px;font-size:12px;font-weight:650}
.r254-root .r254-day-row input[type=checkbox]{appearance:none;display:inline-grid;place-items:center;flex:0 0 19px;width:19px;height:19px;min-width:19px;min-height:0;border-radius:4px;border:2px solid #c7d5e4;padding:0;margin:0;cursor:pointer}
.r254-root .r254-day-row input[type=checkbox]:checked{background:#008c61;border-color:#008c61}
.r254-root .r254-day-row input[type=checkbox]:checked:after{content:'✓';color:white;font-size:14px;line-height:1}
.r254-day-row>div{display:flex;justify-content:center}
.r254-root .r254-week-edit .r254-day-row select{height:30px;min-height:0;width:calc(100% - 11px);margin-right:8px;padding:2px 8px;font-size:12px;font-weight:650}
.r254-root .r254-day-row select:disabled{background:#f3f5f9;color:#596473;opacity:1}
.r254-week-summary{border:1px solid #dce5eb;border-radius:10px;overflow:hidden;align-self:stretch}
.r254-summary-title{display:flex;align-items:center;gap:9px;background:linear-gradient(#eaf8f2,#e1f5ea);padding:10px 14px;font-weight:800;font-size:16px}
.r254-summary-title svg{color:#00895e}
.r254-week-summary p{border-top:1px solid #e6ecf0;display:flex;align-items:center;gap:11px;margin:0;padding:7px 12px;min-height:33px;font-size:12px}
.r254-week-summary p svg{width:18px;height:18px;color:#345061}
.r254-week-summary .r254-week-count{min-height:52px;font-size:14px}
.r254-week-summary .r254-week-count svg{width:24px;height:24px;color:#00895e}
.r254-week-summary p strong{font-weight:750;white-space:normal}
.r254-week-summary .red-text{color:#d82028}
.r254-week-edit .r254-panel-footer{padding:14px 17px;margin-top:15px}
.r254-reopen{margin-left:8px}
.r254-message{padding:11px 15px;margin:8px 0;border-radius:8px;background:#e6f6ee;color:#00734d}
.r254-message.error{background:#ffebef;color:#bd2535}
.r254-message[hidden]{display:none}
.r254-assignment{max-width:920px;padding-bottom:4px}
.r254-assignment>p{margin:17px 20px;color:#586578}
.r254-assign-grid{display:grid;grid-template-columns:1fr 1fr 180px;gap:13px;margin:14px 20px}
.r254-assign-grid label{font-weight:700;display:flex;flex-direction:column;gap:8px}
.r254-assignment-status{margin:14px 20px;border-radius:8px;padding:12px;background:#eff9f3;color:#154734}
@media(max-width:1430px){.r254-week-middle{grid-template-columns:minmax(0,1fr) 188px;gap:9px}
.r254-week-summary p{gap:6px;padding:9px 6px;font-size:11px}
.r254-presets{gap:4px}
.r254-presets .r254-btn{font-size:11px}
.r254-list-heading{gap:5px}
.r254-list-heading h2{font-size:14px!important}
.r254-tabs button{font-size:11px}
}
@media(max-width:1350px){.r254-layout{grid-template-columns:1fr}
.r254-right{margin-top:0}
.r254-week-middle{grid-template-columns:1fr 220px}
.r254-root{padding:14px!important}
}
@media(max-width:600px){.r254-root{font-size:12px;padding:9px!important}
.r254-tabs{grid-template-columns:1fr}
.r254-tabs button{height:41px}
.r254-top-block h1{font-size:22px!important}
.r254-shift-list{padding:9px}
.r254-list-heading{flex-wrap:wrap}
.r254-list-heading h2{width:100%}
.r254-root table.r254-shift-table{min-width:520px}
.r254-default-shift{max-width:none}
.r254-extras-grid,.r254-week-top,.r254-week-middle,.r254-assign-grid{grid-template-columns:1fr}
.r254-presets{grid-template-columns:1fr 1fr}
.r254-week-edit form>.r254-week-top,.r254-week-edit form>.r254-preset-title,.r254-week-edit form>.r254-presets,.r254-week-edit form>.r254-default-shift,.r254-week-edit form>.r254-day-heading,.r254-week-edit form>.r254-week-middle{margin-left:10px;margin-right:10px}
}
