/* Classes that replace former inline style="" attributes under CSP style-src nonce. */
.mail-folder-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.mail-folder-tabs .nav-link { color: #334155; background: #f1f5f9; border-radius: 999px; padding: 0.4rem 0.95rem; font-weight: 600; }
.mail-folder-tabs .nav-link:hover { color: #312e81; background: #e0e7ff; }
.mail-folder-tabs .nav-link.active { color: #fff; background: #04337B; box-shadow: 0 6px 16px rgba(4, 51, 123, 0.28); }
.mail-tab-count { display: inline-block; margin-left: 6px; min-width: 1.25rem; padding: 0 6px; border-radius: 999px; background: #fff; color: #04337B; font-size: 11px; line-height: 1.4; }
.role-perm-label { min-width: 11rem; font-weight: 700; color: #1e1b4b; }
.role-group-title { margin: 1.1rem 0 0.55rem; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; }
.role-module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.role-module-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; background: #fff; }
.role-module-card:has(input:checked) { border-color: #04337B; background: #e7f4f3; box-shadow: 0 6px 16px rgba(4, 51, 123, 0.12); }
.sidebar-scoped .erp-brand { border-bottom: 3px solid #04337B; }
.dallol-partner-strip { background: #f3f6ff; border-bottom: 1px solid #e2e8f0; }
.dallol-quote { border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 20px; background: #fff; height: 100%; }
.dallol-quote h5 { margin-bottom: 2px; color: #1e1b4b; }
.dallol-install-btn { white-space: nowrap; }
.site-footer .about-info .image-wrapper { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 12px; line-height: 0; }
.site-footer .about-info .image-wrapper img { max-height: 84px; width: auto; height: auto; background: #fff; }
.dallol-footer-install { margin: 16px 0 8px; }
.site-footer .social-media-links a { display: block; width: 48px; height: 48px; line-height: 46px; padding: 0; text-align: center; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.75); border-radius: 6px; }
.site-footer .social-media-links a i { color: #fff; }
.dallol-ai-toggle { border: 2px solid #fff; }
.reg-page { background: #f7f9fc; }
.reg-card { border-radius: 18px; }
.reg-body { padding: 1.5rem; }
.reg-brand { flex-wrap: wrap; gap: 14px; }
.reg-logo { height: 52px; width: auto; max-width: 140px; }
.reg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.dallol-partner-logos { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; margin-top: 28px; }
.dallol-partner-logos img { height: 72px; width: auto; max-width: 220px; background: #fff; border-radius: 12px; padding: 8px 12px; border: 1px solid #e2e8f0; object-fit: contain; }
.dallol-ai-fab { position: fixed; right: 18px; bottom: 18px; z-index: 9999; }
.dallol-ai-toggle { border: 0; border-radius: 999px; background: #1d4ed8; color: #fff; font-weight: 700; padding: 12px 16px; box-shadow: 0 10px 24px rgba(29, 78, 216, 0.35); }
.dallol-ai-panel { display: none; width: min(360px, calc(100vw - 32px)); margin-bottom: 10px; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2); overflow: hidden; }
.dallol-ai-panel.is-open { display: block; }
.dallol-ai-head { background: #1e3a8a; color: #fff; padding: 12px 14px; font-weight: 700; }
.dallol-ai-log { max-height: 280px; overflow: auto; padding: 12px 14px; font-size: 14px; }
.dallol-ai-log p { margin: 0 0 8px; }
.dallol-ai-ask { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e2e8f0; }
.dallol-ai-ask input { flex: 1; }
.sidebar-scoped .erp-brand-sub { color: #0D8782; font-weight: 700; }
.erp-nav-brand-text { color: #2E86AB; font-weight: bold; }
.erp-icon-success { color: #27AE60; }
.erp-icon-warn { color: #F39C12; }
.erp-icon-muted { color: #7F8C8D; }
.erp-icon-gray { color: gray; }
.erp-text-black { color: black; }
.erp-btn-link-inherit { font-size: inherit; }
.erp-logo-60 { height: 60px; }
.audit-subtitle { font-size: 12px; font-weight: normal; }
.audit-detail-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; padding: 12px; }
.audit-detail-json { white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; font-size: 12px; }
.audit-preview { white-space: nowrap; }
.erp-progress-18 { height: 18px; }
.erp-progress-fill { width: var(--erp-progress, 0%); }
.erp-th-narrow { width: 48px; }
.erp-img-40 { height: 40px; }
.erp-img-max-120 { max-width: 100%; max-height: 120px; }
/* Homepage / marketing leftovers moved off style="" */
.dallol-map-pin{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;margin-bottom:12px;border-radius:50%;background:#fee2e2;color:#dc2626;font-size:28px;box-shadow:0 6px 18px rgba(220,38,38,.22)}
.dallol-map-dot{color:#fff}
.dallol-map-frame{position:relative;padding-bottom:56.25%;height:0;overflow:hidden;border:3px solid #dc2626;border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.12);max-width:1000px;margin:0 auto}
.dallol-brand-pad{padding:0}
.dallol-brand-logo{height:88px;width:176px}
.dallol-muted-link{color:rgb(201,199,199)}
.dallol-white-link{color:#fff}
.dallol-tg-btn{background-color:#2E3E77}
.dallol-copy-inner{border-top:0;padding:0}
.dallol-copy-bar{border-top:1px solid rgba(255,255,255,0.1);margin-top:-60px}
.dallol-reg-bg{background:#f7f9fc}
.dallol-reg-card{border-radius:18px}
.dallol-reg-logo{height:52px;margin-right:14px}
.dallol-gap-8{gap:8px}
.wayeb-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 12px; font-weight: 600; }
.wayeb-badge-exists, .wayeb-badge-live { background: #dcfce7; color: #166534; }
.wayeb-badge-partial { background: #fef3c7; color: #92400e; }
.wayeb-badge-missing { background: #fee2e2; color: #991b1b; }
.wayeb-work-table td { vertical-align: middle; }
.insight-track { height: 16px; background: #eef2ff; border-radius: 999px; overflow: hidden; }
.insight-fill { display: block; height: 100%; background: #04337B; border-radius: 999px; }
.insight-fill-amber { background: #d97706; }
.insight-fill-green { background: #16a34a; }
.sa-stat-card, .sa-stat-card:hover, .sa-stat-card:focus { display: block; color: inherit; text-decoration: none !important; }
.sa-stat-card * { text-decoration: none !important; }
.sa-stat-label { color: #64748b; font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.sa-stat-num { display: block; margin-top: 4px; color: #0f172a; font-size: 28px; font-weight: 700; line-height: 1.1; text-decoration: none; }
.sa-stat-sub { display: block; margin-top: 4px; color: #64748b; font-size: 13px; line-height: 1.3; text-decoration: none; }
.sidebar-menu li > button.dallol-ai-open { display: block; width: 100%; border: 0; background: transparent; text-align: left; color: inherit; font: inherit; cursor: pointer; padding: 10px 20px; }
.sidebar-menu li > button.dallol-ai-open:hover { text-decoration: none; }
.dt-ai-bubble { line-height: 1.5; }
.insight-label { width: 88px; }
.insight-amt { width: 120px; text-align: right; }
.dt-ai-fab { position: fixed; right: 18px; bottom: 18px; z-index: 10001; width: 56px; height: 56px; border: 2px solid #fff; border-radius: 50%; background: #04337B; color: #fff; font-weight: 800; cursor: pointer; }
@-webkit-keyframes chartjs-render-animation { from { opacity: 0.99 } to { opacity: 1 } }
@keyframes chartjs-render-animation { from { opacity: 0.99 } to { opacity: 1 } }
.chartjs-render-monitor { -webkit-animation: chartjs-render-animation 0.001s; animation: chartjs-render-animation 0.001s; }
.chartjs-size-monitor, .chartjs-size-monitor-expand, .chartjs-size-monitor-shrink { position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; pointer-events: none; visibility: hidden; z-index: -1; }
.pos-bulk-row { gap: .5rem; }
.pos-reason { width: auto; max-width: 220px; }
.pos-check-col { width: 28px; }
.pos-irn { max-width: 140px; word-break: break-all; }
.chartjs-size-monitor-expand > div { position: absolute; width: 1000000px; height: 1000000px; left: 0; top: 0; }
.chartjs-size-monitor-shrink > div { position: absolute; width: 200%; height: 200%; left: 0; top: 0; }
.erp-chart-wrap { position: relative; }
.erp-chart-wrap canvas { width: 100% !important; height: 100% !important; }
.erp-scroll-320 { max-height: 320px; overflow-y: auto; }
.erp-bar-label { width: 120px; }
.erp-bar-track { height: 18px; }
.erp-bar-value { min-width: 96px; }
.erp-swatch { width: 10px; height: 10px; display: inline-block; border-radius: 50%; }
.dt-ai-panel { position: fixed; right: 18px; bottom: 84px; z-index: 10001; width: min(380px, calc(100vw - 24px)); height: min(520px, calc(100vh - 120px)); display: none; flex-direction: column; background: #fff; color: #1f2430; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px rgba(15, 23, 42, .28); }
.dt-ai-panel.is-open { display: flex; }
.dt-ai-panel__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #04337B; color: #fff; font-weight: 700; }
.dt-ai-panel__head span { margin-right: auto; }
.dt-ai-panel__head select { border: 0; border-radius: 8px; background: #fff; color: #1f2430; padding: 4px 6px; font-size: 12px; }
.dt-ai-panel__head button { border: 0; background: transparent; color: #fff; cursor: pointer; font-weight: 600; }
.dt-ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; }
.dt-ai-chip { border: 1px solid #9fd4d1; background: #fff; color: #0D8782; border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.dt-ai-thread { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.dt-ai-row { max-width: 92%; }
.dt-ai-row.user { align-self: flex-end; }
.dt-ai-row.bot { align-self: flex-start; }
.dt-ai-bubble { padding: 8px 11px; border-radius: 14px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.dt-ai-row.user .dt-ai-bubble { background: #04337B; color: #fff; }
.dt-ai-row.bot .dt-ai-bubble { background: #f3f4f8; color: #1f2430; }
.dt-ai-loading { display: inline-flex; gap: 6px; }
.dt-ai-loading i { width: 7px; height: 7px; border-radius: 50%; background: #0D8782; animation: dt-ai-dot 1s infinite ease-in-out; }
.dt-ai-loading i:nth-child(2) { animation-delay: .15s; }
.dt-ai-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes dt-ai-dot { 0%, 80%, 100% { opacity: .28; } 40% { opacity: 1; } }
.dt-ai-foot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #e6e8ef; }
.dt-ai-foot input { display: block; flex: 1; min-width: 0; height: auto; border-radius: 999px; border: 1px solid #d0d5dd; background: #fff; color: #1f2430; padding: 8px 12px; }
.dt-ai-send { border: 0; border-radius: 999px; background: #04337B; color: #fff; font-weight: 700; padding: 8px 14px; cursor: pointer; }
@media (max-width: 576px) {
    .dt-ai-panel { left: auto; right: 12px; bottom: 76px; width: min(320px, calc(100vw - 24px)); height: min(420px, calc(100vh - 150px)); }
}
html[data-theme="dark"] .dt-ai-panel,
html[data-theme="dark"] .dt-ai-foot,
html[data-theme="dark"] .dt-ai-chip,
html[data-theme="dark"] .dt-ai-foot input,
html[data-theme="dark"] .dt-ai-row.bot .dt-ai-bubble { background: #1a2430; color: #e8ebf0; border-color: #2a3441; }
.debopay-qr-widget { position: relative; vertical-align: top; }
.dpqr-panel { display: none; position: absolute; z-index: 30; right: 0; top: 100%; width: 220px; margin-top: 6px; background: #fff; }
.dpqr-panel.is-open { display: block; }
.dpqr-img { display: none; width: 180px; height: 180px; margin: 0 auto; }
.dpqr-img.is-on { display: block; }
.hr-leave-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 12px; }
.hr-leave-balance { width: auto; max-width: 36rem; }
.hr-leave-card .card-body { padding-right: 4.5rem; padding-bottom: 4.5rem; }
.hr-stat { border: 0; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06); }
.hr-stat .card-body { padding: 1.1rem 0.8rem; }
.hr-stat h3 { color: #1e1b4b; font-weight: 700; }
.hr-stat-present { border-top: 4px solid #16a34a; }
.hr-stat-absent { border-top: 4px solid #dc2626; }
.hr-stat-staff { border-top: 4px solid #04337B; }
.hr-stat-soft { border-top: 4px solid #94a3b8; }
.hr-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #f1f5f9; }
.hr-bar-present { background: #16a34a; }
.hr-bar-absent { background: #dc2626; }
.hr-core { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.hr-core a { display: block; padding: 14px 16px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; color: #1e1b4b; font-weight: 650; }
.hr-core a:hover { border-color: #0D8782; background: #f3fbfa; text-decoration: none; }
.hr-pay-rule { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.hr-pay-rule strong { color: #1e1b4b; }
.btn-print-eims { background: #0D8782; border-color: #0a6b67; color: #fff; }
.btn-print-eims:hover, .btn-print-eims:focus { background: #0a6b67; color: #fff; }
.btn-primary, .btn-primary:focus { background-color: #04337B; border-color: #03285f; }
.btn-primary:hover { background-color: #021E4A; border-color: #021E4A; }
.btn-outline-primary { color: #04337B; border-color: #04337B; }
.btn-outline-primary:hover, .btn-outline-primary:focus { background: #04337B; border-color: #04337B; color: #fff; }
.badge-info { background-color: #0D8782; }
.main-sidebar .sidebar-menu li.active > a { background-color: #e7f4f3; color: #04337B; }
.main-sidebar .sidebar-menu li.active > a i, .main-sidebar .sidebar-menu li.active > a span { color: #04337B; }
body { background: #F4F6F9; }
.dallol-ai-toggle { background: #04337B; }
.hr-slip-list { margin: 6px 0 0; padding-left: 1.1rem; }
.btn.btn-primary { background-color: #04337B; border-color: #04337B; }
.btn.btn-primary:hover, .btn.btn-primary:focus { background-color: #021E4A; border-color: #021E4A; }
.btn.btn-outline-primary { color: #04337B; border-color: #0D8782; }
.btn.btn-outline-primary:hover { background: #0D8782; border-color: #0D8782; color: #fff; }
.main-sidebar .sidebar-menu li.active > a { color: #04337B; background: #e7f6f5; }
.badge-info { background-color: #0D8782; }
.dt-ai-fab, .dt-ai-panel__head, .dt-ai-send, .dt-ai-row.user .dt-ai-bubble { background: #04337B; }
.dt-ai-chip { border-color: #9fd4d1; color: #04337B; }
.dallol-theme { background: transparent; border: 0; color: #04337B; cursor: pointer; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.main-navbar #dallol-theme.nav-link { color: #04337B !important; }
.dallol-theme svg { display: block; width: 18px; height: 18px; }
.dallol-theme .ico-moon path { fill: #04337B; stroke: #04337B; }
.dallol-theme .ico-sun { display: none; }
html[data-theme="dark"] .dallol-theme { color: #F4F6F9; }
html[data-theme="dark"] .dallol-theme .ico-moon { display: none; }
html[data-theme="dark"] .dallol-theme .ico-sun { display: block; }
.dallol-clock { font-size: 12px; font-weight: 700; margin-right: 8px; white-space: nowrap; }
.dallol-tz { width: auto; max-width: 180px; height: 32px; font-size: 12px; }
html[data-theme="dark"] .dallol-clock { color: #F4F6F9; }
html[data-theme="dark"] .dallol-tz { background: #fff; color: #1B2430; }
html[data-theme="dark"] body { background: #101820; color: #e8ebf0; }
html[data-theme="dark"] .main-navbar, html[data-theme="dark"] .main-sidebar, html[data-theme="dark"] .card, html[data-theme="dark"] .card-header, html[data-theme="dark"] .modal-content { background: #1a2430; color: #e8ebf0; }
html[data-theme="dark"] .card-header, html[data-theme="dark"] .main-footer { border-color: #2a3441; }
html[data-theme="dark"] .form-control, html[data-theme="dark"] .form-control:focus { background: #101820; color: #e8ebf0; border-color: #2a3441; }
html[data-theme="dark"] .table, html[data-theme="dark"] .text-muted, html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4, html[data-theme="dark"] h5, html[data-theme="dark"] .card-header h4 { color: #e8ebf0; }
html[data-theme="dark"] .sidebar-menu li a { color: #e8ebf0; }
html[data-theme="dark"] .main-sidebar .sidebar-menu li a:hover,
html[data-theme="dark"] .main-sidebar .sidebar-menu li a:focus {
    color: #F4F6F9 !important;
    background: #243044 !important;
}
html[data-theme="dark"] .main-sidebar .sidebar-menu li.active > a,
html[data-theme="dark"] .main-sidebar .sidebar-menu li.active a {
    color: #F4F6F9 !important;
    background: #1e3a5f !important;
}
html[data-theme="dark"] .main-sidebar .sidebar-menu li ul.dropdown-menu,
html[data-theme="dark"] .main-sidebar .sidebar-menu li.active ul.dropdown-menu {
    background: #101820 !important;
}
html[data-theme="dark"] .main-sidebar .sidebar-menu li ul.dropdown-menu li a {
    color: #c5d0dc !important;
    background: transparent !important;
}
html[data-theme="dark"] .main-sidebar .sidebar-menu li ul.dropdown-menu li a:hover,
html[data-theme="dark"] .main-sidebar .sidebar-menu li ul.dropdown-menu li.active > a {
    color: #fff !important;
    background: #243044 !important;
}
html[data-theme="dark"] .main-sidebar .sidebar-menu li a i,
html[data-theme="dark"] .main-sidebar .sidebar-menu li a svg {
    color: inherit;
    stroke: currentColor;
}
html[data-theme="dark"] .main-navbar .dropdown-menu,
html[data-theme="dark"] .dropdown-menu {
    background: #1a2430 !important;
    color: #e8ebf0;
}
html[data-theme="dark"] .dropdown-item,
html[data-theme="dark"] .dropdown-title,
html[data-theme="dark"] .dropdown-item-desc { color: #e8ebf0; }
html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus { background: #243044; color: #fff; }
html[data-theme="dark"] .nav-tabs .nav-link { color: #c5d0dc; background: transparent; border-color: transparent; }
html[data-theme="dark"] .nav-tabs .nav-link:hover { color: #fff; background: #243044; }
html[data-theme="dark"] .nav-tabs .nav-link.active { color: #021E4A !important; background: #fff !important; border-color: #fff !important; }
html[data-theme="dark"] .section-header h1,
html[data-theme="dark"] .section-header .section-header-breadcrumb { color: #F4F6F9; }
html[data-theme="dark"] .hr-stat { background: #1a2430; box-shadow: none; }
html[data-theme="dark"] .hr-stat h3,
html[data-theme="dark"] .hr-stat span,
html[data-theme="dark"] .hr-core a { color: #e8ebf0; }
html[data-theme="dark"] .hr-core a { background: #1a2430; border-color: #2a3441; }
html[data-theme="dark"] .hr-core a:hover { background: #243044; border-color: #19A99F; color: #fff; }
html[data-theme="dark"] .hr-bar { background: #243044; }
html[data-theme="dark"] .msg-wrap,
html[data-theme="dark"] .msg-tabs,
html[data-theme="dark"] .msg-contacts,
html[data-theme="dark"] .msg-thread,
html[data-theme="dark"] .msg-thread-h,
html[data-theme="dark"] .msg-compose,
html[data-theme="dark"] .msg-bubbles,
html[data-theme="dark"] .msg-contact,
html[data-theme="dark"] .msg-bubble.theirs,
html[data-theme="dark"] .msg-bulk {
    background: #1a2430;
    color: #e8ebf0;
    border-color: #2a3441;
}
html[data-theme="dark"] .msg-tabs a,
html[data-theme="dark"] .msg-contact,
html[data-theme="dark"] .msg-contacts-h,
html[data-theme="dark"] .msg-empty { color: #c5d0dc; }
html[data-theme="dark"] .msg-tabs a.active,
html[data-theme="dark"] .msg-contact.active,
html[data-theme="dark"] .msg-contact:hover {
    background: #04337B;
    color: #fff;
    border-bottom-color: #19A99F;
}
html[data-theme="dark"] .msg-contact.drive-item { background: #14302e; color: #e8ebf0; }
html[data-theme="dark"] .msg-bubble.mine { background: #04337B; color: #fff; }
html[data-theme="dark"] .msg-reply-bar { background: #2a2416; color: #e8ebf0; border-color: #5c4a1e; }
