/* ER Assist theme: brand tokens only, on top of stock Inspinia 5 (app.min.css) with the Neon skin
   (data-skin="neon": layout, font, radius, flat cards). Variables only; no layout or component property rules.
   Neon recolors the palette under html[data-skin=neon]; html[data-skin] has the same specificity and loads later,
   so these restore ER Assist colors for any skin.
   Old values: static/inspinia/css/style.css (Inspinia 2) and bootstrap.min.css (BS3).
   primary/info/warning/danger = stock Inspinia 5 (#1ab394, #23c6c8, #f8ac59, #ed5565).
   success = old Inspinia 2 blue #1c84c6 (stock #0acf97). secondary = stock #1c84c6.
   links = old BS3 #337ab7 / hover #23527c.
   Inspinia 5 compiles button colors into per-class --theme-btn-* vars, so .btn-success / .btn-outline-success
   set those vars too. */
html[data-skin]{
    --theme-primary:#1ab394;--theme-primary-rgb:26,179,148;
    --theme-secondary:#1c84c6;--theme-secondary-rgb:28,132,198;
    --theme-success:#1c84c6;--theme-success-rgb:28,132,198;
    --theme-info:#23c6c8;--theme-info-rgb:35,198,200;
    --theme-warning:#f8ac59;--theme-warning-rgb:248,172,89;
    --theme-danger:#ed5565;--theme-danger-rgb:237,85,101;
    --theme-primary-text-emphasis:#0a483b;--theme-secondary-text-emphasis:#0b354f;--theme-success-text-emphasis:#0b354f;
    --theme-info-text-emphasis:#0e4f50;--theme-warning-text-emphasis:#634524;--theme-danger-text-emphasis:#5f2228;
    --theme-primary-bg-subtle:#ddf4ef;--theme-secondary-bg-subtle:#ddedf6;--theme-success-bg-subtle:#ddedf6;
    --theme-info-bg-subtle:#def6f7;--theme-warning-bg-subtle:#fef3e6;--theme-danger-bg-subtle:#fce6e8;
    --theme-primary-border-subtle:#a3e1d4;--theme-secondary-border-subtle:#a4cee8;--theme-success-border-subtle:#a4cee8;
    --theme-info-border-subtle:#a7e8e9;--theme-warning-border-subtle:#fcdebd;--theme-danger-border-subtle:#f8bbc1;
    --theme-link-color:#337ab7;--theme-link-color-rgb:51,122,183;
    --theme-link-hover-color:#23527c;--theme-link-hover-color-rgb:35,82,124;
    --theme-chart-primary:#1ab394;--theme-chart-primary-rgb:26,179,148;
    --theme-chart-secondary:#1c84c6;--theme-chart-secondary-rgb:28,132,198;
}
html[data-skin][data-bs-theme=dark]{
    --theme-primary-text-emphasis:#76d1bf;--theme-secondary-text-emphasis:#77b5dd;--theme-success-text-emphasis:#77b5dd;
    --theme-info-text-emphasis:#7bddde;--theme-warning-text-emphasis:#fbcd9b;--theme-danger-text-emphasis:#f499a3;
    --theme-primary-bg-subtle:rgba(26,179,148,.2);--theme-secondary-bg-subtle:rgba(28,132,198,.2);--theme-success-bg-subtle:rgba(28,132,198,.2);
    --theme-info-bg-subtle:rgba(35,198,200,.2);--theme-warning-bg-subtle:rgba(248,172,89,.2);--theme-danger-bg-subtle:rgba(237,85,101,.2);
    --theme-primary-border-subtle:#106b59;--theme-secondary-border-subtle:#114f77;--theme-success-border-subtle:#114f77;
    --theme-info-border-subtle:#157778;--theme-warning-border-subtle:#956735;--theme-danger-border-subtle:#8e333d;
    --theme-link-color:#77b5dd;--theme-link-color-rgb:119,181,221;
    --theme-link-hover-color:#a4cee8;--theme-link-hover-color-rgb:164,206,232;
}
.btn-success{
    --theme-btn-bg:#1c84c6;--theme-btn-border-color:#1c84c6;
    --theme-btn-hover-bg:#1a7bb9;--theme-btn-hover-border-color:#1a7bb9;--theme-btn-focus-shadow-rgb:62,150,207;
    --theme-btn-active-bg:#1a7bb9;--theme-btn-active-border-color:#1a7bb9;
    --theme-btn-disabled-bg:#1c84c6;--theme-btn-disabled-border-color:#1c84c6;
}
.btn-outline-success{
    --theme-btn-color:#1c84c6;--theme-btn-border-color:#1c84c6;
    --theme-btn-hover-bg:#1c84c6;--theme-btn-hover-border-color:#1c84c6;--theme-btn-focus-shadow-rgb:28,132,198;
    --theme-btn-active-bg:#1c84c6;--theme-btn-active-border-color:#1c84c6;
    --theme-btn-disabled-color:#1c84c6;--theme-btn-disabled-border-color:#1c84c6;
}
/* Topbar: dark variant in ER green (darker green in dark mode). */
html[data-skin][data-topbar-color=dark]{
    --theme-topbar-bg:#1ab394;--theme-topbar-item-color:rgba(255,255,255,.85);--theme-topbar-item-hover-color:#fff;
    --theme-topbar-search-bg:rgba(255,255,255,.15);--theme-topbar-search-border:rgba(255,255,255,.15);
}
html[data-skin][data-bs-theme=dark][data-topbar-color=dark]{
    --theme-topbar-bg:#106b59;--theme-topbar-item-color:rgba(255,255,255,.8);--theme-topbar-item-hover-color:#fff;
    --theme-topbar-search-bg:rgba(255,255,255,.1);--theme-topbar-search-border:rgba(255,255,255,.1);
}
/* Sidenav: light variant with green hover/active. */
html[data-skin][data-menu-color=light]{
    --theme-sidenav-item-color:#5d6a77;--theme-sidenav-item-hover-color:#1ab394;--theme-sidenav-item-hover-bg:transparent;
    --theme-sidenav-item-active-color:#16987e;--theme-sidenav-item-active-bg:#e8f7f4;
}
html[data-skin][data-bs-theme=dark][data-menu-color=light]{
    --theme-sidenav-item-hover-color:#76d1bf;--theme-sidenav-item-hover-bg:transparent;
    --theme-sidenav-item-active-color:#76d1bf;--theme-sidenav-item-active-bg:rgba(26,179,148,.15);
}/* Disabled select2 = stock disabled .form-control background (admin/DAL select2.css hard-codes #eee). */
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:var(--theme-tertiary-bg)}

/* SweetAlert2 follows data-bs-theme (swal's :root vars default to white; html[...] outranks its injected :root). */
html[data-bs-theme=dark]{--swal2-background:var(--theme-secondary-bg);--swal2-color:var(--theme-body-color);--swal2-footer-border-color:var(--theme-border-color);--swal2-input-background:var(--theme-body-bg);--swal2-validation-message-background:var(--theme-tertiary-bg);--swal2-validation-message-color:var(--theme-body-color);--swal2-close-button-color:var(--theme-secondary-color);--swal2-backdrop:rgba(0,0,0,.6)}
html[data-bs-theme=dark] .swal2-title,html[data-bs-theme=dark] .swal2-html-container{color:var(--theme-body-color)}
html[data-bs-theme=dark] .swal2-input,html[data-bs-theme=dark] .swal2-textarea,html[data-bs-theme=dark] .swal2-select{color:var(--theme-body-color);border-color:var(--theme-border-color)}
/* DataTables view editor (swal) column list + filter chips */
html[data-bs-theme=dark] #view-columns-select-grid .row-grid{background-color:transparent;color:var(--theme-body-color);border-bottom:1px solid var(--theme-border-color)}
html[data-bs-theme=dark] #dt_filter_shortcuts .dt-filter-chip-value{background:var(--theme-body-bg);color:var(--theme-primary)}
/* Shared page tab row (PA project nav): boxed BS5 nav-tabs joined to a tinted ibox-style panel (breadcrumb bar colour); inner cards keep their own look */
.nav-tabs.erassist-tabs { border-bottom: 1px solid var(--theme-border-color); gap: 2px; margin-bottom: 0 !important; }
.nav-tabs.erassist-tabs .nav-link { color: var(--theme-secondary-color); background-color: transparent; border: 1px solid var(--theme-border-color); border-bottom-color: transparent; border-radius: var(--theme-border-radius) var(--theme-border-radius) 0 0; padding: .55rem 1rem; margin-bottom: -1px; font-weight: var(--theme-font-weight-medium, 500); }
.nav-tabs.erassist-tabs .nav-link:hover, .nav-tabs.erassist-tabs .nav-link:focus { color: var(--theme-emphasis-color); background-color: var(--theme-tertiary-bg); }
.nav-tabs.erassist-tabs .nav-link.active { color: var(--theme-emphasis-color); background-color: var(--theme-light-bg-subtle); border-color: var(--theme-border-color) var(--theme-border-color) var(--theme-light-bg-subtle); font-weight: var(--theme-font-weight-semibold, 600); }
.nav-tabs.erassist-tabs .nav-item.ms-auto .nav-link { background-color: transparent; border-color: transparent; }
.nav-tabs.erassist-tabs .nav-item.ms-auto .nav-link:hover { color: var(--theme-primary); }
.erassist-tab-panel { background-color: var(--theme-light-bg-subtle); border: 1px solid var(--theme-border-color); border-top: 0; border-radius: 0 0 var(--theme-border-radius) var(--theme-border-radius); padding: 1rem 1rem .25rem; margin-bottom: 1.5rem; }
/* Light mode: 3 layers -- page bg / darker inactive tabs / primary-tinted (not white) active tab + panel; inner cards stay white */
[data-bs-theme=light] .nav-tabs.erassist-tabs .nav-item:not(.ms-auto) .nav-link:not(.active) { background-color: color-mix(in srgb, var(--theme-body-bg) 94%, #000); color: #000; }
[data-bs-theme=light] .nav-tabs.erassist-tabs .nav-item:not(.ms-auto) .nav-link:not(.active):hover { background-color: color-mix(in srgb, var(--theme-body-bg) 88%, #000); color: #000; }
[data-bs-theme=light] .nav-tabs.erassist-tabs { border-bottom-color: color-mix(in srgb, var(--theme-primary) 30%, #fff); }
[data-bs-theme=light] .nav-tabs.erassist-tabs .nav-link.active { background-color: color-mix(in srgb, var(--theme-primary) 8%, #fff); border-color: color-mix(in srgb, var(--theme-primary) 30%, #fff) color-mix(in srgb, var(--theme-primary) 30%, #fff) color-mix(in srgb, var(--theme-primary) 8%, #fff); }
[data-bs-theme=light] .erassist-tab-panel { background-color: color-mix(in srgb, var(--theme-primary) 8%, #fff); border-color: color-mix(in srgb, var(--theme-primary) 30%, #fff); }
/* Dark mode: slight primary tint on active tab + panel so they differ from the cards */
[data-bs-theme=dark] .nav-tabs.erassist-tabs .nav-link.active { background-color: color-mix(in srgb, var(--theme-primary) 8%, var(--theme-light-bg-subtle)); border-bottom-color: color-mix(in srgb, var(--theme-primary) 8%, var(--theme-light-bg-subtle)); }
[data-bs-theme=dark] .erassist-tab-panel { background-color: color-mix(in srgb, var(--theme-primary) 8%, var(--theme-light-bg-subtle)); }

/* Legacy Inspinia 2 vertical timeline (pa/widgets/ajax/project_timeline_content.html) */
.vertical-container{width:90%;max-width:1170px;margin:0 auto}
.vertical-container::after{content:"";display:table;clear:both}
#vertical-timeline{position:relative;padding:0;margin-top:2em;margin-bottom:2em}
#vertical-timeline::before{content:"";position:absolute;top:0;left:18px;height:100%;width:4px;background:#e7eaec}
.vertical-timeline-block{position:relative;margin:2em 0}
.vertical-timeline-block::after{content:"";display:table;clear:both}
.vertical-timeline-block:first-child{margin-top:0}
.vertical-timeline-block:last-child{margin-bottom:0}
.vertical-timeline-icon{position:absolute;top:0;left:0;width:40px;height:40px;border-radius:50%;font-size:16px;border:3px solid #f1f1f1;text-align:center;color:#fff}
.vertical-timeline-icon i{display:block;width:24px;height:24px;position:relative;left:50%;top:50%;margin-left:-12px;margin-top:-9px}
.vertical-timeline-content{position:relative;margin-left:60px;background:#fff;border-radius:.25em;padding:1em;box-shadow:0 1px 8px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.1)}
.vertical-timeline-content::after{content:"";display:table;clear:both}
.vertical-timeline-content::before{content:"";position:absolute;top:16px;right:100%;height:0;width:0;border:7px solid transparent;border-right:7px solid #fff}
.vertical-timeline-content h5{margin-bottom:0}
.vertical-timeline-content p{margin:1em 0;line-height:1.6;font-size:13px}
.vertical-timeline-content .btn{float:right}
.vertical-timeline-content .vertical-date{float:left;font-weight:500}
.vertical-timeline-content .vertical-date.float-end{float:right}
.vertical-date small{color:#1ab394;font-weight:400}
html[data-bs-theme=dark] #vertical-timeline::before{background:rgba(255,255,255,.15)}
html[data-bs-theme=dark] .vertical-timeline-icon{border-color:var(--theme-secondary-bg);box-shadow:0 0 0 1px rgba(255,255,255,.08)}
html[data-bs-theme=dark] .vertical-timeline-content{background:var(--theme-tertiary-bg);color:var(--theme-body-color);border:1px solid rgba(255,255,255,.08);box-shadow:0 2px 8px rgba(0,0,0,.35)}
html[data-bs-theme=dark] .vertical-timeline-content::before{top:15px;border-right-color:var(--theme-tertiary-bg)}
html[data-bs-theme=dark] .vertical-date small{color:var(--theme-primary)}
html[data-bs-theme=dark] .vertical-date.float-end small{color:var(--theme-secondary-color)}
