table {
    cursor: default;
}

th {
    font-family: Montserrat;
    cursor: pointer;
    position: relative;
    padding-right: 28px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.mlogin {
    margin: 170px auto 0;
}

.mregister {
    margin: 80px auto 0;
}

.error {
    margin: 40px auto 0;
    border: 1px solid #777;
    padding: 3px;
    color: #fff;
    text-align: center;
    width: 650px;
    background: #f58220;
}

.regtext {
    font-size: 13px;
    margin-top: 26px;
    color: #777;
}

.container_login {
    padding: 25px 16px 25px 10px;
    font-weight: 400;
    overflow: hidden;
    width: 340px;
    height: auto;
    background: #fff;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
}

#welcome {
    width: 500px;
    padding: 30px;
    background: #fff;
    margin: 160px auto 0;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
}

.container_login h1 {
    color: #777;
    text-align: center;
    font-weight: 300;
    margin-top: 12px;
}

.container_login label {
    color: #777;
    font-size: 14px;
}

#login {
    width: 320px;
    margin: auto;
    padding-bottom: 15px;
}

.container_login form .input,
.container_login input[type="text"],
.container_login input[type="password"],
.container_login input[type="e"] {
    background: #fbfbfb;
    font-size: 24px;
    line-height: 1;
    width: 100%;
    padding: 3px;
    margin: 0 6px 5px 0;
    outline: none;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
}

.container_login form .input:focus {
    border: 1px solid #f58220;
    -webkit-box-shadow: 0 0 3px 0 rgba(245, 130, 32, 0.75);
    -moz-box-shadow: 0 0 3px 0 rgba(245, 130, 32, 0.75);
    box-shadow: 0 0 3px 0 rgba(245, 130, 32, 0.75);
}

.tabs {
    display: flex;
    position: relative;
}

.tab {
    padding: 10px 20px;
    background: gray;
    color: white;
    cursor: pointer;
    border: 1px solid #ddd;
    width: 19%;
    text-align: center;
}


.tab-content {
    display: none;
    padding: 20px;
}

.tabs-container {
    position: fixed;
    width: 100%;
}

.tabs-container input[type="radio"]:checked + label {
    background: #CB1E04;
}

.tabs-container input[type="radio"] + label {
    background: #162962;
    color: white;
}

#requests_tab:checked ~ #content1,
#trainings_tab:checked ~ #content2,
#marathon_tab:checked ~ #content3,
#settings_tab:checked ~ #content4, 
#salesbook_tab:checked ~ #content5 {
    display: block;
}

.action_requests_edit,
.action_requests_relocate,
.action_requests_delete,
.action_settings_delete,
.action_settings_edit,
.action_settings_new,
.action_settings_contract,
.action_settings_document,
.action_marathons_edit,
.action_settings_dates,
.action_marathons_delete,
.action_organization_edit,
.action_trainings_edit,
.action_trainings_delete,
.action_settings_document,
.action_settings_edit_course,
.action_edit_student,
.action_course_delete {
    cursor: pointer;
}

@media (max-width: 991px) {
    .tabs-container > input,
    .tabs-container > label {
        display: none !important;
    }
}

.users_table,
.courses {
    width: 50%;
    margin: 0 auto;
}

.organizations {
    width: 70%;
    margin: 0 auto;
}

.contracts, .documents {
    width: 45%;
    margin: 0 auto;
}

.students {
    width: 60%;
    margin: 0 auto;
}

#students, #organizations, #courses, #dates_courses, #users_table, #contracts, $documents, #form_setting_global {
    font-size: 14px;
}

.coursesIndividual {
    width: 90%;
    margin: 0 auto;
}

.coursesLegalperson {
    width: 100%;
    margin: 0 auto;
}

.role_of_center,
.forms_of_education,
.statuses,
.tariff_training,
.agency {
    width: 20%;
    margin: 0 auto;
}

.dates_courses{
    width: 40%;
    margin: 0 auto;
}

.education {
    width: 20%;
    margin: 0 auto;
}

.courses_forms {
    width: 25%;
    margin: 0 auto;
}

.discount {
    width: 30%;
    margin: 0 auto;
}

.background_linear {
    background: repeating-linear-gradient(-45deg, #ccc 0 10px, #999 10px 20px);
    padding: 20px;
    color: #fff;
}

.color-preview {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
}

/*
.select2-dropdown, .select2-results, .select2-results__options{
    max-height: 600px !important;
    max-height: 600px !important;
}
*/

.select2-selection--multiple {
    font-size: 14px !important;
}

.status-select > .select2-results__option {
    padding: 0 !important;
    margin: 0 !important;
}

.select2-results {
    max-height: 400px;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 400px !important;
}

.select2-container--open,
.select2-search__field {
    z-index: 9999 !important;
}

.select2-selection__rendered {
    line-height: 31px !important;
}
.select2-container .select2-selection--single {
    height: 35px !important;
}
.select2-selection__arrow {
    height: 34px !important;
}

#tooltip {
    background: #9abede;
    color: black;
    text-align: left;
    padding: 5px 8px;
    position: absolute;
    max-width: auto;
    z-index: 9999;
    display: inline-block;
    border-radius: 3px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 1);
    font-size: 14px;
    text-shadow: none;
    white-space: normal;
    word-wrap: break-word;
}

#tooltip.top:before {
    position: absolute;
    width: 0;
    height: 0;
    line-height: 0;
    border: 6px dashed #000;
    top: -6px;
    left: 0px;
    border-bottom-style: solid;
    border-top: none;
    border-left-color: transparent;
    border-right-color: transparent;
    content: "";
}

#tooltip.bottom:before {
    position: absolute;
    width: 0;
    height: 0;
    line-height: 0;
    border: 6px dashed #000;
    top: -6px;
    left: 0px;
    border-bottom-style: solid;
    border-top: none;
    border-left-color: transparent;
    border-right-color: transparent;
    content: "";
}

.ellipsis {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ellipsis_status {
    max-width: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color:white !important;
}

.ellipsis_documet {
    max-width: 365px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkbox_hide {
    position: absolute;
    opacity: 0;
}

.toggle-display {
}

.percent-input {
    width: 20%;
    display: inline-block;
}

.modal-custom {
    --bs-modal-width: 1350px;
}

.form-container-doc {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 0 auto;
}

.element {
    border: 1px dashed #bbb;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    background-color: #fdfdfd;
}

.element h3 {
    margin-top: 0;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

label-doc {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: black;
    font-size: 14px;
}

.form-group-doc {
    margin-bottom: 15px;
}

.input-doc,
.select-doc,
.textarea-doc {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.textarea-doc {
    resize: vertical;
}

.remove-btn {
    background-color: #f44336;
    padding: 5px 10px;
    font-size: 12px;
}
.remove-btn:hover {
    background-color: #d32f2f;
}
#jsonOutput {
    width: 100%;
    height: 300px;
    margin-top: 20px;
    font-family: "Courier New", Courier, monospace;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.section-doc {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #fafafa;
}
.section-doc h2 {
    margin-top: 0;
    color: #2196f3;
}

h1 {
    text-align: center;
}
.table-doc {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    table-layout: fixed;
    font-size: 0.9em;
}
td .textarea,
td .select,
td .input {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 3px;
}
.font-styles-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.font-style-item {
    display: flex;
    align-items: center;
}
.font-style-item input {
    width: auto;
    margin-right: 8px;
}
.font-style-item label {
    margin-bottom: 0;
    font-weight: normal;
}
.cell-font-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.add-element-buttons {
    background-color: white;
    position: sticky;
    bottom: 0;
    padding: 0 0;
    border-top: 2px solid #ddd;
    z-index: 100;
    text-align: center;
}

.add-element-buttons button {
    margin: 5px;
}

.table-editor {
    overflow-x: auto;
    margin-top: 10px;
}

.table-editor table {
    min-width: 800px;
}

.table-editor th,
.table-editor td {
    padding: 6px;
    text-align: left;
}

.table-editor th {
    background-color: #e0e0e0;
    font-size: 0.85em;
}

.table-editor td {
    background-color: #fdfdfd;
}

.table-editor .cell-header {
    background-color: #f0f0f0;
    font-weight: bold;
    text-align: center;
    font-size: 0.9em;
}

.table-editor .row-header {
    background-color: #f9f9f9;
    text-align: center;
    font-weight: bold;
    font-size: 0.95em;
}

.table-editor textarea {
    height: 40px;
    font-size: 0.85em;
}

.table-editor select {
    font-size: 0.85em;
    padding: 2px;
}

.equal-width-col {
    width: calc(100% / 4);
}

/* Скрываем оригинальный input, но сохраняем функциональность */
.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Стилизованный label как кнопка */
.file-label {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    border-radius: 0.375rem;
}

/* Имя файла */
.file-name {
    font-size: 0.875rem;
    /*  color: #6c757d;*/
}

.delete-row {
    cursor: pointer;
    color: #dc3545;
}
.delete-row:hover {
    color: #a71e2a;
}
.add-row-btn {
    float: right;
    margin-top: 10px;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

table.table-hover tbody tr:hover td {
    background-color: #162962;
    color: white;
}

.btn-primary {
    background-color: #162962 !important;
}

.btn-primary:hover{
    background-color: #CB1E04 !important;
    border-color: #CB1E04 !important;
}

.status-option:hover {
    background-color: #e9ecef !important;
}

.form-control.is-invalid-custom {
    border-color: red;
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.tabs-container > tab {
    position: relative;
    top: 0;
    z-index: 100;
    padding: 10px 15px;
    overflow: auto;
}

.table-container:active {
    cursor: grabbing;
}

.table-container::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 15px;
    cursor: default;
}

/* Для мобильных устройств */
.table-container {
    height: 400px;
}

/* Для планшетов */
@media (min-height: 601px) and (max-height: 900px) {
    .table-container {
        height: 600px;
    }
}

/* Для десктопов */
@media (min-height: 901px) {
    .table-container {
        height: 800px;
    }
}

.table-container > table > thead tr:first-child th {
    position: sticky;
    background: white;
    top: 0;
}

.table-container > table > thead tr:nth-child(2) th {
    position: sticky;
    background: white;
    top: 50px;
}

.modal-content {
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #162962, #162962);
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.btn-close {
    filter: invert(1);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: #495057;
}

.section-title {
    font-size: 1.05rem;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 6px;
    margin: 20px 0 15px 0;
    color: #0d6efd;
    font-weight: 600;
}

.compact-group {
    margin-bottom: 1rem;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.form-control,
.form-select {
    border-radius: 0.375rem;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 0.75rem;
}

.required-field::after {
    content: "*";
    color: #dc3545;
}

.input-icon-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-icon-wrapper .form-control {
    padding-right: 40px; /* Отступ справа для иконки */
}

.input-icon-wrapper i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Иконка не мешает клику по input */
    color: #6c757d; /* Цвет иконки */
}

.sort-arrow {
    position: absolute;
    font-size: 12px;
}
th:not([data-sort]) {
    cursor: default;
}

.jconfirm .jconfirm-scrollpane {
    height: 80% !important;
}

.select2-selection__choice__display{
    font-size:14px !important;
}

.status-cell:hover{
    color: yellow !important;
}


input[readonly] {
  background-color: #e9ecef !important;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
}

input[type="number"] {
  padding-right: 0px;
}

.select_settings_table {
    min-width: 100px !important;
    max-width: 180px !important;
}

.modal-footer{
    padding:10px 10px !important;
}


[id^="datefrom"], [id^="dateto"]{
    width: 30%;
}


.table-responsive {
    height: calc(100vh - 150px);
    overflow: auto;
    position: relative;
}

.table-responsive-height {
    height: 100%;
    overflow: auto;
    position: relative;
}

/* Ограничиваем область скролла только таблицей */
.table-responsive::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px; /* высота твоей шапки */
    background: inherit;
    z-index: 10;
    pointer-events: none;
}


.separator {
  padding: 0 !important;
  margin: 0 !important;
  height: 0px !important;
  font-size: 0 !important;
  line-height: 0px !important;
  border: none !important;
}

.select-css { 
    display: block; 
    font-size: 16px; 
    font-family: sans-serif; 
    font-weight: 700; 
    color: #444;
    line-height: 1.3; 
    /*padding: .6em 1.4em .5em .8em;*/
    width: 100px; 
    max-width: 100%; 
    box-sizing: border-box; 
    margin: 0; 
    border: 1px solid #aaa;
    box-shadow: 0 1px 0 1px rgba(0,0,0,.04); 
    border-radius: .3em;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff; 
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'), linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%); 
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%; 
}
 
.select-css::-ms-expand { display: none; } 

.select-css option { font-weight:normal; } 
*[dir="rtl"] .select-css, :root:lang(ar) .select-css, :root:lang(iw) .select-css { 
    background-position: left .7em top 50%, 0 0; 
    padding: .6em .8em .5em 1.4em; 
}


.no-focus:focus {
    outline: none;
    box-shadow: none;
    border-color: #ccc;
}

.no-pointer {
    pointer-events: none; /* Запрещает все взаимодействия */
    user-select: text; /* Но разрешает выделение текста */
}

input[type=checkbox]{
    cursor:pointer;
}

.w-95 {
    width:92%;
}

.ms-0 {
    margin-left:5px;    
} 

.me-0 {
    margin-right:5px;    
}

.form-switch:has(input:disabled) {
    cursor: not-allowed;
}

.url_link a:hover{
    color: white !important;
}

.dash td:not(:nth-child(2)) {
    background: repeating-linear-gradient(-60deg, #C0C0C0 0, #C0C0C0 1px, #FFFF00 1px, #FFFF00 5px);
    height: 30px;
}

.dash:hover td:not(:nth-child(2)) {
    background: repeating-linear-gradient(-60deg, #162962 0, #162962 1px, #162962 1px, #162962 5px);
}

.dotted-underline {
  text-decoration: underline;
  text-decoration-style: dotted;
}

.form-check-input:disabled {
    pointer-events: none;
    filter: none;
    opacity: 1;
    background-color: #e9ecef; /* серый фон вместо прозрачности */
    border-color: #ced4da;
}
