:root {
    --sidebar-width: 288px;
    --app-bg: #f5f7fb;
    --primary: #0d6efd;
}

body {
    background: var(--app-bg);
    color: #1f2937;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f172a, #1e293b);
    color: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    padding: 1.25rem;
    z-index: 10;
}

.brand-box {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: .75rem .5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
    margin-bottom: 1rem;
}

.brand-icon,
.login-logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(13,110,253,.18);
    color: #60a5fa;
    font-size: 1.45rem;
}

.brand-title {
    font-weight: 800;
    letter-spacing: .04em;
}

.brand-subtitle {
    font-size: .78rem;
    color: #cbd5e1;
}

.sidebar-nav .nav-link {
    color: #cbd5e1;
    border-radius: 14px;
    padding: .82rem .9rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .25rem;
    transition: all .2s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.12);
}

.sidebar-nav .nav-link.active {
    box-shadow: inset 4px 0 0 #60a5fa;
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 1.25rem;
}

.content-wrap {
    padding-bottom: 2rem;
}

.topbar {
    padding: .85rem 1rem;
}

.card-soft,
.stat-card {
    border: none;
    border-radius: 1.1rem;
    box-shadow: 0 10px 30px rgba(15,23,42,.07);
}

.card-soft .card-header {
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    border-radius: 1.1rem 1.1rem 0 0;
}

.stat-card {
    background: #fff;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 130px;
}

.stat-label {
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .04em;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
}

.stat-icon {
    font-size: 2.2rem;
    opacity: .9;
}

.table th {
    white-space: nowrap;
    color: #475569;
    font-size: .85rem;
}

.table td {
    vertical-align: middle;
    font-size: .9rem;
}

.btn-group-sm > .btn,
.btn-sm {
    border-radius: .6rem;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, #dbeafe, #f8fafc 45%, #eef2ff);
}

.login-card {
    width: min(440px, calc(100% - 2rem));
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
}

.login-logo {
    margin: 0 auto 1rem;
    background: #e0edff;
}

.gantt-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: .75rem;
}

.gantt-scroll::-webkit-scrollbar {
    height: 10px;
}

.gantt-scroll::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 999px;
}

.gantt-scroll::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
}

.gantt-wrap {
    --gantt-chart-width: 1200px;
    min-width: calc(220px + 1rem + var(--gantt-chart-width));
    width: max-content;
}

.gantt-range {
    font-size: .86rem;
    position: sticky;
    left: 0;
    z-index: 5;
    background: #fff;
    width: fit-content;
    padding-right: 1rem;
}

.gantt-head,
.gantt-row {
    display: grid;
    grid-template-columns: 220px var(--gantt-chart-width);
    gap: 1rem;
    align-items: center;
}

.gantt-head {
    margin-bottom: .9rem;
}

.gantt-row {
    margin-bottom: .75rem;
}

.gantt-label,
.gantt-label-head {
    font-weight: 600;
    font-size: .9rem;
    color: #334155;
    position: sticky;
    left: 0;
    z-index: 6;
    background: #fff;
    padding-right: .75rem;
}

.gantt-label-head {
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .8rem;
}

.gantt-months,
.gantt-track {
    position: relative;
    overflow: hidden;
    width: var(--gantt-chart-width);
}

.gantt-months {
    height: 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
}

.gantt-month {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #cbd5e1;
    font-size: .78rem;
    font-weight: 700;
    color: #475569;
    background: rgba(255,255,255,.7);
    white-space: nowrap;
}

.gantt-track {
    height: 38px;
    background: #e2e8f0;
    border-radius: 999px;
}

.gantt-grid-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(148, 163, 184, .55);
    z-index: 1;
}

.gantt-current-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dc3545;
    z-index: 4;
}

.gantt-current-line-head span {
    position: absolute;
    top: 8px;
    left: 7px;
    background: #dc3545;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .5rem;
    border-radius: .5rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(220, 53, 69, .25);
}

.gantt-bar {
    position: absolute;
    top: 5px;
    bottom: 5px;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    border-radius: 999px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .18);
}

.gantt-bar-p100 {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.gantt-bar-p75 {
    background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.gantt-bar-p50 {
    background: linear-gradient(90deg, #0f766e, #2dd4bf);
}

.gantt-bar-p25 {
    background: linear-gradient(90deg, #d97706, #facc15);
}

.gantt-bar-p0 {
    background: linear-gradient(90deg, #dc2626, #f97316);
}

.progress {
    height: .6rem;
    border-radius: 999px;
}

.modal-content {
    border: none;
    border-radius: 1.1rem;
}

@media (max-width: 992px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-radius: 0 0 1.25rem 1.25rem;
    }
    .app-shell {
        display: block;
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .25rem;
    }
}


.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: .6rem;
}

.module-check {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: .8rem;
    padding: .7rem .8rem;
    background: #f8fafc;
    font-size: .9rem;
}

.gantt-bar-sub {
    top: 9px;
    bottom: 9px;
    opacity: .9;
}


/* Responsive DataTables: collapse hidden columns into child rows instead of forcing wide tables. */
table.dataTable.datatable {
    width: 100% !important;
}

table.dataTable.datatable th,
table.dataTable.datatable td {
    white-space: nowrap;
}

table.dataTable.datatable td.child {
    white-space: normal;
    background: #f8fafc;
}

table.dataTable.datatable td.child ul.dtr-details {
    width: 100%;
    margin: 0;
}

table.dataTable.datatable td.child ul.dtr-details > li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .45rem 0;
    border-bottom: 1px solid #e2e8f0;
}

table.dataTable.datatable td.child ul.dtr-details > li:last-child {
    border-bottom: none;
}

table.dataTable.datatable td.child .dtr-title {
    min-width: 150px;
    color: #475569;
    font-weight: 700;
}

table.dataTable.datatable td.child .dtr-data {
    white-space: normal;
    word-break: break-word;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    cursor: pointer;
}

.table-responsive .dt-container {
    width: 100%;
}


/* Center all DataTable values. */
table.dataTable.datatable th,
table.dataTable.datatable td,
.table-centered-values th,
.table-centered-values td {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Percentage values displayed as value-based bars inside DataTables. */
.percent-cell-td {
    min-width: 160px;
}

.percent-bar-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .18rem;
    min-width: 145px;
}

.percent-track {
    width: 112px;
    height: .65rem;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08);
}

.percent-fill {
    height: 100%;
    border-radius: 999px;
}

.percent-fill-100 {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.percent-fill-75 {
    background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.percent-fill-50 {
    background: linear-gradient(90deg, #0f766e, #2dd4bf);
}

.percent-fill-25 {
    background: linear-gradient(90deg, #d97706, #facc15);
}

.percent-fill-0 {
    background: linear-gradient(90deg, #dc2626, #f97316);
}

.percent-label {
    order: -1;
    min-width: 54px;
    font-size: .78rem;
    font-weight: 700;
    color: #334155;
    text-align: center;
    line-height: 1;
}

/* Replace the responsive collapse arrow with a green plus sign. */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    content: '+' !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1.15rem !important;
    height: 1.15rem !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 999px !important;
    background: #198754 !important;
    color: #fff !important;
    font-size: .95rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: 0 3px 8px rgba(25, 135, 84, .25) !important;
    position: absolute !important;
    left: .6rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.dt-hasChild > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr.dt-hasChild > th.dtr-control::before {
    content: '−' !important;
    background: #dc3545 !important;
    box-shadow: 0 3px 8px rgba(220, 53, 69, .22) !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    cursor: pointer;
    position: relative !important;
    text-align: left !important;
    padding-left: 2.15rem !important;
}

/* Keep child-row details readable even with centered main table values. */
table.dataTable.datatable td.child,
table.dataTable.datatable td.child .dtr-title,
table.dataTable.datatable td.child .dtr-data {
    text-align: left !important;
}

.admin-panel-code { white-space: normal; word-break: break-word; }



.table-critical-row td {
    background-color: rgba(220, 53, 69, .06) !important;
}
.analysis-note {
    font-size: .86rem;
    color: #64748b;
}


/* Compact Project Analysis screen layout. */
.analysis-page {
    --analysis-chart-height: 112px;
}

.analysis-page .analysis-title-row {
    margin-top: -.35rem;
}

.analysis-page .analysis-stat-card {
    min-height: 82px;
    padding: .85rem 1rem;
}

.analysis-page .stat-label {
    font-size: .68rem;
}

.analysis-page .stat-value {
    font-size: 1.45rem;
    line-height: 1.05;
}

.analysis-page .stat-icon {
    font-size: 1.7rem;
}

.analysis-page .card-header {
    font-size: .92rem;
}

.analysis-page .card-body {
    padding-left: .75rem;
    padding-right: .75rem;
}

.analysis-chart-card {
    height: 160px;
}

.analysis-chart-stack .analysis-chart-card {
    height: 150px;
}

.analysis-chart-box {
    height: var(--analysis-chart-height);
    width: 100%;
    position: relative;
}

.analysis-chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}

.analysis-table-card .nav-pills .nav-link {
    padding: .35rem .75rem;
    font-size: .86rem;
    border-radius: .6rem;
}

.analysis-note {
    font-size: .76rem;
    color: #64748b;
}

.analysis-page .table-filter-row .form-label {
    color: #475569;
}

.analysis-page .table-filter-row .form-select,
.analysis-page .table-filter-row .btn {
    min-height: 31px;
    font-size: .78rem;
}

.analysis-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
}

.analysis-page .dataTables_wrapper,
.analysis-page .dt-container {
    font-size: .82rem;
}

.analysis-page .table th,
.analysis-page .table td {
    padding: .38rem .45rem;
    font-size: .78rem;
}

.analysis-page .percent-track {
    width: 86px;
    height: .5rem;
}

.analysis-page .percent-bar-cell {
    min-width: 110px;
    gap: .12rem;
}

.analysis-page .percent-cell-td {
    min-width: 120px;
}

.analysis-page .percent-label {
    font-size: .7rem;
}

.analysis-page .badge {
    font-size: .68rem;
}

@media (max-height: 780px) {
    .analysis-page {
        --analysis-chart-height: 95px;
    }

    .analysis-chart-card,
    .analysis-chart-stack .analysis-chart-card {
        height: 132px;
    }

    .analysis-page .analysis-stat-card {
        min-height: 70px;
        padding: .65rem .85rem;
    }

    .analysis-page .stat-value {
        font-size: 1.25rem;
    }

    .analysis-page .stat-icon {
        font-size: 1.45rem;
    }
}

/* Dashboard analytics chart containers */
.dashboard-chart-box {
    height: 240px;
    position: relative;
}

.dashboard-chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .dashboard-chart-box {
        height: 220px;
    }
}


.csv-error-list {
    font-size: .85rem;
    line-height: 1.35;
}

.csv-upload-inline-progress .progress-bar {
    transition: width .2s ease;
}

/* Web Settings: theme color, layout density, sidebar style, and card style. */
body.theme-blue { --theme-primary: #2563eb; --theme-primary-soft: rgba(37,99,235,.14); --theme-sidebar-start: #0f172a; --theme-sidebar-end: #1e293b; --theme-accent: #60a5fa; }
body.theme-green { --theme-primary: #15803d; --theme-primary-soft: rgba(21,128,61,.14); --theme-sidebar-start: #052e16; --theme-sidebar-end: #14532d; --theme-accent: #4ade80; }
body.theme-omgreen { --theme-primary: #377f6b; --theme-primary-soft: rgba(55,127,107,.14); --theme-sidebar-start: #10352c; --theme-sidebar-end: #377f6b; --theme-accent: #80c8b3; }
body.theme-purple { --theme-primary: #7c3aed; --theme-primary-soft: rgba(124,58,237,.14); --theme-sidebar-start: #2e1065; --theme-sidebar-end: #4c1d95; --theme-accent: #c084fc; }
body.theme-red { --theme-primary: #dc2626; --theme-primary-soft: rgba(220,38,38,.14); --theme-sidebar-start: #450a0a; --theme-sidebar-end: #7f1d1d; --theme-accent: #fca5a5; }
body.theme-slate { --theme-primary: #334155; --theme-primary-soft: rgba(51,65,85,.14); --theme-sidebar-start: #111827; --theme-sidebar-end: #374151; --theme-accent: #cbd5e1; }

body .sidebar { background: linear-gradient(180deg, var(--theme-sidebar-start, #0f172a), var(--theme-sidebar-end, #1e293b)); }
body .brand-icon,
body .login-logo { background: var(--theme-primary-soft, rgba(13,110,253,.18)); color: var(--theme-accent, #60a5fa); }
body .sidebar-nav .nav-link.active { box-shadow: inset 4px 0 0 var(--theme-accent, #60a5fa); }
body .btn-primary { --bs-btn-bg: var(--theme-primary, #0d6efd); --bs-btn-border-color: var(--theme-primary, #0d6efd); --bs-btn-hover-bg: color-mix(in srgb, var(--theme-primary, #0d6efd) 86%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--theme-primary, #0d6efd) 86%, #000); }
body .text-primary { color: var(--theme-primary, #0d6efd) !important; }
body .bg-primary { background-color: var(--theme-primary, #0d6efd) !important; }

body.sidebar-light .sidebar { background: #fff; color: #1e293b; box-shadow: 10px 0 30px rgba(15,23,42,.06); }
body.sidebar-light .brand-box { border-bottom-color: #e2e8f0; }
body.sidebar-light .brand-subtitle,
body.sidebar-light .sidebar-nav .nav-link { color: #64748b; }
body.sidebar-light .sidebar-nav .nav-link:hover,
body.sidebar-light .sidebar-nav .nav-link.active { color: #0f172a; background: var(--theme-primary-soft, rgba(37,99,235,.12)); }
body.sidebar-gradient .sidebar { background: radial-gradient(circle at 20% 0%, var(--theme-accent, #60a5fa), transparent 25%), linear-gradient(180deg, var(--theme-sidebar-start, #0f172a), var(--theme-sidebar-end, #1e293b)); }

body.layout-compact { --sidebar-width: 252px; }
body.layout-compact .main-content { padding: .85rem; }
body.layout-compact .topbar { padding: .65rem .85rem; margin-bottom: .85rem !important; }
body.layout-compact .card-body { padding: .85rem; }
body.layout-compact .sidebar-nav .nav-link { padding: .62rem .75rem; }
body.layout-wide { --sidebar-width: 260px; }
body.layout-wide .main-content { padding-left: 1rem; padding-right: 1rem; }

body.cards-flat .card-soft,
body.cards-flat .stat-card { box-shadow: none; border: 1px solid #e2e8f0; }
body.cards-bordered .card-soft,
body.cards-bordered .stat-card { box-shadow: 0 6px 16px rgba(15,23,42,.04); border: 1px solid #cbd5e1; }

.settings-preview { background: linear-gradient(135deg, var(--theme-primary-soft, rgba(37,99,235,.14)), #f8fafc); border: 1px solid #e2e8f0; }
.settings-preview-sidebar { height: 38px; background: linear-gradient(90deg, var(--theme-sidebar-start, #0f172a), var(--theme-sidebar-end, #1e293b)); }
.settings-preview-card { border-top: 4px solid var(--theme-primary, #2563eb); }

/* Thinner embedded Gantt bars after moving detailed view to full-page Gantt. */
.gantt-head,
.gantt-row { grid-template-columns: 220px minmax(720px, var(--gantt-chart-width)); }
.gantt-row { margin-bottom: .45rem; }
.gantt-track { height: 28px; }
.gantt-bar { top: 7px; bottom: 7px; min-width: 34px; font-size: .68rem; box-shadow: 0 3px 8px rgba(37,99,235,.13); }
.gantt-bar-sub { top: 9px; bottom: 9px; opacity: .88; }
.gantt-months { height: 40px; }
.gantt-month { font-size: .7rem; }
.gantt-current-line-head span { top: 5px; font-size: .65rem; }


/* Embedded schedule Gantt: internal responsive scrollbar for long schedules. */
.embedded-gantt-card .card-body {
    padding: .65rem .8rem .75rem;
}
.gantt-scroll-compact {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: .45rem;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #e2e8f0;
}
.gantt-scroll-compact::-webkit-scrollbar {
    height: 8px;
}
.gantt-scroll-compact::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 999px;
}
.gantt-scroll-compact::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
}
.gantt-scroll-compact .gantt-wrap-compact {
    min-width: calc(170px + .5rem + var(--gantt-chart-width));
    width: max-content;
}
.gantt-scroll-compact .gantt-range {
    position: sticky;
    left: 0;
    z-index: 8;
    width: fit-content;
    background: #fff;
    padding-right: .75rem;
    font-size: .72rem;
}
.gantt-scroll-compact .gantt-head,
.gantt-scroll-compact .gantt-row {
    grid-template-columns: 170px var(--gantt-chart-width);
    gap: .5rem;
}
.gantt-scroll-compact .gantt-head {
    margin-bottom: .35rem;
}
.gantt-scroll-compact .gantt-row {
    margin-bottom: .22rem;
}
.gantt-scroll-compact .gantt-label,
.gantt-scroll-compact .gantt-label-head {
    position: sticky;
    left: 0;
    z-index: 7;
    background: #fff;
    padding-right: .35rem;
    font-size: .68rem;
    line-height: 1.15;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    overflow-wrap: anywhere;
    box-shadow: 8px 0 10px -12px rgba(15,23,42,.65);
}
.gantt-scroll-compact .gantt-label-head {
    z-index: 9;
    font-size: .62rem;
    letter-spacing: .03em;
}
.gantt-scroll-compact .gantt-months,
.gantt-scroll-compact .gantt-track {
    width: var(--gantt-chart-width);
}
.gantt-scroll-compact .gantt-months {
    height: 26px;
    border-radius: .55rem;
}
.gantt-scroll-compact .gantt-month {
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: -.02em;
    padding: 0 .08rem;
}
.gantt-scroll-compact .gantt-track {
    min-height: 16px;
    border-radius: .45rem;
    background: #edf2f7;
}
.gantt-scroll-compact .gantt-bar {
    top: 3px;
    bottom: auto;
    min-width: 12px;
    font-size: .48rem;
    line-height: 1;
    box-shadow: none;
}
.gantt-scroll-compact .gantt-bar span {
    transform: scale(.92);
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
}
.gantt-scroll-compact .gantt-bar-sub {
    top: 4px;
    bottom: 4px;
    opacity: .9;
}
.gantt-scroll-compact .gantt-grid-line {
    background: rgba(148, 163, 184, .32);
}
.gantt-scroll-compact .gantt-current-line {
    width: 1px;
}
.gantt-scroll-compact .gantt-current-line-head span {
    top: 2px;
    left: 3px;
    font-size: .48rem;
    padding: .08rem .22rem;
    border-radius: .3rem;
}
@media (max-width: 1200px) {
    .gantt-scroll-compact .gantt-head,
    .gantt-scroll-compact .gantt-row {
        grid-template-columns: 145px var(--gantt-chart-width);
    }
    .gantt-scroll-compact .gantt-wrap-compact {
        min-width: calc(145px + .5rem + var(--gantt-chart-width));
    }
    .gantt-scroll-compact .gantt-label,
    .gantt-scroll-compact .gantt-label-head {
        font-size: .62rem;
    }
    .gantt-scroll-compact .gantt-month { font-size: .48rem; }
}

/* Implementation Schedule Activities table refinements. */
.schedule-activities-table td.schedule-activity-cell,
.schedule-activities-table td.schedule-parent-cell {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.25;
    text-align: left !important;
}

.schedule-activities-table td.schedule-activity-cell {
    min-width: 190px;
    max-width: 280px;
}

.schedule-activities-table td.schedule-parent-cell {
    min-width: 150px;
    max-width: 220px;
}

.schedule-activities-table .percent-cell-td {
    min-width: 92px;
}

.schedule-activities-table .percent-bar-cell {
    min-width: 86px;
    gap: .08rem;
}

.schedule-activities-table .percent-track {
    width: 68px;
    height: .42rem;
}

.schedule-activities-table .percent-label {
    font-size: .66rem;
}

.schedule-summary-table th,
.schedule-summary-table td {
    text-align: center;
    vertical-align: middle;
}

.schedule-recommendations-card ol {
    columns: 1;
}

@media (min-width: 1200px) {
    .schedule-recommendations-card ol {
        columns: 2;
        column-gap: 2rem;
    }
}

/* Compact percentage bars in Schedule Activities; Weight percentage remains plain text. */
.schedule-activities-table .percent-cell-td {
    min-width: 105px;
}
.schedule-activities-table .percent-bar-cell {
    min-width: 92px;
}
.schedule-activities-table .percent-track {
    width: 74px;
    height: .48rem;
}
.schedule-activities-table .percent-label {
    font-size: .68rem;
}
.schedule-activities-table .no-percent-bar {
    min-width: auto !important;
    white-space: nowrap;
}

/* Project Analysis table heading wrap and compact cells. */
.analysis-wrap-headings th,
.analysis-datatable th {
    white-space: normal !important;
    line-height: 1.12;
    vertical-align: middle !important;
    max-width: 115px;
}
.analysis-datatable td {
    white-space: normal;
}
.analysis-datatable td.child .dtr-title,
.analysis-datatable td.child .dtr-data {
    white-space: normal;
}

/* Login page controlled by Web Settings */
.login-body.theme-blue,
.login-body.theme-green,
.login-body.theme-omgreen,
.login-body.theme-purple,
.login-body.theme-red,
.login-body.theme-slate {
    --login-gradient-start: color-mix(in srgb, var(--theme-primary, #2563eb) 18%, #f8fafc);
    --login-gradient-mid: #f8fafc;
    --login-gradient-end: color-mix(in srgb, var(--theme-accent, #60a5fa) 16%, #eef2ff);
    background:
        radial-gradient(circle at 18% 12%, var(--theme-primary-soft, rgba(37,99,235,.14)), transparent 28%),
        radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--theme-accent, #60a5fa) 22%, transparent), transparent 30%),
        linear-gradient(135deg, var(--login-gradient-start), var(--login-gradient-mid) 45%, var(--login-gradient-end));
}

.login-shell {
    width: min(1040px, calc(100% - 2rem));
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: stretch;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15,23,42,.16);
    background: rgba(255,255,255,.76);
    backdrop-filter: blur(18px);
}

.login-hero-panel {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--theme-sidebar-start, #0f172a) 92%, #000), color-mix(in srgb, var(--theme-primary, #2563eb) 64%, #111827)),
        radial-gradient(circle at 30% 20%, var(--theme-accent, #60a5fa), transparent 30%);
    position: relative;
    isolation: isolate;
}

.login-hero-panel::after {
    content: '';
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 1.35rem;
    pointer-events: none;
}

.login-hero-badge {
    width: fit-content;
    padding: .55rem .85rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    font-weight: 700;
    font-size: .86rem;
    margin-bottom: 1.4rem;
}

.login-hero-panel h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -.06em;
    margin-bottom: 1rem;
}

.login-hero-panel p {
    max-width: 520px;
    color: rgba(255,255,255,.82);
    font-size: 1.03rem;
    line-height: 1.65;
}

.login-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: .8rem;
    margin-top: 2rem;
}

.login-hero-metrics div {
    padding: .9rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.14);
}

.login-hero-metrics strong,
.login-hero-metrics span {
    display: block;
}

.login-hero-metrics span {
    font-size: .72rem;
    color: rgba(255,255,255,.72);
}

.login-shell .login-card {
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.7rem, 4vw, 3rem);
}

.login-input-group .input-group-text {
    background: var(--theme-primary-soft, rgba(37,99,235,.14));
    color: var(--theme-primary, #2563eb);
    border-color: #e2e8f0;
}

.login-input-group .form-control {
    border-color: #e2e8f0;
}

.login-input-group .form-control:focus {
    border-color: var(--theme-primary, #2563eb);
    box-shadow: 0 0 0 .2rem var(--theme-primary-soft, rgba(37,99,235,.14));
}

.login-btn {
    border-radius: .9rem;
    font-weight: 800;
    box-shadow: 0 12px 26px var(--theme-primary-soft, rgba(37,99,235,.14));
}

body.login-compact .login-shell {
    width: min(460px, calc(100% - 2rem));
    min-height: auto;
    display: block;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

body.login-compact .login-hero-panel {
    display: none;
}

body.login-compact .login-card {
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(15,23,42,.12) !important;
}

body.login-split .login-shell {
    grid-template-columns: 1.2fr .8fr;
}

body.login-split .login-hero-panel {
    background:
        radial-gradient(circle at 30% 16%, color-mix(in srgb, var(--theme-accent, #60a5fa) 34%, transparent), transparent 28%),
        linear-gradient(165deg, var(--theme-sidebar-start, #0f172a), var(--theme-sidebar-end, #1e293b));
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
        width: min(500px, calc(100% - 2rem));
        min-height: auto;
    }
    .login-hero-panel {
        display: none;
    }
    .login-shell .login-card {
        border-radius: 1.5rem;
    }
}


.regional-performance-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
    width: 100%;
}

.regional-performance-card {
    background: #fff;
    border: none;
    border-radius: 1.1rem;
    box-shadow: 0 10px 30px rgba(15,23,42,.07);
    padding: .85rem;
    min-width: 0;
}

.compact-regional-card {
    min-height: 172px;
}

.regional-card-region {
    font-size: clamp(.85rem, .95vw, 1.05rem);
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.regional-card-icon {
    font-size: 1.1rem;
}

.regional-card-main {
    font-size: clamp(1.45rem, 2vw, 2.1rem);
    line-height: 1;
    font-weight: 900;
    color: #198754;
}

.regional-card-caption {
    color: #64748b;
    font-size: clamp(.62rem, .75vw, .76rem);
    font-weight: 700;
    margin: .2rem 0 .45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.regional-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .42rem;
}

.regional-card-grid > div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: .72rem;
    padding: .42rem .46rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .25rem;
    min-width: 0;
}

.regional-card-grid span {
    color: #64748b;
    font-size: clamp(.58rem, .68vw, .72rem);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.regional-card-grid strong {
    color: #0f172a;
    font-size: clamp(.76rem, .9vw, .98rem);
    font-weight: 800;
}

.regional-card-grid .regional-this-year strong {
    color: #198754;
}

.regional-card-grid .regional-remaining strong {
    color: #dc3545;
}

@media (max-width: 1100px) {
    .regional-performance-strip {
        gap: .45rem;
    }
    .regional-performance-card {
        padding: .65rem;
    }
    .regional-card-grid > div {
        padding: .34rem .38rem;
    }
}


.project-progress-monitor {
    font-size: .74rem;
    line-height: 1.25;
    min-height: 1.2rem;
}

.trend-badge {
    min-width: 96px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}


/* Compact PMMS progress bars and wrapped DataTable headers. */
table.datatable.wrap-column-headings th,
table.datatable.compact-progress-table th {
    white-space: normal !important;
    line-height: 1.15 !important;
    vertical-align: middle !important;
    max-width: 120px;
}

table.datatable.wrap-column-headings td {
    white-space: normal;
    word-break: normal;
}

table.datatable.compact-progress-table .percent-cell-td {
    min-width: 92px !important;
    width: 92px !important;
}

table.datatable.compact-progress-table .percent-bar-cell {
    min-width: 78px !important;
    gap: .12rem !important;
}

table.datatable.compact-progress-table .percent-track {
    width: 68px !important;
    height: .42rem !important;
}

table.datatable.compact-progress-table .percent-label {
    min-width: 42px !important;
    font-size: .68rem !important;
}

.project-name-wrap {
    max-width: 240px;
    white-space: normal !important;
    word-break: break-word;
    text-align: left !important;
    line-height: 1.25;
}

.weekly-trend-chart-box {
    min-height: 260px;
    height: 280px;
}

.weekly-trend-table td,
.weekly-trend-table th {
    white-space: normal !important;
    line-height: 1.15;
}


/* Weekly increase integrated under compact percent bars. */
.percent-bar-with-trend {
    gap: .12rem !important;
}

.trend-inline {
    width: 112px;
    max-width: 112px;
    min-height: .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .12rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 700;
    line-height: 1;
    padding: .08rem .22rem;
    white-space: nowrap;
}

.trend-inline-up {
    background: #dcfce7;
    color: #15803d;
}

.trend-inline-down {
    background: #fee2e2;
    color: #b91c1c;
}

.trend-inline-neutral {
    background: #e2e8f0;
    color: #475569;
}

table.datatable.compact-progress-table .percent-bar-with-trend .trend-inline {
    width: 68px !important;
    max-width: 68px !important;
    font-size: .55rem !important;
    padding: .08rem .16rem !important;
}

.project-details-table .percent-cell-td,
.dashboard-accomplishment-table .percent-cell-td {
    min-width: 84px !important;
    width: 84px !important;
}

.project-details-table .percent-bar-cell,
.dashboard-accomplishment-table .percent-bar-cell {
    min-width: 74px !important;
}

/* Project Details workweek accomplishment modal. */
.weekly-progress-modal-dialog {
    max-width: min(1680px, 96vw);
}

.project-weekly-chart-box {
    height: 340px;
    min-height: 320px;
}

.weekly-progress-summary .mini-stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: .85rem 1rem;
    height: 100%;
}

.weekly-progress-summary .mini-stat-box span {
    display: block;
    font-size: .72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
    margin-bottom: .35rem;
}

.weekly-progress-summary .mini-stat-box strong {
    font-size: 1.15rem;
    color: #0f172a;
}

#projectWeeklyProgressTable th {
    white-space: normal !important;
    line-height: 1.15;
}

@media (max-width: 991.98px) {
    .project-weekly-chart-box {
        height: 280px;
    }
}


/* Extra-large workweek accomplishment modal export/print layout. */
#weeklyProgressModal .modal-header {
    gap: 1rem;
}

#weeklyProgressModal .modal-body {
    overflow-x: hidden;
}

#weeklyProgressModal .btn-outline-success,
#weeklyProgressModal .btn-outline-secondary {
    white-space: nowrap;
}

.weekly-progress-modal-dialog.modal-xxl {
    max-width: min(1680px, 96vw);
}

@media print {
    #weeklyProgressModal .modal-header .btn,
    #weeklyProgressModal .btn-close,
    #weeklyProjectFilter,
    #weeklySubstationFilter {
        display: none !important;
    }
}

/* Improved main dashboard status overview cards. */
.dashboard-status-overview .dashboard-status-card {
    position: relative;
    min-height: 142px;
    padding: 1rem .92rem;
    border-radius: 1.15rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .95);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .075);
}
.dashboard-status-overview .dashboard-status-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--card-accent, var(--theme-primary, #2563eb));
}
.dashboard-status-overview .dashboard-status-card::after {
    content: '';
    position: absolute;
    right: -22px;
    top: -22px;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: var(--card-soft, rgba(37, 99, 235, .10));
}
.dashboard-status-icon {
    position: absolute;
    right: .82rem;
    top: .82rem;
    width: 40px;
    height: 40px;
    border-radius: .95rem;
    display: grid;
    place-items: center;
    color: var(--card-accent, #2563eb);
    background: var(--card-soft, rgba(37, 99, 235, .10));
    font-size: 1.25rem;
    z-index: 1;
}
.dashboard-status-label {
    color: #64748b;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding-right: 46px;
    line-height: 1.15;
    min-height: 1.6rem;
}
.dashboard-status-value {
    color: #0f172a;
    font-size: clamp(1.35rem, 2.3vw, 2.05rem);
    font-weight: 900;
    line-height: 1;
    margin-top: .55rem;
    white-space: nowrap;
}
.dashboard-status-caption {
    color: #64748b;
    font-size: .72rem;
    font-weight: 600;
    margin-top: .4rem;
    white-space: normal;
    line-height: 1.2;
}
.dashboard-status-progress {
    height: .38rem;
    width: 100%;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: .75rem;
}
.dashboard-status-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--card-accent, #2563eb);
}
.dashboard-status-card-primary { --card-accent: #2563eb; --card-soft: rgba(37, 99, 235, .12); }
.dashboard-status-card-info { --card-accent: #0ea5e9; --card-soft: rgba(14, 165, 233, .13); }
.dashboard-status-card-success { --card-accent: #16a34a; --card-soft: rgba(22, 163, 74, .13); }
.dashboard-status-card-danger { --card-accent: #dc2626; --card-soft: rgba(220, 38, 38, .12); }
.dashboard-status-card-warning { --card-accent: #d97706; --card-soft: rgba(217, 119, 6, .14); }

.equipment-energized-note {
    color: #dc3545;
    font-weight: 600;
}
.slr-link-wrapper {
    transition: all .18s ease;
}

/* Schedule modal fieldset grouping */
.schedule-fieldset {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1rem;
  padding: 1rem 1rem 1.1rem;
  background: rgba(248, 250, 252, 0.85);
}
.schedule-fieldset legend {
  float: none;
  width: auto;
  margin-bottom: .75rem;
  padding: 0 .55rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #334155;
}
.schedule-fieldset .form-label {
  font-size: .78rem;
  font-weight: 700;
  color: #475569;
}
.schedule-fieldset .form-text {
  font-size: .72rem;
}

/* Project Details modal grouped layout */
.project-fieldset {
  background: linear-gradient(180deg, rgba(248, 250, 252, .96), rgba(255, 255, 255, .94));
}
.project-fieldset legend {
  color: #1e3a8a;
}
.project-fieldset .form-control[readonly] {
  background-color: #eef2ff;
  font-weight: 700;
}
.project-status-preview {
  border-style: dashed;
}


/* Topbar user placeholder and admin DataTable column-collapse controls */
.topbar-user .user-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--theme-primary-soft, rgba(37,99,235,.14));
    color: var(--theme-primary, #2563eb);
    font-size: 1.25rem;
    border: 1px solid rgba(37,99,235,.12);
}

.dt-admin-column-control {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: .9rem;
    padding: .65rem;
}

.dt-admin-column-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    padding: .75rem;
}

.dt-admin-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .35rem .75rem;
}

.dt-admin-column-grid .form-check {
    margin-bottom: 0;
    color: #334155;
}

/* Shared modal fieldset style used by Project, Equipment, and Schedule forms. */
.pmms-fieldset {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 1rem;
    padding: 1rem 1rem 1.1rem;
    background: rgba(248, 250, 252, 0.85);
}

.pmms-fieldset legend {
    float: none;
    width: auto;
    margin-bottom: .75rem;
    padding: 0 .55rem;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #334155;
}

.pmms-fieldset .form-label {
    font-size: .78rem;
    font-weight: 700;
    color: #475569;
}

.pmms-fieldset .form-text {
    font-size: .72rem;
}

/* Dashboard DataTable current workweek label. */
.dashboard-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.dashboard-workweek-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, .10);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, .20);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .01em;
    padding: .28rem .65rem;
    white-space: nowrap;
}

/* Issues and Concerns: keep long issue text readable in DataTables. */
table.dataTable.datatable th.issue-wrap-cell,
table.dataTable.datatable td.issue-wrap-cell {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 220px;
    max-width: 420px;
    text-align: left !important;
}

/* Equipment Dashboard grand total highlight. */
.equipment-project-statistics-table th.grand-total-header,
.equipment-type-statistics-table th.grand-total-header,
.equipment-project-statistics-table td.grand-total-cell,
.equipment-type-statistics-table td.grand-total-cell {
    font-weight: 800 !important;
}

.equipment-project-statistics-table td.grand-total-cell,
.equipment-type-statistics-table td.grand-total-cell {
    background: #fff3cd !important;
    border-left: 2px solid #ffc107 !important;
    border-right: 2px solid #ffc107 !important;
}


/* Sidebar logo integration */
.brand-box-logo {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .55rem;
    padding: .10rem 0 .90rem;
    margin-bottom: .70rem;
    text-align: center;
}
.sidebar-brand-logo {
    width: 176px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}
.sidebar-modules-title {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #e2e8f0;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.sidebar-modules-title::before,
.sidebar-modules-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(226,232,240,.28);
}
body.layout-compact .sidebar-brand-logo { width: 156px; }
body.sidebar-light .sidebar-brand-logo {
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, .22));
}



/* Login logo image override */
.login-logo-image {
    width: min(235px, 78%);
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    display: block;
    margin: 0 auto 1rem;
}
.login-logo-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
body.layout-compact .login-logo-image {
    width: min(210px, 74%);
}



/* Dashboard: larger percentage bars for better visualization. */
.dashboard-status-progress {
    height: .72rem;
    margin-top: .95rem;
}
.dashboard-tab-content table.datatable .percent-cell-td,
.dashboard-tab-content table.datatable.compact-progress-table .percent-cell-td,
.dashboard-tab-content .project-details-table .percent-cell-td,
.dashboard-tab-content .dashboard-accomplishment-table .percent-cell-td {
    min-width: 190px !important;
    width: 190px !important;
}
.dashboard-tab-content table.datatable .percent-bar-cell,
.dashboard-tab-content table.datatable.compact-progress-table .percent-bar-cell,
.dashboard-tab-content .project-details-table .percent-bar-cell,
.dashboard-tab-content .dashboard-accomplishment-table .percent-bar-cell {
    min-width: 170px !important;
    gap: .28rem !important;
}
.dashboard-tab-content table.datatable .percent-track,
.dashboard-tab-content table.datatable.compact-progress-table .percent-track,
.dashboard-tab-content .project-details-table .percent-track,
.dashboard-tab-content .dashboard-accomplishment-table .percent-track {
    width: 150px !important;
    height: .82rem !important;
}
.dashboard-tab-content table.datatable .percent-label,
.dashboard-tab-content table.datatable.compact-progress-table .percent-label,
.dashboard-tab-content .project-details-table .percent-label,
.dashboard-tab-content .dashboard-accomplishment-table .percent-label {
    font-size: .82rem !important;
    font-weight: 800 !important;
}
body.layout-compact .dashboard-tab-content table.datatable .percent-cell-td,
body.layout-compact .dashboard-tab-content table.datatable.compact-progress-table .percent-cell-td {
    min-width: 160px !important;
    width: 160px !important;
}
body.layout-compact .dashboard-tab-content table.datatable .percent-track,
body.layout-compact .dashboard-tab-content table.datatable.compact-progress-table .percent-track {
    width: 128px !important;
    height: .74rem !important;
}


/* Web Settings: lock/unlock topbar while scrolling vertically. */
body.topbar-locked .topbar {
    position: sticky;
    top: .85rem;
    z-index: 1040;
}
body.layout-compact.topbar-locked .topbar {
    top: .65rem;
}

/* Sidebar module grouping sections. */
.sidebar-section-title {
    margin: .95rem .25rem .35rem;
    color: rgba(226, 232, 240, .72);
    font-size: .70rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: .55rem;
}
.sidebar-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(226, 232, 240, .20);
}
body.sidebar-light .sidebar-section-title {
    color: #64748b;
}
body.sidebar-light .sidebar-section-title::after {
    background: #e2e8f0;
}

/* Activity Logs: keep cyber security log details readable. */
table.dataTable.cyber-security-log-table th.security-wrap-cell,
table.dataTable.cyber-security-log-table td.security-wrap-cell {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 180px;
    max-width: 360px;
    text-align: left !important;
}


/* Dashboard Main Dashboard: larger weekly increase/variance indicators below percentage bars. */
.dashboard-tab-content table.datatable .percent-bar-with-trend,
.dashboard-tab-content table.datatable.compact-progress-table .percent-bar-with-trend,
.dashboard-tab-content .dashboard-accomplishment-table .percent-bar-with-trend {
    gap: .34rem !important;
    align-items: center !important;
}
.dashboard-tab-content table.datatable .percent-bar-with-trend .trend-inline,
.dashboard-tab-content table.datatable.compact-progress-table .percent-bar-with-trend .trend-inline,
.dashboard-tab-content .dashboard-accomplishment-table .percent-bar-with-trend .trend-inline {
    width: 122px !important;
    max-width: 122px !important;
    min-height: 1.35rem !important;
    font-size: .82rem !important;
    font-weight: 900 !important;
    padding: .22rem .45rem !important;
    letter-spacing: .01em;
}
.dashboard-tab-content table.datatable .percent-bar-with-trend .trend-inline i,
.dashboard-tab-content table.datatable.compact-progress-table .percent-bar-with-trend .trend-inline i,
.dashboard-tab-content .dashboard-accomplishment-table .percent-bar-with-trend .trend-inline i {
    font-size: .92rem !important;
}
body.layout-compact .dashboard-tab-content table.datatable .percent-bar-with-trend .trend-inline,
body.layout-compact .dashboard-tab-content table.datatable.compact-progress-table .percent-bar-with-trend .trend-inline {
    width: 108px !important;
    max-width: 108px !important;
    min-height: 1.22rem !important;
    font-size: .74rem !important;
    padding: .18rem .34rem !important;
}


/* Dashboard embedded Project Summary action. */
.dashboard-summary-btn {
    white-space: nowrap;
    font-weight: 700;
}
.dashboard-accomplishment-table td:last-child,
.dashboard-accomplishment-table th:last-child {
    text-align: center;
    vertical-align: middle;
}
