label.required:after {
    content: " *";
}

.navbar {
    min-height: 40px;
}

.navbar-header {
    background: #707cd2;
}

.navbar-top-links > li > a {
    padding: 0 10px;
    line-height: 40px;
    min-height: 40px;
}

.navbar-header .navbar-toggle {
    line-height: 40px;
}

ul.list-icons li {
    list-style: none;
    line-height: 25px;
}

.anket-menu a.edit {
    color: #ff6600;
}

.anket-menu a.green {
    color: #008000;
}

h3 .archived,
.anket-menu a.red {
    color: red;
}

.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
    padding: 8px;
}

.panel-main-bg {
    background: #dceef4;
}

.panel-green-bg {
    background: #ccffc3;
}

.panel-yellow-bg {
    background: #fcfcb8;
}

.panel-orange-bg {
    background: #f89309;
}

.panel {
    margin-bottom: 10px;
}

.panel .panel-heading {
    padding: 10px 15px;
}

.panel .panel-footer {
    padding: 10px 15px;
}

.white-box {
    padding: 8px;
    margin-bottom: 10px;
}

.white-box .box-title {
    margin: 0;
}

.form-group, .form-horizontal .form-group {
    margin-bottom: 5px;
}

.panel .panel-body {
    padding: 10px;
}

.top-left-part {
    width: 100px;
}

.top-left-part a {
    line-height: 40px;
}

.steamline .sl-item {
    margin: 5px 0;
}

@media (max-width: 450px) {
    .file-name {
        display: none;
    }
}

.steamline .sl-right .desc, .steamline .sl-right .inline-photos {
    margin-bottom: 10px;
}

.row {
    margin-right: 0;
    margin-left: 0;
}

@media (min-width: 1129px) {
    .fix-header #page-wrapper {
        margin-top: 40px;
    }

    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
    }

    .anket-row {
        display: flex;
    }

    .navbar-toggle.visible-xs {
        display: none !important;
    }

    .navbar-nav.navbar-left {
        display: block !important;
    }
}

@media (max-width: 1128px) {
    .navbar-collapse.collapse:not(.in):not(.show) {
        display: none !important;
    }
    .fix-header #page-wrapper {
        margin-top: 40px;
    }

    .container-fluid {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 15px;
    }

    .anket-row {
        display: block;
    }

    .navbar-toggle.visible-xs {
        display: block !important;
    }
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
}

body {
    color: #333;
}

tbody {
    color: #333;
}

.editable-click, a.editable-click, a.editable-click:hover {
    text-decoration: none;
    border-bottom: none;
}

th {
    color: #404040;
}

.anket-img {
    max-width: 150px;
    max-height: 180px;
}

.f-s-13 {
    font-size: 13px;
}

.fc-basic-view .fc-day-number {
    padding: 10px 15px;
    display: table-cell;
}

.fc-unthemed .fc-today {
    background: #a7d5f3 !important;
}

.rank-0-color {
    background-color: #999;
}

.rank-2-color {
    background-color: #4de23b;
}

.order-1-color {
    background-color: #2cabe3;
}

.order-2-color {
    background-color: #38c2d8;
}

.order-3-color {
    background-color: #fbb940;
}

.order-4-color {
    background-color: #ead645;
}

.order-5-color {
    background-color: #ef0a0e;
}

.order-6-color {
    background-color: #67ef67;
}

.order-7-color {
    background-color: #757575;
}

.order-8-color {
    background-color: #707cd2;
}

.order-9-color {
    background-color: #9a7aca;
}

.order-10-color {
    background-color: #eb685b;
}

.order-11-color {
    background-color: #b1dede;
}

.order-12-color {
    background-color: #c8c6c8;
}

.order-13-color {
    background-color: #e5e5ff;
}

.order-14-color {
    background-color: #badcff;
}

.online-order-new-color {
    background-color: #f8510099;
}

.online-order-accept-color {
    background-color: #056f13;
}

.online-order-not_relevant-color, .online-order-error-color, .online-order-declined-color {
    background-color: rgba(70, 70, 70, 0.65);
}

.online-order-not_answered-color {
    background-color: #f6bd4a;
}

.anket-title-color {
    color: #707cd2;
}

.myadmin-alert .img {
    width: auto;
}

.anket-row .white-box {
    height: 95%;
}

.event-1 {
    background-color: #ff7675;
}

.event-2 {
    background-color: #ff8f40;
}

.event-3 {
    background-color: #ffca6a;
}

.event-4 {
    background-color: #6f7cd3;
}

.jq-icon-info {
    background-color: #2cabe3;
    color: #fff
}

.jq-icon-success {
    background-color: #53e69d;
    color: #fff
}

.jq-icon-error {
    background-color: #ff7676;
    color: #fff
}

.jq-icon-warning {
    background-color: #ffc36d;
    color: #fff
}

.color-red {
    color: #ff2a2a;
}

.simple-language-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    font-size: 14px;
    color: white;
    min-height: 40px;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 60px;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-list.show {
    display: block;
}

.dropdown-option {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
    border-bottom: 1px solid #eee;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: #707cd2;
    color: white;
}

.dropdown-option.active {
    background: #f8f9fa;
    font-weight: bold;
}

.dropdown-option.active:hover {
    color: #707cd2;
}

.dropdown-arrow {
    margin-top: 2px;
}

.sidebar-sticky {
    position: fixed;
    right: 15px;
    padding-left: 25px;
    width: 25%;
    padding-right: 15px;
}

.float-right {
    float: right;
    margin-right: 10px;
}

@media (max-width: 767px) {

    .sidebar-sticky {
        position: static !important;
        width: unset !important;
        padding: unset !important;

    }
}
#main-box {
    margin-top: 45px;
}

.anchor-box {
    position: fixed;
    z-index: 1000;
}

.anchor-box.scrolled {
    margin-top: -10px;
}

.anchor-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.anchor-list li {
    display: inline-block;
}

.anchor-list a:hover {
    background-color: #f5f5f5;
    border-color: #007bff;
}

@media (max-width: 1342px) {
    #main-box {
        margin-top: 74px;
    }
}

@media (max-width: 1178px) {
    #main-box {
        margin-top: 115px;
    }
    .anchor-box {
        margin-top: 40px;
    }
    .anchor-box.scrolled {
        margin-top: 30px;
    }
}

@media (max-width: 882px) {
    #main-box {
        margin-top: 153px;
    }
    .anchor-box {
        margin-top: 80px;
    }
    .anchor-box.scrolled {
        margin-top: 70px;
    }
}

@media (max-width: 767px) {
    #main-box {
        margin-top: 73px;
    }
    .anchor-box {
        margin-top: -72px;
    }
    .anchor-box.scrolled {
        margin-top: -83px;
    }
}

@media (max-width: 545px) {
    #main-box {
        margin-top: 107px;
    }
    .anchor-box {
        margin-top: -105px;
    }
    .anchor-box.scrolled {
        margin-top: -83px;
    }
    .anchor-box.scrolled {
        margin-top: -116px;
    }
}

@media (max-width: 386px) {
    #main-box {
        margin-top: 136px;
    }
    .anchor-box {
        margin-top: -135px;
    }
    .anchor-box.scrolled {
        margin-top: -83px;
    }
    .anchor-box.scrolled {
        margin-top: -145px;
    }
}

.copy-btn {
    background: transparent;
    border: none;
}

.copy-image {
    width: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease-in-out;
}

.copy-image:hover {
    opacity: 1;
}


.copy-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.copy-toast.show {
    opacity: 1;
}

.dual-list-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.dual-list-column {
    flex: 1;
}
.dual-list-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
}
.dual-list {
    width: 100%;
    height: 300px;
}
.form-group {
    margin-bottom: 1rem;
}
.action-buttons {
    margin-top: 20px;
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.control-btn {
    min-width: 120px;
}
select[multiple] option {
    padding: 5px;
    border-bottom: 1px solid #eee;
}
select[multiple] option:hover {
    background-color: #f8f9fa;
}

.attach-document {
    text-align: left !important;
    padding-top: 15px;
}

.attach-document-label {
    text-align: left !important;
    width: 40%;
    margin-right: 5px;
}

@media (max-width: 1190px) {
    .attach-document-label {
        width: 100%;
    }
}

.pdf-list_href {
    display: block;
    overflow: auto;
    width: 85%;
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.anket-menu__box {
    overflow: auto;
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 750px;

    &::-webkit-scrollbar {
        width: 4px;
    }

    &::-webkit-scrollbar-track {
        background: transparent;
    }

    &::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 2px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.5);
    }
}

.accordion {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

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

.accordion-header {
    width: 100%;
    padding: 5px;
    background: #f8f9fa;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-icon {
    transition: transform 0.3s;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.accordion-content.active {
    max-height: 500px; /* или достаточное значение */
}

.pdf-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #eee;
}

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

.pdf-link {
    flex-grow: 1;
    color: #007bff;
    text-decoration: none;
}

.pdf-link:hover {
    text-decoration: underline;
}

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

.action-btn {
    color: #6c757d;
    text-decoration: none;
    padding: 5px;
}

.action-btn:hover {
    color: #007bff;
}

.delete-btn:hover {
    color: #dc3545;
}

@media (max-width: 950px) {
    .anket-menu__box {
        max-height: 735px;
    }
}
