body.bitrix-embedded{background:#f4f9ff;min-width:0}
.map{cursor:pointer}
.bitrix-embedded>.topbar{display:none}
.bitrix-embedded .layout{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:100vh}
.bitrix-embedded .layout>aside{display:block;padding:20px 12px}
.bitrix-embedded .layout>aside a{padding:13px 14px;font-size:13px;cursor:pointer}
.bitrix-embedded main{width:min(1280px,calc(100% - 36px));margin:0 auto;padding:22px 0 40px}
.bitrix-embedded .banner{height:104px;padding:0 32px;border-radius:16px;font-size:18px;gap:42px}
.bitrix-embedded .banner b{font-size:20px}
.bitrix-embedded .tabs{margin:20px 0 14px}
.bitrix-embedded .tabs button{min-width:160px;padding:11px 28px;font-size:14px;border-radius:10px}
.bitrix-embedded .role-badge{margin-left:auto;align-self:center;padding:8px 13px;border-radius:18px;background:#e8f3ff;color:#2571d5;font-size:12px;font-weight:700}
.bitrix-embedded h1{font-size:32px}
.bitrix-embedded .subtitle{font-size:14px;margin-top:7px}
.bitrix-embedded .work-card{margin-top:20px;min-height:360px;padding:30px 26px 20px;grid-template-columns:130px 1fr 230px;border-radius:16px}
.bitrix-embedded .clock-icon{width:76px;height:76px;font-size:43px}
.bitrix-embedded .work-center{font-size:15px}
.bitrix-embedded .work-center output{font-size:66px;letter-spacing:-3px;margin:8px 0}
.bitrix-embedded .work-center small{font-size:13px}
.bitrix-embedded blockquote{font-size:15px;padding-left:22px}
.bitrix-embedded blockquote small{font-size:12px}
.bitrix-embedded .actions{gap:14px;margin-top:24px}
.bitrix-embedded .actions button{height:54px;font-size:12px;border-radius:10px}
.bitrix-embedded .actions .danger{background:linear-gradient(#ff6b75,#df3545);color:#fff;border:0}
.bitrix-embedded .work-card footer{font-size:13px;margin-top:20px;padding-top:17px}
.bitrix-embedded .work-card footer span small{font-size:11px}
.bitrix-embedded .work-card footer em{font-size:11px;padding:10px 14px}
.bitrix-embedded .stats{gap:14px;margin-top:18px}
.bitrix-embedded .stats article{min-height:92px;padding:17px}
.bitrix-embedded .stats small{font-size:12px}
.bitrix-embedded .stats b{font-size:19px;margin:8px 0 3px}
.bitrix-embedded .history{margin-top:16px;min-height:145px;padding:18px 20px}
.bitrix-embedded .history header{font-size:14px}
.bitrix-embedded .history header button{font-size:13px}
.bitrix-embedded .empty{font-size:12px;padding:25px}
.bitrix-embedded .empty b{font-size:14px}
.bitrix-embedded .filters{padding:14px}
.bitrix-embedded .filters select,.bitrix-embedded .filters button,.bitrix-embedded .filters input{height:38px;font-size:13px}
.bitrix-embedded .table-wrap table{font-size:13px}
.bitrix-embedded .table-wrap th,.bitrix-embedded .table-wrap td{padding:14px 12px}
.bitrix-embedded .totals article{padding:18px;font-size:13px}
.bitrix-embedded .totals b{font-size:25px}
.access-hidden{display:none!important}
.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;margin-top:20px}
.calendar-grid article{min-height:105px;border-radius:12px;background:#fff;box-shadow:0 1px 5px #d4e2efaa;padding:12px;color:#6c8db8;font-size:12px}
.calendar-grid article b{display:block;color:#174781;font-size:18px;margin-bottom:12px}
.calendar-grid .calendar-ok{border-bottom:4px solid #38c996}.calendar-grid .calendar-alert{background:#fff1f2;border-bottom:4px solid #ef6574;color:#bd4856}
.permissions{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:20px}.permissions article{background:#fff;border-radius:14px;padding:22px;box-shadow:0 1px 5px #d4e2efaa}.permissions b{display:block;font-size:18px;margin-bottom:10px}.permissions span{font-size:13px;line-height:1.5;color:#6f8db4}
.workplace-settings{display:grid;grid-template-columns:1fr 2fr 150px auto;gap:14px;align-items:end;margin-top:18px;padding:20px;background:#fff;border-radius:14px;box-shadow:0 1px 5px #d4e2efaa}.workplace-settings h2{grid-column:1/-1;margin:0;font-size:18px}.workplace-settings label{font-size:12px;color:#6f8db4}.workplace-settings input,.workplace-settings select{display:block;width:100%;height:42px;margin-top:6px;border:1px solid #cfe0f3;border-radius:8px;padding:0 10px}.workplace-settings button{height:42px;border-radius:8px;padding:0 18px}.workplace-settings small{grid-column:1/-1;color:#159c72}
.schedule-settings{display:grid;grid-template-columns:1.2fr 2fr 130px 130px;gap:14px;align-items:end;margin-top:18px;padding:20px;background:#fff;border-radius:14px;box-shadow:0 1px 5px #d4e2efaa}.schedule-settings h2{grid-column:1/-1;margin:0;font-size:18px}.schedule-settings>label{font-size:12px;color:#6f8db4}.schedule-settings input,.schedule-settings select{display:block;width:100%;height:42px;margin-top:6px;border:1px solid #cfe0f3;border-radius:8px;padding:0 10px}.schedule-settings fieldset{grid-column:1/4;display:flex;gap:15px;align-items:center;min-height:50px;border:1px solid #dce9f7;border-radius:9px;padding:8px 12px}.schedule-settings legend{font-size:12px;color:#6f8db4;padding:0 5px}.schedule-settings fieldset label{display:flex;align-items:center;gap:5px;font-size:12px}.schedule-settings fieldset input{display:inline;width:auto;height:auto;margin:0}.schedule-settings button{height:42px;border-radius:8px;padding:0 18px}.schedule-settings small{grid-column:1/-1;color:#159c72}
.access-settings{margin-top:18px;padding:20px;background:#fff;border-radius:14px;box-shadow:0 1px 5px #d4e2efaa}.access-settings h2{margin:0 0 16px;font-size:18px}.role-create,.role-assign{display:grid;grid-template-columns:1fr 1.4fr auto;gap:14px;align-items:end}.role-create label,.role-assign label{font-size:12px;color:#6f8db4}.role-create input,.role-create select,.role-assign select{display:block;width:100%;height:42px;margin-top:6px;border:1px solid #cfe0f3;border-radius:8px;padding:0 10px}.role-create fieldset{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:13px;border:1px solid #dce9f7;border-radius:9px;padding:10px 12px}.role-create fieldset label{display:flex;align-items:center;gap:5px;color:#315b92}.role-create fieldset input{width:auto;height:auto;margin:0}.role-create button,.role-assign button{height:42px;padding:0 18px;border-radius:8px}.role-assign{margin-top:18px;padding-top:18px;border-top:1px solid #e5eef8}.role-assign label:nth-child(3){grid-row:span 2}.role-assign select[multiple]{height:126px}.access-settings>small{display:block;margin-top:12px;color:#159c72}.roles-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}.roles-list article{padding:12px;border:1px solid #e0ebf7;border-radius:9px}.roles-list b,.roles-list small{display:block}.roles-list small{margin-top:5px;color:#7895bb}.staff-group-row td{background:#eaf4ff!important;color:#174781!important;font-size:14px;font-weight:bold;padding:10px 12px!important}
.access-settings>header{display:flex;align-items:center;justify-content:space-between;gap:20px}.access-settings>header h2{margin:0}.access-settings>header p{margin:5px 0 0;color:#7895bb;font-size:12px}.access-settings>header button{height:42px;border-radius:9px;padding:0 18px}.roles-list article footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.roles-list article footer span{color:#174781;font-weight:700;font-size:12px}.roles-list article footer button{border:1px solid #bdd8f6;background:#f5faff;color:#1871dc;border-radius:7px;padding:7px 9px;cursor:pointer}
.storage-panel{margin-top:18px}.storage-status{display:grid;gap:5px;margin-top:14px;padding:13px 15px;border-radius:10px}.storage-status b,.storage-status span{display:block}.storage-status span{font-size:12px;line-height:1.45}.storage-status.safe{background:#e8f8f1;color:#14815f}.storage-status.danger{background:#fff0f1;color:#c73e4d}.storage-status.checking{background:#edf6ff;color:#2472d7}
.address-picker{position:relative}.address-picker>span{display:block;margin-top:6px;color:#7895bb;font-size:11px}.address-picker>span a{color:#1871dc}.address-suggestions{position:absolute;z-index:20;left:0;right:0;top:66px;max-height:260px;overflow:auto;background:#fff;border:1px solid #cfe0f3;border-radius:9px;box-shadow:0 12px 28px #1b4f8730}.address-suggestions button{display:block!important;width:100%;height:auto!important;padding:10px 12px!important;border:0!important;border-bottom:1px solid #edf3fa!important;border-radius:0!important;background:#fff!important;color:#174781!important;text-align:left!important;cursor:pointer}.address-suggestions button:hover{background:#eef6ff!important}.address-suggestions b,.address-suggestions small{display:block}.address-suggestions b{font-size:12px;line-height:1.35}.address-suggestions small{margin-top:4px;color:#7895bb}
.employee-settings{margin-top:18px;padding:20px;background:#fff;border-radius:14px;box-shadow:0 1px 5px #d4e2efaa}.employee-settings>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.employee-settings h2{margin:0;font-size:20px}.employee-settings header p{margin:6px 0 0;color:#7895bb;font-size:12px}.employee-settings>header strong{white-space:nowrap;padding:8px 12px;border-radius:18px;background:#e8f3ff;color:#2472d7;font-size:12px}.employee-settings-filters{display:grid;grid-template-columns:1fr 1.25fr 1.6fr;gap:10px;margin-top:18px}.employee-settings select,.employee-settings input[type="search"],.employee-settings-form>label>input,.employee-settings-form>label>select{width:100%;height:42px;border:1px solid #cfe0f3;border-radius:8px;background:#fff;padding:0 10px;color:#174781}.employee-picker-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;color:#6f8db4;font-size:12px}.employee-picker-toolbar div{display:flex;gap:8px}.employee-picker-toolbar button{border:1px solid #bdd8f6;border-radius:7px;background:#f5faff;color:#1871dc;padding:7px 10px;cursor:pointer}.settings-employee-results{display:grid;grid-template-columns:1fr 1fr;gap:7px;max-height:260px;overflow:auto;margin-top:9px;padding:9px;border:1px solid #dce9f7;border-radius:10px;background:#fbfdff}.settings-employee-results>label{display:flex;align-items:center;gap:9px;min-height:48px;padding:7px 9px;border-radius:8px;color:#174781;cursor:pointer}.settings-employee-results>label:hover{background:#edf6ff}.settings-employee-results input{width:18px;height:18px;accent-color:#2878e5;flex:0 0 auto}.settings-employee-results b,.settings-employee-results small{display:block}.settings-employee-results b{font-size:13px}.settings-employee-results small{margin-top:3px;color:#7895bb;font-size:10px}.settings-employee-results p{grid-column:1/-1;color:#7895bb;text-align:center}.employee-settings-form{display:grid;grid-template-columns:minmax(280px,2fr) 150px minmax(240px,1.4fr) 125px 125px;gap:13px;align-items:end;margin-top:18px;padding-top:18px;border-top:1px solid #e5eef8}.employee-settings-form h3{grid-column:1/-1;margin:0;font-size:16px}.employee-settings-form>label{font-size:12px;color:#6f8db4}.employee-settings-form>label>input,.employee-settings-form>label>select{display:block;margin-top:6px}.employee-settings-form fieldset{grid-column:1/4;display:flex;gap:16px;align-items:center;min-height:52px;border:1px solid #dce9f7;border-radius:9px;padding:8px 12px}.employee-settings-form legend{padding:0 5px;color:#6f8db4;font-size:12px}.employee-settings-form fieldset label{display:flex;align-items:center;gap:6px;color:#315b92;font-size:13px;cursor:pointer}.employee-settings-form fieldset input{width:17px;height:17px;accent-color:#2878e5}.employee-settings-form>p{grid-column:4/6;margin:0;color:#7895bb;font-size:11px;line-height:1.4}.employee-settings-form>button{grid-column:4/6;height:44px;border-radius:9px;font-weight:700}.employee-settings-form>small{grid-column:1/4;color:#159c72;font-size:12px}.settings-address .address-suggestions{top:66px}
.workplace-type-switch{grid-column:1/-1;display:flex;align-items:stretch;gap:10px}.workplace-type-switch>span{display:flex;align-items:center;margin-right:4px;color:#6f8db4;font-size:12px}.workplace-type-switch label{position:relative;display:grid;gap:2px;min-width:210px;padding:10px 14px 10px 42px;border:1px solid #cfe0f3;border-radius:10px;background:#fff;color:#174781;cursor:pointer}.workplace-type-switch input{position:absolute;left:14px;top:17px;width:17px;height:17px;accent-color:#2878e5}.workplace-type-switch b{font-size:13px}.workplace-type-switch small{color:#7895bb;font-size:11px}.workplace-type-switch label:has(input:checked){border-color:#66a7f4;background:#edf6ff;box-shadow:inset 0 0 0 1px #66a7f4}.workplace-type-switch.online~.settings-address,.workplace-type-switch.online~label:has(#workplaceRadius){opacity:.55}.employee-settings-form input:disabled{background:#f2f5f8;color:#91a7c1}
.employee-settings-head-actions{display:flex;align-items:center;gap:9px}.employee-settings-head-actions button{height:34px;border:1px solid #8dbcf3;border-radius:8px;background:#fff;color:#176fd5;padding:0 13px;font-weight:700;cursor:pointer}.employee-settings-head-actions button:hover{background:#edf6ff}
.employee-settings-table-section{margin-top:18px;border-top:1px solid #e5eef8;padding-top:18px}.employee-settings-table-section>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}.employee-settings-table-section h3{margin:0;color:#174781;font-size:17px}.employee-settings-table-section header p{margin:5px 0 0;color:#7895bb;font-size:12px}.employee-settings-table-section header strong{white-space:nowrap;color:#5d7fa9;font-size:12px}.employee-settings-table-wrap{overflow:auto;border:1px solid #dce9f7;border-radius:10px}.employee-settings-table-wrap table{width:100%;min-width:970px;border-collapse:collapse;font-size:12px}.employee-settings-table-wrap th{padding:11px 12px;background:#edf6ff;color:#6383aa;text-align:left;font-weight:700}.employee-settings-table-wrap td{padding:12px;border-top:1px solid #e8f0f8;color:#315b92;vertical-align:middle}.employee-settings-table-wrap td:first-child b,.employee-settings-table-wrap td:first-child small{display:block}.employee-settings-table-wrap td:first-child b{color:#174781;font-size:13px}.employee-settings-table-wrap td:first-child small{margin-top:4px;color:#7895bb}.employee-settings-table-wrap td:nth-child(3){max-width:300px}.employee-settings-table-wrap button{border:1px solid #a9cdf7;border-radius:7px;background:#fff;color:#1871dc;padding:7px 10px;cursor:pointer;white-space:nowrap}.employee-settings-table-wrap .link-setting-remove{margin-left:5px;border-color:transparent;color:#bd4856}.active-setting-row td{background:#f2f8ff}.setting-status{display:inline-flex;align-items:center;white-space:nowrap;border-radius:20px;padding:6px 9px;font-weight:700}.setting-status.saved{background:#e7f8f0;color:#159c72}.setting-status.pending{background:#fff4df;color:#b97700}.muted-setting{color:#91a7c1}.settings-table-empty td{text-align:center!important;color:#7895bb!important;padding:24px!important}.settings-save-result{display:block!important;min-height:34px!important;margin-top:4px!important;border-radius:8px;padding:9px 12px;font-weight:700}.settings-save-result.success{background:#e7f8f0;color:#11845f}.settings-save-result.error{background:#fff0f1;color:#c63e4c}.settings-save-result.progress{background:#edf6ff;color:#2472d7}.settings-toast{position:fixed;z-index:100;right:24px;bottom:24px;max-width:420px;transform:translateY(30px);opacity:0;pointer-events:none;border-radius:12px;padding:14px 18px;background:#174781;color:#fff;box-shadow:0 14px 38px #17478144;font-weight:700;transition:.25s}.settings-toast.visible{transform:translateY(0);opacity:1}.settings-toast.success{background:#159c72}.settings-toast.error{background:#d64050}.settings-toast.progress{background:#2472d7}
.employee-settings-table-wrap .link-danger{margin-left:5px;border-color:transparent;color:#bd4856}
.role-dialog{width:min(920px,calc(100vw - 40px));max-height:90vh;border:0;border-radius:18px;padding:24px;color:#174781;box-shadow:0 24px 80px #12396755}.role-dialog::backdrop{background:#153a6766;backdrop-filter:blur(3px)}.role-dialog>header{display:flex;justify-content:space-between;align-items:flex-start}.role-dialog h2{margin:0;font-size:24px}.role-dialog header p{margin:5px 0 0;color:#7895bb}.dialog-close{width:36px;height:36px;border:0;border-radius:50%;background:#edf5ff;color:#174781;font-size:24px;cursor:pointer}.role-dialog-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}.role-dialog-grid label{font-size:12px;color:#6f8db4}.role-dialog-grid input,.role-dialog-grid select,.role-employees>input{display:block;width:100%;height:42px;margin-top:6px;border:1px solid #cfe0f3;border-radius:8px;padding:0 10px;background:#fff}.role-dialog-grid label:last-child{grid-column:1/-1}.role-dialog-grid select[multiple]{height:110px;padding:7px}.role-dialog h3{margin:20px 0 10px;font-size:15px}.permission-switches{display:grid;grid-template-columns:1fr 1fr;gap:8px}.permission-switches label{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:8px 12px;border:1px solid #dfebf8;border-radius:9px;color:#315b92;font-size:13px;cursor:pointer}.permission-switches input{position:absolute;opacity:0}.permission-switches i{position:relative;width:42px;height:24px;border-radius:99px;background:#c9d7e6;transition:.2s}.permission-switches i:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #315b9255;transition:.2s}.permission-switches input:checked+i{background:#297cec}.permission-switches input:checked+i:after{left:21px}.permission-switches input:disabled+i{opacity:.55}.employee-results{display:grid;grid-template-columns:1fr 1fr;gap:6px;max-height:210px;overflow:auto;margin-top:9px;padding:8px;border:1px solid #dfebf8;border-radius:9px}.employee-results label{display:flex;align-items:center;gap:8px;padding:8px;border-radius:7px;font-size:13px}.employee-results label:hover{background:#f1f7ff}.employee-results p{grid-column:1/-1;color:#7895bb}.role-dialog>small{display:block;min-height:18px;margin-top:12px;color:#df3545}.role-dialog>footer{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}.role-dialog>footer button{height:42px;padding:0 18px;border-radius:9px;border:1px solid #cfe0f3}.role-dialog>footer .primary{border:0}
.role-departments-native{display:none!important}.role-department-picker{margin-top:7px;border:1px solid #cfe0f3;border-radius:10px;background:#fafdff;overflow:hidden}.role-department-toolbar{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid #e0ebf7}.role-dialog-grid .role-department-toolbar input{margin:0;flex:1}.role-department-toolbar strong{white-space:nowrap;padding:7px 10px;border-radius:99px;background:#e8f2ff;color:#2169c4;font-size:12px}.role-department-chips{display:flex;flex-wrap:wrap;gap:7px;min-height:50px;padding:10px;border-bottom:1px solid #e0ebf7}.role-department-chips p{margin:auto 0;color:#8aa2c1}.role-department-chips button{display:flex;align-items:center;gap:7px;max-width:100%;border:0;border-radius:99px;padding:7px 10px;background:#287bea;color:#fff;cursor:pointer}.role-department-chips button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.role-department-chips button i{font-style:normal;font-size:18px;line-height:1}.role-department-results{display:grid;grid-template-columns:1fr 1fr;gap:6px;max-height:220px;overflow:auto;padding:9px}.role-department-results label{display:flex;align-items:center;gap:9px;min-width:0;padding:9px;border:1px solid transparent;border-radius:8px;color:#174781;cursor:pointer}.role-department-results label:hover{background:#edf6ff}.role-department-results label.selected{border-color:#80b8ff;background:#e9f3ff}.role-dialog-grid .role-department-results input{width:16px;height:16px;margin:0;flex:0 0 auto}.role-department-results span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.role-department-results small{display:block;color:#7895bb;font-size:10px}.role-department-results p{grid-column:1/-1;margin:8px;color:#7895bb}.employee-results .role-employee-summary{position:sticky;top:-8px;z-index:1;margin:-8px -8px 2px;padding:9px 10px;background:#eef6ff;color:#2169c4;font-weight:700}
@media(max-width:700px){.role-department-toolbar{align-items:stretch;flex-direction:column}.role-department-results{grid-template-columns:1fr}}
.structure-loading{margin-top:12px;padding:14px 16px;border-radius:10px;background:#eaf4ff;color:#5c7fae;font-size:13px}.structure-loading.error{background:#fff1f2;color:#bd4856}
.geo-cell{min-width:300px;display:grid;gap:5px}.geo-point{font-size:11px;line-height:1.3}.geo-point b{color:#315b92}.geo-point .map{white-space:nowrap;margin-left:5px}
.journal-tree{display:grid;gap:12px;margin-top:14px}.week-card{overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 1px 5px #d4e2efaa}.week-toggle{display:flex;width:100%;align-items:center;gap:12px;padding:16px 18px;border:0;background:#fff;color:#174781;text-align:left;cursor:pointer}.week-toggle:hover{background:#f5f9ff}.week-toggle strong{font-size:16px}.week-toggle span{color:#6f8db4;font-size:12px}.week-toggle b{margin-left:auto;font-size:18px}.week-toggle i{font-style:normal;color:#2777df;transition:transform .2s}.week-card.open .week-toggle i{transform:rotate(90deg)}.week-days{display:none;border-top:1px solid #e5eef8}.week-card.open .week-days{display:block}.day-row{display:grid;grid-template-columns:130px 1fr;min-height:58px;border-top:1px solid #eef4fa}.day-row:first-child{border-top:0}.day-date{padding:13px 16px;background:#f7fbff;color:#174781;font-size:12px}.day-date b{display:block;font-size:16px}.day-records{padding:10px 16px}.day-empty{color:#9aafc7;font-size:12px;padding-top:9px}.day-record{display:grid;grid-template-columns:1.4fr repeat(4,.7fr) 1fr 1fr;gap:10px;align-items:center;min-height:38px;font-size:12px;color:#315b92}.day-record.violation{margin:0 -16px;padding:0 16px;background:#fff0f1;color:#bd4856}
.filters .period-date{width:145px;border:1px solid #d7e6f7;background:#fff;color:#5a7ba7;border-radius:6px;padding:0 9px}.journal-table-wrap{margin-top:14px}.journal-table{min-width:960px!important}.journal-table .week-summary td{padding:0!important;background:#eaf4ff;border-top:8px solid #f4f9ff}.journal-table .week-summary button{display:flex;width:100%;align-items:center;gap:12px;padding:14px 16px;border:0;background:transparent;color:#174781;cursor:pointer;text-align:left}.journal-table .week-summary button:hover{background:#dcecff}.journal-table .week-summary strong{font-size:15px}.journal-table .week-summary span{color:#6f8db4}.journal-table .week-summary b{margin-left:auto;font-size:17px}.journal-table .week-summary i{font-style:normal;color:#2777df}.journal-table .day-detail.outside-period{display:none}.journal-table .empty-day td{color:#9aafc7}.journal-table .day-detail.violation td{background:#fff0f1;color:#bd4856}.journal-table .day-detail.active-day td{background:#effaf6;color:#14795d}.journal-table .day-detail.active-day td:last-child{font-weight:700}
.journal-legend{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:12px 0 -3px;padding:10px 13px;border:1px solid #deebf7;border-radius:10px;background:#fff;color:#5e7da4;font-size:11px}.journal-legend span{display:flex;align-items:center;gap:6px}.journal-legend i{width:10px;height:10px;border-radius:3px}.journal-legend i.confirmed{background:#42bd91}.journal-legend i.active{background:#58a9f5}.journal-legend i.pending{background:#f0b64d}.journal-legend i.violation{background:#ef6574}.journal-legend small{margin-left:auto;color:#7895bb}.journal-table-wrap{max-height:68vh;overflow:auto;border:1px solid #dce9f7;border-radius:10px}.journal-table{min-width:1460px!important;border-collapse:separate!important;border-spacing:0}.journal-table>thead{position:sticky;top:0;z-index:6}.journal-table>thead th{height:38px;background:#eaf4ff;text-align:center}.journal-table>thead th:first-child{text-align:left}.journal-table .matrix-week td{border-top:8px solid #f4f9ff!important}.journal-table .matrix-week em{margin-left:auto;color:#7895bb;font-size:11px;font-style:normal}.journal-table .matrix-week b{margin-left:18px;min-width:55px;text-align:right}.matrix-day-head th{padding:8px 5px!important;background:#f6faff!important;text-align:center!important;border-bottom:1px solid #dce9f7}.matrix-day-head th:first-child,.matrix-employee-row th{position:sticky;left:0;z-index:4;min-width:210px;max-width:210px;text-align:left!important}.matrix-day-head th:first-child{background:#f0f7ff!important}.matrix-day-head b,.matrix-day-head small{display:block}.matrix-day-head b{text-transform:uppercase;font-size:11px}.matrix-day-head small{margin-top:2px;color:#7895bb;font-size:10px}.matrix-day-head th:not(:first-child){min-width:142px}.matrix-employee-row th{padding:9px 12px;background:#fff;color:#174781;border-right:1px solid #e4edf7;border-bottom:1px solid #edf3f9;font-size:12px}.matrix-employee-row td{height:88px;padding:5px!important;border-bottom:1px solid #edf3f9;text-align:center;vertical-align:middle}.matrix-employee-row:hover th,.matrix-employee-row:hover td{background-color:#f9fcff}.matrix-day{display:grid;width:100%;min-height:76px;place-content:center;border:1px solid transparent;border-radius:8px;background:#effaf6;color:#16815f;cursor:pointer;overflow:hidden}.matrix-day b,.matrix-day>small{display:block}.matrix-day b{font-size:13px}.matrix-day>small{margin-top:2px;font-size:9px;opacity:.78}.matrix-address{display:grid!important;grid-template-columns:auto minmax(0,1fr);gap:2px 4px;align-items:center;width:124px;margin-top:5px;padding-top:5px;border-top:1px solid currentColor;color:#315b92;font-size:9px;line-height:1.2;text-align:left;opacity:.88}.matrix-address i{grid-row:1/3;font-style:normal}.matrix-address span,.matrix-address small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.matrix-address small{grid-column:2;margin:0!important;font-size:8px!important}.matrix-day:hover{box-shadow:0 3px 10px #17478122;transform:translateY(-1px)}.matrix-day.active{border-color:#8bc8ff;background:#ebf6ff;color:#1872ce}.matrix-day.pending{border-color:#f0c96e;background:#fff8e8;color:#9a6b00}.matrix-day.violation{border-color:#f08a95;background:#fff0f1;color:#c83e4d}.matrix-empty{color:#afbed0}.matrix-total,.matrix-credit,.matrix-violations{font-weight:700;color:#174781}.matrix-credit{color:#159c72}.matrix-violations.has-violations{color:#fff;background:#df4756!important;font-size:14px}.outside-period{background:#f4f6f8!important;color:transparent!important}.matrix-empty-week td{padding:24px!important;text-align:center;color:#7895bb}.journal-day-dialog{width:min(760px,calc(100vw - 32px));border:0;border-radius:18px;padding:24px;color:#174781;box-shadow:0 24px 80px #12396755}.journal-day-dialog::backdrop{background:#153a6766;backdrop-filter:blur(3px)}.journal-day-dialog>header{display:flex;justify-content:space-between;align-items:flex-start}.journal-day-dialog h2{margin:0}.journal-day-dialog header p{margin:5px 0 0;color:#7895bb}.journal-day-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:20px}.journal-day-metrics article{padding:13px;border-radius:10px;background:#f3f8fe}.journal-day-metrics small,.journal-day-metrics b{display:block}.journal-day-metrics small{color:#7895bb;font-size:10px}.journal-day-metrics b{margin-top:5px;font-size:17px}.journal-day-metrics .journal-day-status{grid-column:1/-1}.journal-day-status.violation{background:#fff0f1;color:#c83e4d}.journal-day-status.confirmed{background:#effaf6;color:#16815f}.journal-day-status.active{background:#ebf6ff;color:#1872ce}.journal-day-geo{margin-top:12px;padding:14px;border:1px solid #dce9f7;border-radius:10px}.journal-day-geo .geo-cell{min-width:0}.journal-day-dialog>footer{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}.journal-day-dialog>footer button{height:42px;padding:0 16px;border-radius:9px;border:1px solid #cfe0f3}.journal-day-dialog .danger{border:0;background:#df4756;color:#fff}
@media(max-width:900px){.bitrix-embedded .layout{display:block}.bitrix-embedded .layout>aside{display:none}.bitrix-embedded main{width:calc(100% - 20px);padding-top:12px}.bitrix-embedded .banner{height:76px;font-size:12px;padding:0 16px}.bitrix-embedded .banner b{font-size:13px}.bitrix-embedded .work-card{grid-template-columns:86px 1fr;min-height:340px;padding:22px 16px 16px}.bitrix-embedded .work-card blockquote{display:none}.bitrix-embedded .work-center output{font-size:50px}.bitrix-embedded .actions{flex-wrap:wrap}.bitrix-embedded .actions button{min-width:220px}.bitrix-embedded .stats{grid-template-columns:repeat(2,1fr)}.schedule-settings,.role-create,.role-assign{grid-template-columns:1fr 1fr}.schedule-settings h2,.schedule-settings fieldset,.schedule-settings small,.role-create fieldset{grid-column:1/-1}.roles-list{grid-template-columns:1fr}.role-assign label:nth-child(3){grid-row:auto}.role-assign select[multiple]{height:110px}}
@media(max-width:900px){.employee-settings>header,.employee-settings-head-actions{align-items:stretch;flex-direction:column}.employee-settings-filters,.employee-settings-form{grid-template-columns:1fr 1fr}.settings-employee-results{grid-template-columns:1fr}.employee-settings-form h3,.employee-settings-form fieldset,.employee-settings-form>p,.employee-settings-form>button,.employee-settings-form>small{grid-column:1/-1}.settings-toast{left:16px;right:16px;bottom:16px}}
@media(max-width:700px){.journal-legend small{width:100%;margin-left:0}.journal-day-metrics{grid-template-columns:1fr 1fr}.journal-day-dialog{padding:18px}.matrix-day-head th:first-child,.matrix-employee-row th{min-width:170px;max-width:170px}}
.review-dialog{width:min(700px,calc(100vw - 32px));max-height:90vh;overflow:visible}.review-dialog .warning{line-height:1.4}.review-time-row input{height:40px}.review-addresses{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.review-addresses>label{position:relative;color:#6f8db4;font-size:11px}.review-addresses input{display:block;width:100%;height:42px;margin-top:6px;border:1px solid #cfe0f3;border-radius:8px;padding:0 10px;color:#174781}.review-addresses .address-suggestions{top:63px;z-index:40}.review-dialog-status{display:block;min-height:18px;margin-top:12px;color:#c83e4d;font-size:11px}.review-dialog>footer{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.review-dialog>footer button{height:38px}.review-dialog .address-picker>span{min-height:15px}.review-dialog .address-picker>span.valid{color:#159c72}@media(max-width:700px){.review-dialog{overflow:auto}.review-addresses{grid-template-columns:1fr}.review-addresses .address-suggestions{position:static;margin-top:5px}.review-time-row{display:grid;grid-template-columns:1fr 1fr}.review-time-row label:last-child{grid-column:1/-1}}
.bitrix-embedded .brand-lockup{gap:14px}.bitrix-embedded .brand-lockup img{width:66px;height:66px}@media(max-width:900px){.bitrix-embedded .brand-lockup img{width:44px;height:44px}}
.bitrix-embedded main{width:calc(100% - 24px);max-width:none;margin:0 12px;padding-top:16px}.bitrix-embedded .banner{height:86px}.bitrix-embedded .tabs{margin:14px 0 10px}.settings-overview-hidden{display:none!important}.settings-section-tabs{display:flex;gap:8px;margin:16px 0 4px;padding:5px;border:1px solid #dce9f7;border-radius:13px;background:#fff;box-shadow:0 1px 4px #1747810d}.settings-section-tabs button{display:grid;flex:1;gap:3px;min-width:210px;padding:10px 16px;border:0;border-radius:9px;background:transparent;color:#6b88ad;text-align:left;cursor:pointer}.settings-section-tabs button b{color:#315b92;font-size:13px}.settings-section-tabs button small{font-size:10px}.settings-section-tabs button.selected{background:#e9f3ff;box-shadow:inset 0 0 0 1px #92bff3}.settings-section-tabs button.selected b{color:#176fd5}.employee-settings[data-settings-panel-content],.access-settings[data-settings-panel-content]{margin-top:12px}.employee-settings-form.hidden{display:none!important}.settings-employee-picker{margin-top:14px;padding:14px;border:1px solid #dce9f7;border-radius:11px;background:#f8fbff}.settings-employee-picker .employee-settings-filters{margin-top:0}.settings-selection-hint{display:flex;align-items:center;gap:14px;margin-top:14px;padding:16px 18px;border:1px dashed #bad3ee;border-radius:11px;background:#f8fbff;color:#6f8db4}.settings-selection-hint b{white-space:nowrap;color:#174781}.settings-selection-hint span{font-size:12px}.employee-settings-table-section{margin-top:14px;padding-top:0;border-top:0}.roles-list{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}@media(max-width:900px){.bitrix-embedded main{width:calc(100% - 16px);margin:0 8px}.settings-section-tabs{overflow:auto}.settings-section-tabs button{min-width:180px}.settings-selection-hint{align-items:flex-start;flex-direction:column;gap:5px}}
.role-dialog-grid>.role-employees{grid-column:1/-1;margin:2px 0 0;padding:14px;border:1px solid #dce9f7;border-radius:11px;background:#f8fbff}.role-dialog-grid>.role-employees h3{margin:0 0 8px}.role-selected-employees{grid-column:1/-1;padding:9px 10px;border-radius:8px;background:#edf6ff}.role-selected-employees strong{display:block;margin-bottom:7px;color:#174781}.role-selected-employees>div{display:flex;flex-wrap:wrap;gap:6px}.role-selected-employees button{height:auto!important;padding:6px 9px!important;border:0!important;border-radius:99px!important;background:#287bea!important;color:#fff!important;cursor:pointer}.role-selected-employees button i{margin-left:5px;font-style:normal}.role-selected-employees span{color:#7895bb;font-size:12px}.employee-results label.selected{background:#e8f3ff;box-shadow:inset 0 0 0 1px #91bff3}
.role-employees .role-selected-employees{margin-top:10px}.role-employees .role-selected-employees button{max-width:100%;overflow-wrap:anywhere;text-align:left}.role-employees .employee-results{grid-template-columns:minmax(0,1fr);max-height:250px;background:#fff}.role-dialog-grid .employee-results label{grid-column:auto;min-width:0;min-height:40px;display:flex;align-items:center;gap:10px;padding:8px 10px;color:#174781;cursor:pointer}.role-dialog-grid .employee-results input[type="checkbox"]{appearance:auto;display:block;flex:0 0 18px;width:18px;height:18px;margin:0;padding:0;border:0;border-radius:0;accent-color:#287bea}.role-dialog-grid .employee-results label span{min-width:0;line-height:1.35;overflow-wrap:anywhere}.role-employees .employee-results .role-employee-summary{grid-column:1;margin:-8px -8px 2px}.role-employees .employee-results>p:last-child{margin:8px}
.role-employees .employee-results{grid-template-columns:repeat(2,minmax(0,1fr))}.role-employees .employee-results .role-employee-summary{grid-column:1/-1}.role-employees .employee-results label.unnamed{color:#7895bb}@media(max-width:650px){.role-employees .employee-results{grid-template-columns:minmax(0,1fr)}}
.role-existing-assignments{margin-bottom:14px;padding:12px;border:1px solid #cfe0f3;border-radius:10px;background:#fff}.role-existing-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.role-existing-header strong{font-size:13px}.role-existing-header button,.role-existing-row button{padding:7px 10px;border:1px solid #bdd8f6;border-radius:7px;background:#f5faff;color:#1871dc;white-space:nowrap;cursor:pointer}.role-existing-assignments>p{margin:8px 0;color:#6f8db4;font-size:11px;line-height:1.4}.role-existing-list{display:grid;gap:6px;max-height:150px;overflow:auto}.role-existing-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid #e3edf8;border-radius:8px}.role-existing-row.editing{border-color:#8cbbf3;background:#edf6ff}.role-existing-row span{min-width:0}.role-existing-row b,.role-existing-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.role-existing-row b{font-size:12px}.role-existing-row small{margin-top:3px;color:#7895bb;font-size:11px}.role-selected-name{display:inline-block;padding:7px 10px;border-radius:8px;background:#287bea;color:#fff!important}.role-dialog>small.success{color:#14966c}
.role-dialog[open]{display:flex;flex-direction:column;padding:0;overflow:hidden}.role-dialog>header{flex:0 0 auto;padding:22px 24px 12px}.role-dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 24px 16px}.role-dialog>small{flex:0 0 auto;min-height:0;margin:0;padding:5px 24px;font-size:12px}.role-dialog>small:empty{display:none}.role-dialog>footer{flex:0 0 auto;margin:0;padding:12px 24px 20px;border-top:1px solid #dce9f7;background:#fff}@media(max-width:650px){.role-dialog>header{padding:16px 16px 10px}.role-dialog-body{padding:0 16px 12px}.role-dialog>small{padding:5px 16px}.role-dialog>footer{padding:10px 16px 16px}}
.role-dialog{font-size:14px}.role-dialog h2{font-size:23px}.role-dialog h3{font-size:18px}.role-dialog header p{font-size:14px}.role-dialog .role-dialog-grid label,.role-dialog .permission-switches label{font-size:14px}.role-dialog input,.role-dialog select{font-size:14px}.role-dialog button{font-size:13px}.role-dialog .dialog-close{font-size:24px}.role-dialog .role-existing-header strong{font-size:15px}.role-dialog .role-existing-assignments>p{font-size:13px}.role-dialog .role-existing-list{max-height:205px}.role-dialog .role-existing-row{padding:10px 12px}.role-dialog .role-existing-row b{font-size:14px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}.role-dialog .role-existing-row small{font-size:12px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}.role-dialog .role-existing-header button,.role-dialog .role-existing-row button{min-height:36px;font-size:13px}.role-dialog .role-selected-employees span,.role-dialog .role-employee-summary{font-size:13px}.role-dialog .employee-results label{font-size:14px}.role-dialog .role-department-results small{font-size:12px}.role-dialog .role-department-toolbar strong{font-size:13px}.role-dialog>small{font-size:13px;line-height:1.4}.role-dialog>footer button{font-size:14px;min-height:44px;height:44px}

/* Match the surrounding Bitrix24 UI: keep ordinary text readable without browser zoom. */
.bitrix-embedded{font-size:16px;line-height:1.45}
.bitrix-embedded .layout>aside a{font-size:16px;line-height:1.35}
.bitrix-embedded .tabs button{font-size:16px;min-height:44px}
.bitrix-embedded .role-badge{font-size:14px}
.bitrix-embedded h1{font-size:34px}
.bitrix-embedded .subtitle{font-size:16px}
.bitrix-embedded .work-center,.bitrix-embedded blockquote{font-size:16px}
.bitrix-embedded .work-center small,.bitrix-embedded blockquote small,
.bitrix-embedded .work-card footer,.bitrix-embedded .work-card footer span small,
.bitrix-embedded .work-card footer em{font-size:14px}
.bitrix-embedded .actions button{font-size:15px}
.bitrix-embedded .stats small,.bitrix-embedded .history header,
.bitrix-embedded .history header button,.bitrix-embedded .empty,
.bitrix-embedded #historyList{font-size:15px}
.bitrix-embedded .stats b{font-size:21px}
.bitrix-embedded .empty b{font-size:17px}
.bitrix-embedded .filters select,.bitrix-embedded .filters button,
.bitrix-embedded .filters input{min-height:44px;font-size:15px}
.bitrix-embedded .table-wrap table,.bitrix-embedded .totals article,
.bitrix-embedded .calendar-grid article,.bitrix-embedded .permissions span{font-size:15px}
.bitrix-embedded .table-wrap th,.bitrix-embedded .table-wrap td{line-height:1.4}
.bitrix-embedded .roles-list article,.bitrix-embedded .roles-list small,
.bitrix-embedded .roles-list article footer span,.bitrix-embedded .roles-list article footer button,
.bitrix-embedded .access-settings>header p,.bitrix-embedded .storage-status span,
.bitrix-embedded .employee-settings header p,.bitrix-embedded .employee-settings>header strong,
.bitrix-embedded .employee-picker-toolbar,.bitrix-embedded .employee-picker-toolbar button,
.bitrix-embedded .employee-settings-form>label,.bitrix-embedded .employee-settings-form legend,
.bitrix-embedded .employee-settings-form>p,.bitrix-embedded .employee-settings-form>small,
.bitrix-embedded .employee-settings-table-section header p,
.bitrix-embedded .employee-settings-table-section header strong,
.bitrix-embedded .employee-settings-table-wrap table,
.bitrix-embedded .settings-section-tabs button small,
.bitrix-embedded .settings-selection-hint span{font-size:14px}
.bitrix-embedded .employee-settings select,.bitrix-embedded .employee-settings input,
.bitrix-embedded .employee-settings button,.bitrix-embedded .access-settings button,
.bitrix-embedded .address-suggestions button{font-size:15px}
.bitrix-embedded .settings-employee-results b,
.bitrix-embedded .employee-settings-table-wrap td:first-child b,
.bitrix-embedded .settings-section-tabs button b{font-size:15px}
.bitrix-embedded .settings-employee-results small,
.bitrix-embedded .employee-settings-table-wrap td:first-child small,
.bitrix-embedded .address-picker>span,.bitrix-embedded .address-suggestions small{font-size:13px}
.bitrix-embedded .settings-employee-results>label{min-height:56px}
.bitrix-embedded .employee-settings-table-wrap th,.bitrix-embedded .employee-settings-table-wrap td{padding:14px}
.bitrix-embedded .journal-legend,.bitrix-embedded .journal-legend small,
.bitrix-embedded .structure-loading{font-size:14px}
.bitrix-embedded .journal-table .matrix-week em,.bitrix-embedded .matrix-day-head b,
.bitrix-embedded .matrix-employee-row th{font-size:14px}
.bitrix-embedded .matrix-day-head small,.bitrix-embedded .matrix-day b,
.bitrix-embedded .matrix-address,.bitrix-embedded .matrix-address small{font-size:12px!important}
.bitrix-embedded .matrix-day{min-height:86px}
.bitrix-embedded .matrix-employee-row td{height:98px}
.role-dialog{font-size:16px}
.role-dialog header p,.role-dialog .role-dialog-grid label,
.role-dialog .permission-switches label,.role-dialog input,.role-dialog select,
.role-dialog button,.role-dialog .employee-results label,
.role-dialog .role-existing-row b,.role-dialog .role-existing-header strong,
.role-dialog .role-selected-employees span,.role-dialog .role-employee-summary,
.role-dialog .role-department-toolbar strong,.role-dialog>small{font-size:16px}
.role-dialog .role-existing-row small,.role-dialog .role-existing-assignments>p,
.role-dialog .role-department-results small{font-size:14px}
.role-dialog .role-existing-actions{display:flex;flex:0 0 auto;gap:7px;align-items:center}
.role-dialog .role-existing-actions .remove-assignment{border-color:#f5c3ca;background:#fff5f6;color:#c43e4d}
.role-dialog .role-existing-actions .remove-assignment:hover{background:#ffe8eb}
.role-dialog .role-existing-actions button:disabled{opacity:.55;cursor:wait}
@media(max-width:650px){.role-dialog .role-existing-row{align-items:stretch;flex-direction:column}.role-dialog .role-existing-actions{flex-wrap:wrap}.role-dialog .role-existing-actions button{flex:1}}
.role-dialog .role-department-results span{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35}
.role-dialog .role-dialog-grid input,.role-dialog .role-dialog-grid select,
.role-dialog .role-employees>input{min-height:46px}
.role-dialog .role-existing-header button,.role-dialog .role-existing-row button,
.role-dialog>footer button{font-size:15px;min-height:44px}
.review-dialog{font-size:16px}
.review-dialog .warning,.review-dialog .form-row label,
.review-dialog .review-addresses>label,.review-dialog .address-picker>span,
.review-dialog .review-dialog-status,.review-dialog input,.review-dialog button{font-size:15px}
.address-picker>.address-search-button{display:block;margin-top:7px;padding:7px 11px;border:1px solid #b9d6f5;border-radius:7px;background:#edf6ff;color:#176fd5;font-size:12px;font-weight:700;cursor:pointer}
.address-picker>.address-search-button:hover{background:#dceeff}.address-picker>.address-search-button:disabled{opacity:.5;cursor:not-allowed}
.address-picker>.address-suggestions{top:102px}

/* Settings workspace: filters stay above the saved list, editor stays beside it. */
.settings-main-toolbar{display:flex;align-items:end;gap:12px;margin:18px 0 14px}
.settings-main-toolbar .employee-settings-filters{flex:1;min-width:0;margin:0}
.settings-main-toolbar #addSettingsEmployee{flex:0 0 auto;min-height:42px;padding:0 16px;border:1px solid #8dbcf3;border-radius:8px;background:#fff;color:#176fd5;font-weight:700;cursor:pointer}
.settings-main-toolbar #addSettingsEmployee:hover{background:#edf6ff}
.settings-workspace-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(370px,.85fr);gap:16px;align-items:start}
.settings-list-pane,.settings-detail-pane{min-width:0}
.settings-detail-pane{position:sticky;top:12px}
.settings-workspace-grid .employee-settings-table-section{margin:0;padding:0;border:0}
.settings-workspace-grid .employee-settings-table-section>header{gap:10px;flex-wrap:wrap}
.settings-workspace-grid .employee-settings-table-section>header strong{margin-left:auto}
.settings-reset-filters{border:1px solid #b9d6f5;border-radius:7px;background:#fff;color:#176bd4;padding:7px 10px;font-size:13px;font-weight:700;cursor:pointer}
.settings-reset-filters:hover{background:#edf6ff}
.settings-workspace-grid .employee-settings-table-wrap{max-height:620px;overflow:auto}
.settings-workspace-grid .employee-settings-table-wrap table{min-width:700px;font-size:13px}
.settings-workspace-grid .employee-settings-table-wrap th,.settings-workspace-grid .employee-settings-table-wrap td{padding:11px 9px}
.settings-workspace-grid .employee-settings-table-wrap th:nth-child(1){width:24%}
.settings-workspace-grid .employee-settings-table-wrap th:nth-child(2){width:18%}
.settings-workspace-grid .employee-settings-table-wrap th:nth-child(3){width:22%}
.settings-workspace-grid .employee-settings-table-wrap th:nth-child(4){width:19%}
.settings-workspace-grid .employee-settings-table-wrap th:nth-child(5){width:17%}
.settings-workspace-grid .settings-place-preview{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-workspace-grid .employee-settings-table-wrap td:last-child{white-space:nowrap}
.settings-workspace-grid .employee-settings-table-wrap td:last-child .setting-status{display:block;width:max-content;margin-bottom:6px}
.settings-workspace-grid .employee-settings-table-wrap button{padding:6px 9px}
.settings-workspace-grid .settings-employee-picker{margin:0 0 14px}
.settings-employee-picker h3{margin:0;color:#174781;font-size:17px}
.settings-employee-picker>p{margin:4px 0 10px;color:#6f8db4;font-size:13px}
.settings-workspace-grid .settings-employee-results{max-height:230px}
.settings-workspace-grid .employee-settings-form{grid-template-columns:1fr 1fr;gap:11px;margin:0;padding:16px;border:1px solid #dce9f7;border-radius:11px;background:#f8fbff}
.settings-workspace-grid .employee-settings-form h3,.settings-workspace-grid .settings-editor-summary,.settings-workspace-grid .workplace-type-switch,.settings-workspace-grid .settings-address,.settings-workspace-grid .employee-settings-form>label:has(#scheduleMode),.settings-workspace-grid .employee-settings-form fieldset,.settings-workspace-grid .employee-settings-form>p:not(.settings-editor-summary),.settings-workspace-grid .employee-settings-form>button,.settings-workspace-grid .employee-settings-form>small{grid-column:1/-1}
.settings-workspace-grid .employee-settings-form h3{font-size:18px}
.settings-workspace-grid .settings-editor-summary{margin:-5px 0 2px!important;color:#5d7fa9!important;font-size:13px!important}
.settings-workspace-grid .workplace-type-switch{flex-wrap:wrap}
.settings-workspace-grid .workplace-type-switch label{min-width:155px;flex:1}
.settings-workspace-grid .employee-settings-form fieldset{flex-wrap:wrap;gap:10px}
.settings-workspace-grid .employee-settings-form>button{min-height:44px}
.settings-workspace-grid .settings-selection-hint{margin:0;align-items:flex-start;flex-direction:column;gap:6px}
.settings-workspace-grid .settings-selection-hint.hidden{display:none!important}
@media(max-width:1200px){.settings-workspace-grid{grid-template-columns:1fr}.settings-detail-pane{position:static;grid-row:1}.settings-list-pane{grid-row:2}.settings-main-toolbar{align-items:stretch;flex-direction:column}.settings-main-toolbar #addSettingsEmployee{align-self:flex-end}}
@media(max-width:650px){.settings-main-toolbar .employee-settings-filters{grid-template-columns:1fr}.settings-main-toolbar #addSettingsEmployee{align-self:stretch}.settings-workspace-grid .employee-settings-form{grid-template-columns:1fr}.settings-workspace-grid .workplace-type-switch label{min-width:100%}}
.own-history-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
.own-history-heading button,.calendar-toolbar button{min-height:40px;padding:0 14px;border:1px solid #bdd6f5;border-radius:8px;background:#fff;color:#176bd4;font-size:14px;cursor:pointer}
.own-history-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:14px;padding:16px;background:#fff;border:1px solid #e0ebf9;border-radius:11px;color:#5c7fa9;font-size:14px}
.own-history-toolbar label{display:grid;gap:6px;font-weight:700;color:#174781}
.own-history-toolbar select,.calendar-toolbar select{min-height:42px;padding:0 12px;border:1px solid #bdd6f5;border-radius:8px;background:#fff;color:#174781;font-size:15px}
.own-history-rows{display:grid;gap:10px}
.own-history-day{border:1px solid #dce9f7;border-radius:11px;background:#fff;overflow:hidden}
.own-history-day summary{display:flex;align-items:center;gap:16px;padding:17px;cursor:pointer;list-style:none}
.own-history-day summary::-webkit-details-marker{display:none}
.own-history-day summary span{flex:1;display:grid;gap:4px}
.own-history-day summary b{color:#174781;font-size:17px}
.own-history-day summary small{color:#7896bd;font-size:13px}
.own-history-day summary strong{font-size:18px;color:#174781}
.own-history-day summary em{min-width:150px;font-size:14px;font-style:normal;text-align:right;color:#159c72}
.own-history-day summary em.violation{color:#c74756}.own-history-day summary em.pending{color:#b78125}.own-history-day summary em.active{color:#2376db}
.own-history-shifts{padding:0 17px 16px;border-top:1px solid #e8f0fb}
.own-history-shift{display:grid;gap:6px;padding:14px 0;border-bottom:1px solid #edf3fa;color:#5b7da7;font-size:14px}
.own-history-shift:last-child{border-bottom:0}
.own-history-shift>div{display:flex;justify-content:space-between;gap:12px;color:#174781;font-size:15px}
.own-history-shift small{font-size:13px;line-height:1.5}
.own-history-empty,.calendar-loading{padding:28px;border:1px solid #dce9f7;border-radius:11px;background:#fff;color:#6f8db4;text-align:center;font-size:15px}
.calendar-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px;padding:14px;border:1px solid #e0ebf9;border-radius:11px;background:#fff}
.calendar-toolbar select{min-width:210px;max-width:360px;flex:1}
.calendar-toolbar strong{min-width:220px;color:#174781;text-align:center;font-size:15px}
.calendar-note{margin:10px 0 0;color:#6f8db4;font-size:13px}
.calendar-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.calendar-grid .calendar-day{min-width:0;min-height:190px;border:1px solid #dce9f7;border-bottom:4px solid #81b5f4;padding:16px;font-size:14px}
.calendar-grid .calendar-day.calendar-alert{border-bottom-color:#ef6574}
.calendar-day header b{margin:0 0 12px;font-size:17px;text-transform:capitalize}
.calendar-metric{display:flex;align-items:center;gap:9px;margin:5px 0;color:#5b7da7}
.calendar-metric strong{min-width:25px;color:#174781;font-size:20px}
.calendar-warning{margin:8px 0;color:#c74756;font-weight:700}
.calendar-day details{margin-top:9px;border-top:1px solid #e9f1fb;padding-top:9px}
.calendar-day details summary{cursor:pointer;color:#176bd4;font-weight:700}
.calendar-day details ul{max-height:180px;overflow:auto;margin:8px 0 0;padding-left:18px;line-height:1.5}
@media(max-width:1100px){.calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.calendar-grid{grid-template-columns:1fr}.own-history-heading,.own-history-toolbar{align-items:stretch;flex-direction:column}.own-history-day summary{flex-wrap:wrap}.own-history-day summary em{min-width:0;text-align:left}.calendar-toolbar select{min-width:100%;max-width:none}.calendar-toolbar strong{order:-1;min-width:100%}}

/* Personal check-in: clear status and actions, with place and marks below. */
#employee .work-card,.bitrix-embedded #employee .work-card{display:flex;flex-direction:column;align-items:stretch;min-height:0;margin-top:18px;padding:24px 28px;border:1px solid #dce9f7;border-radius:14px;box-shadow:0 2px 8px #d4e2ef70}
#employee .work-center{text-align:left}
#employee .work-center p{display:inline-block;border-radius:20px;background:#eaf3ff;color:#174781;padding:7px 12px;font-size:15px;font-weight:700}
#employee .work-center output,.bitrix-embedded #employee .work-center output{font-size:46px;letter-spacing:-2px;margin:12px 0 5px}
#employee .work-center small{display:block;font-size:14px;line-height:1.4}
#employee .actions,.bitrix-embedded #employee .actions{display:flex;gap:10px;max-width:720px;margin-top:20px;padding:18px 0 0;border-top:1px solid #e2edf9}
#employee .actions button,.bitrix-embedded #employee .actions button{flex:0 1 auto;min-width:200px;height:46px;padding:0 18px;font-size:13px}
#employee .actions button.hidden{display:none}
#employee .stats,.bitrix-embedded #employee .stats{gap:10px;margin-top:12px}
#employee .stats article,.bitrix-embedded #employee .stats article{min-height:72px;padding:12px 16px}
#employee .stats small{font-size:12px}
#employee .stats b{font-size:18px;margin:4px 0}
#employee .personal-details{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.4fr);gap:12px;margin-top:12px}
#employee .workplace-summary,#employee .personal-details .history{margin:0;min-height:150px;padding:20px;border:1px solid #dce9f7;border-radius:12px;background:#fff;box-shadow:0 1px 5px #d4e2efaa}
#employee .workplace-summary h2{margin:0 0 14px;font-size:18px;color:#174781}
#employee .workplace-summary b,#employee .workplace-summary small,#employee .workplace-summary em{display:block;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
#employee .workplace-summary small{margin-top:7px;color:#6082ad}
#employee .workplace-summary em{margin-top:12px;color:#16845e;font-style:normal}
#employee .personal-details .history header{font-size:18px;color:#174781}
#employee .personal-details .history header button{font-size:13px}
#employee .personal-details #historyList{max-height:175px;overflow:auto;font-size:13px;line-height:1.5}
#employee .personal-details #historyList li{padding:8px 0;border-top:1px solid #e7eef8}
#employee .personal-details .empty{font-size:13px;padding:18px 0}
@media(max-width:760px){#employee .personal-details{grid-template-columns:1fr}#employee .actions{flex-wrap:wrap}#employee .actions button{flex:1 1 100%}#employee .stats{grid-template-columns:repeat(2,1fr)}}

.date-schedule-editor{margin-top:14px;padding:16px;border:1px solid #cfdef2;border-radius:11px;background:#fff}
.date-schedule-editor h3{margin:0;color:#174781;font-size:17px}
.date-schedule-editor p{margin:7px 0 13px;color:#5d7fa9;font-size:13px;line-height:1.4}
.date-schedule-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.date-schedule-toolbar strong{font-size:15px;color:#174781}
.date-schedule-toolbar button,.date-schedule-actions button{min-height:38px;padding:7px 11px;border:1px solid #bad4f2;border-radius:7px;background:#fff;color:#176bd4;font-size:13px;cursor:pointer}
.date-schedule-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.date-schedule-grid>span{text-align:center;color:#6787af;font-size:12px;font-weight:700}
.date-schedule-grid button{min-width:0;min-height:44px;border:1px solid #dce8f7;border-radius:7px;background:#fff;color:#174781;font-size:13px;cursor:pointer}
.date-schedule-grid button.other-month{opacity:.4}
.date-schedule-grid button.selected{border-color:#176bd4;background:#dcecff;color:#0b5bb6;font-weight:700}
.date-schedule-grid button.override-day{box-shadow:inset 0 -4px #2a8eec}
.date-schedule-grid button.day-off{box-shadow:inset 0 -4px #e6a348}
.date-schedule-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-top:14px}
.date-schedule-controls label{display:grid;gap:5px;font-size:13px;color:#4f72a0}
.date-schedule-controls select,.date-schedule-controls input{height:38px;padding:5px 8px;border:1px solid #bad4f2;border-radius:7px;background:#fff;color:#174781;font-size:14px}
.date-schedule-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}
.date-schedule-actions .primary{color:#fff}
.date-schedule-result{display:block;min-height:20px;margin-top:9px;font-size:13px;color:#167b55}
.date-schedule-result.error{color:#c43e4d}

#staff .filters{display:grid;grid-template-columns:minmax(155px,1.1fr) minmax(175px,1.25fr) minmax(140px,.8fr) minmax(210px,1.3fr);gap:10px;align-items:center}
#manager #journalEmployeeSearch{flex:1 1 240px;min-width:210px;max-width:380px;height:38px;padding:0 12px;border:1px solid #cfe0f3;border-radius:7px;background:#fff;color:#174781;font-size:13px}
#manager #journalEmployeeSearch::placeholder{color:#7896bd}
#manager #journalEmployeeSearch:focus{outline:2px solid #3586ed;outline-offset:1px}
@media(max-width:680px){#manager #journalEmployeeSearch{max-width:none;flex-basis:100%}}
#staff .filters select,#staff .filters input{width:100%;min-width:0;height:42px;padding:0 12px;border:1px solid #cfe0f3;border-radius:8px;background:#fff;color:#174781;font-size:14px}
#staff .filters input::placeholder{color:#7896bd}
#staff .filters input:focus{outline:2px solid #3586ed;outline-offset:1px}
#staff .staff-result-count{margin:10px 2px 0;color:#6585ae;font-size:13px}
#staff .table-wrap{margin-top:9px}
@media(max-width:1100px){#staff .filters{grid-template-columns:1fr 1.2fr .8fr}#staff .filters input{grid-column:1/-1}}
@media(max-width:680px){#staff .filters{grid-template-columns:1fr}#staff .filters input{grid-column:auto}}

#manager .journal-personal-totals{margin-top:14px;padding:18px 20px;border:1px solid #dce9f7;border-radius:11px;background:#fff}
#manager .journal-personal-totals h2{margin:0;color:#174781;font-size:18px}
#manager .journal-personal-totals p{margin:5px 0 0;color:#6b8ab3;font-size:13px}
#manager .journal-personal-totals .table-wrap{max-height:340px;margin-top:13px;overflow:auto;box-shadow:none;border:1px solid #e0ebf9}
#manager .journal-personal-totals table{min-width:620px}
#manager .journal-personal-totals th{position:sticky;top:0;z-index:1;font-size:13px}
#manager .journal-personal-totals td{font-size:14px}
#manager .journal-personal-totals td:not(:first-child){font-weight:700}
#manager .journal-personal-totals td:nth-child(3){color:#159c72}

#manager .admin-open-shifts{margin-top:12px;padding:16px 18px;border:1px solid #bfd8f4;border-radius:11px;background:#f8fbff}
#manager .admin-open-shifts.hidden{display:none}
#manager .admin-open-shifts header{display:flex;justify-content:space-between;gap:14px;align-items:start}
#manager .admin-open-shifts h2{margin:0;color:#174781;font-size:18px}
#manager .admin-open-shifts header p{margin:4px 0 0;color:#6688b3;font-size:13px}
#manager .admin-open-shifts header strong{flex:none;color:#176bd4;font-size:13px}
#manager .admin-open-shifts-actions{display:flex;align-items:center;gap:10px}
#manager .admin-open-shifts-actions button{min-height:34px;padding:5px 10px;border:1px solid #bdd8f6;border-radius:7px;background:#fff;color:#176bd4;font-size:13px;cursor:pointer}
#manager .admin-open-shifts-list{display:grid;gap:7px;max-height:260px;overflow:auto;margin-top:12px}
#manager .admin-open-shift-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid #dce9f7;border-radius:8px;background:#fff}
#manager .admin-open-shift-row b,#manager .admin-open-shift-row small{display:block}
#manager .admin-open-shift-row b{color:#174781;font-size:14px}
#manager .admin-open-shift-row small{margin-top:3px;color:#6d8bb5;font-size:12px}
#manager .admin-open-shift-row button{flex:none;min-height:36px;padding:6px 12px;border:1px solid #9dc7f5;border-radius:7px;background:#edf6ff;color:#176bd4;font-size:13px;cursor:pointer}
#manager .admin-open-shifts-empty{margin:0;padding:8px 0;color:#6d8bb5;font-size:13px}
.admin-close-shift-dialog{width:min(520px,calc(100vw - 28px));padding:22px}
.admin-close-shift-dialog h2{font-size:20px}
.admin-close-shift-dialog p{margin:8px 0;color:#174781;font-size:14px}
.admin-close-shift-dialog .admin-close-shift-note{padding:10px 12px;border-radius:8px;background:#fff6e8;color:#8c631c;line-height:1.45}
.admin-close-shift-dialog label{display:grid;gap:6px;margin-top:14px;color:#416b9e;font-size:14px}
.admin-close-shift-dialog label span{color:#7896bd;font-size:12px}
.admin-close-shift-dialog input,.admin-close-shift-dialog textarea{width:100%;padding:10px 12px;border:1px solid #bdd4ef;border-radius:7px;background:#fff;color:#174781;font:inherit}
.admin-close-shift-dialog textarea{min-height:90px;resize:vertical}
.admin-close-shift-dialog small{display:block;min-height:18px;margin-top:10px;color:#bf4250;font-size:13px}
.admin-close-shift-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.admin-close-shift-dialog footer button{min-height:40px;padding:8px 14px;border:1px solid #cfe0f3;border-radius:7px;background:#fff;color:#174781;cursor:pointer}
.admin-closed-info{margin:10px 0 0;padding:10px 12px;border-radius:8px;background:#fff6e8;color:#8c631c;font-size:13px;line-height:1.45}
@media(max-width:680px){#manager .admin-open-shifts header,#manager .admin-open-shift-row{align-items:stretch;flex-direction:column}#manager .admin-open-shift-row button{align-self:flex-start}}

/* Compact personal check-in, matching the approved first layout. */
.sidebar-brand{display:none}
body[data-view="employee"] .sidebar-brand,body[data-view="ownHistory"] .sidebar-brand{display:block;margin:4px 11px 24px;color:#176bd4;font-size:17px;font-weight:700;white-space:nowrap}
body[data-view="employee"] .side-promo,body[data-view="employee"] .tabs,body[data-view="ownHistory"] .side-promo,body[data-view="ownHistory"] .tabs{display:none}
body[data-view="employee"] .bitrix-embedded main,body.bitrix-embedded[data-view="employee"] main{padding-top:18px}
#employee{max-width:1100px;margin:24px auto 0}
#employee .personal-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
#employee .personal-heading h1{font-size:25px;line-height:1.2}
#employee .personal-heading .subtitle{font-size:15px;margin-top:7px}
#employee .personal-heading .role-badge{flex:none;padding:9px 13px;border-radius:18px;background:#e9f3ff;color:#2374d9;font-size:13px;font-weight:700}
#employee .work-card,.bitrix-embedded #employee .work-card{display:block;margin:0;padding:24px;border:1px solid #d8e7fa;border-radius:14px;background:#fff;box-shadow:none}
#employee .shift-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
#employee .shift-state{display:inline-flex;align-items:center;gap:9px;margin:0;padding:9px 13px;border-radius:99px;background:#eaf3ff;color:#1a6bc4;font-size:15px;font-weight:700}
#employee .shift-state::before{content:"";width:9px;height:9px;flex:none;border-radius:50%;background:currentColor}
#employee .shift-state.completed{background:#e3f7ef;color:#177957}
#employee .shift-state.active{background:#e4f2ff;color:#196ccc}
#employee .shift-state.paused{background:#fff1d9;color:#a66d19}
#employee #shiftMoment{color:#5f80a9;font-size:14px}
#employee .shift-summary{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:17px 0 19px}
#employee .work-center{text-align:left;min-width:0}
#employee .work-center>span{display:block;color:#174781;font-size:15px}
#employee #worked,.bitrix-embedded #employee #worked{display:block;margin:8px 0 5px;color:#174781;font-size:32px;font-weight:750;letter-spacing:-1px;line-height:1.1}
#employee #timer.hidden{display:none}
#employee .work-center small{display:block;max-width:640px;color:#5f80a9;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
#employee .shift-times{display:flex;align-items:center;gap:42px;padding:0 30px 12px 0}
#employee .shift-times div{display:grid;gap:8px;min-width:65px}
#employee .shift-times span{color:#6b8ab3;font-size:14px}
#employee .shift-times strong{color:#174781;font-size:17px}
#employee .actions,.bitrix-embedded #employee .actions{display:flex;flex-wrap:wrap;gap:10px;max-width:none;margin:0;padding:17px 0 0;border-top:1px solid #dce9f7}
#employee .actions button,.bitrix-embedded #employee .actions button{flex:0 0 auto;min-width:0;min-height:44px;height:auto;padding:11px 18px;border-radius:8px;font-size:14px;font-weight:600;line-height:1.2}
#employee .actions button.hidden{display:none}
#employee .actions .history-action{background:#fff;border-color:#cfe0f5;color:#176bd4}
#employee .personal-details{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
#employee .workplace-summary,#employee .personal-details .history{min-height:0;padding:20px 22px;border:1px solid #dce9f7;border-radius:12px;box-shadow:none}
#employee .workplace-summary h2,#employee .personal-details .history header{margin:0 0 12px;color:#174781;font-size:17px;font-weight:700}
#employee .workplace-summary b{font-size:15px;font-weight:500}
#employee .workplace-summary small,#employee .workplace-summary em{font-size:13px}
#employee .personal-details .history header{display:flex;align-items:center;justify-content:space-between;gap:8px}
#employee .personal-details .history header button{float:none;white-space:nowrap;font-size:12px}
#employee .personal-details #historyList{max-height:190px;margin-top:0;font-size:14px}
#employee .personal-details #historyList li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 12px;padding:11px 0}
#employee .personal-details #historyList li:first-child{border-top:0}
#employee .personal-details #historyList li strong{color:#177957;font-size:13px;font-weight:600}
#employee .personal-details #historyList li small{flex-basis:100%;color:#6b8ab3;font-size:12px;line-height:1.4}
#employee .personal-details #historyList li small a{color:#176bd4}
@media(max-width:760px){#employee{margin-top:18px}#employee .personal-heading{align-items:flex-start}#employee .personal-heading .role-badge{font-size:11px}#employee .shift-summary{align-items:flex-start;flex-direction:column;gap:18px}#employee .shift-times{gap:30px;padding:0}#employee .personal-details{grid-template-columns:1fr}#employee .actions button,.bitrix-embedded #employee .actions button{flex:1 1 100%}}
