/* Landscaping Site — hvr.ibzkh.ru style */

:root {
    --ls-primary: #0d6efd;
    --ls-sidebar-width: 280px;
    --ls-nav-accent: rgba(13, 110, 253, 0.95);
    --ls-bridge-height: 2px;
    --ls-page-bg: #e9ecef;
    --ls-divider: #dee2e6;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--ls-page-bg) !important;
}

.nav-pills .nav-link {
    color: #495057;
    border-radius: 0.5rem;
    margin-bottom: 0.15rem;
}

.nav-pills .nav-link:hover {
    background-color: #f8f9fa;
}

.nav-pills .nav-link.active {
    background-color: var(--ls-primary);
}

.ls-shell {
    overflow: visible;
    --bs-gutter-x: 0.5rem;
}

.ls-site-header__title {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ls-site-header__subtitle {
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .ls-site-header {
        padding-top: 0.75rem !important;
    }

    .site-gerb {
        width: 48px;
        height: 48px;
    }

    .ls-site-header__title {
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .ls-site-header__subtitle {
        font-size: 0.7rem;
        line-height: 1.35;
    }
}

.ls-sidebar-title {
    text-align: center;
}

.ls-sidebar-header {
    margin: 0 0 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--ls-divider);
}

.overview-acc {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.overview-acc .accordion-item {
    overflow: hidden;
    border: 1px solid #e6ebf2;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.overview-acc .accordion-item:first-of-type,
.overview-acc .accordion-item:last-of-type {
    border-radius: 0.9rem;
}

.overview-acc .accordion-item + .accordion-item {
    border-top: 1px solid #e6ebf2;
}

.overview-status {
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    background: #f4f7fb;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.overview-status--received {
    color: #146c43;
    background: rgba(25, 135, 84, 0.12);
}

.overview-status--pending {
    color: #997404;
    background: rgba(255, 193, 7, 0.18);
}

.overview-status--unavailable {
    color: #6c757d;
}

.overview-acc-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.8rem 1rem;
    border: 0;
    background: transparent;
    font-size: 1rem;
    text-align: left;
    color: inherit;
}

button.overview-acc-toggle {
    cursor: pointer;
}

button.overview-acc-toggle:hover,
button.overview-acc-toggle:focus-visible {
    background: rgba(13, 110, 253, 0.06);
}

.overview-acc .accordion-item:has(.show) .overview-acc-toggle {
    background: #f8fafc;
}

.overview-acc-toggle--locked {
    cursor: default;
    color: #8b95a5;
}

.overview-report-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.55rem 0.65rem 0.55rem 0.9rem;
    border: 1px solid #e6ebf2;
    border-radius: 0.75rem;
    background: #fff;
}

.overview-report-row:last-child {
    border-bottom: 1px solid #e6ebf2;
    padding-bottom: 0.55rem;
}

.overview-report-row--sent {
    border-color: #d7e6fb;
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0) 72%);
}

.overview-report-row--sent::before {
    content: "";
    position: absolute;
    left: 0.4rem;
    top: 0.55rem;
    bottom: 0.55rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0d6efd, #20c997);
}

.overview-report-row--idle {
    border-color: #eef2f6;
    background: #fbfcfe;
    color: #8b95a5;
}

.overview-report-row .users-icon-btn {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 0.6rem;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.overview-report-row--sent .users-icon-btn {
    color: #0d6efd;
    border-color: #cfe0fb;
    background: #fff;
}

.overview-report-row--sent .users-icon-btn:hover,
.overview-report-row--sent .users-icon-btn:focus-visible {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(90deg, #0d6efd, #20c997);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.28);
}

.overview-report-row--idle .users-icon-btn {
    color: #c5ced9;
    border-color: #e6ebf2;
    background: #f4f7fb;
    opacity: 1;
}

.overview-report-name {
    margin-right: auto;
    padding-left: 0.35rem;
    font-weight: 500;
    color: #1f2937;
}

.overview-report-row--idle .overview-report-name {
    font-weight: 400;
    color: #8b95a5;
}

.overview-acc-name {
    font-weight: 600;
    margin-right: auto;
}

.overview-acc .accordion-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.7rem;
    border-top: 1px solid #eef2f6;
    background: #f8fafc;
}

#insecure-password-modal {
    z-index: 5200;
}

body:has(#insecure-password-modal.show) .modal-backdrop {
    z-index: 5150;
}

.users-row-actions {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.users-row-actions form {
    display: flex;
    margin: 0;
}

.users-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
}

.users-last-login {
    cursor: help;
    border-bottom: 1px dotted #6c757d;
}

.users-table {
    table-layout: fixed;
    width: 100%;
}

.users-col-org { width: 27.5%; }
.users-col-email { width: 22%; }
.users-col-inn { width: 12%; }
.users-col-resource { width: 10%; }
.users-col-login { width: 22.5%; }
.users-col-actions { width: 6%; }

.users-org {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.users-email {
    display: inline-block;
    width: 22ch;
    max-width: 100%;
    overflow-wrap: break-word;
    vertical-align: top;
}

.ls-nav > li.sidebar-divider {
    list-style: none;
    margin: 0.65rem 0.75rem;
    padding: 0;
    height: 0;
    border-top: 1px solid var(--ls-divider);
    pointer-events: none;
}

.ls-panel {
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.08);
}

.ls-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6c757d;
}

.ls-empty-state i {
    color: var(--ls-primary);
    opacity: 0.65;
}

.ls-nav .nav-link {
    position: relative;
}

.ls-nav .nav-link--nested {
    padding-left: 2.15rem;
    font-size: 0.92rem;
}

/* Active item: left accent bar + subtle bridge toward content (desktop) */
.ls-nav .nav-link.active::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
    pointer-events: none;
}

@media (min-width: 992px) {
    .ls-sidebar .ls-nav .nav-link.active::after {
        content: "";
        position: absolute;
        left: calc(100% + 0.35rem);
        top: 50%;
        height: var(--ls-bridge-height);
        width: 1200px; /* long enough to reach content area; clipped by viewport */
        transform: translateY(-50%);
        border-radius: 999px;
        background: linear-gradient(
            90deg,
            rgba(13, 110, 253, 0.70),
            rgba(13, 110, 253, 0.18) 55%,
            rgba(13, 110, 253, 0.00) 100%
        );
        filter: drop-shadow(0 1px 0 rgba(255,255,255,0.6));
        pointer-events: none;
        animation: lsBridgeIn 420ms cubic-bezier(.2,.8,.2,1) both;
    }

    .ls-content .content-card {
        position: relative;
        isolation: isolate;
    }

    .ls-content .content-card::before {
        content: "";
        position: absolute;
        left: -10px;
        top: 28px;
        bottom: 28px;
        width: 10px;
        border-radius: 10px;
        background: radial-gradient(closest-side, rgba(13,110,253,0.12), transparent 70%);
        pointer-events: none;
        z-index: -1;
    }
}

@keyframes lsBridgeIn {
    from { opacity: 0; transform: translateY(-50%) translateX(-10px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    padding: 0.35rem 0.75rem 0.25rem 1.05rem;
    position: relative;
}

.nav-section-title::before {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 0.55rem;
    bottom: 0.35rem;
    width: 2px;
    border-radius: 1px;
    background: var(--ls-divider);
}

.nav-section-title--sub {
    padding-top: 0.15rem;
    padding-left: 1.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}

.nav-section-title--sub::before {
    left: 1.2rem;
}

.content-card {
    min-height: 400px;
}

.site-gerb {
    object-fit: contain;
}

.ls-site-header__session {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ls-site-header__logout {
    display: flex;
    align-items: center;
    margin: 0;
}

.ls-site-header__session .site-header-user,
.ls-site-header__logout .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
}

.site-header-user {
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.site-header-user:hover,
.site-header-user:focus-visible {
    color: #fff;
    filter: brightness(0.92);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.35);
}

.site-header-user:focus-visible {
    outline: none;
}

.ls-impersonation-banner {
    position: sticky;
    top: 0;
    z-index: 5100;
    background: #fff3cd;
    border-bottom: 1px solid #ffc107;
    color: #664d03;
    font-size: 0.95rem;
}

.ls-notify-bell {
    position: relative;
}

.ls-notify-bell__button {
    position: relative;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ls-notify-bell__button:hover,
.ls-notify-bell__button:focus-visible,
.ls-notify-bell__button[aria-expanded="true"] {
    color: var(--ls-primary);
    border-color: var(--ls-primary);
    background-color: rgba(13, 110, 253, 0.08);
}

.ls-notify-bell__badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    line-height: 1.15rem;
    text-align: center;
}

.ls-notify-bell__menu {
    width: min(22rem, calc(100vw - 1.5rem));
    padding: 0;
}

.ls-notify-bell__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem 0.45rem;
    font-weight: 600;
}

.ls-notify-bell__empty {
    padding: 0.75rem 0.9rem 1rem;
    color: #6c757d;
}

.ls-notify-bell__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 22rem;
    overflow: auto;
}

.ls-notify-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 0;
    border-top: 1px solid #f1f3f5;
    background: #fff;
    text-align: left;
}

.ls-notify-item.is-unread {
    box-shadow: inset 3px 0 0 var(--ls-primary, #0d6efd);
}

.ls-notify-item.is-read {
    background: #f8f9fa;
}

.ls-notify-item__meta,
.ls-notifications__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.15rem;
}

.ls-notify-status {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
}

.ls-notify-status--unread {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.ls-notify-status--read {
    background: #e9ecef;
    color: #6c757d;
}

.ls-notify-item__title {
    font-weight: 600;
    font-size: 0.9rem;
}

.ls-notify-item__body,
.ls-notify-item__time {
    color: #6c757d;
    font-size: 0.8rem;
}

.ls-notify-item__body {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Auth overlay pages */
.auth-page {
    min-height: 100vh;
    margin: 0;
}

.auth-backdrop {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.92)),
        url("../images/gerb.png") center / 320px no-repeat;
    position: relative;
}

.auth-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
}

.auth-card--wide {
    max-width: 520px;
}

.auth-back-link {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s ease;
}

.auth-back-link:hover {
    color: #fff;
}

.login-form .input-group-text {
    background-color: #f8f9fa;
}

.password-toggle-group .password-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    padding-inline: 0.75rem;
    border-color: #ced4da;
    color: #6c757d;
    background-color: #f8f9fa;
}

.password-toggle-group .password-toggle-btn:hover,
.password-toggle-group .password-toggle-btn:focus {
    color: #495057;
    background-color: #e9ecef;
    border-color: #ced4da;
}

.password-toggle-group .password-toggle-btn:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    z-index: 4;
}

.password-toggle-group .form-control:focus {
    z-index: 3;
}

/* Guest reminder (unauth) */
.guest-reminder {
    position: fixed;
    right: 1rem;
    top: var(--ls-guest-reminder-top, 7.25rem);
    bottom: auto;
    width: min(420px, calc(100vw - 2rem));
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 1rem;
    padding: 1rem 1rem 0.9rem;
    z-index: 1080;
}

.guest-reminder--toast {
    border-left: 0;
    overflow: hidden;
    transform: translateY(-18px);
    opacity: 0;
    animation: guestToastIn 900ms cubic-bezier(.2,.8,.2,1) forwards;
}

.guest-reminder__bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #0d6efd, #20c997);
}

.guest-reminder__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(13, 110, 253, 0.12);
}

.guest-reminder__progress-line {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #0d6efd, #20c997);
}

.guest-reminder--toast::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    animation: guestPulse 1.2s ease-out 1;
    background: radial-gradient(closest-side, rgba(13,110,253,0.18), transparent 70%);
}

.guest-reminder__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.guest-reminder__title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.guest-reminder__text {
    color: #6c757d;
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.guest-reminder__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guest-reminder__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 576px) {
    .guest-reminder {
        left: 1rem;
        right: 1rem;
        top: var(--ls-guest-reminder-top, 7.25rem);
        bottom: auto;
    }
}

@keyframes guestToastIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guest-reminder--toast {
        animation: none;
        transform: none;
        opacity: 1;
    }
}

@keyframes guestPulse {
    0% { opacity: 0; transform: scale(0.98); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.05); }
}

/* App toasts (replaces native alert) */
.ls-toast-container {
    position: fixed;
    top: var(--ls-guest-reminder-top, 7.25rem);
    right: 1rem;
    z-index: 1090;
    width: min(420px, calc(100vw - 2rem));
    padding: 0;
    pointer-events: none;
}

.ls-toast-container .toast {
    pointer-events: auto;
}

.ls-toast {
    border-radius: 0.75rem;
}

@media (max-width: 576px) {
    .ls-toast-container {
        left: 1rem;
        right: 1rem;
        width: auto;
    }
}

/* Menu ripple */
.nav-pills .nav-link {
    position: relative;
    overflow: hidden;
}

.nav-ripple {
    position: absolute;
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(13, 110, 253, 0.18);
    pointer-events: none;
    animation: navRipple 520ms ease-out forwards;
}

@keyframes navRipple {
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* News feed (main page) */
.news-feed .list-group-item {
    border-left: 3px solid var(--ls-primary);
    transition: background-color 0.15s ease;
}

.news-feed .list-group-item:hover {
    background-color: #f8f9fa;
}

.news-feed .news-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.news-feed .news-body {
    white-space: pre-wrap;
}

/* Project tables */
.table-actions .btn {
    padding: 0.15rem 0.4rem;
}

.content-card .table-responsive,
.content-card .summary-scroll {
    border: 1px solid #e6ebf2;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.content-card .table {
    --bs-table-bg: transparent;
    --bs-table-border-color: #eef2f6;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.content-card .table thead th {
    background: #f4f7fb;
    color: #5c6778;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid #e6ebf2;
    border-top: 0;
    padding: 0.75rem 0.85rem;
    vertical-align: bottom;
}

.content-card .table tbody td,
.content-card .table tbody th,
.content-card .table tfoot th {
    border-color: #eef2f6;
    padding: 0.6rem 0.85rem;
    vertical-align: middle;
}

.content-card .table tbody tr:last-child td,
.content-card .table tbody tr:last-child th {
    border-bottom: 0;
}

.content-card .table tbody tr:hover td,
.content-card .table tbody tr:hover th {
    background-color: #f3f7fd;
}

.content-card .table tfoot th {
    background: #f4f7fb;
    border-top: 1px solid #e6ebf2;
}

.form-control,
.form-select {
    border-color: #d5deea;
    border-radius: 0.65rem;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.16);
}

.form-control-sm {
    border-radius: 0.5rem;
}

/* Sticky table headers (page scroll or scrollable wrapper) */
:root {
    --ls-table-sticky-bg: #fff;
    --ls-table-sticky-top: 0;
}

.ls-table-sticky-scroll {
    max-height: min(70vh, 36rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.ls-table-sticky > thead > tr > th,
.ls-table-sticky thead th,
.ls-table-sticky-scroll > table > thead > tr > th,
.ls-table-sticky-scroll table > thead > tr > th {
    position: sticky;
    top: var(--ls-table-sticky-top, 0);
    z-index: 2;
    background-color: var(--ls-table-sticky-bg, #fff);
}

/* Filter panels (ministry) */
.filter-panel .form-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* Additional tables (financial indicators) */
.additional-table-title {
    margin-bottom: 0.75rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #212529;
}

.additional-table-wrap {
    --ls-table-sticky-bg: #eef2f7;
    width: 100%;
    max-width: 100%;
    max-height: min(70vh, 36rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    background: #f8f9fa;
}

.additional-table {
    margin-bottom: 0;
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    width: 100%;
}

.additional-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #eef2f7;
    color: #495057;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #dbe1e8;
    padding: 0.65rem 0.5rem;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}

.additional-table tbody td {
    border-bottom: 1px solid #edf0f3;
    padding: 0.55rem 0.65rem;
    vertical-align: middle;
    min-width: 0;
}

.additional-table tbody tr.additional-table-row:nth-of-type(even) td {
    background-color: #fbfcfd;
}

.additional-table tbody tr.additional-table-row:hover td {
    background-color: rgba(13, 110, 253, 0.04);
}

.additional-table-col-name {
    min-width: 16rem;
    width: 28%;
}

.additional-table-col-value {
    width: 9%;
    min-width: 0;
}

.additional-table-name {
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.35;
    color: #212529;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 0;
}

.additional-table-value {
    text-align: center;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 0;
}

.additional-table-value--empty {
    color: #adb5bd;
    text-align: center;
}

.additional-table input {
    width: 100%;
    min-width: 4.75rem;
    max-width: 6.5rem;
    margin: 0 auto;
    text-align: center;
    font-variant-numeric: tabular-nums;
    border-color: #dbe1e8;
    background: #fff;
}

.additional-table input:focus {
    border-color: rgba(13, 110, 253, 0.45);
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.12);
}

@media (max-width: 991.98px) {
    .additional-table {
        min-width: 52rem;
    }
}

/* Text overflow utilities */
.ls-min-width-0 {
    min-width: 0;
}

.ls-text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}

.ls-table-cell-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 0;
}

/* Native title tooltips for truncated text are applied by ~/js/shared/truncate-tooltips.js */

/* Legacy helpers kept for partials */
.blod_style {
    font-weight: bold;
}

.indent {
    line-height: 1.8;
}

/* Bug report modal */
.ls-bug-report-screenshot-wrap {
    min-height: 7rem;
}

.ls-bug-report-screenshot-preview {
    display: block;
    max-width: 100%;
    max-height: 220px;
    margin: 0 auto;
    object-fit: contain;
}

.ls-bug-report-submit {
    position: relative;
    overflow: hidden;
    min-width: 9.5rem;
    isolation: isolate;
}

.ls-bug-report-submit-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: rgba(255, 255, 255, 0.22);
    transition: width 0.12s linear;
    pointer-events: none;
    z-index: 0;
}

.ls-bug-report-submit.is-busy .ls-bug-report-submit-fill {
    width: var(--ls-bug-progress, 0%);
}

.ls-bug-report-submit.is-indeterminate .ls-bug-report-submit-fill {
    width: 40%;
    animation: ls-bug-report-indeterminate 1.1s ease-in-out infinite;
}

.ls-bug-report-submit-content {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.ls-bug-report-ring {
    flex-shrink: 0;
    transform: rotate(-90deg);
}

.ls-bug-report-ring-track {
    stroke: rgba(255, 255, 255, 0.35);
}

.ls-bug-report-ring-progress {
    stroke: #fff;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.12s linear;
}

.ls-bug-report-submit.is-indeterminate .ls-bug-report-ring-progress {
    animation: ls-bug-report-ring-spin 0.9s linear infinite;
    stroke-dashoffset: 55;
}

@keyframes ls-bug-report-indeterminate {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(280%); }
}

@keyframes ls-bug-report-ring-spin {
    to { stroke-dashoffset: -32; }
}

@media (min-width: 992px) {
    .ls-sidebar-sticky {
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
    }
}

.slice-menu > .nav-link {
    border: 0;
    background: transparent;
    text-align: left;
}

.slice-menu > .nav-link:not(.collapsed):not(.active) {
    background-color: #f8f9fa;
}

.slice-chevron {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.slice-menu > .nav-link:not(.collapsed) .slice-chevron {
    transform: rotate(180deg);
}

.slice-panel {
    padding: 0.35rem 0.35rem 0.5rem 0.85rem;
}

.slice-menu__resource,
.slice-menu__org {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #495057;
}

.slice-menu__org {
    margin-bottom: 0.75rem;
    color: #6c757d;
}

.slice-year {
    margin-bottom: 0.75rem;
}

.slice-year .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
}

.slice-accordion.accordion-flush .accordion-item,
.slice-month-locked {
    border: 1px solid #e6ebf2;
    border-radius: 0.75rem;
    margin-bottom: 0.4rem;
    background: #fff;
    overflow: hidden;
}

.slice-accordion .accordion-button {
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.92rem;
    border-radius: 0.75rem;
    box-shadow: none;
}

.slice-accordion .accordion-button:not(.collapsed) {
    background: #f8fafc;
    color: inherit;
    box-shadow: none;
}

.slice-accordion .accordion-button:focus {
    box-shadow: none;
}

.slice-accordion .accordion-body {
    padding: 0.15rem 0.45rem 0.55rem;
}

.slice-month-label,
.slice-month-locked {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.slice-month-locked {
    padding: 0.55rem 0.35rem;
}

.slice-month-name {
    font-weight: 600;
}

.slice-status {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.35;
}

.slice-status--editable {
    color: #0a58ca;
    background: rgba(13, 110, 253, 0.1);
}

.slice-status--unavailable {
    color: #6c757d;
    background: #f4f7fb;
}

.slice-status--sent {
    color: #146c43;
    background: rgba(25, 135, 84, 0.12);
}

.slice-progress {
    display: inline-flex;
    margin: 0 0 0.4rem;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    background: #f4f7fb;
    font-size: 0.68rem;
    font-weight: 600;
    color: #5c6778;
}

.slice-reports {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.slice-reports .slice-report-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.4rem 0.45rem 0.4rem 0.7rem;
    border: 1px solid #eef2f6;
    border-radius: 0.6rem;
    font-size: 0.82rem;
    background: #fff;
}

.slice-reports .slice-report-row.active {
    border-color: #d7e6fb;
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.12), rgba(13, 110, 253, 0) 78%);
    color: #212529;
}

.slice-reports .slice-report-row.active::before {
    content: "";
    position: absolute;
    left: 0.28rem;
    top: 0.38rem;
    bottom: 0.38rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0d6efd, #20c997);
}

.slice-reports .slice-report-row.active .slice-report-link,
.slice-reports .slice-report-row.active .slice-report-link:active,
.slice-reports .slice-report-row.active .slice-report-link:focus {
    color: #212529;
}

.slice-report-row__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.35rem;
}

.slice-report-row__main .slice-status {
    flex: 0 0 auto;
    margin-top: 0.1rem;
    white-space: nowrap;
}

.slice-report-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.35rem;
    color: inherit;
    font-weight: 500;
    text-decoration: none;
}

.slice-report-link i {
    color: #0d6efd;
    margin-top: 0.1rem;
}

.slice-report-link:hover {
    color: #0d6efd;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    padding: 0.35rem 0.75rem 0.25rem 1.05rem;
    position: relative;
}

.nav-section-title::before {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 0.55rem;
    bottom: 0.35rem;
    width: 2px;
    border-radius: 1px;
    background: var(--ls-divider);
}

.nav-section-title--sub {
    padding-top: 0.15rem;
    padding-left: 1.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}

.nav-section-title--sub::before {
    left: 1.2rem;
}

.ls-bug-report-screenshot-wrap {
    min-height: 7rem;
}

.ls-bug-report-screenshot-preview {
    display: block;
    max-width: 100%;
    max-height: 220px;
    margin: 0 auto;
    object-fit: contain;
}

.ls-bug-report-submit {
    position: relative;
    overflow: hidden;
    min-width: 9.5rem;
    isolation: isolate;
}

.ls-bug-report-submit-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: rgba(255, 255, 255, 0.22);
    transition: width 0.12s linear;
    pointer-events: none;
    z-index: 0;
}

.ls-bug-report-submit.is-busy .ls-bug-report-submit-fill {
    width: var(--ls-bug-progress, 0%);
}

.ls-bug-report-submit.is-indeterminate .ls-bug-report-submit-fill {
    width: 40%;
    animation: ls-bug-report-indeterminate 1.1s ease-in-out infinite;
}

.ls-bug-report-submit-content {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.ls-bug-report-ring {
    flex-shrink: 0;
    transform: rotate(-90deg);
}

.ls-bug-report-ring-track {
    stroke: rgba(255, 255, 255, 0.35);
}

.ls-bug-report-ring-progress {
    stroke: #fff;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.12s linear;
}

.ls-bug-report-submit.is-indeterminate .ls-bug-report-ring-progress {
    animation: ls-bug-report-ring-spin 0.9s linear infinite;
    stroke-dashoffset: 55;
}

@keyframes ls-bug-report-indeterminate {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(280%); }
}

@keyframes ls-bug-report-ring-spin {
    to { stroke-dashoffset: -32; }
}


.ls-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 18rem;
    max-width: 36rem;
    margin: 0 auto;
    padding: 0.5rem 0.25rem 0.25rem;
}

.ls-error__code {
    margin: 0;
    font-size: clamp(4.5rem, 12vw, 7rem);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--ls-primary);
    opacity: 0.18;
}

.ls-error__title {
    margin: 0.35rem 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
}

.ls-error__text {
    margin: 0 0 1.25rem;
    color: #6c757d;
    line-height: 1.5;
}

.ls-error__id {
    margin: 0 0 1.35rem;
}

.ls-error__id code {
    display: inline-block;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    background: #f8f9fa;
    border: 1px solid var(--ls-divider);
    color: #212529;
    font-size: 0.95rem;
    line-height: 1.4;
    user-select: all;
    word-break: break-all;
}