/* ROSES v24DWS - Tema seragam profil + Memo Panggilan
   Nota: dokumen memo A4 kekal putih supaya cetakan rasmi tidak rosak. */
:root,html[data-theme="light"]{--roses-page-bg:#eef4fb;--roses-page-bg-2:#e7eef8;--roses-surface:#fff;--roses-surface-soft:#f8fbff;--roses-text:#0f172a;--roses-muted:#64748b;--roses-line:#dbe4f0;--roses-line-strong:#c8d4e3;--roses-shadow:0 14px 34px rgba(15,23,42,.10)}
html[data-theme="dark"]{--roses-page-bg:#06111f;--roses-page-bg-2:#02070f;--roses-surface:#0b1424;--roses-surface-soft:#111d2d;--roses-text:#f8fbff;--roses-muted:#9eb0c8;--roses-line:rgba(148,163,184,.18);--roses-line-strong:rgba(148,163,184,.28);--roses-shadow:0 16px 38px rgba(0,0,0,.34)}
html[data-theme="light"] body:not(.memo-print-view-page){background:linear-gradient(180deg,var(--roses-page-bg) 0%,var(--roses-page-bg-2) 100%)!important;color:var(--roses-text)!important}
html[data-theme="dark"] body:not(.memo-print-view-page){background:radial-gradient(circle at top,#12274a 0%,var(--roses-page-bg) 44%,var(--roses-page-bg-2) 100%)!important;color:var(--roses-text)!important}
.topbar-actions.roses-global-profile-actions,.roses-profile-actions,.dashboard-actions .topbar-actions.roses-global-profile-actions{display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;gap:.35rem!important;flex-wrap:nowrap!important}.topbar-actions.roses-global-profile-actions .icon-btn,.roses-profile-actions .icon-btn,.dashboard-actions .topbar-actions.roses-global-profile-actions .icon-btn{min-width:24px!important;width:24px!important;height:24px!important;padding:0!important;border-radius:8px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;font-size:12px!important}
html[data-theme="light"] .topbar-actions.roses-global-profile-actions .icon-btn,html[data-theme="light"] .roses-profile-actions .icon-btn,html[data-theme="light"] .dashboard-actions .topbar-actions.roses-global-profile-actions .icon-btn{background:#fff!important;color:#0f172a!important;border:1px solid #dbe4f0!important;box-shadow:0 4px 12px rgba(15,23,42,.08)!important}
html[data-theme="dark"] .topbar-actions.roses-global-profile-actions .icon-btn,html[data-theme="dark"] .roses-profile-actions .icon-btn,html[data-theme="dark"] .dashboard-actions .topbar-actions.roses-global-profile-actions .icon-btn{background:#1d293b!important;color:#f8fafc!important;border:1px solid rgba(148,163,184,.22)!important}
/* profile.html */
html[data-theme="light"] body.profile-template-v24DVF,html[data-theme="light"] body.profile-template-v24DVF .page,html[data-theme="light"] body.profile-template-v24DVF .phone-shell,html[data-theme="light"] body.profile-template-v24DVF .app-shell{background:linear-gradient(180deg,#eef4fb 0%,#e7eef8 100%)!important;color:#0f172a!important}html[data-theme="dark"] body.profile-template-v24DVF,html[data-theme="dark"] body.profile-template-v24DVF .page,html[data-theme="dark"] body.profile-template-v24DVF .phone-shell,html[data-theme="dark"] body.profile-template-v24DVF .app-shell{background:#0b0f19!important;color:#f1f5f9!important}
html[data-theme="light"] body.profile-unified-v24ECI,html[data-theme="light"] body.profile-unified-v24ECI .page,html[data-theme="light"] body.profile-unified-v24ECI .phone-shell,html[data-theme="light"] body.profile-unified-v24ECI .app-shell{background:linear-gradient(180deg,#eef4fb 0%,#e7eef8 100%)!important;color:#0f172a!important}html[data-theme="dark"] body.profile-unified-v24ECI,html[data-theme="dark"] body.profile-unified-v24ECI .page,html[data-theme="dark"] body.profile-unified-v24ECI .phone-shell,html[data-theme="dark"] body.profile-unified-v24ECI .app-shell{background:#0b0f19!important;color:#f1f5f9!important}
html[data-theme="light"] #rosesProfileTemplateV24DVG,html[data-theme="light"] #rosesProfileUnifiedV24ECI{color:#0f172a!important}html[data-theme="light"] #rosesProfileTemplateV24DVG .profile-summary,html[data-theme="light"] #rosesProfileUnifiedV24ECI .profile-summary{background:linear-gradient(135deg,#fff 0%,#eef6ff 100%)!important;border-color:#dbeafe!important;color:#0f172a!important;box-shadow:0 16px 34px rgba(15,23,42,.10)!important}html[data-theme="light"] #rosesProfileTemplateV24DVG .meta-info h1,html[data-theme="light"] #rosesProfileUnifiedV24ECI .meta-info h1{color:#0f172a!important}html[data-theme="light"] #rosesProfileTemplateV24DVG .meta-info p,html[data-theme="light"] #rosesProfileUnifiedV24ECI .meta-info p{color:#64748b!important}html[data-theme="light"] #rosesProfileTemplateV24DVG .admin-target,html[data-theme="light"] #rosesProfileTemplateV24DVG .section-card,html[data-theme="light"] #rosesProfileUnifiedV24ECI .admin-target,html[data-theme="light"] #rosesProfileUnifiedV24ECI .section-card{background:#fff!important;border-color:#dbe4f0!important;color:#0f172a!important;box-shadow:0 12px 26px rgba(15,23,42,.08)!important}html[data-theme="light"] #rosesProfileTemplateV24DVG .section-header,html[data-theme="light"] #rosesProfileUnifiedV24ECI .section-header{border-bottom-color:#e2e8f0!important}html[data-theme="light"] #rosesProfileTemplateV24DVG .section-header h2,html[data-theme="light"] #rosesProfileUnifiedV24ECI .section-header h2{color:#0f172a!important}html[data-theme="light"] #rosesProfileTemplateV24DVG label,html[data-theme="light"] #rosesProfileTemplateV24DVG .field-help-line,html[data-theme="light"] #rosesProfileTemplateV24DVG .text-muted,html[data-theme="light"] #rosesProfileTemplateV24DVG .debug-line,html[data-theme="light"] #rosesProfileUnifiedV24ECI label,html[data-theme="light"] #rosesProfileUnifiedV24ECI .field-help-line,html[data-theme="light"] #rosesProfileUnifiedV24ECI .text-muted,html[data-theme="light"] #rosesProfileUnifiedV24ECI .debug-line{color:#64748b!important}html[data-theme="light"] #rosesProfileTemplateV24DVG input,html[data-theme="light"] #rosesProfileTemplateV24DVG select,html[data-theme="light"] #rosesProfileTemplateV24DVG textarea,html[data-theme="light"] #rosesProfileUnifiedV24ECI input,html[data-theme="light"] #rosesProfileUnifiedV24ECI select,html[data-theme="light"] #rosesProfileUnifiedV24ECI textarea{background:#f8fbff!important;color:#0f172a!important;border-color:#cbd5e1!important}html[data-theme="light"] #rosesProfileTemplateV24DVG input::placeholder,html[data-theme="light"] #rosesProfileTemplateV24DVG textarea::placeholder,html[data-theme="light"] #rosesProfileUnifiedV24ECI input::placeholder,html[data-theme="light"] #rosesProfileUnifiedV24ECI textarea::placeholder{color:#94a3b8!important}html[data-theme="light"] #rosesProfileTemplateV24DVG .sticky-footer,html[data-theme="light"] #rosesProfileUnifiedV24ECI .sticky-footer{background:rgba(238,244,251,.96)!important;border-top-color:#dbe4f0!important}html[data-theme="light"] #rosesProfileTemplateV24DVG .btn-muted,html[data-theme="light"] #rosesProfileTemplateV24DVG .btn-secondary,html[data-theme="light"] #rosesProfileUnifiedV24ECI .btn-muted,html[data-theme="light"] #rosesProfileUnifiedV24ECI .btn-secondary{background:#fff!important;color:#0f172a!important;border:1px solid #cbd5e1!important}
html[data-theme="light"] .bottom-nav{background:rgba(255,255,255,.86)!important;border-color:#dbe4f0!important;box-shadow:0 8px 24px rgba(15,23,42,.12)!important}html[data-theme="light"] .bottom-nav a,html[data-theme="light"] .bottom-nav button{color:#475569!important}html[data-theme="light"] .bottom-nav .active,html[data-theme="light"] .bottom-nav [aria-current="page"]{color:#0f172a!important;background:#eef6ff!important}
/* Memo Panggilan */
html[data-theme="light"] body.memo-flow-page{background:linear-gradient(180deg,#eef4fb 0%,#e7eef8 100%)!important;color:#0f172a!important}html[data-theme="dark"] body.memo-flow-page{background:#06111f!important;color:#f8fafc!important}html[data-theme="light"] body.memo-flow-page .memo-live-toolbar,html[data-theme="light"] body.memo-flow-page .memo-list-pane,html[data-theme="light"] body.memo-flow-page .memo-topbar{background:rgba(255,255,255,.92)!important;color:#0f172a!important;border-color:#dbe4f0!important;box-shadow:0 12px 28px rgba(15,23,42,.10)!important}html[data-theme="light"] body.memo-flow-page .memo-topbar h1,html[data-theme="light"] body.memo-flow-page .memo-list-pane h2{color:#0f172a!important}html[data-theme="light"] body.memo-flow-page .memo-topbar p,html[data-theme="light"] body.memo-flow-page .memo-list-pane p{color:#64748b!important}body.memo-flow-page .memo-a4-document,body.memo-flow-page .memo-a4-preview{background:#fff!important;color:#111827!important}body.memo-flow-page .memo-a4-document input,body.memo-flow-page .memo-a4-document select,body.memo-flow-page .memo-a4-document textarea,body.memo-flow-page .memo-a4-document .memo-inline-edit,body.memo-flow-page .memo-a4-document .memo-teacher-combo,body.memo-flow-page .memo-a4-document .memo-teacher-select{background:#fff!important;color:#111827!important}body.memo-flow-page .memo-a4-document input::placeholder,body.memo-flow-page .memo-a4-document textarea::placeholder{color:#9ca3af!important}
/* Setup Jawatan/Panitia */
html[data-theme="light"] body.memo-jawatan-dashboard-template-page,html[data-theme="light"] body.memo-jawatan-dashboard-template-page .page,html[data-theme="light"] body.memo-jawatan-dashboard-template-page .memo-page-root,html[data-theme="light"] body.memo-jawatan-dashboard-template-page .setup-jawatan-dashboard{background:linear-gradient(180deg,#eef4fb 0%,#e7eef8 100%)!important;color:#0f172a!important}html[data-theme="dark"] body.memo-jawatan-dashboard-template-page,html[data-theme="dark"] body.memo-jawatan-dashboard-template-page .page,html[data-theme="dark"] body.memo-jawatan-dashboard-template-page .memo-page-root,html[data-theme="dark"] body.memo-jawatan-dashboard-template-page .setup-jawatan-dashboard{background:#0b0f19!important;color:#f1f5f9!important}
html[data-theme="light"] .setup-jawatan-dashboard .dashboard-header{border-bottom-color:#dbe4f0!important;background:rgba(255,255,255,.78)!important}html[data-theme="light"] .setup-jawatan-dashboard .dashboard-title h1{color:#0f172a!important}html[data-theme="light"] .setup-jawatan-dashboard .dashboard-title p,html[data-theme="light"] .setup-jawatan-dashboard .source-info-line{color:#64748b!important}html[data-theme="light"] .setup-jawatan-dashboard .stats-bar .stat-badge,html[data-theme="light"] .setup-jawatan-dashboard .kelompok-jawatan-panel,html[data-theme="light"] .setup-jawatan-dashboard .setup-toolbar,html[data-theme="light"] .setup-jawatan-dashboard .teacher-card,html[data-theme="light"] .setup-jawatan-dashboard .teacher-empty,html[data-theme="light"] .setup-jawatan-dashboard .teacher-settings-panel,html[data-theme="light"] .setup-jawatan-dashboard .bidang-column,html[data-theme="light"] .setup-jawatan-dashboard .jawatan-tag,html[data-theme="light"] .setup-jawatan-dashboard .extra-role-tag,html[data-theme="light"] .setup-jawatan-dashboard .custom-extra-role-tag{background:#fff!important;border-color:#dbe4f0!important;color:#0f172a!important;box-shadow:0 10px 24px rgba(15,23,42,.07)!important}html[data-theme="light"] .setup-jawatan-dashboard .teacher-profile,html[data-theme="light"] .setup-jawatan-dashboard .teacher-list-head,html[data-theme="light"] .setup-jawatan-dashboard .footer-actions{border-color:#dbe4f0!important}html[data-theme="light"] .setup-jawatan-dashboard .teacher-details h2,html[data-theme="light"] .setup-jawatan-dashboard .teacher-list-head b,html[data-theme="light"] .setup-jawatan-dashboard .field-block strong,html[data-theme="light"] .setup-jawatan-dashboard .bidang-title,html[data-theme="light"] .setup-jawatan-dashboard .jawatan-tag b{color:#0f172a!important}html[data-theme="light"] .setup-jawatan-dashboard .teacher-details p,html[data-theme="light"] .setup-jawatan-dashboard .search-box label,html[data-theme="light"] .setup-jawatan-dashboard .field-block span,html[data-theme="light"] .setup-jawatan-dashboard .switch-line,html[data-theme="light"] .setup-jawatan-dashboard .empty-tag,html[data-theme="light"] .setup-jawatan-dashboard .muted{color:#64748b!important}html[data-theme="light"] .setup-jawatan-dashboard input,html[data-theme="light"] .setup-jawatan-dashboard select,html[data-theme="light"] .setup-jawatan-dashboard textarea,html[data-theme="light"] .setup-jawatan-dashboard .primary-role-select,html[data-theme="light"] .setup-jawatan-dashboard .extra-role-tag select[data-field="extraRole"],html[data-theme="light"] .setup-jawatan-dashboard .custom-extra-role-tag input[data-field="extraRoleCustom"]{background:#f8fbff!important;border-color:#cbd5e1!important;color:#0f172a!important}html[data-theme="light"] .setup-jawatan-dashboard input::placeholder,html[data-theme="light"] .setup-jawatan-dashboard textarea::placeholder{color:#94a3b8!important}html[data-theme="light"] .setup-jawatan-dashboard .btn-secondary,html[data-theme="light"] .setup-jawatan-dashboard a.btn-secondary,html[data-theme="light"] .setup-jawatan-dashboard button.btn-secondary{background:#fff!important;color:#0f172a!important;border:1px solid #cbd5e1!important}html[data-theme="light"] .setup-jawatan-dashboard .btn-primary,html[data-theme="light"] .setup-jawatan-dashboard button.btn-primary{background:#10b981!important;color:#fff!important;border-color:#059669!important}html[data-theme="light"] .setup-jawatan-dashboard .footer-actions{background:rgba(238,244,251,.96)!important}.memo-jawatan-dashboard-template-page .dashboard-actions .topbar-actions.roses-global-profile-actions{margin-left:.35rem!important;flex-shrink:0!important}.memo-jawatan-dashboard-template-page .toolbar-actions:not(.roses-global-profile-actions){display:flex!important;gap:.55rem!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-end!important}
@media print{html,body{background:#fff!important;color:#111827!important}.topbar,.memo-topbar,.dashboard-header,.bottom-nav,.no-print{display:none!important}.memo-a4-document,.memo-a4-preview{background:#fff!important;color:#111827!important;box-shadow:none!important}}


/* Portal ROSES v24DWT · final theme consistency override
   Rule: shell/header ikut light/dark; dokumen A4 memo kekal putih untuk cetak. */
html[data-theme="light"], html.light, html.theme-light { color-scheme: light !important; background:#eef4fb !important; }
html[data-theme="dark"], html.dark, html.theme-dark { color-scheme: dark !important; background:#06111f !important; }
html[data-theme="light"] body:not(.print-body):not(.slot-f4-print-body):not(.rkp-print-view-body),
html.light body:not(.print-body):not(.slot-f4-print-body):not(.rkp-print-view-body),
body.roses-theme-current-light:not(.print-body):not(.slot-f4-print-body):not(.rkp-print-view-body){
  background:linear-gradient(180deg,#eef4fb 0%,#e7eef8 100%) !important;
  color:#0f172a !important;
}
html[data-theme="dark"] body:not(.print-body):not(.slot-f4-print-body):not(.rkp-print-view-body),
html.dark body:not(.print-body):not(.slot-f4-print-body):not(.rkp-print-view-body),
body.roses-theme-current-dark:not(.print-body):not(.slot-f4-print-body):not(.rkp-print-view-body){
  background:#06111f !important;
  color:#f8fafc !important;
}
html[data-theme="light"] .memo-page-root,
html[data-theme="light"] .memo-shell,
html[data-theme="light"] .setup-jawatan-template-root,
html[data-theme="light"] .setup-jawatan-dashboard,
html[data-theme="light"] .phone-shell,
html[data-theme="light"] .app-shell,
html[data-theme="light"] .container,
body.roses-theme-current-light .memo-page-root,
body.roses-theme-current-light .memo-shell,
body.roses-theme-current-light .setup-jawatan-template-root,
body.roses-theme-current-light .setup-jawatan-dashboard{
  background:transparent !important;
  color:#0f172a !important;
}
html[data-theme="light"] .topbar,
html[data-theme="light"] .user-topbar,
html[data-theme="light"] .memo-topbar,
html[data-theme="light"] .dashboard-header,
html[data-theme="light"] .memo-live-toolbar,
html[data-theme="light"] .memo-list-panel,
html[data-theme="light"] .setup-toolbar,
html[data-theme="light"] .kelompok-jawatan-panel,
html[data-theme="light"] .teacher-card,
html[data-theme="light"] .teacher-settings-panel,
html[data-theme="light"] .stats-bar .stat-badge,
html[data-theme="light"] .jawatan-tag,
html[data-theme="light"] .extra-role-tag,
html[data-theme="light"] .custom-extra-role-tag,
body.roses-theme-current-light .topbar,
body.roses-theme-current-light .user-topbar,
body.roses-theme-current-light .memo-topbar,
body.roses-theme-current-light .dashboard-header,
body.roses-theme-current-light .memo-live-toolbar,
body.roses-theme-current-light .memo-list-panel,
body.roses-theme-current-light .setup-toolbar,
body.roses-theme-current-light .kelompok-jawatan-panel,
body.roses-theme-current-light .teacher-card,
body.roses-theme-current-light .teacher-settings-panel,
body.roses-theme-current-light .stats-bar .stat-badge,
body.roses-theme-current-light .jawatan-tag,
body.roses-theme-current-light .extra-role-tag,
body.roses-theme-current-light .custom-extra-role-tag{
  background:rgba(255,255,255,.92) !important;
  color:#0f172a !important;
  border-color:#dbe4f0 !important;
  box-shadow:0 10px 24px rgba(15,23,42,.08) !important;
}
html[data-theme="light"] .dashboard-title h1,
html[data-theme="light"] .memo-live-title h1,
html[data-theme="light"] .topbar-name,
html[data-theme="light"] .teacher-details h2,
html[data-theme="light"] .teacher-list-head b,
html[data-theme="light"] .field-block strong,
html[data-theme="light"] .bidang-title,
html[data-theme="light"] .jawatan-tag b,
body.roses-theme-current-light .dashboard-title h1,
body.roses-theme-current-light .memo-live-title h1,
body.roses-theme-current-light .topbar-name,
body.roses-theme-current-light .teacher-details h2,
body.roses-theme-current-light .teacher-list-head b,
body.roses-theme-current-light .field-block strong,
body.roses-theme-current-light .bidang-title,
body.roses-theme-current-light .jawatan-tag b{ color:#0f172a !important; }
html[data-theme="light"] .dashboard-title p,
html[data-theme="light"] .source-info-line,
html[data-theme="light"] .topbar-sub,
html[data-theme="light"] .memo-live-title p,
html[data-theme="light"] .teacher-details p,
html[data-theme="light"] .field-block span,
html[data-theme="light"] .muted,
body.roses-theme-current-light .dashboard-title p,
body.roses-theme-current-light .source-info-line,
body.roses-theme-current-light .topbar-sub,
body.roses-theme-current-light .memo-live-title p,
body.roses-theme-current-light .teacher-details p,
body.roses-theme-current-light .field-block span,
body.roses-theme-current-light .muted{ color:#64748b !important; }
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea,
body.roses-theme-current-light input,
body.roses-theme-current-light select,
body.roses-theme-current-light textarea{
  background:#f8fbff !important;
  color:#0f172a !important;
  border-color:#cbd5e1 !important;
}
html[data-theme="dark"] .memo-a4-document,
html[data-theme="dark"] .memo-a4-preview,
html[data-theme="light"] .memo-a4-document,
html[data-theme="light"] .memo-a4-preview{
  background:#fff !important;
  color:#111827 !important;
}
html[data-theme="dark"] .memo-a4-document input,
html[data-theme="dark"] .memo-a4-document select,
html[data-theme="dark"] .memo-a4-document textarea,
html[data-theme="light"] .memo-a4-document input,
html[data-theme="light"] .memo-a4-document select,
html[data-theme="light"] .memo-a4-document textarea{
  background:#fff !important;
  color:#111827 !important;
  border-color:#cbd5e1 !important;
}
