:root{--ap-page:#f8f5ff;--ap-dashboard:#f8f5ff;--ap-card:#ffffff;--ap-text:#263238;--ap-heading:#172033;--ap-muted:#6b7280;--ap-border:#e6e8ec;--ap-table-header:#adabb8;--ap-table-text:#172033;--ap-header:#ffffff;--ap-header-text:#172033;--ap-menu:#ffffff;--ap-menu-text:#263238;--ap-menu-active:#e01447;--ap-menu-active-text:#111111;--ap-menu-hover:#f8f5ff;--ap-primary:#b00149;--ap-primary-text:#ffffff;--ap-primary-hover:#90013c;--ap-button:#ffffff;--ap-button-text:#263238;--ap-add:#22a06b;--ap-edit:#247fd1;--ap-delete:#d43c49;--ap-call:#22a06b;--ap-folder:#e5b323;--ap-focus:#3b82f6;--ap-success:#22a06b;--ap-inactive:#6b7280;--ap-warning:#f5a524;--ap-error:#d92d20;--ap-info:#3b82f6;--ap-notice:#fff7e6;--ap-notice-text:#703d00;--ap-notification:#b00149;--ap-notification-text:#ffffff;--ap-toast:#172033;--ap-toast-text:#ffffff;--ap-login:#121826;--ap-login-card:#ffffff;--ap-login-text:#1f2937;--ap-login-brand:#ffffff;--ap-field:#f3f4f6;--ap-field-text:#1f2937;--ap-splash:#121826;--ap-chat:#eaf0f8;--ap-chat-received:#ffffff;--ap-chat-sent:#e6f8ed;--ap-chat-text:#263238;--ap-chat-header:#ffffff;--ap-avatar:#eee7f5;--ap-avatar-text:#663b76;--ap-icon-dashboard:#3b82f6;--ap-icon-teachers:#7c3aed;--ap-icon-personnel:#db2777;--ap-icon-students:#0891b2;--ap-icon-courses:#d97706;--ap-icon-intakes:#16a085;--ap-icon-rooms:#4f46e5;--ap-icon-programs:#9333ea;--ap-icon-rules:#ca8a04;--ap-icon-assignments:#0284c7;--ap-icon-weekly:#059669;--ap-icon-chat:#db2777;--ap-icon-settings:#64748b;--ap-icon-other:#3b82f6;}
body,.shell,.main,.content{background-color:var(--ap-page)!important}
.r362-dashboard,.r362-dashboard .shell,.r362-dashboard .main,.r362-dashboard .content{background-color:var(--ap-dashboard)!important}
body,.card,.panel{color:var(--ap-text)!important}
h1,h2,h3,.catalog-group-title strong,.personnel-name strong{color:var(--ap-heading)!important}
small,.muted,.form-help{color:var(--ap-muted)!important}
.card,.panel,.personnel-card,.s49-kpi{background-color:var(--ap-card)!important}
.card,.btn,input,select,textarea{border-color:var(--ap-border)!important}
.topbar{background-color:var(--ap-header)!important}
.topbar,.topbar h1{color:var(--ap-header-text)!important}
.sidebar{background-color:var(--ap-menu)!important}
.sidebar .nav-item,.sidebar .brand strong{color:var(--ap-menu-text)!important}
.sidebar .nav-item:hover{background:var(--ap-menu-hover)!important}
.sidebar .nav-item.active,.sidebar .nav-item.active:hover{background:var(--ap-menu-active)!important}
.sidebar .nav-item.active,.sidebar .nav-item.active:hover{border-color:var(--ap-menu-active)!important}
.sidebar .nav-item.active,.sidebar .nav-item.active:hover{color:var(--ap-menu-active-text)!important}
table th,.r362-entity table th,.card-head{background-color:var(--ap-table-header)!important}
table th,.r362-entity table th,.card-head h2{color:var(--ap-table-text)!important}
table td,.r362-entity table td{background-color:var(--ap-card)!important}
.btn{background-color:var(--ap-button)!important}
.btn{color:var(--ap-button-text)!important}
.btn.primary,.auth-submit,.auth-tab.active{background:var(--ap-primary)!important}
.btn.primary,.auth-submit,.auth-tab.active{color:var(--ap-primary-text)!important}
.btn.primary,.auth-submit{border-color:var(--ap-primary)!important}
.btn.primary:hover,.auth-submit:hover{background:var(--ap-primary-hover)!important}
.btn.danger,[data-personnel-delete],.r362-delete,[data-delete]{color:var(--ap-delete)!important}
[data-personnel-edit],.r362-edit,[data-edit]{color:var(--ap-edit)!important}
.teacher-action-call,.btn-call,a[href^="tel:"]{color:var(--ap-call)!important}
.teacher-action-documents,.teacher-documents-btn{color:var(--ap-folder)!important}
.btn-add,[data-add]{color:var(--ap-add)!important}
.pill.green,.catalog-state.enabled,.slot-state{color:var(--ap-success)!important}
.pill.amber{color:var(--ap-warning)!important}
.pill.blue{color:var(--ap-info)!important}
.r362-inactive,.catalog-state.disabled{color:var(--ap-inactive)!important}
.form-error,.error{color:var(--ap-error)!important}
.notice{background-color:var(--ap-notice)!important}
.notice{color:var(--ap-notice-text)!important}
.notification-count,.nav-item .count{background-color:var(--ap-notification)!important}
.notification-count,.nav-item .count{color:var(--ap-notification-text)!important}
.toast{background-color:var(--ap-toast)!important}
.toast{color:var(--ap-toast-text)!important}
body.auth-active,.auth-layout,.auth-brand{background-color:var(--ap-login)!important}
.auth-splash{background:var(--ap-splash)!important}
.auth-card,.auth-form-side{background-color:var(--ap-login-card)!important}
.auth-card,.auth-card h2,.auth-card label{color:var(--ap-login-text)!important}
.auth-brand h1,.auth-splash h1,.auth-splash-title{color:var(--ap-login-brand)!important}
input,select,textarea,.auth-field input{background-color:var(--ap-field)!important}
input,select,textarea,.auth-field input{color:var(--ap-field-text)!important}
.chat-history{background-color:var(--ap-chat)!important}
.chat-message{background-color:var(--ap-chat-received)!important}
.chat-message.mine{background-color:var(--ap-chat-sent)!important}
.chat-message,.chat-message.mine{color:var(--ap-chat-text)!important}
.chat-thread-heading,.chat-heading{background-color:var(--ap-chat-header)!important}
.avatar{background-color:var(--ap-avatar)!important}
.avatar{color:var(--ap-avatar-text)!important}
.sidebar .nav-item[data-nav="dashboard"] svg{color:var(--ap-icon-dashboard)!important}
.sidebar .nav-item[data-nav="teachers"] svg{color:var(--ap-icon-teachers)!important}
.sidebar .nav-item[data-nav="personnel"] svg{color:var(--ap-icon-personnel)!important}
.sidebar .nav-item[data-nav="students"] svg{color:var(--ap-icon-students)!important}
.sidebar .nav-item[data-nav="courses"] svg{color:var(--ap-icon-courses)!important}
.sidebar .nav-item[data-nav="intakes"] svg{color:var(--ap-icon-intakes)!important}
.sidebar .nav-item[data-nav="rooms"] svg{color:var(--ap-icon-rooms)!important}
.sidebar .nav-item[data-nav="programs"] svg{color:var(--ap-icon-programs)!important}
.sidebar .nav-item[data-nav="rules"] svg{color:var(--ap-icon-rules)!important}
.sidebar .nav-item[data-nav="assignments"] svg{color:var(--ap-icon-assignments)!important}
.sidebar .nav-item[data-nav="weekly"] svg{color:var(--ap-icon-weekly)!important}
.sidebar .nav-item[data-nav="chat"] svg{color:var(--ap-icon-chat)!important}
.sidebar .nav-item[data-nav="settings"] svg{color:var(--ap-icon-settings)!important}
.sidebar .nav-item svg,.sidebar .nav-item.active svg{color:var(--ap-icon-other)!important}
body .sidebar .nav-item[data-nav="dashboard"] svg{color:var(--ap-icon-dashboard)!important}
body .sidebar .nav-item[data-nav="teachers"] svg{color:var(--ap-icon-teachers)!important}
body .sidebar .nav-item[data-nav="personnel"] svg{color:var(--ap-icon-personnel)!important}
body .sidebar .nav-item[data-nav="students"] svg{color:var(--ap-icon-students)!important}
body .sidebar .nav-item[data-nav="courses"] svg{color:var(--ap-icon-courses)!important}
body .sidebar .nav-item[data-nav="intakes"] svg{color:var(--ap-icon-intakes)!important}
body .sidebar .nav-item[data-nav="rooms"] svg{color:var(--ap-icon-rooms)!important}
body .sidebar .nav-item[data-nav="programs"] svg{color:var(--ap-icon-programs)!important}
body .sidebar .nav-item[data-nav="rules"] svg{color:var(--ap-icon-rules)!important}
body .sidebar .nav-item[data-nav="assignments"] svg{color:var(--ap-icon-assignments)!important}
body .sidebar .nav-item[data-nav="weekly"] svg{color:var(--ap-icon-weekly)!important}
body .sidebar .nav-item[data-nav="chat"] svg{color:var(--ap-icon-chat)!important}
body .sidebar .nav-item[data-nav="settings"] svg{color:var(--ap-icon-settings)!important}

:root{--ws-text:var(--ap-text);--ws-ink:var(--ap-heading);--ws-muted:var(--ap-muted);--ws-border:var(--ap-border)}
.card-head{background-color:var(--ap-section-header,#fff)!important}.card-head h2{color:var(--ap-section-header-text,#172033)!important}
.teacher-action-icon.action-documents{color:var(--ap-folder)!important;fill:color-mix(in srgb,var(--ap-folder) 12%,white)!important}
.teacher-action-icon.action-contact{color:var(--ap-call)!important;fill:color-mix(in srgb,var(--ap-call) 12%,white)!important}
.teacher-action-icon.action-edit,[data-edit] svg{color:var(--ap-edit)!important}
.teacher-action-icon.action-delete,[data-delete] svg,.btn.danger svg{color:var(--ap-delete)!important}
#toast{background:var(--ap-toast)!important;color:var(--ap-toast-text)!important}#toast.error{background:var(--ap-error)!important}
.auth-tabs .auth-tab.active{background:var(--ap-primary)!important;color:var(--ap-primary-text)!important}
.ws-card,.ws-kpi,.catalog-group,.r362-settings-section,.s49-records article,.ws-slide-panel{background-color:var(--ap-card)!important;color:var(--ap-text)!important;border-color:var(--ap-border)!important}
.r362-settings-section>summary{color:var(--ap-heading)!important;background:var(--ap-section-header,#fff)!important}.r362-settings-section[open]>summary{background:color-mix(in srgb,var(--ap-primary) 6%,var(--ap-card))!important}.r362-settings-section>summary:after{color:var(--ap-primary)!important}
.auth-link,.btn.link,.auth-tabs .auth-tab:not(.active){color:var(--ap-primary)!important}
@media(max-width:899px){body .shell>.main{margin-inline:0!important;margin-right:0!important;width:100%!important}}
:focus-visible{outline:3px solid var(--ap-focus)!important;outline-offset:3px}
.pill.green{background:color-mix(in srgb,var(--ap-success) 12%,white)!important}.pill.amber{background:color-mix(in srgb,var(--ap-warning) 15%,white)!important}.pill.blue{background:color-mix(in srgb,var(--ap-info) 12%,white)!important}
.chat-history{background-image:var(--ap-image-chat,none)!important;background-size:cover}
.ap-image-menu .sidebar{background-image:var(--ap-image-menu);background-size:cover;background-position:center}
.ap-image-login .auth-brand{background-image:var(--ap-image-login);background-size:cover;background-position:center}
.ap-image-avatar .avatar:not(:has(img)){background-image:var(--ap-image-avatar);background-size:cover;background-position:center;font-size:0!important}
.ap-group{border:1px solid var(--ap-border);border-radius:12px;padding:12px;margin-block:12px}.ap-group>summary{cursor:pointer;font-weight:700;min-height:36px}.ap-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-block:12px}.ap-color{display:grid;grid-template-columns:minmax(0,1fr) 44px 90px 36px;gap:8px;align-items:center;font-size:12px}.ap-color[hidden]{display:none}.ap-color input{min-width:0;width:100%;height:40px;padding:4px}.ap-color input[type=color]{cursor:pointer}.ap-color input[type=text]{font-family:monospace;font-size:12px}.ap-color button{padding:4px;min-height:40px}.ap-actions{display:flex;gap:10px;flex-wrap:wrap;margin-block:16px}.ap-image-field{min-width:0;border:1px solid var(--ap-border);border-radius:10px;padding:12px}.ap-image-field img{width:100px;height:80px;object-fit:contain;display:block}.ap-image-field img[hidden]{display:none}#appearance-status,#appearance-error{min-height:24px}#appearance-form input[type=file]{max-width:100%}
@media(max-width:1100px){.ap-grid{grid-template-columns:1fr}}@media(max-width:420px){.ap-color{grid-template-columns:minmax(0,1fr) 40px 80px 32px;gap:4px}.ap-color span{font-size:11px}.ap-actions .btn{width:100%}}

/* Area icon settings also cover the corresponding page controls. */
.topbar .ws-icon-button svg{color:var(--ap-icon-other)!important}
body[data-ap-page="dashboard"] .content svg:not([data-semantic-icon]){color:var(--ap-icon-dashboard)}
body[data-ap-page="teachers"] .content svg:not([data-semantic-icon]){color:var(--ap-icon-teachers)}
body[data-ap-page="personnel"] .content svg:not([data-semantic-icon]){color:var(--ap-icon-personnel)}
body[data-ap-page="students"] .content svg:not([data-semantic-icon]){color:var(--ap-icon-students)}
body[data-ap-page="courses"] .content svg:not([data-semantic-icon]){color:var(--ap-icon-courses)}
body[data-ap-page="intakes"] .content svg:not([data-semantic-icon]){color:var(--ap-icon-intakes)}
body[data-ap-page="rooms"] .content svg:not([data-semantic-icon]){color:var(--ap-icon-rooms)}
body[data-ap-page="programs"] .content svg:not([data-semantic-icon]){color:var(--ap-icon-programs)}
body[data-ap-page="rules"] .content svg:not([data-semantic-icon]){color:var(--ap-icon-rules)}
body[data-ap-page="assignments"] .content svg:not([data-semantic-icon]){color:var(--ap-icon-assignments)}
body[data-ap-page="weekly"] .content svg:not([data-semantic-icon]){color:var(--ap-icon-weekly)}
body[data-ap-page="chat"] .content svg:not([data-semantic-icon]){color:var(--ap-icon-chat)}
body[data-ap-page="settings"] .content svg:not([data-semantic-icon]){color:var(--ap-icon-settings)}
