html,
body {
    min-height: 100%;
}

body {
    background: #f6f7f9;
    color: #1f2933;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-wrap {
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

.login-card {
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

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

.sidebar {
    width: 250px;
    flex: 0 0 250px;
    background: #19212c;
    color: #fff;
}

.sidebar-title {
    padding: 22px 22px 18px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar a {
    display: block;
    padding: 12px 22px;
    color: #dbe3ee;
    text-decoration: none;
}

.sidebar a.active,
.sidebar a:hover {
    background: #243044;
    color: #fff;
}

.main {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #e3e7ec;
    padding: 0 28px;
}

.content {
    padding: 28px;
}

.section {
    background: #fff;
    border: 1px solid #e3e7ec;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 24px;
}

.chart-box {
    height: 320px;
    margin-bottom: 18px;
}

.chart-tooltip {
    position: fixed;
    z-index: 2000;
    max-width: 420px;
    max-height: 70vh;
    overflow-y: auto;
    pointer-events: none;
    background: rgba(17, 24, 39, .96);
    color: #fff;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .28);
    opacity: 0;
    visibility: hidden;
    transition: opacity .08s ease;
}

.chart-tooltip-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.chart-tooltip-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 4px;
}

.chart-tooltip-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex: 0 0 10px;
    margin-top: 3px;
}

.chart-tooltip-text {
    overflow-wrap: anywhere;
}

.table th {
    white-space: nowrap;
}

.report-data-table th:first-child,
.report-data-table td:first-child,
.actions-table th:first-child,
.actions-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    --bs-table-bg: #fff;
    --bs-table-accent-bg: transparent;
    background-color: #fff;
    background-clip: padding-box;
    box-shadow: 1px 0 0 #dee2e6;
}

.report-data-table tbody tr:nth-of-type(odd) td:first-child,
.actions-table tbody tr:nth-of-type(odd) td:first-child {
    --bs-table-bg: #f8f9fa;
    background-color: #f8f9fa;
}

.report-data-table thead th:first-child,
.actions-table thead th:first-child {
    z-index: 3;
    background-color: #fff;
}

.actions-table th.action-goal-header {
    min-width: 184px;
    max-width: 240px;
    vertical-align: top;
    white-space: normal;
}

.actions-table th.action-goal-header span {
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 600;
}

.actions-table th:first-child,
.actions-table td:first-child {
    min-width: 184px;
    max-width: 240px;
    white-space: nowrap;
}

.summary-action-cell {
    background-color: rgba(var(--bs-emphasis-color-rgb), .05);
}

.goal-visibility-list {
    max-height: 62vh;
    overflow-y: auto;
}

.goal-visibility-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.goal-visibility-row:last-child {
    border-bottom: 0;
}

.goal-visibility-row .form-check-input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.goal-visibility-row label {
    cursor: pointer;
    overflow-wrap: anywhere;
}

.metric-comment-text {
    min-height: 130px;
}

.pdf-loading {
    overflow: hidden;
}

.pdf-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(246, 247, 249, .78);
}

.pdf-loading-overlay.is-active {
    display: flex;
}

.pdf-loading-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid #d9dee5;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
}

.pdf-loading-text {
    font-weight: 600;
}

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-on {
    background: #198754;
}

.status-off {
    background: #6c757d;
}

.in-work-checkbox:not(:checked):not(:disabled) {
    background-color: #fff;
    border-color: #6c757d;
    border-width: 2px;
    opacity: 1;
}

@media (max-width: 900px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        width: 100%;
    }

    .content {
        padding: 18px;
    }
}

.pm-login-logo{
    padding: 0px 50px 20px 50px;
    height: auto;
    width: 100%;
}

.pm-btn-login{
    background: #183752;
    border-color: #183752;
}
.pm-menu-logo{
    height: auto;
    width: 70%;
    padding-bottom: 20px;
}

