

table thead th[data-sort-state] {
    position: relative;
    transition: background-color 0.1s ease;
}
table thead th[data-sort-state]:hover {
    background-color: rgba(0, 83, 81, 0.08);
}
table thead th.sorted-asc,
table thead th.sorted-desc {
    background-color: rgba(0, 83, 81, 0.12);
}
table thead th .sort-arrow {
    color: #005351;
    font-size: 0.8em;
    margin-left: 4px;
    opacity: 0.6;
}
table thead th.sorted-asc .sort-arrow,
table thead th.sorted-desc .sort-arrow {
    opacity: 1;
}

@media print {
    table thead th .sort-arrow { display: none !important; }
    table thead th[data-sort-state] { cursor: default !important; background-color: transparent !important; }
    table thead th.sorted-asc,
    table thead th.sorted-desc { background-color: transparent !important; }
    .dlh-btn, .dlh-btn-secondary, .btn { display: none !important; }
    .card-header { background-color: transparent !important; color: #000 !important; border-bottom: 1px solid #000; }
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
    background-color: #F6F7F8;
}

.dlh-body {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 70px 1fr 70px;
    background-color: #F6F7F8;
}

.dlh-header {
    background-color: #005351;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 0 18px;
    box-sizing: border-box;
}

.dlh-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.dlh-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    text-decoration: none;
}

.dlh-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.dlh-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.dlh-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

    .dlh-nav-link:hover {
        color: #126A3A;
    }

.dlh-help-link {
    display: inline-block;
    min-width: 70px;
    text-align: right;
}

.dlh-main {
    overflow: auto;
    background-color: #F6F7F8;
}

.dlh-content {
    min-height: 100%;
    /* Нижний padding гарантирует, что сабмит-кнопки и подсказки длинных форм
       не уходят под sticky-футер (56–70 px высота). */
    padding: 24px 28px 88px 28px;
    box-sizing: border-box;
}

.dlh-footer {
    background-color: #005351;
    color: rgb(96, 156, 103);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    box-sizing: border-box;
    font-size: 14px;
    min-height: 56px;
    position: sticky;
    bottom: 0;
    z-index: 1020;
}

.dlh-footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dlh-footer-user {
    color: rgb(96, 156, 103);
    font-weight: 700;
}

.dlh-footer-logout {
    background: none;
    border: none;
    color: rgb(96, 156, 103);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

    .dlh-footer-logout:hover {
        color: #ffffff;
    }

.dlh-footer-right {
    text-align: right;
    line-height: 1.3;
    font-weight: 700;
    color: rgb(96, 156, 103);
}

.dlh-login-page {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dlh-login-box {
    width: 500px;
    background-color: rgb(217, 217, 217);
    border-radius: 28px;
    padding: 26px 34px 34px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.dlh-login-title {
    text-align: center;
    color: #127241;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 34px;
}

.dlh-login-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.dlh-login-label {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
}

.dlh-login-input {
    width: 100%;
    height: 58px;
    border: none;
    background-color: #efefef;
    font-size: 24px;
    padding: 0 16px;
    box-sizing: border-box;
    outline: none;
}

.dlh-login-button {
    display: block;
    min-width: 260px;
    height: 82px;
    margin: 10px auto 0 auto;
    padding: 0;
    border: none;
    border-radius: 18px;
    background-color: rgb(101, 160, 104);
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    cursor: pointer;
}

    .dlh-login-button:hover {
        background-color: rgb(76, 140, 80);
    }

.dlh-validation-summary {
    color: #b00020;
    font-size: 14px;
    margin-bottom: 12px;
}

.dlh-privacy {
    max-width: 880px;
    margin: 24px auto 48px;
    padding: 0 16px;
    line-height: 1.55;
}

    .dlh-privacy h1 {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .dlh-privacy h2 {
        font-size: 18px;
        margin-top: 28px;
        margin-bottom: 10px;
        color: #005351;
    }

    .dlh-privacy ul {
        padding-left: 24px;
    }

    .dlh-privacy code {
        background: rgba(0, 0, 0, 0.05);
        padding: 1px 5px;
        border-radius: 3px;
        font-size: 0.92em;
    }

    .dlh-privacy .dlh-privacy-version {
        margin-top: 32px;
        font-size: 13px;
    }

.dlh-login-cookie-notice {
    margin-top: 18px;
    padding: 10px 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    color: #555;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

    .dlh-login-cookie-notice a {
        color: #127241;
        text-decoration: none;
    }

        .dlh-login-cookie-notice a:hover {
            text-decoration: underline;
        }

.field-validation-error {
    color: #b00020;
    font-size: 13px;
}

.dlh-help-page {
    max-width: 1300px;
    margin: 0 auto;
}

.dlh-help-intro {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.dlh-help-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 28px;
}

.dlh-help-filter-box {
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    padding: 16px;
    margin-bottom: 22px;
}

.dlh-help-card {
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    padding: 18px;
    margin-bottom: 18px;
}

.dlh-help-card-title {
    color: #005351;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dlh-help-card-meta {
    color: #666666;
    font-size: 14px;
    margin-bottom: 10px;
}

.dlh-help-card-text {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 14px;
    white-space: pre-line;
}

.dlh-btn {
    display: inline-block;
    background-color: #005351;
    color: #ffffff;
    text-decoration: none;
    border: none;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
}

    .dlh-btn:hover {
        background-color: #126A3A;
        color: #ffffff;
    }

.dlh-btn-secondary {
    display: inline-block;
    background-color: #3a7a78;
    color: #ffffff;
    text-decoration: none;
    border: none;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
}

    .dlh-btn-secondary:hover {
        background-color: #005351;
        color: #ffffff;
    }

.dlh-article-page {
    max-width: 1300px;
    margin: 0 auto;
}

.dlh-article-title {
    color: #005351;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.dlh-article-meta {
    color: #666666;
    font-size: 14px;
    margin-bottom: 18px;
}

.dlh-article-box {
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    padding: 20px;
    font-size: 18px;
    line-height: 1.45;
    white-space: pre-line;
}

.dlh-workplace-page {
    max-width: 1500px;
    margin: 0 auto;
}

.dlh-workplace-title {
    color: #005351;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 18px;
}

.dlh-workplace-meta {
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    padding: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.dlh-workplace-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dlh-workplace-row {
    display: grid;
    grid-template-columns: 130px 1fr 290px;
    gap: 28px;
    align-items: center;
}

.dlh-workplace-type {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    text-align: left;
}

.dlh-workplace-model-box,
.dlh-workplace-inv-box {
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,0.10);
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

.dlh-empty-box {
    background-color: #ffffff;
    border: 1px dashed #bdbdbd;
    padding: 20px;
    font-weight: 700;
}

.dlh-nav-section {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}

.dlh-nav-section:hover {
    color: #d9f0d9 !important;
}

.dlh-nav-section--active {
    color: rgb(105, 163, 104) !important;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.dlh-nav-help {
    color: #ffffff !important;
    font-weight: 700;
}

.dlh-nav-help:hover {
    color: rgb(105, 163, 104) !important;
}

.dlh-nav-help--active {
    color: rgb(105, 163, 104) !important;
}

.page-card {
    max-width: 1200px;
    margin: 0 auto;
}

.page-card--wide {
    max-width: 1550px;
}

.page-card h1 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 700;
    color: #005351;
}

.page-subtitle {
    font-size: 18px;
    margin-bottom: 24px;
    color: #333;
}

.dashboard-grid {
    display: grid;
    
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.dashboard-card {
    background: #ececec;
    border: 1px solid #c8c8c8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 24px;
    border-radius: 4px;
    color: #111;
    text-decoration: none;
    min-height: 150px;
    transition: transform 0.15s ease;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    color: #111;
    text-decoration: none;
}

.dashboard-card h3 {
    margin: 0 0 14px 0;
    font-size: 24px;
    font-weight: 700;
    
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

.dashboard-card p {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}

.crud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-label {
    font-weight: 700;
}

.form-control, .form-select {
    border-radius: 0;
}

.table {
    background-color: #ffffff;
}
