:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#f4f7fb;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}.startup-screen{display:grid;min-height:100vh;place-items:center;background:#f4f7fb}.login-page{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(420px,.8fr);min-height:100vh;background:radial-gradient(circle at 18% 18%,rgb(52 113 246 / 28%),transparent 35%),linear-gradient(135deg,#0d1830,#17294d 52%,#edf3ff 52%,#f8faff)}.login-intro{display:flex;max-width:760px;flex-direction:column;justify-content:center;padding:72px clamp(48px,8vw,130px)}.login-brand-mark{display:grid;width:52px;height:52px;margin-bottom:32px;place-items:center;border-radius:15px;color:#fff;background:#3471f6;box-shadow:0 16px 36px #1f61eb59;font-size:26px;font-weight:700}.login-eyebrow{color:#71a0ff;font-size:12px;font-weight:700;letter-spacing:.14em}.login-intro h1{max-width:650px;margin:18px 0!important;color:#fff;font-size:clamp(36px,4vw,58px)!important;line-height:1.08!important}.login-intro p{max-width:590px;color:#aebcda;font-size:17px;line-height:1.7}.login-card{width:min(430px,calc(100% - 48px));margin:auto;box-shadow:0 24px 70px #16294d29}.login-card .ant-card-body{padding:42px}.login-card-heading{margin-bottom:30px}.login-card-heading h2{margin:16px 0 4px!important}.login-lock{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;color:#2563eb;background:#eaf1ff;font-size:18px}.login-card .ant-alert{margin-bottom:22px}.login-card .ant-form-item:last-child{margin-bottom:0}.app-shell{min-height:100vh}.app-shell>.ant-layout,.app-shell .ant-layout{min-width:0}.sidebar{background:#101c34!important}.brand{display:flex;align-items:center;gap:12px;height:76px;padding:0 22px;border-bottom:1px solid rgb(255 255 255 / 10%)}.brand-mark{display:grid;width:38px;height:38px;place-items:center;border-radius:10px;color:#fff;background:#2563eb;font-size:20px;font-weight:700}.brand-title,.brand-subtitle{display:block}.brand-title{color:#fff;font-size:15px;font-weight:600}.brand-subtitle{color:#8fa2c4;font-size:12px}.topbar{display:flex;align-items:center;justify-content:space-between;height:76px;padding:0 32px;background:#fff;border-bottom:1px solid #e7ebf2}.user-summary{display:flex;align-items:center;gap:10px}.user-summary .ant-tag{margin-inline-end:0}.content{min-width:0;overflow-x:hidden;padding:36px}.page-alert{margin-bottom:20px}.hero{display:flex;align-items:flex-start;justify-content:space-between;gap:32px;margin-bottom:28px}.hero h1{margin:6px 0 8px!important;color:#172033;font-size:32px!important}.hero p{max-width:680px;margin:0;color:#667085;font-size:16px}.hero .ant-alert{min-width:320px}.status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.status-grid .ant-card{box-shadow:0 8px 24px #0f172a0d}.status-grid .ant-statistic{margin-bottom:12px}.directory-loading{display:flex;min-height:440px;flex-direction:column;align-items:center;justify-content:center;gap:16px}.directory-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;margin-bottom:24px}.directory-heading h1{margin:6px 0 8px!important;font-size:32px!important}.directory-heading p{max-width:720px;margin-bottom:0;color:#667085;font-size:16px}.directory-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:20px}.directory-stats .ant-card,.directory-grid .ant-card,.users-card{box-shadow:0 8px 24px #0f172a0d}.directory-stats .ant-statistic{margin-bottom:10px}.directory-grid{display:grid;grid-template-columns:minmax(420px,1.5fr) minmax(280px,.8fr);gap:20px;margin-bottom:20px}.group-order-list{display:flex;flex-direction:column;gap:8px}.group-order-item{display:flex;min-height:58px;align-items:center;gap:12px;padding:9px 10px;border:1px solid #e9edf4;border-radius:10px;background:#fff;transition:border-color .2s,box-shadow .2s}.group-order-item[draggable=true]{cursor:grab}.group-order-item[draggable=true]:hover{border-color:#b6c9f7;box-shadow:0 5px 14px #2563eb14}.drag-handle{color:#98a2b3;font-size:17px}.group-order-name,.employee-cell,.sync-summary{display:flex;flex-direction:column}.group-order-name{min-width:0;flex:1}.missing-groups{display:flex;align-items:center;gap:7px;margin-top:18px;flex-wrap:wrap}.sync-summary{align-items:flex-start;gap:8px}.auto-sync-note{display:flex;align-items:flex-start;gap:10px;margin-top:22px;padding:14px;border-radius:10px;color:#2563eb;background:#eef4ff}.users-card .ant-card-body{padding-top:16px}.queue-page{display:grid;gap:20px}.queue-filters .ant-input-affix-wrapper{width:190px}.queue-select{min-width:190px}.clickable-row{cursor:pointer}.clickable-row:hover td{background:#f4f8ff!important}.processing-detail,.payload-block{width:100%}.payload-block pre{max-height:340px;margin:10px 0 0;padding:14px;overflow:auto;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#334155;font-size:12px;line-height:1.55}.rules-page,.rules-list,.rule-editor,.criteria-list{width:100%}.rules-page{display:grid;gap:20px}.rule-field-select{width:280px}.criteria-list>.ant-space-item{width:100%}.criteria-list .ant-input{width:220px}.add-criterion{margin-top:12px}.participant-section,.counter-editor{width:100%}.department-collapse{margin-top:12px;background:transparent}.department-heading{display:flex;align-items:center;gap:10px}.department-users{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:8px 18px}.department-users .ant-checkbox-wrapper{min-width:0}.unavailable-user{font-size:12px}.counter-users{display:grid;gap:10px}.counter-user{display:grid;grid-template-columns:minmax(0,1fr) 110px;align-items:center;gap:16px}.counter-user .ant-input-number{width:100%}.schedules-page{display:grid;min-width:0;gap:20px}.schedule-controls,.schedule-calendar-card{min-width:0;box-shadow:0 8px 24px #0f172a0d}.schedule-calendar-card .ant-card-body{min-width:0;overflow:hidden}.schedule-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px}.schedule-month{display:flex;min-width:190px;align-items:center;justify-content:center;gap:9px;font-size:16px}.schedule-filter{max-width:290px;min-width:210px}.schedule-assignment{display:flex;align-items:flex-end;gap:12px;margin-top:20px;padding-top:20px;border-top:1px solid #edf0f5;flex-wrap:wrap}.schedule-assignment label{display:grid;gap:5px}.schedule-assignment label .ant-input,.schedule-assignment label .ant-select{min-width:155px}.schedule-assignment label:nth-of-type(3) .ant-select{min-width:245px}.schedule-selection-summary{display:grid;min-width:175px;gap:3px;margin-right:auto}.schedule-legend{display:flex;align-items:center;gap:7px;margin-bottom:14px;flex-wrap:wrap}.schedule-date{display:grid;place-content:center;text-align:center;gap:1px;line-height:1.15}.schedule-date span{color:#98a2b3;font-size:11px;font-weight:400}.schedule-date.weekend strong,.schedule-date.weekend span{color:#9a6700}.schedule-cell{width:68px;min-height:32px;padding:3px 5px;border:1px solid transparent;border-radius:7px;cursor:pointer;background:transparent;color:#667085;font:inherit;font-size:11px;transition:border-color .15s,background .15s}.schedule-cell:hover{border-color:#9db9f8}.schedule-cell:disabled{cursor:not-allowed;opacity:.55}.schedule-cell.work{color:#174ea6;background:#eaf1ff;font-weight:600}.schedule-cell.day-off{color:#667085;background:#eef1f5;font-weight:600}.schedule-cell.selected{border-color:#2563eb;background:#dbe8ff;box-shadow:0 0 0 2px #2563eb1f}.schedule-calendar-viewport{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #e7ebf2;border-radius:10px}.schedule-calendar-grid{width:max-content;background:#fff}.schedule-grid-row{display:grid;min-height:48px;align-items:stretch;border-bottom:1px solid #edf0f5}.schedule-grid-header{position:sticky;z-index:5;top:0;min-height:52px;background:#f8fafc}.schedule-grid-header>.schedule-date{border-left:1px solid #edf0f5}.schedule-employee-column{position:sticky;z-index:3;left:0;display:flex;min-width:0;align-items:center;gap:10px;padding:8px 14px;border-right:1px solid #e3e8ef;background:#fff}.schedule-grid-header .schedule-employee-column{z-index:6;background:#f8fafc}.schedule-cell-slot{display:grid;place-items:center;border-right:1px solid #f1f3f7}.schedule-department-collapse{width:100%}.schedule-department-collapse>.ant-collapse-item{border-bottom:1px solid #dfe5ee!important}.schedule-department-collapse>.ant-collapse-item>.ant-collapse-header{min-height:46px;align-items:center!important;padding-block:9px!important;background:#f4f7fb}.schedule-department-collapse .ant-collapse-content-box{padding:0!important}.schedule-department-heading{position:sticky;left:44px;display:flex;width:max-content;align-items:center;gap:10px}.schedule-department-users .schedule-grid-row:last-child{border-bottom:0}.schedule-empty{position:sticky;left:0;width:min(100vw,700px);padding:48px 24px;text-align:center}.directory-search{max-width:380px;margin-bottom:18px}.employee-cell{gap:2px}.settings-page{display:grid;gap:20px}.settings-page .directory-heading{margin-bottom:0}.settings-page>.ant-alert,.settings-card{max-width:920px}.settings-card{box-shadow:0 8px 24px #0f172a0d}.settings-source{display:flex;align-items:center;gap:12px;margin:-4px 0 22px}.settings-source .ant-tag{margin-inline-end:0}.api-token-current{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;margin-bottom:20px;border:1px solid #d9e7d6;border-radius:12px;background:#f6ffed}.token-replacement-warning{margin-bottom:16px}.revealed-api-token{margin-top:20px;padding:16px;overflow-wrap:anywhere;border-radius:10px;background:#f5f7fb}.admin-page{display:grid;min-width:0;gap:20px}.admin-page .directory-heading{margin-bottom:0}.admin-table-card,.audit-filters{min-width:0;box-shadow:0 8px 24px #0f172a0d}.password-form{margin-top:20px}.audit-filters label{display:grid;min-width:180px;gap:6px}.audit-filters .ant-picker{min-width:250px}.audit-filters .ant-select{min-width:190px}.audit-entity{display:flex;min-width:0;flex-direction:column}.audit-warning-row td{background:#fffaf0!important}.audit-detail{width:100%}.audit-json-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}@media(max-width:680px){.api-token-current{align-items:flex-start;flex-direction:column}}@media(max-width:960px){.login-page{display:flex;flex-direction:column;justify-content:center;background:radial-gradient(circle at 20% 10%,rgb(52 113 246 / 25%),transparent 35%),#0d1830}.login-intro{padding:40px 32px 20px}.login-intro h1{font-size:34px!important}.login-card{margin:20px auto 48px}.content{padding:24px}.hero{flex-direction:column}.hero .ant-alert{width:100%;min-width:0}.status-grid,.directory-stats,.directory-grid,.audit-json-grid{grid-template-columns:1fr}.directory-heading{flex-direction:column}.schedule-toolbar{align-items:flex-start;flex-direction:column}}@media(max-width:640px){.login-intro h1,.login-intro p,.login-eyebrow{display:none}.login-intro{padding:28px 24px 0}.login-brand-mark{margin-bottom:0}.login-card{width:calc(100% - 32px)}.login-card .ant-card-body{padding:28px 24px}.topbar{height:auto;min-height:76px;padding:12px 20px}.topbar>.ant-typography,.user-summary .ant-tag{display:none}.user-summary{overflow:hidden}.user-summary strong{overflow:hidden;max-width:165px;text-overflow:ellipsis}}
