
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2c2c2c;
    --accent-color: #dc3545;
    --orange-color: #ff7a45;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --border-color: #444444;
    --hover-color: #b52d3c;
    
    --light-bg: #ffffff;
    --light-text: #333333;
    --light-card-bg: #f8f9fa;
    --light-border: #dee2e6;
    --light-muted: #6c757d;
    --light-header-bg: #e9ecef;
}

.text-muted {
    color: #cccccc !important;
}

.rank-display {
    padding: 8px 0;
}

.rank-image-container {
    display: inline-block;
}

.rank-image {
    display: block;
}

.rank-info {
    font-size: 11px;
    line-height: 1.3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

.main-header {
    background-color: var(--secondary-color);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    cursor: pointer;
}

.mo-logo {
    height: 60px;
    width: auto;
}

.document-upload-item.mb-4 {
    border-bottom: 1px solid #00000017;
    padding-bottom: 15px;
}

.ministry-title {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    max-width: 300px;
}

.header-right {
    display: flex;
    gap: 35px;
    align-items: center;
    flex: 1;
    justify-content: space-between;
}

.header-nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-left: 40px;
}

.header-actions {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link-item {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    transition: color 0.3s;
}

.nav-link-item:hover {
    color: var(--orange-color);
}

.nav-link-item.active {
    color: var(--orange-color);
    border-bottom: 2px solid var(--orange-color);
    padding-bottom: 2px;
}

.light-theme.has-bg-image {
    background-image: url('/assets/images/background-image.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.light-theme .nav-link-item {
    color: var(--light-text);
}

.light-theme .nav-link-item:hover {
    color: var(--orange-color);
}

.light-theme .nav-link-item.active {
    border-bottom: 2px solid var(--orange-color);
    padding-bottom: 2px;
}

.header-nav-links .dropdown-menu {
    background-color: #fff;
    border: none;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10) !important;
    min-width: 200px;
}

.light-theme .dropdown-item {
    color: var(--light-text);
    border-radius: 7px;
    margin-bottom: 2px;
    font-size: 0.875rem;
    padding: 6px 12px;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.light-theme .dropdown-item:last-child {
    margin-bottom: 0;
}

.light-theme .dropdown-item:hover {
    background-color: #f5f5f5;
    color: var(--orange-color);
    padding-left: 16px;
}

.light-theme .dropdown-item.active,
.light-theme .dropdown-item:active,
.header-nav-links .dropdown-item.active,
.header-nav-links .dropdown-item:active {
    background-color: #fff4e6;
    color: var(--orange-color);
    font-weight: 500;
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

.hover-shadow-sm:hover {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .header-nav-links {
        display: none;
    }
}

.header-account-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-section {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.header-section:hover {
    color: var(--orange-color);
}

.header-section.active {
    color: var(--orange-color);
}

.header-section i {
    font-size: 18px;
}

.header-logout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-muted, #cccccc);
    font-size: 18px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.header-logout-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light, #ffffff);
}

.header-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

.orange-bar {
    background-color: var(--orange-color);
    padding: 0;
    height: 50px;
}

.mobile-nav-toggle {
    display: none;
}

.orange-bar-panel {
    flex: 1 1 auto;
}

.orange-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.nav-links {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

a {
text-decoration: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
    white-space: nowrap;
}

.nav-links a:hover {
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    height: auto;
    flex: 0 0 auto;
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

@media (min-width: 769px) {
    .orange-bar-panel.collapse {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex: 1 1 auto;
    }
}

.main-content {
    max-width: 1300px;
    margin: 0 auto;
    /* padding: 40px 20px; */
}

.content-card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.content-card h3 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 18px;
}

.content-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 5px 20px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.form-control {
    background-color: var(--secondary-color);
    border-color: var(--border-color);
    color: var(--text-light);
}

.form-control:focus {
    background-color: var(--secondary-color);
    border-color: var(--accent-color);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-light);
    font-weight: 500;
}

.dashboard-container {
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.dashboard-header {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 15px 20px;
    font-weight: 600;
}

.user-info {
    padding: 20px;
}

.user-avatar {
    width: 120px;
    height: 120px;
    border: 1px solid;
    border-radius: 8px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.user-avatar.avatar-clickable {
    cursor: pointer;
}

.user-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    pointer-events: none;
}

.user-avatar.avatar-clickable:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    font-size: 40px;
    color: #ffffff;
}

.document-item-clickable {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.document-item-clickable:hover {
    opacity: 0.8;
}

.document-item-clickable:focus {
    outline: none;
}

.document-item-clickable:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}

.dashboard-online-indicator {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    z-index: 2;
    cursor: default;
}

.dashboard-online-indicator.is-online {
    background: #22c55e;
}

.dashboard-online-indicator.is-offline {
    background: #6b7280;
}

.user-details {
    display: grid;
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    font-weight: 500;
    color: var(--text-muted);
}

.detail-value {
    color: var(--text-light);
}

.documents-section {
    margin-top: 30px;
}

.document-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-info h6 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.document-info small {
    color: var(--text-muted);
}

.document-actions {
    display: flex;
    gap: 10px;
}

.settings-card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.settings-nav .nav-link {
    color: #212529;
}
.settings-nav .nav-link.active {
    color: #fff !important;
    background-color: var(--orange-color);
    border-radius: 6px;
}

.settings-card-header {
    background-color: var(--border-color);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.settings-card-body {
    padding: 20px;
}

.modal-content {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.alert {
    border-radius: 6px;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--accent-color);
    color: #f53648;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 18px;
        align-items: center;
        padding: 0 16px;
        text-align: center;
    }

    .header-left {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        gap: 16px;
    }

    .header-account-group {
        flex: 1 1 0;
        justify-content: center;
        min-width: 0;
        gap: 8px;
    }

    .header-divider {
        height: 28px;
        width: 1px;
        flex: 0 0 1px;
    }

    .header-section {
        flex: 1 1 0;
        justify-content: center;
        gap: 8px;
        font-size: 13px;
        min-width: 0;
        text-align: center;
    }

    .header-section span {
        line-height: 1.25;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-logout-link {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
    }

    .orange-bar {
        height: auto;
        padding: 12px 0;
    }

    .orange-bar-content {
        gap: 10px;
        padding: 0 14px;
        height: auto;
        align-items: stretch;
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 14px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.08);
        color: var(--text-light);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .mobile-nav-toggle i {
        font-size: 20px;
    }

    .orange-bar-panel {
        width: 100%;
        padding-top: 12px;
    }

    .orange-bar-panel.collapsing {
        transition: height 0.25s ease;
    }

    .nav-links {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 8px;
        height: auto;
        width: 100%;
        text-align: center;
    }

    .nav-links li {
        height: auto;
        width: 100%;
    }

    .nav-links a {
        height: auto;
        justify-content: flex-start;
        width: 100%;
        min-height: 42px;
        padding: 10px 14px;
        font-size: 13px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        transition: opacity 0.3s, background-color 0.2s, border-color 0.2s;
    }

    .nav-links a:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.24);
    }

    .social-icons {
        height: auto;
        width: 100%;
        justify-content: center;
        padding-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .mo-logo {
        height: 60px;
    }

    .ministry-title {
        font-size: 16px;
        max-width: none;
        text-align: center;
    }
}

.light-theme {
    background-color: var(--light-bg);
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.light-theme > main {
    flex: 1 0 auto;
}

.light-theme .main-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--light-border);
}

/* Оформление 9 мая */
/* @media (min-width: 1920px) {
    .holiday-ribbon-header {
        position: relative;
        z-index: 20;
        overflow: visible;
    }

    .holiday-ribbon-header .header-content {
        position: relative;
        z-index: 1;
    }

    .light-theme .holiday-ribbon-header::before,
    .light-theme .holiday-ribbon-header::after {
        content: "";
        position: absolute;
        top: 50%;
        z-index: 0;
        width: 280px;
        height: 80px;
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        pointer-events: none;
        transform: translateY(-50%);
    }

    .light-theme .holiday-ribbon-header::before {
        left: 0;
        background-image: url('/assets/images/left-part-1.png');
    }

    .light-theme .holiday-ribbon-header::after {
        right: 0;
        background-image: url('/assets/images/left-part-2.png');
    }
} */
/* END Оформление 9 мая */

.light-theme .header-section {
    color: var(--light-text) !important;
}

.light-theme .header-section:hover {
    color: var(--orange-color) !important;
}

.light-theme .header-section.active {
    color: var(--orange-color) !important;
}

.light-theme .header-logout-link {
    color: var(--light-text) !important;
}

.light-theme .header-logout-link:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: var(--orange-color) !important;
}

.light-theme .header-divider {
    background-color: var(--light-border);
}

.light-theme .ministry-title {
    color: var(--light-text) !important;
}

.light-theme .header-left:hover .ministry-title {
    color: var(--light-text) !important;
}

.light-theme .text-white {
    color: var(--light-text) !important;
}

.light-theme .text-muted {
    color: var(--light-muted) !important;
}

.light-theme h2.text-white {
    color: var(--light-text) !important;
}

.light-theme .content-card {
    background-color: var(--light-card-bg);
    border: 1px solid var(--light-border);
}

.light-theme .content-card h3 {
    color: var(--light-text);
}

.light-theme .content-card p {
    color: var(--light-muted);
}

.light-theme .dashboard-container {
    background-color: var(--light-card-bg);
    border: 1px solid var(--light-border);
}

.light-theme .dashboard-header {
    background-color: var(--orange-color);
}

.light-theme .detail-label {
    color: var(--light-muted);
    text-align: left;
}

.light-theme .detail-value {
    color: var(--light-text);
    text-align: right;
}

.light-theme .detail-item {
    border-bottom: 1px solid var(--light-border);
}

.light-theme .document-item {
    background-color: var(--light-card-bg);
    border: 1px solid var(--light-border);
}

.light-theme .document-info h6 {
    color: var(--light-text);
}

.light-theme .document-info small {
    color: var(--light-muted);
}

.light-theme .document-upload-item h6 {
    color: var(--light-text) !important;
}

.light-theme .settings-card {
    background-color: var(--light-card-bg);
    border: 1px solid var(--light-border);
}

.light-theme .settings-card-header {
    background-color: var(--light-header-bg);
    border-bottom: 1px solid var(--light-border);
    color: var(--light-text);
}

.light-theme .form-control {
    background-color: var(--light-bg);
    border-color: #ced4da;
    color: var(--light-text);
}

.light-theme .form-control:focus {
    background-color: var(--light-bg);
    border-color: var(--orange-color);
    color: var(--light-text);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.light-theme .form-control::placeholder {
    color: var(--light-muted);
}

.light-theme .form-label {
    color: var(--light-text);
}

.light-theme .btn-outline-light {
    border-color: var(--orange-color);
    color: var(--orange-color);
}

.light-theme .btn-outline-light:hover {
    background-color: var(--orange-color);
    border-color: var(--orange-color);
    color: white;
}

.light-theme .btn-outline-secondary {
    border-color: #ced4da;
    color: var(--light-muted);
}

.light-theme .btn-primary {
    background-color: var(--orange-color);
    border-color: var(--orange-color);
}

.light-theme .btn-primary:hover {
    background-color: #e06b3d;
    border-color: #e06b3d;
}

.light-theme .modal-content {
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
}

.light-theme .modal-header {
    border-bottom: 1px solid var(--light-border);
}

.light-theme .modal-footer {
    border-top: 1px solid var(--light-border);
}

.light-theme footer {
    background-color: var(--light-card-bg) !important;
    border-top: 1px solid var(--light-border) !important;
    padding: 20px 0;
    margin-top: 50px;
}

.light-theme footer a {
    text-decoration: none;
}

.biography-content {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}

.biography-content p {
    line-height: 1.6;
    font-size: 14px;
}

button[data-bs-toggle="collapse"] i {
    transition: transform 0.3s ease;
}

button[data-bs-toggle="collapse"][aria-expanded="true"] i {
    transform: rotate(180deg);
}

.light-theme .biography-content {
    background-color: rgba(0, 0, 0, 0.05);
    border-left-color: var(--orange-color);
}

.light-theme .biography-content p {
    color: var(--light-text);
}

.nav-links .dropdown-menu {
    background-color: var(--orange-color);
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1050;
    margin-top: 0;
    position: absolute;
    top: 100%;
}

.nav-links .dropdown-item {
    color: white;
    padding: 8px 16px;
    transition: background-color 0.2s;
}

.nav-links .dropdown-item:hover,
.nav-links .dropdown-item:focus {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-links .dropdown-toggle::after {
    display: none;
}

.nav-links .dropdown-toggle i {
    font-size: 0.8em;
    transition: transform 0.2s;
}

.nav-links .dropdown[aria-expanded="true"] .dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-links .dropdown {
    position: relative;
}

.time-span {
    font-size: 0.75em;
    opacity: 0.6;
    color: var(--text-muted);
    font-weight: 300;
    margin-left: 0.25em;
}

.light-theme .time-span {
    color: var(--light-muted);
    opacity: 0.7;
}

.single-photo-block {
    width: 1024px;
    height: 450px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-homepage-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.light-theme .single-photo-block {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1100px) {
    .single-photo-block {
        width: 95%;
        max-width: 1024px;
        height: auto;
        aspect-ratio: 1024/450;
        margin: 20px auto;
    }
}

@media (max-width: 576px) {
    .single-photo-block {
        margin: 15px;
        width: calc(100% - 30px);
        border-radius: 4px;
    }
}

.dashboard-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 1rem;
}

.dashboard-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
}

.dashboard-action-item .action-label {
    font-size: 14px;
    color: var(--text-muted);
    min-width: 100px;
    flex-shrink: 0;
    font-weight: 500;
}

.dashboard-action-item .btn {
    flex: 1;
    min-height: 32px;
    font-size: 13px;
    padding: 6px 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.light-theme .dashboard-action-item .action-label {
    color: var(--light-muted);
}


@media (max-width: 768px) {
    .dashboard-action-item {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    
    .dashboard-action-item .action-label {
        min-width: auto;
        text-align: center;
        font-size: 13px;
    }
    
    .dashboard-action-item .btn {
        width: 100%;
    }
}

.user-awards-display {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.award-icon {
    width: 34px;
    height: 24px;
    object-fit: contain;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.award-icon:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .award-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .award-icon {
        width: 18px;
        height: 18px;
    }
    
    .user-awards-display {
        gap: 4px;
    }
}

body.light-theme .content-card {
    background: #fff;
    color: #000;
}

body.light-theme .content-card h1,
body.light-theme .content-card h2,
body.light-theme .content-card h3 {
    color: #111;
}

body.light-theme .content-card p {
    color: #444;
}

.department-content {
    line-height: 1.6;
}

.department-content h1,
.department-content h2,
.department-content h3,
.department-content h4,
.department-content h5,
.department-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.department-content ul,
.department-content ol {
    margin-bottom: 1rem;
}

.department-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.mil-card {
    background: var(--light-card-bg);
    border: 1px solid var(--light-border);
    padding: 25px;
    margin-bottom: 20px;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
}

.mil-header {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--light-text);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--light-border);
    padding-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-row {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    align-items: center;
}

.news-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.news-thumb {
    width: 168px;
    min-width: 168px;
    height: 108px;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #d9dde2 0%, #f4f6f8 100%);
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa3ad;
}

.news-thumb-placeholder {
    font-size: 1.75rem;
    line-height: 1;
}

.news-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.news-meta {
    font-size: 0.875rem;
    color: var(--orange-color);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.news-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1rem;
    line-height: 1.4;
}

.news-link:hover {
    color: var(--orange-color);
}

@media (max-width: 767px) {
    .news-row {
        gap: 14px;
    }

    .news-thumb {
        width: 112px;
        min-width: 112px;
        height: 88px;
    }

    .news-link {
        font-size: 0.95rem;
    }

    .news-meta {
        font-size: 0.8rem;
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .news-row {
        flex-direction: column;
    }

    .news-thumb {
        width: 100%;
        min-width: 0;
        height: 160px;
    }
}

.hero-banner {
    background: linear-gradient(45deg, #2c3e50, #4a6572);
    position: relative;
    padding: 4rem 3rem;
    margin-bottom: 2rem;
    color: white;
    overflow: hidden;
    border-radius: 0;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-socials {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    gap: 15px;
}

.hero-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-social-link:hover {
    background: var(--orange-color);
    border-color: var(--orange-color);
    transform: translateY(-2px);
    color: white;
}

.btn-action {
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    background: transparent;
    border: 1px solid var(--light-border);
    margin-bottom: 12px;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-action:hover {
    background: var(--orange-color);
    border-color: var(--orange-color);
    color: white;
    padding-left: 25px;
}

.btn-action i {
    margin-right: 15px;
    font-size: 1.1em;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--light-muted);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.btn-vk-custom {
    transition: all 0.2s;
}

.btn-vk-custom:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

.btn-vk-custom:active {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

body.light-theme .accordion-item {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 1rem;
}

body.light-theme .accordion-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    justify-content: center;
}

body.light-theme .accordion-button:not(.collapsed) {
    color: #000;
}

body.light-theme .accordion-body {
    background-color: #fff;
    color: #333;
}

.leader-item {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 30px 20px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.leader-item:hover {
    background-color: #f8f9fa;
}

.leader-item:last-child {
    border-bottom: none;
}

.leader-item:nth-child(even) {
    flex-direction: row-reverse;
}

.leader-photo-container {
    flex-shrink: 0;
}

.leader-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
    display: block;
}

.no-photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.leader-info {
    flex: 1;
    text-align: left;
}

.leader-item:nth-child(even) .leader-info {
    text-align: right;
}

.leader-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.leader-position {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.4;
}

.biography-toggle {
    background: none;
    border: none;
    color: #007bff;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 8px;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.biography-toggle:hover {
    color: #0056b3;
    text-decoration: underline;
}

.leader-biography {
    margin-top: 16px;
    padding: 16px;
    border-top: 1px solid #e9ecef;
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: left;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.leader-biography.collapsed {
    display: none;
}

.chevron-icon {
    transition: transform 0.2s ease;
    font-size: 0.8rem;
}

.chevron-icon.expanded {
    transform: rotate(180deg);
}

.section-description {
    background: rgba(108, 117, 125, 0.1);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-style: italic;
    color: #6c757d;
}

.leaders-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

@media (max-width: 768px) {
    .leader-item {
        padding: 20px 16px;
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
    }
    
    .leader-info {
        text-align: center !important;
    }
    
    .leader-name {
        font-size: 1.2rem;
    }
    
    .leader-position {
        font-size: 0.9rem;
    }
    
    .leader-photo,
    .no-photo-placeholder {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
}

body.light-theme.login-page,
body.light-theme.register-page {
    background-color: #ffffff;
    color: #333333;
}

body.light-theme.login-page .content-card,
body.light-theme.register-page .content-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

body.light-theme.login-page .card,
body.light-theme.register-page .card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

body.light-theme.login-page .card-header,
body.light-theme.register-page .card-header {
    background-color: var(--orange-color);
    color: white;
}

body.light-theme.login-page .form-control,
body.light-theme.register-page .form-control {
    background-color: #ffffff;
    border-color: #ced4da;
    color: #333333;
}

body.light-theme.login-page .form-control:focus,
body.light-theme.register-page .form-control:focus {
    background-color: #ffffff;
    border-color: var(--orange-color);
    color: #333333;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

body.light-theme.login-page .form-label,
body.light-theme.register-page .form-label {
    color: #333333;
}

body.light-theme.login-page .form-check-label,
body.light-theme.register-page .form-check-label {
    color: #333333 !important;
}

body.light-theme.login-page .text-muted,
body.light-theme.register-page .text-muted {
    color: #6c757d !important;
}

body.light-theme.login-page footer,
body.light-theme.register-page footer {
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
}

body.light-theme.login-page hr,
body.light-theme.register-page hr {
    border-color: #dee2e6 !important;
}

body.light-theme.login-page .btn-outline-light,
body.light-theme.register-page .btn-outline-light {
    border-color: var(--orange-color);
    color: var(--orange-color);
}

body.light-theme.login-page .btn-outline-light:hover,
body.light-theme.register-page .btn-outline-light:hover {
    background-color: var(--orange-color);
    border-color: var(--orange-color);
    color: white;
}

body.light-theme.login-page .input-group .btn-outline-secondary,
body.light-theme.register-page .input-group .btn-outline-secondary {
    border-color: #ced4da;
    color: #6c757d;
}

body.light-theme.login-page .input-group .btn-outline-secondary:hover,
body.light-theme.register-page .input-group .btn-outline-secondary:hover {
    background-color: #e9ecef;
    color: #495057;
}

body.light-theme.register-page .text-danger {
    color: var(--orange-color) !important;
}

body.light-theme.register-page .register-auth {
    max-width: 100%;
}

body.light-theme.register-page .register-card {
    background-color: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(32, 42, 54, 0.08);
    overflow: hidden;
}

body.light-theme.register-page .register-card-header {
    background-color: #ffffff;
    border-bottom: 0;
    color: #2d333b;
    padding: 2rem 2rem 0;
    text-align: left;
}

body.light-theme.register-page .register-card-header h4 {
    position: relative;
    padding-bottom: 1.25rem;
    font-size: 1.45rem;
    font-weight: 700;
    border-bottom: 1px solid #e6e9ed;
}

body.light-theme.register-page .register-card-header h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 44px;
    height: 2px;
    background-color: var(--orange-color);
}

body.light-theme.register-page .register-card-header .bi {
    display: none;
}

body.light-theme.register-page .register-card-body {
    padding: 1.45rem 2rem 2rem;
}

body.light-theme.register-page .register-alert {
    border-radius: 4px;
    padding: 1rem 1.1rem;
    line-height: 1.55;
}

body.light-theme.register-page .register-token-alert {
    background-color: #eaf8ff;
    border-color: #9edcf8;
    color: #25495e;
}

body.light-theme.register-page .register-token-alert .bi {
    color: #2584ff;
    font-size: 1.25rem;
    vertical-align: middle;
}

body.light-theme.register-page .register-card .form-label {
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
    font-weight: 600;
}

body.light-theme.register-page .register-card .form-control {
    min-height: 38px;
    border-radius: 4px;
}

body.light-theme.register-page .register-card .form-text,
body.light-theme.register-page .register-card .text-muted,
body.light-theme.register-page .register-card .form-check-label {
    font-size: 0.9rem;
}

body.light-theme.register-page .register-card hr {
    margin-top: 0.85rem !important;
    margin-bottom: 0.85rem !important;
}

body.light-theme.register-page .register-card .btn-lg {
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
}

body.light-theme.login-page .login-card,
body.light-theme.login-page .login-support-card {
    background-color: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(32, 42, 54, 0.08);
    overflow: hidden;
}

body.light-theme.login-page .login-support-card {
    box-shadow: 0 8px 20px rgba(32, 42, 54, 0.06);
}

body.light-theme.login-page .login-card-header {
    background-color: #ffffff;
    border-bottom: 0;
    color: #2d333b;
    padding: 2rem 2rem 0;
    text-align: left;
}

body.light-theme.login-page .login-card-header h4 {
    position: relative;
    padding-bottom: 1.25rem;
    font-size: 1.45rem;
    font-weight: 700;
    border-bottom: 1px solid #e6e9ed;
}

body.light-theme.login-page .login-card-header h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 44px;
    height: 2px;
    background-color: var(--orange-color);
}

body.light-theme.login-page .login-card-header .bi {
    display: none;
}

body.light-theme.login-page .login-card-body {
    padding: 1.45rem 2rem 2rem;
}

body.light-theme.login-page .login-alert {
    border-radius: 4px;
    padding: 1rem 1.1rem;
    line-height: 1.55;
}

body.light-theme.login-page .login-card .form-label {
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
    font-weight: 600;
}

body.light-theme.login-page .login-card .form-control {
    min-height: 38px;
    border-radius: 4px;
}

body.light-theme.login-page .login-card .text-muted,
body.light-theme.login-page .login-card .form-check-label {
    font-size: 0.9rem;
}

body.light-theme.login-page .login-card hr {
    margin-top: 0.85rem !important;
    margin-bottom: 0.85rem !important;
}

body.light-theme.login-page .login-card .btn-lg {
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    body.light-theme.register-page .register-card-header {
        padding: 1.5rem 1.25rem 0;
    }

    body.light-theme.register-page .register-card-body {
        padding: 1.25rem;
    }

    body.light-theme.login-page .login-card-header {
        padding: 1.5rem 1.25rem 0;
    }

    body.light-theme.login-page .login-card-body {
        padding: 1.25rem;
    }
}

.carousel-item img {
    max-height: 480px;
    object-fit: cover;
}

.news-item-card {
    background: #fff;
    color: #111;
}

.news-content {
    color: #222;
}

.news-content img {
    max-width: 100%;
    height: auto;
}

body.light-theme .card {
    background: #fff;
    color: #000;
}

body.light-theme .card .card-title {
    color: #111;
}

body.light-theme .card .card-text {
    color: #444 !important;
}

.order-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-card:hover {
    border-color: var(--orange-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-card.selected {
    border-color: var(--orange-color);
    background: #fff;
    box-shadow: 0 2px 12px rgba(255, 133, 27, 0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-number {
    background: var(--orange-color);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85em;
}

.order-date {
    color: #6b7280;
    font-size: 0.9em;
}

.order-user {
    color: #374151;
    font-weight: 500;
    margin-bottom: 10px;
}

.order-description {
    color: #374151;
    line-height: 1.5;
    padding: 8px;
}

.order-files {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.file-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-link:hover {
    background: var(--orange-color);
    border-color: var(--orange-color);
    color: white;
    text-decoration: none;
}

.file-link.active {
    background: var(--orange-color);
    border-color: var(--orange-color);
    color: white;
}

.preview-placeholder {
    text-align: center;
    color: #6b7280;
}

.preview-placeholder i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 20px;
}

.document-preview {
    width: 100%;
    height: 100%;
    overflow: auto;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.preview-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

#documentViewerModal .modal-dialog {
    max-width: 90vw;
    width: 90vw;
}

#documentContainer {
    border-radius: 6px;
    overflow: hidden;
}

.order-meta {
    color: #6b7280;
    font-size: 0.8em;
    border-top: 1px solid #e5e7eb;
    padding-top: 5px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination .page-link {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.pagination .page-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.pagination .page-item.active .page-link {
    background: var(--orange-color);
    border-color: var(--orange-color);
    color: white;
}

.no-orders {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.orders-container h2 {
    color: #111827;
}

.orders-container .text-muted {
    color: #6b7280 !important;
}

@media (max-width: 768px) {
    .orders-list {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        max-height: none;
        overflow-y: visible;
    }

    .order-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-link {
        justify-content: flex-start;
    }
}

.content-html {
    line-height: 1.8;
    color: #333;
}

.content-html h1,
.content-html h2,
.content-html h3,
.content-html h4,
.content-html h5,
.content-html h6 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
    color: #1a1a1a;
}

.content-html h1 { font-size: 2em; }
.content-html h2 { font-size: 1.75em; }
.content-html h3 { font-size: 1.5em; }
.content-html h4 { font-size: 1.25em; }
.content-html h5 { font-size: 1.1em; }
.content-html h6 { font-size: 1em; }

.content-html p {
    margin-bottom: 1em;
}

.content-html ul,
.content-html ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.content-html li {
    margin-bottom: 0.5em;
}

.content-html a {
    color: #ff6b35;
    text-decoration: none;
}

.content-html a:hover {
    text-decoration: underline;
}

.content-html img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 4px;
}

.content-html blockquote {
    border-left: 4px solid #ff6b35;
    padding-left: 1em;
    margin: 1em 0;
    color: #666;
    font-style: italic;
}

.content-html code {
    background-color: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.content-html pre {
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1em 0;
}

.content-html pre code {
    background-color: transparent;
    padding: 0;
}

.content-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.content-html table th,
.content-html table td {
    border: 1px solid #ddd;
    padding: 0.75em;
    text-align: left;
}

.content-html table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.content-html hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 2em 0;
}

.doc-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.doc-tab {
    padding: 8px 16px;
    text-decoration: none;
    color: #495057;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.doc-tab:hover {
    color: var(--orange-color);
}

.doc-tab.active {
    color: var(--orange-color);
    border-bottom-color: var(--orange-color);
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 8px;
    background: #6c757d;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.doc-tab.active .count-badge {
    background: var(--orange-color);
}

.orders-container {
    flex: 1;
    display: flex;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    min-height: 0;
}

.orders-list-wrapper {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e7eb;
    background: #fff;
    min-width: 300px;
}

.orders-search-area {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
}

.orders-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    border-right: none;
    max-height: none;
}

.orders-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 20px;
    min-height: 0;
}

.coming-soon-box {
    background: white;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    margin: 40px auto;
    max-width: 500px;
}

.coming-soon-icon {
    font-size: 4rem;
    color: var(--orange-color);
    margin-bottom: 20px;
}

.coming-soon-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.coming-soon-text {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
}

body.orders-page html,
body.orders-page body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.orders-page .main-header,
body.orders-page .orange-bar,
body.orders-page .footer {
    flex: 0 0 auto;
}

body.orders-page main.container-fluid {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0 !important;
    height: calc(100vh - 130px);
}

@media (max-width: 768px) {
    body.orders-page main.container-fluid {
        height: auto;
        overflow: visible;
        display: block;
    }
    
    body.orders-page html,
    body.orders-page body {
        height: auto;
        overflow: auto;
        display: block;
    }
    
    .orders-container {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .orders-list-wrapper {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .orders-preview {
        min-height: 500px;
    }
}

.duty-schedule-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.duty-schedule-list {
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.duty-schedule-list.collapsed {
    max-height: 300px;
}

.duty-schedule-list.expanded {
    max-height: 5000px;
}

.duty-item {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.duty-item.faded {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.duty-block {
    margin-bottom: 1rem;
}

.duty-block-header {
    color: white;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
}

.duty-header-green { background: linear-gradient(135deg, #28a745, #20c997); }
.duty-header-orange { background: linear-gradient(135deg, #fd7e14, #e67e22); }
.duty-header-blue { background: linear-gradient(135deg, #17a2b8, #3498db); }
.duty-header-purple { background: linear-gradient(135deg, #6f42c1, #8e44ad); }
.duty-header-red { background: linear-gradient(135deg, #dc3545, #c0392b); }

.duty-table-container {
    background: white;
    border: 1px solid #d9d9d9;
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow-x: auto;
}

.light-theme .duty-table-container {
    background: #fff;
    border-color: var(--light-border);
}

.duty-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.duty-table th {
    border: 1px solid #d9d9d9;
    padding: 4px;
    font-weight: bold;
    text-align: center;
    font-size: 10px;
    color: #333;
}

.duty-table th.rank-col {
    background: #fafafa;
    min-width: 80px;
}

.duty-table th.name-col {
    background: #fafafa;
    min-width: 120px;
}

.duty-table th.day-col {
    width: 40px;
    line-height: 1.2;
}

.duty-table th.day-col.weekend {
    background: #fff3e0;
}

.duty-table th.day-col:not(.weekend) {
    background: #fafafa;
}

.duty-table .date-label {
    color: #666;
    font-size: 9px;
    display: block;
}

.duty-table td {
    border: 1px solid #d9d9d9;
    padding: 4px;
}

.duty-table td.rank-cell {
    font-size: 10px;
    color: #666;
}

.duty-table td.name-cell {
    font-size: 11px;
    color: #333;
}

.duty-table td.status-cell {
    padding: 0;
    text-align: center;
    width: 40px;
    height: 28px;
}

.duty-expand-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--secondary-color));
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    z-index: 2;
    opacity: 0;
}

.light-theme .duty-expand-gradient {
    background: linear-gradient(to bottom, transparent, #fff);
}

.duty-expand-gradient.visible {
    opacity: 1;
}

.duty-toggle-container {
    text-align: center;
    position: relative;
    z-index: 3;
    padding-bottom: 10px;
}

.duty-toggle-classic {
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.light-theme .duty-toggle-classic {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--orange-color);
    color: var(--orange-color);
}

.duty-toggle-classic:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.light-theme .duty-toggle-classic:hover {
    background: var(--orange-color);
    color: white;
}

.duty-legend {
    font-size: 10px;
    color: #ccc;
    margin-top: 8px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.light-theme .duty-legend {
    color: #666;
}

.duty-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.duty-legend-box {
    width: 12px;
    height: 12px;
    border: 1px solid #d9d9d9;
}

.duty-status-duty { background: #000000; }
.duty-status-off { background: #ff0000; }

.category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 280px;
    z-index: 1050;
    overflow: hidden;
    margin-top: 4px;
}
.category-dropdown.show { display: block; }
.category-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.category-dropdown-item:hover { background: #f5f7fa; color: #333; }
.category-dropdown-item.active { background: #e6f4ff; color: #1890ff; font-weight: 600; }
.category-dropdown-item:last-child { border-bottom: none; }
.category-dropdown-item .badge { font-size: 11px; }
.category-menu-wrapper { position: relative; display: inline-block; max-width: 320px; }
.category-menu-wrapper > .doc-tab {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
}
.category-menu-wrapper > .doc-tab .cat-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1 1 auto;
}
.category-dropdown-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subcategory-section {
    margin-bottom: 24px;
}
.subcategory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}
.subcategory-header h6 {
    margin: 0;
    font-weight: 600;
    color: #495057;
}
.doc-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #fff;
    transition: all 0.15s;
    cursor: pointer;
}
.doc-card:hover { border-color: #1890ff; box-shadow: 0 2px 8px rgba(24,144,255,0.1); }
.doc-card.active { border-color: #1890ff; background: #f0f7ff; }
.creator-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #666;
}

.waybill-visual-editor {
    display: flex;
    gap: 12px;
    align-items: stretch;
    height: 100%;
    min-height: 0;
}
.waybill-visual-canvas-wrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.waybill-visual-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.waybill-visual-progress {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}
.waybill-visual-canvas {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    padding: 0;
    border-radius: 6px;
    background: #e8edf2;
    border: 1px solid #d1d9e0;
    overflow-y: auto;
    overflow-x: hidden;
}
.waybill-img-pages {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
}
.waybill-img-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
    width: 100%;
    background: #fff;
}
.waybill-img-preview {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.waybill-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.waybill-img-marker {
    left: var(--marker-left, 50%);
    top: var(--marker-top, 50%);
    position: absolute;
    pointer-events: auto;
    appearance: none;
    border: 2px solid #3b82f6;
    background: rgba(255,255,255,.92);
    color: #1e40af;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: 700 10px/1 system-ui, -apple-system, sans-serif;
    transform: translate(-50%, -50%);
    transition: transform .12s, border-color .12s, background .12s, box-shadow .12s;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
    z-index: 2;
}
.waybill-img-marker span { pointer-events: none; }
.waybill-img-marker:hover {
    transform: translate(-50%, -50%) scale(1.25);
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59,130,246,.2);
    z-index: 3;
}
.waybill-img-marker.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,.22);
    transform: translate(-50%, -50%) scale(1.25);
    z-index: 4;
}
.waybill-img-marker.is-filled {
    border-color: #10b981;
    background: rgba(236,253,245,.95);
    color: #065f46;
}
.waybill-img-marker.is-active.is-filled {
    background: #059669;
    border-color: #059669;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(5,150,105,.22);
}
.waybill-img-marker.is-duplicate {
    border-color: #9ca3af;
    background: rgba(243,244,246,.92);
    color: #6b7280;
    width: 18px;
    height: 18px;
    font-size: 8px;
    opacity: .7;
    z-index: 1;
}
.waybill-img-marker.is-duplicate:hover {
    opacity: 1;
    border-color: #6b7280;
}
.waybill-img-marker.is-duplicate.is-filled {
    border-color: #6ee7b7;
    background: rgba(236,253,245,.85);
    color: #065f46;
    opacity: .7;
}
.waybill-img-marker.is-duplicate.is-active {
    border-color: #9ca3af;
    background: #6b7280;
    color: #fff;
    opacity: 1;
}
.waybill-visual-sidebar {
    flex: 0 0 240px;
    width: 240px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    max-height: 100%;
    overflow: auto;
}
.waybill-visual-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.waybill-visual-hint {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}
.waybill-visual-empty-state {
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 14px;
}
.waybill-visual-field-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}
.waybill-field-list-item {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
}
.waybill-field-list-item:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}
.waybill-field-list-item.is-active {
    border-color: #2563eb;
    background: #eff6ff;
}
.waybill-field-list-item.is-filled {
    border-color: #99f6e4;
    background: #f0fdfa;
}
.waybill-field-list-item.is-active.is-filled {
    border-color: #0f766e;
    background: linear-gradient(180deg, #effcf6 0%, #dcfce7 100%);
    box-shadow: inset 0 0 0 1px rgba(15,118,110,.12), 0 0 0 3px rgba(16,185,129,.12);
}
.waybill-field-list-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    margin-right: 8px;
}
.waybill-field-list-item.is-active .waybill-field-list-index {
    background: #2563eb;
    color: #fff;
}
.waybill-field-list-item.is-filled .waybill-field-list-index {
    background: #0f766e;
    color: #fff;
}
.waybill-field-list-item.is-active.is-filled .waybill-field-list-index {
    background: #0b5f59;
    box-shadow: 0 0 0 3px rgba(16,185,129,.18);
}
.waybill-field-list-label {
    display: inline;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    vertical-align: middle;
}
.waybill-field-list-value {
    display: block;
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}
.waybill-visual-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    color: #64748b;
    font-size: 14px;
}
.waybill-fullscreen-modal .modal-dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    margin: 12px auto;
}
.waybill-fullscreen-modal .modal-content {
    height: 100%;
    border: none;
    border-radius: 18px;
    overflow: hidden;
}
.waybill-fullscreen-modal .modal-header,
.waybill-fullscreen-modal .modal-footer {
    flex: 0 0 auto;
}
.waybill-fullscreen-modal .modal-body {
    flex: 1 1 auto;
    overflow: hidden;
    padding: 20px 20px 16px;
}
.waybill-fullscreen-modal #step1 {
    height: 100%;
    overflow: auto;
    padding-right: 4px;
}
.waybill-fullscreen-modal #step2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.waybill-fullscreen-modal #docForm {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.waybill-fullscreen-modal #visualTemplateEditor,
.waybill-fullscreen-modal #legacyTemplateEditor {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.waybill-fullscreen-modal #step2Footer {
    padding-top: 12px;
}
@media (max-width: 991.98px) {
    .waybill-fullscreen-modal .modal-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        margin: 0;
    }
    .waybill-fullscreen-modal .modal-content {
        border-radius: 0;
    }
    .waybill-fullscreen-modal .modal-body {
        padding: 16px;
        overflow: auto;
    }
    .waybill-visual-editor {
        flex-direction: column;
        min-height: 0;
    }
    .waybill-visual-sidebar {
        width: 100%;
        flex-basis: auto;
        max-height: none;
    }
    .waybill-visual-canvas {
        min-height: 60vh;
    }
}

.draft-menu-wrapper {
    position: relative;
}
.draft-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    white-space: nowrap;
}
.draft-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #6c757d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
}
.draft-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    z-index: 1060;
    margin-top: 4px;
    overflow: hidden;
}
.draft-dropdown.show { display: block; }
.draft-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}
.draft-dropdown-header .btn {
    font-size: 12px;
    padding: 2px 8px;
}
.draft-save-form {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8fafc;
}
.draft-list {
    max-height: 260px;
    overflow-y: auto;
}
.draft-list-empty {
    padding: 20px 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}
.draft-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.12s;
}
.draft-item:last-child { border-bottom: none; }
.draft-item:hover { background: #f8fafc; }
.draft-item-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 12px;
    cursor: pointer;
}
.draft-item-name-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 3px;
}
.draft-rename-btn {
    appearance: none;
    border: none;
    background: none;
    padding: 1px 4px;
    border-radius: 4px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    display: none;
    flex-shrink: 0;
    transition: color 0.12s, background 0.12s;
}
.draft-item:hover .draft-rename-btn { display: inline-flex; align-items: center; }
.draft-rename-btn:hover { color: #4f46e5; background: #ede9fe; }
.draft-rename-input {
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #6366f1;
    border-radius: 4px;
    padding: 1px 6px;
    flex: 1 1 auto;
    min-width: 0;
    color: #1e293b;
    outline: none;
    background: #fff;
}
.draft-rename-input.is-invalid { border-color: #ef4444; }
.draft-rename-confirm,
.draft-rename-cancel {
    appearance: none;
    border: none;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}
.draft-rename-confirm { background: #6366f1; color: #fff; }
.draft-rename-confirm:hover { background: #4f46e5; }
.draft-rename-cancel { background: #f1f5f9; color: #64748b; }
.draft-rename-cancel:hover { background: #e2e8f0; }
.draft-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.draft-item-date {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}
.draft-item-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 6px;
    flex-shrink: 0;
}
.draft-action-btn {
    appearance: none;
    border: none;
    background: none;
    padding: 4px 6px;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.12s, color 0.12s;
}
.draft-action-btn:hover { background: #f1f5f9; color: #334155; }
.draft-action-delete:hover { background: #fef2f2; color: #ef4444; }

.draft-limit-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 4px 12px 6px;
    font-size: 11px;
    color: #94a3b8;
    border-bottom: 1px solid #f0f0f0;
}
.draft-limit-line.at-limit {
    color: #ef4444;
    font-weight: 600;
}

.draft-overwrite-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.draft-overwrite-popover {
    display: none;
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 8px;
    white-space: nowrap;
    z-index: 1070;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    font-size: 12px;
}
.draft-overwrite-popover::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #e2e8f0;
    pointer-events: none;
}
.draft-overwrite-popover::after {
    content: '';
    position: absolute;
    left: calc(100% - 1px);
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #fff;
    pointer-events: none;
}
.draft-overwrite-popover.show { display: flex; }
.draft-overwrite-popover-text {
    color: #475569;
}
.draft-overwrite-confirm {
    appearance: none;
    border: none;
    background: #3b82f6;
    color: #fff;
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s;
}
.draft-overwrite-confirm:hover { background: #2563eb; }
.draft-overwrite-confirm.danger { background: #ef4444; }
.draft-overwrite-confirm.danger:hover { background: #dc2626; }
.draft-overwrite-cancel {
    appearance: none;
    border: none;
    background: none;
    color: #94a3b8;
    padding: 2px 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.12s;
}
.draft-overwrite-cancel:hover { color: #1e293b; }

@media (max-width: 575.98px) {
    .draft-dropdown { width: 260px; }
}

.duty-status-none { background: #ffffff; }

/* News Page Redesign */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    min-height: 240px;
}

.news-card-image {
    width: 40%;
    min-width: 200px;
    flex-shrink: 0;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 60%;
}

.news-card-date {
    font-size: 13px;
    color: var(--orange-color);
    margin-bottom: 12px;
    font-weight: 500;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #1a1a1a;
    text-transform: uppercase;
}

.news-card-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.news-card-link {
    margin-top: auto;
    color: var(--orange-color);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.news-card-link-wrapper {
    margin-top: auto;
}

.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.custom-pagination .page-item .page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #eee;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    background: #fff;
    text-decoration: none;
}

.custom-pagination .page-item.active .page-link {
    background-color: transparent;
    border-color: var(--orange-color);
    color: var(--orange-color);
}

.custom-pagination .page-item .page-link:hover:not(.disabled) {
    background-color: #f8f8f8;
    border-color: #ddd;
}

.custom-pagination .page-item .page-link.prev,
.custom-pagination .page-item .page-link.next {
    border: none;
    font-size: 18px;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .news-card {
        flex-direction: column;
    }
    .news-card-image {
        width: 100%;
        height: 200px;
    }
    .news-card-content {
        width: 100%;
    }
}

.text-orange-link {
    color: var(--orange-color);
}

.btn-orange-solid {
    background-color: var(--orange-color);
    border-color: var(--orange-color);
}

.btn-orange-solid:hover,
.btn-orange-solid:focus {
    background-color: #f26c32;
    border-color: #f26c32;
}

.notification-badge {
    display: none;
}

.footer-disclaimer {
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.7;
}

.footer-credit {
    font-size: 0.7rem;
    opacity: 0.5;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.footer-credit-separator {
    opacity: 0.4;
    margin: 0 5px;
}

.footer-support-link {
    color: #e25555;
    text-decoration: none;
}

.footer-support-heart {
    font-size: 0.65rem;
}

.dashboard-empty-icon {
    font-size: 3rem;
}

body.light-theme .dashboard-panel-card,
body.light-theme .dashboard-section-card {
    border-radius: 0.5rem;
    background: var(--light-card-bg);
    border: 1px solid var(--light-border) !important;
}

.dashboard-avatar {
    width: 128px;
    height: 128px;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.dashboard-avatar-photo {
    object-fit: cover;
}

.dashboard-avatar-fallback {
    font-size: 4rem;
}

#rankDisplay {
    display: none;
}

.dashboard-rank-image {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.dashboard-profile-name {
    font-size: 1.3rem;
}

.dashboard-profile-position {
    font-size: 0.9rem;
}

.dashboard-profile-id {
    font-size: 0.72rem;
}

.dashboard-profile-id-label {
    color: #bbb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-profile-id-value {
    color: #ccc;
}

.dashboard-profile-meta {
    font-size: 0.8rem;
}

.btn-orange-outline {
    border-color: #ff7a45;
    color: #333;
    transition: all 0.2s ease-in-out;
}

.btn-orange-outline:hover,
.btn-orange-outline:focus {
    background-color: #ff7a45 !important;
    border-color: #ff7a45 !important;
    color: #fff !important;
}

.btn-orange-outline:hover i,
.btn-orange-outline:focus i {
    color: #fff !important;
}

.dashboard-action-btn {
    border-radius: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard-outline-action-btn {
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.dashboard-outline-action-btn i {
    color: #ff7a45;
}

.dashboard-card-header {
    background-color: #ff7a45;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.85rem 1.4rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.dashboard-card-header h5,
.light-theme .dashboard-card-header h5 {
    color: #fff !important;
}

.dashboard-section-title,
.dashboard-biography-title {
    font-size: 1rem;
}

.dashboard-biography-toggle {
    cursor: pointer;
    user-select: none;
}

.biography-char-counter {
    position: absolute;
    bottom: 0.45rem;
    right: 0.65rem;
    font-size: 0.7rem;
    color: #aaa;
    pointer-events: none;
    line-height: 1;
}

.biography-toggle .bio-chevron-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #ff7a45;
    border-radius: 6px;
    color: #ff7a45;
    transition: background-color 0.2s ease;
    pointer-events: none;
    flex-shrink: 0;
}

.biography-toggle .bio-chevron-btn i {
    transition: transform 0.3s ease;
    display: inline-block;
    font-size: 0.9rem;
}

.biography-toggle.active .bio-chevron-btn i {
    transform: rotate(180deg);
}

.biography-toggle:hover .bio-chevron-btn {
    background-color: #ff7a45;
    color: #fff;
}

.biography-toggle:hover,
.biography-toggle:focus {
    text-decoration: none !important;
}

#biographyCollapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

#biographyCollapse.bio-open {
    max-height: 1000px;
}

.dashboard-biography-text {
    line-height: 1.6;
}

.dashboard-add-document-btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.dashboard-current-avatar-image,
.dashboard-preview-image {
    max-width: 150px;
    max-height: 150px;
}

.dashboard-no-avatar-icon {
    font-size: 100px;
    color: #ccc;
}

#previewContainer {
    display: none;
}

.dashboard-document-container {
    min-height: 400px;
}

.awards-empty-icon {
    font-size: 3.5rem;
}

.award-card {
    border-radius: 12px;
    transition: box-shadow 0.2s;
}

.award-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13) !important;
}

.award-card-media {
    height: 80px;
}

.award-card-image {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

.award-card-title {
    font-size: 0.82rem;
    line-height: 1.3;
}

.award-card-description {
    font-size: 0.75rem;
    line-height: 1.3;
}

.doc-tab-button {
    cursor: pointer;
    border: none;
    background: none;
}

.category-dropdown-chevron {
    font-size: 10px;
    margin-left: 4px;
}

.category-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.category-dropdown-link:hover {
    background: #f5f7fa;
}

.file-link.file-link-inline {
    display: inline-block;
}

.subcategory-chevron {
    transition: transform 0.2s;
    font-size: 12px;
}

.subcategory-doc-count,
.subcategory-empty-state,
.subcat-templates-title {
    font-size: 13px;
}

.doc-card-title {
    font-size: 14px;
}

#docSearchClear,
#searchResultsContainer,
#searchResultsLoading,
#searchLoadMoreWrap,
#step2,
#draftCountBadge,
#draftSaveForm,
#previewImageContainer,
#visualFieldEditor,
#step2Footer {
    display: none;
}

.template-preview-image {
    width: 80px;
    height: auto;
    max-height: 100px;
    object-fit: cover;
}

.template-preview-clickable {
    max-height: 300px;
    cursor: pointer;
}

.waybill-preview-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    color: #64748b;
    font: 500 14px/1.5 system-ui, sans-serif;
    text-align: center;
    padding: 24px;
}

.waybill-preview-state.is-error {
    color: #b91c1c;
}

.document-preview-scroll {
    height: calc(100% - 120px);
    overflow: auto;
}

.document-preview-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-width: 0;
}

.document-preview-header {
    flex: 0 0 auto;
}

.document-preview-body {
    flex: 1 1 auto;
    min-height: 200px;
    width: 100%;
    min-width: 0;
}

.users-filter-wide {
    max-width: 220px;
}

.users-filter-rank {
    max-width: 170px;
}

.users-circle-btn {
    width: 32px;
    height: 32px;
    padding: 0;
}

#usersTableContainer {
    display: none;
}

.users-page-size {
    width: auto;
}

.users-col-id { width: 60px; }
.users-col-nick { width: 180px; }
.users-col-name { width: 250px; }
.users-col-department { width: 160px; }
.users-col-rank { width: 180px; }
.users-col-position { width: 160px; }
.users-col-status { width: 130px; }
.users-col-actions { width: 100px; }

.auth-honeypot {
    display: none;
}

.recaptcha-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 10px;
}

.recaptcha-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

#recaptcha-load-error,
#recaptcha-error {
    display: none;
}

.password-strength-bar {
    height: 4px;
    flex: 1;
    border-radius: 2px;
    background-color: #dee2e6;
    transition: background-color 0.3s ease;
}

.recaptcha-error-icon,
.password-reset-empty-icon {
    font-size: 1.5rem;
}

.password-reset-unavailable-icon {
    font-size: 3.5rem;
    color: var(--orange-color);
}

.password-reset-token-input {
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
}

.password-reset-success-icon {
    font-size: 4rem;
}

.news-media-cover {
    max-height: 380px;
    object-fit: cover;
}

.news-media-cover-full {
    width: 100%;
}

.hero-banner-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner--has-media {
    background: #333;
}

.home-hero-eyebrow {
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.home-hero-title {
    letter-spacing: 1px;
    max-width: 800px;
}

.home-hero-lead {
    border-left: 3px solid var(--orange-color);
    padding-left: 20px;
    max-width: 700px;
}

.home-primary-button {
    background-color: var(--orange-color);
}

.hero-social-icon {
    width: 24px;
    height: 24px;
}

.home-section-label {
    font-size: 0.8rem;
}

.home-section-link {
    font-size: 0.7rem;
    color: var(--orange-color);
    letter-spacing: 0.5px;
}

.news-row--bordered {
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

.news-meta-inline {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.news-meta-date {
    color: var(--orange-color);
}

.news-meta-time {
    opacity: 0.8;
}

.home-news-link {
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.news-summary-clamped {
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-quick-label {
    font-size: 0.8rem;
}

.home-quick-title {
    font-size: 0.75rem;
}

.home-quick-subtitle,
.home-feedback-label {
    font-size: 0.65rem;
}

.home-feedback-label {
    letter-spacing: 0.5px;
}

.home-feedback-button {
    font-size: 0.75rem;
}

.leaders-empty-icon {
    font-size: 3rem;
}

.news-card-clickable {
    cursor: pointer;
}
