#students-table tr.dx-student-row--removed td {
    background-color: #fff4f4 !important;
}

#students-table tr.dx-student-row--removed .dx-input,
#students-table tr.dx-student-row--removed .dx-student-num-display,
#students-table tr.dx-student-row--removed .dx-date-picker-btn,
#students-table tr.dx-student-row--removed .dx-btn--row-delete:not(:hover) {
    background-color: #fff4f4 !important;
    color: #c9a9a9;
}

#students-table tr.dx-student-row--removed:hover .dx-input,
#students-table tr.dx-student-row--removed:hover .dx-date-picker-btn,
#students-table tr.dx-student-row--removed:hover .dx-student-num-display,
#students-table tr.dx-student-row--removed:hover .dx-btn--row-delete:not(:hover) {
    background-color: var(--secondary-color-light) !important;
}

.dx-btn--row-deleted {
    cursor: default;
    opacity: 1;
}
:root {
    --primary-color: #061D4F;
    --secondary-color: #0056D3;
    --secondary-color-light:#d9e7ff;
    --accent-color: #E41C29;
    --bg-color: #f9f9f9;
    --text-color: #2b2f33;
    --title-color: #061D4F;
    --border-color: #d3d7e0;
    --logo: url("/media/oeaepcz_logo_color.svg");
    --box-shadow: rgba(0, 0, 0, 0.15) 0px 1px 5px 0px;
    --h-header: 60px;
    --h-footer: 25px;
    --w-sidebar: 78px;
    --w-sidebar-open: 240px;
    --border-radius-main: 4px;
    --border-radius-table: 4px;
    --gap-main: 20px;
    --gap-item: 15px;
    --h-row: 40px;
    --status-color-green: #098D1D;
}

html {
    /* 62.5% of 16px browser font size is 10px */
    font-size: 62.5%;
    height: 100%;
    scroll-behavior: smooth;
}
body {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    display: block;
    margin: 0;
    padding: 0;
    font-size: 1.4rem;
    line-height: 1.5;
    font-family: "Roboto", Arial, sans-serif;
    font-weight: 400;
    text-align: left;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}
*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

::selection {
    background-color: var(--primary-color);
    color: white;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.3;
    font-style: normal;
    text-align: left;
    color: var(--title-color);
}
h1 {
    font-size: clamp(2rem, 2rem + (1vw - 0.32rem) * 0.1786, 2.4rem);
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.8rem;
}
a {
    color: var(--secondary-color);
    text-decoration: none;
}
a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* LOGIN Page*/
.dx-login__wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}
.dx-login__left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50%;
    height: 100vh;
    padding: 40px 60px;
    background-image: url("/media/oeaepcz_login_img.webp");
    background-size: cover;
    background-position: center;
    position: relative;
}
.dx-login__left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #061D4F;
    opacity: 0.85;
    z-index: 1;
}
.dx-login__left > * {
    position: relative;
    z-index: 5;
}
.dx-login__logo {
    width: 250px;
}
.dx-login__name {
    color: #ffffff;
    font-size: 1.4rem;
    text-transform: uppercase;
}
.dx-login__link {
    position: relative;
    color: #ffffff;
    text-decoration: none;
}
.dx-login__link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, var(--secondary-color), #ffffff);
    transition: width 0.4s ease;
}
.dx-login__link:hover::before {
    width: 100%;
}
.dx-login__link:hover {
    color: #ffffff;
}

.dx-login__right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100vh;
    padding: 40px;
}
.dx-login__box {
    width: 100%;
    max-width: 440px;
}
.dx-login__error {
    width: 100%;
    margin-top: 16px;
    min-height: 48px;
    padding: 0;
    font-size: 1.4rem;
    box-sizing: border-box;
    background-color: transparent;
    border: none;
}
.dx-login__error--visible {
    padding: 12px 16px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}
.dx-login__error--visible:empty {
    background-color: transparent;
    border-color: transparent;
    padding-top: 0;
    padding-bottom: 0;
}
.dx-login__form {
    /*display: flex;
    flex-direction: column;
    gap: 30px;*/
    width: 100%;
    max-width: 440px;
    padding: 0px;
}
.dx-login__input {
    padding: 12px 10px; /* Увеличиваем внутренний отступ, чтобы текст не прилипал к краям */
    box-sizing: border-box; /* Это критически важно: чтобы padding не увеличивал общий размер инпута */
    position: relative;
    width: 100%;
}
.dx-login__input--field {
    width: 100%;
    padding: 18px 50px 15px 15px;
    font-size: 1.4rem;
    color: var(--text-color);
    background-color: transparent;
    border: none;
    border-radius: 4px;
    outline: none;
    z-index: 1;
    position: relative;
}

fieldset{
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend{
  padding: 0;
  margin: 0;
  font: inherit;
}

/* F-set - создает border с разрывом */
.dx-login__input--f-set {
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0 8px;
    border: 2px solid var(--secondary-color-light);
    border-radius: 4px;
    pointer-events: none;
    transition: border-color 0.3s ease;
    z-index: 0;
}
/* Legend - текст в разрыве */
.dx-login__input--leg {
    padding: 0 6px;
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 400;
}
/* При фокусе */
.dx-login__input--field:focus ~ .dx-login__input--f-set {
    border-color: var(--secondary-color);
    border-width: 2px;
}
.dx-login__input--field:focus ~ .dx-login__input--f-set .dx-login__input--leg {
    color: var(--secondary-color);
}
.dx-login__input--field::placeholder {
    color: #999999;
    font-size: 1.4rem;
}
/* Автозаполнение */
.dx-login__input--field:-webkit-autofill,
.dx-login__input--field:-webkit-autofill:hover,
.dx-login__input--field:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-color);
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
}

.show-password {
    display: flex;
    flex-direction: column;
    position: relative;
}
.password-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(/media/view.svg) center no-repeat;
    background-size: contain;
    z-index: 2;
    cursor: pointer;
}
.password-control.view {
    background: url(/media/no-view.svg) center no-repeat;
    background-size: contain;
}

.dx-login__btn {
    width: 100%;
    height: 45px;
    background: var(--primary-color);
    border: none;
    outline: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
}
.dx-login__btn:hover {
    background: var(--secondary-color);
    color: #ffffff;
}

/* SIDEBAR */
.dx-sidebar {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    top: var(--h-header);
    left: 0;
    height: calc(100vh - var(--h-header));
    width: var(--w-sidebar);
    background: #ffffff;
    padding: 6px 14px calc(6px + var(--h-footer)) 14px;
    transition: all 0.5s ease;
    box-shadow: var(--box-shadow);
    z-index: 999;
}
.dx-sidebar.active {
    width: var(--w-sidebar-open);
}
.dx-sidebar ul {
    margin-top: 20px;
}
.dx-sidebar ul li {
    position: relative;
    width: 100%;
    height: 50px;
    line-height: 50px;
    list-style: none;
    margin: 8px 0;
}
.dx-sidebar ul li .tooltip {
    position: absolute;
    left: 150px;
    top: 0;
    transform: translate(-50%, -50%);
    border-radius: 35px;
    width: 150px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: var(--secondary-color-light);
    -webkit-transition: 0s;
    transition: 0s;
    opacity: 0;
    pointer-events: none;
    display: block;
}
.dx-sidebar.active ul li .tooltip {
  display: none;
}
.dx-sidebar ul li:hover .tooltip {
    top: 50%;
    transition: all 0.5s ease;
    opacity: 1;
}
.dx-sidebar ul li a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.4s ease;
    border-radius: 50px;
    white-space: nowrap;
}
.dx-sidebar ul li a:hover {
    background: var(--secondary-color-light);
    color: var(--text-color);
}
.dx-sidebar ul li a:active {
    background: var(--secondary-color-light);
    color: var(--text-color);
}
.dx-sidebar ul li.dx-nav-item--current a {
    background: var(--secondary-color-light);
    color: var(--secondary-color);
}
.dx-sidebar ul li.dx-nav-item--current a i {
    color: var(--secondary-color);
}
.dx-sidebar ul li a i {
    min-width: 50px;
    height: 50px;
    border-radius: 12px;
    line-height: 50px;
    text-align: center;
    color: var(--text-color);
    font-size: 2rem;
}
.dx-sidebar ul li a i:hover {
    color: var(--secondary-color);
}
.dx-sidebar ul li a i:active {
    color: var(--secondary-color);
}
.dx-sidebar .dx-nav-link-name {
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.dx-sidebar.active .dx-nav-link-name {
    opacity: 1;
    pointer-events: auto;
}


.dx-main {
    position: fixed;
    width: calc(100% - var(--w-sidebar));
    /*height: calc(100vh - var(--h-header) - var(--h-footer));*/
    left: var(--w-sidebar);
    top: var(--h-header);
    right: 0;
    bottom: var(--h-footer);
    overflow: auto;
    transition: all 0.5s ease;
    padding: 20px;
    padding-bottom: calc(20px + var(--h-footer) * 2.8);
    margin: 0;
    background: var(--bg-color);
}
.dx-sidebar.active ~ .dx-main {
    width: calc(100% - var(--w-sidebar-open));
    left: var(--w-sidebar-open);
}

/* HEADER */
.dx-header {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: var(--h-header);
    left: 0;
    padding: 0 20px 0 0;
    transition: all 0.5s ease;
    background: #ffffff;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    z-index: 1000;
}
.dx-header .dx-header__content {
    display: flex;
    align-items: center;
}
.dx-header .dx-header__content i {
    height: var(--h-header);
    width: var(--w-sidebar);
    display: flex;
    justify-content: center;
    align-items: center;
}
.dx-header #dx-menu-btn {
    color: var(--secondary-color);
    font-size: 2.6rem;
    text-align: center;
    cursor: pointer;
}
.dx-header #dx-menu-btn:hover {
    color: var(--primary-color);
}
.dx-header .dx-header__content img {
  height: 40px;
  margin-left: 20px;
}
.dx-header .dx-header__content--user {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}
.dx-header__user--item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    padding: 0 20px 0 20px;
    gap: 20px;
    border: 2px solid var(--secondary-color-light);
    border-radius: 40px;
}
.dx-header__user--item p {
    color: var(--text-color);
}
.dx-header__user--item .dx-header__user--role,
.dx-header__user--item .dx-header__user--person,
.dx-header__user--item .dx-header__user--company {
    color: var(--text-color);
}
.dx-header__user--icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--secondary-color-light);
    height: 40px;
    width: 40px;
    border-radius: 40px;
    margin-right: -20px;
}
.dx-header__user--icon i {
    font-size: 2rem;
    color: var(--primary-color);
}
.dx-header__user--icon i:hover {
    color: var(--secondary-color);
}
/* FOOTER */
.dx-footer {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    width: calc(100% - var(--w-sidebar));
    height: var(--h-footer);
    left: var(--w-sidebar);
    bottom: 0;
    padding: 0 20px;
    gap: 8px;
    z-index: 100;
    transition: all 0.5s ease;
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    font-size: 1.2rem;
}

.dx-sidebar.active ~ .dx-footer {
    width: calc(100% - var(--w-sidebar-open));
    left: var(--w-sidebar-open);
}

.dx-footer--has-messages {
    height: calc(var(--h-footer) * 3.4);
}

.dx-footer__messages {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    max-height: none;
    overflow-y: visible;
}

.dx-footer__info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.dx-flash {
    min-height: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 1.5rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.dx-flash--success {
    background: #e3f6ed;
    color: #0a7f3f;
}

.dx-flash--error {
    background: #fde4e4;
    color: #b3261e;
}

.dx-input.dx-input--error {
    border-color: #f2b8b5 !important;
    background-color: #fff5f5 !important;
}

.dx-error-frame {
    border: 2px solid #f2b8b5 !important;
    background: #fff5f5;
}

.dx-field-error {
    margin: 4px 0 0;
    font-size: 1.2rem;
    color: #b3261e;
}

/* FLEX */
.dx-flex__wrap {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    flex-wrap: wrap;

}
@media (max-width: 1601px) {
    .dx-flex__wrap > .dx-flex__50 {
        width: 100%
    }
    .dx-flex__wrap > .dx-flex__25 {
        width: calc(50% - var(--gap-item) - 1%);
    }
}
.dx-flex__100 {
    width: 100%;
}
.dx-flex__50 {
    /*width: 50%;*/
    width: calc(50% - var(--gap-item) - 1%);
}
.dx-flex__25 {
    width: calc(25% - var(--gap-item) - 1%);
}
.dx-flex__row--start {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    /*gap: 30px;*/
    /*width: 100%;*/
}
.dx-flex__row--end {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    /*gap: 30px;*/
    /*width: 100%;*/
}
.dx-flex__row--between {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}
.dx-flex__col-1 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    /*gap: 30px;*/
    /*width: 100%;*/
}
.dx-flex__col-2 {
    display: flex;
}
.dx-flex__col-2--item {
    flex: 1 1 auto;
}

.dx-gap__main {
    gap: var(--gap-main);
}
.dx-gap__item {
    gap: var(--gap-item);
}

.dx-gap__20 {
    gap: 20px;
}

.dx-gap__50 {
    gap: 50px;
}


.dx-btn,
.dx-btn__red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 150px;
    padding: 0 24px;
    border: none;
    outline: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 400;
    color: #ffffff;
    text-align: center;
}
.dx-btn {
    background: var(--secondary-color);
}
.dx-btn:link,
.dx-btn:visited,
.dx-btn:hover,
.dx-btn:active {
    color: #ffffff;
    text-decoration: none;
}
.dx-btn:hover {
    background: var(--primary-color);
}
.dx-btn__red {
    background: var(--accent-color);
}
.dx-btn__red:hover {
    background: var(--primary-color);
}
.dx-btn--dirty {
    background: #b7e4c7;
    color: #064420;
}
.dx-btn--dirty:hover {
    background: #95d5b2;
}

.dx-btn--auto-width {
    width: auto;
    min-width: 150px;
    max-width: 100%;
    padding: 0 18px;
}

.dx-btn--csv-template {
    width: 220px;
}

.dx-btn--row-delete {
    background: #ffffff;
    color: var(--text-color);
    border: 2px solid rgba(228, 28, 41, 0.35);
}

.dx-btn--row-delete:hover {
    background: rgba(228, 28, 41, 0.1);
    color: var(--text-color);
    border-color: rgba(228, 28, 41, 0.35);
}

.dx-card {
    background: #ffffff;
    box-shadow: var(--box-shadow);
    padding: 30px;
    border-radius: 4px;
    /*width: 100%;*/
}

.dx-filter {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.dx-orders-filter-card {
    padding: 16px 20px;
    gap: 8px;
    align-items: center;
}

.dx-orders-filter-card .dx-filter {
    gap: 8px;
}
.dx-img__preview {
    width: auto;
    height: 100px;
    border: 1px solid var(--border-color);
    /*box-shadow: var(--box-shadow);*/
}
.dx-note {
    font-size: 1.2rem;
}
.dx-color__accent--red {
    color: var(--accent-color);
}

label {
    display: inline-block;
    font-size: 1.2rem;
    color: #6b7280;
}

label > p {
    margin: 0;
    font-size: inherit;
    color: inherit;
}

/* INPUT */
.dx-input {
    height: 40px;
    padding: 0 10px;
    border: 2px solid var(--secondary-color-light);
    border-radius: var(--border-radius-main);
    font-family: inherit;
    font-size: 1.4rem;
    color: var(--text-color);
    background-color: transparent;
    outline: none;
}
.dx-input:focus {
    border-color: var(--secondary-color);
    border-width: 2px;
}

input[type=date]::-webkit-calendar-picker-indicator {
  width: 20px;
  height: 20px;
  background-image: url("/media/oeaepcz_icons_calendar.svg");
  margin: 0;
  cursor: pointer;
}

input[type="radio"]{
    accent-color: var(--secondary-color);
    width: 18px;
    height: 18px;
    border: 2px solid var(--secondary-color);
}

.dx-select{
    position: relative;
    display: inline-block;
}
.dx-select select{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
}
.dx-select::after{
    content: "";
    position: absolute;
    right: 15px;
    top: 45%;
    width: 9px;
    height: 9px;
    transform: translateY(-45%) rotate(45deg);
    border-right: 1px solid var(--text-color);
    border-bottom: 1px solid var(--text-color);
    pointer-events: none;
}


/* input[type="file"] */
.dx-file-upload {
    display: flex;
    align-items: center;
    gap: 0;
}
.dx-file-upload input[type="file"] {
    display: none;
}
.dx-file-upload__name {
    display: flex;
    align-items: center;
    width: 500px;
    height: var(--h-row);
    padding: 0 15px;
    font-size: 1.4rem;
    color: #999999;
    background-color: transparent;
    border: 2px solid var(--secondary-color-light);
    border-right: none;
    border-radius: var(--border-radius-main) 0 0 var(--border-radius-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dx-file-upload__btn {
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: var(--h-row);
    color: #ffffff;
    background-color: var(--secondary-color);
    border-radius: 0 var(--border-radius-main) var(--border-radius-main) 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}
.dx-file-upload__btn:hover {
    background-color: var(--primary-color);
}

.dx-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.dx-checkbox__box {
    position: relative;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-main);
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.dx-checkbox__box:checked ~ .dx-checkbox__box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid #ffffff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

input[type="checkbox"]{
  accent-color: var(--secondary-color);
}

.dx-checkbox__label {
    font-size: 1.4rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* TABLE */
table {
  width: 100%;
  background-color: #ffffff;
  border-collapse: collapse;
  border-radius: var(--border-radius-table);
  padding: 10px;
}
thead {
  z-index: 10;
}

table, th, td {
  padding: 10px;
  text-align: center;
}

td {
  padding: 0 5px 0 5px;
  color: var(--text-color);
  border: 1px solid #E1E4E8;
}

th {
  background-color: #E1E4E8;
  color: #13131a;
  font-weight: 500;
  padding: 0 10px 0 10px;
  border: 1px solid #E1E4E8;
}

th:first-child {
  border-radius: var(--border-radius-table) 0 0 0;
}

th:last-child {
  border-radius: 0 var(--border-radius-table) 0 0;
}

th:only-child {
  border-radius: var(--border-radius-table) var(--border-radius-table) 0 0;
}

tr {
  height: 40px;
  color: var(--text-color);
}

tr:hover {
  background-color: var(--secondary-color-light);
}

.dx-clickable-row:hover td,
.dx-clickable-row:focus-within td {
  background-color: var(--secondary-color-light) !important;
}

.dx-order-status-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  min-width: 120px;
  text-align: center;
}

table tr td:first-child, th:first-child {
  border-left: none;
}

table tr:first-child th {
  border-top: none;
}

table tr td:last-child, th:last-child {
  border-right: none;
}

table tr:last-child td {
  border-bottom: none;
}

tfoot td {
  font-weight: 500;
  color: #080808 !important;
}

.dexx-tbl-thead-sticky {
  position: sticky;
  top: -20px;
}

.dx-tbl-thead-sticky {
  position: sticky;
  top: -20px;
}

.tbl-order-row-old {
  background-color: rgba(255, 0, 0, 0.062745098);
}

.tbl-order-row-modify {
  background-color: rgba(255, 0, 0, 0.062745098);
}

.tbl-morder-row-old {
  background-color: rgba(255, 0, 0, 0.062745098);
}

.tbl-morder-row-modify {
  background-color: rgba(255, 0, 0, 0.062745098);
}

.tbl-col-action {
  color: var(--secondary-color);
  cursor: pointer;
}

.tbl-col-action:hover {
  color: #ff0000;
  font-weight: 500;
}








/* WIZARD */
.dx-step.is-locked .dx-step__body{
    pointer-events: none;
    user-select: none;
    opacity: .85;
}
.dx-step__head{
    display:flex;
    justify-content: space-between;
    align-items:center;
}
.dx-step__actions{
    display:flex;
    justify-content:flex-end;
    margin-top: 20px;
}
[hidden] {
    display:none!important;
}
.dx-step__status {
    color: var(--status-color-green);
}

/* TOOLTIP  */
.dx-tooltip {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding-top: 1px;
    width: 18px;
    height: 18px;
    margin-left: 5px;
    border-radius: var(--border-radius-main);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 500;
    cursor: help;
    user-select: none;
}
.dx-tooltip:hover {
    background: var(--secondary-color-light);
}
.dx-tooltip__text {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%);
    width: 220px;
    padding: 15px;
    background: #ffffff;
    border-radius: var(--border-radius-main);
    box-shadow: var(--box-shadow);
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
}
.dx-tooltip:hover .dx-tooltip__text,
.dx-tooltip:focus .dx-tooltip__text {
    opacity: 1;
    visibility: visible;
}



/* LOGO UPLOAD */
.dx-logo-upload__preview {
  width: 280px;
  height: 170px;
  border: 2px solid var(--secondary-color-light);
  border-radius: var(--border-radius-main);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
  padding: 10px;
}

.dx-logo-upload__img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  
}

.dx-logo-upload__input {
  display: none;
}

/* PDF preview (макеты диплома/приложения) - аккуратно и без полей */
.dx-layout-preview-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
  }
  
  .dx-layout-preview-item {
    flex: 0 0 480px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
  }
  
  .dx-flex__col-1.dx-layout-preview-item {
    align-items: stretch;
  }
  
  .dx-layout-preview-row--multi .dx-layout-preview-item {
    flex: 1 1 240px;
    max-width: 380px;
  }
  
  @media (max-width: 1050px) {
    .dx-layout-preview-item {
      flex: 0 0 calc(50% - 9px);
      max-width: calc(50% - 9px);
    }
  }
  
  @media (max-width: 700px) {
    .dx-layout-preview-item {
      flex: 0 0 100%;
      max-width: 100%;
    }
  }
  
  .dx-diploma-preview__frame-wrap {
    position: relative;
    background: #2b2b2b; /* Темный фон как в PDF-вьюверах */
    border: 1px solid #dddddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    overflow: hidden;
    
    /* Включаем флекс для центрирования */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .dx-diploma-preview__frame-wrap--edit-landscape {
   /* width: 100%; */
    max-width: 650px;
    height: 515px;
  }
  
  .dx-diploma-preview__frame-wrap--edit-portrait {
   /* width: 100%; */
    max-width: 500px;
    height: 515px;
  }
  
  .dx-diploma-preview__iframe {
    /* Возвращаем 100%, чтобы PDF занял всё доступное место в рамке */
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    display: block;
  }
  
  /* Если внутри не iframe, а картинка-заглушка */
  .dx-diploma-preview__frame-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  
  .dx-diploma-preview__click-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
    background: transparent;
  }
  
  .dx-layout-preview-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    box-sizing: border-box;
  }

/* Форма заказа: поля в таблице занимают почти всю ячейку */
#orderEditForm {
    gap: 12px;
    height: 100%;
    min-height: 0;
}

#orderEditForm > .dx-card {
    padding: 16px 20px;
}

#orderEditForm > .dx-card.dx-gap__main {
    gap: 10px;
}

#orderEditForm > .dx-card h2,
#orderEditForm > .dx-card p {
    margin: 0;
}

.dx-main--order-edit {
    overflow: hidden;
    padding-bottom: 20px;
}

.dx-order-students-section {
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 8px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.dx-order-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dx-order-toolbar__left {
    flex: 0 1 auto;
}

.dx-order-toolbar__right {
    flex: 0 1 auto;
    margin-left: auto;
}

.dx-order-layout {
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: stretch;
    min-height: 0;
    flex: 1 1 auto;
}

.dx-order-layout__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dx-order-chat {
    width: 360px;
    min-width: 320px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    min-height: 0;
    padding: 12px;
    gap: 10px;
}

.dx-order-chat--hidden {
    display: none;
}

.dx-order-chat__head-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dx-order-chat__head {
    font-size: 1.6rem;
    color: var(--title-color);
}

.dx-order-chat__close {
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
}

.dx-order-chat__messages {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    background: #f8fafc;
}

.dx-order-chat__empty {
    color: #6b7280;
    font-size: 1.3rem;
    text-align: center;
    margin-top: 8px;
}

.dx-order-chat__msg {
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cfe8d2;
    background: #edf9ef;
    align-self: flex-start;
}

.dx-order-chat__msg--mine {
    align-self: flex-end;
    background: #eaf2ff;
    border-color: #cfe0ff;
}

.dx-order-chat__meta {
    font-size: 1.1rem;
    color: #5f6b7a;
}

.dx-order-chat__text {
    white-space: pre-wrap;
    word-break: break-word;
}

.dx-order-chat__composer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dx-order-chat__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.dx-order-chat__actions .dx-btn {
    flex: 1 1 0;
    width: auto;
}

.dx-order-chat__input {
    width: 100%;
    min-height: 132px;
    height: auto;
    padding: 8px 10px;
    resize: vertical;
}

.dx-order-students-scroll {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.dx-order-head {
    width: 100%;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.dx-order-head__item {
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dx-order-head__label {
    font-size: 1.2rem;
    min-width: 110px;
    white-space: nowrap;
    text-align: center;
}

.dx-order-head__label--order-no {
    font-size: 1.6rem;
    font-weight: 500;
    min-width: auto;
    margin-right: 2px;
}

.dx-order-head__value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 180px;
    min-width: 180px;
    background-color: #f6f8fa;
    cursor: default;
    user-select: none;
    text-align: center;
}

.dx-order-head__value--select {
    cursor: pointer;
    user-select: auto;
}

.dx-order-summary-card {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    justify-content: center !important;
}

.dx-order-program-card {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    gap: 8px !important;
}

.dx-order-program-card label {
    margin-bottom: -2px;
    padding-left: 12px;
}

#companyForm .dx-flex__col-1 > label {
    display: block;
    margin: 0 0 4px;
    padding-left: 12px;
    line-height: 1.2;
}

#companyForm .dx-flex__col-1.dx-gap__item {
    gap: 8px;
}

#companyForm label[for="company_ceo_name"],
#companyForm label[for="company_ceo_name"] + .dx-input,
#companyForm .dx-flex__col-1.dx-gap__item > label:not([for]) {
    margin-top: 0;
}

#students-table td .dx-input {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    display: block;
}

/* Форма заказа: без линий сетки таблицы */
#students-table,
#students-table th,
#students-table td {
    border: none !important;
}

/* Форма заказа: раздвигаем поля по горизонтали/вертикали */
#students-table {
    border-collapse: separate;
    border-spacing: 10px 8px;
}

#students-table th,
#students-table td {
    padding: 0;
}

#students-table th.dx-student-num-col,
#students-table td.dx-student-num-cell {
    width: 3.25rem;
    min-width: 3.25rem;
    text-align: center;
    vertical-align: middle;
}

#students-table .dx-student-num-display {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    height: 40px;
    box-sizing: border-box;
    padding: 0 6px;
    border: 2px solid var(--secondary-color-light);
    border-radius: var(--border-radius-main);
    font-family: inherit;
    font-size: 1.4rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-color);
    background-color: #f6f8fa;
    cursor: default;
    user-select: none;
}

#students-table .student-diploma-number[readonly] {
    background-color: #f6f8fa;
    cursor: default;
    color: var(--text-color);
}

/* Кнопка «Удалить» в строке: фон как у readonly-полей, рамка как у глобальной .dx-btn--row-delete */
#students-table .dx-btn--row-delete {
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
    padding: 0 10px;
    font-size: 1.4rem;
    background-color: #f6f8fa;
    border: 2px solid rgba(228, 28, 41, 0.35);
    border-radius: var(--border-radius-main);
    color: var(--text-color);
}

#students-table .dx-btn--row-delete:hover {
    background: rgba(228, 28, 41, 0.1);
    border-color: rgba(228, 28, 41, 0.35);
    color: var(--text-color);
}

/* Явно показываем иконку календаря в дате окончания */
#students-table input[type="date"] {
    padding-right: 8px;
}

#students-table input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 0;
}

#students-table .dx-date-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

#students-table .dx-date-input-wrap .student-graduation-date {
    flex: 1 1 auto;
}

#students-table .dx-date-picker-btn {
    width: 34px;
    min-width: 34px;
    height: 40px;
    padding: 0;
    border: 2px solid var(--secondary-color-light);
    border-radius: var(--border-radius-main);
    background-color: transparent;
    background-image: url("/assets/media/oeaepcz_icons_calendar.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    cursor: pointer;
    font-size: 0;
    line-height: 1;
    box-sizing: border-box;
    margin: 0;
    vertical-align: middle;
}

#students-table .dx-date-picker-btn:hover {
    border-color: var(--secondary-color);
}

/* При фокусе поле даты и кнопка календаря выделяются отдельно */
#students-table .student-graduation-date:focus {
    border-color: var(--secondary-color);
    background-color: #ffffff;
    box-shadow: none;
}

#students-table .dx-date-picker-btn:focus,
#students-table .dx-date-picker-btn:focus-visible {
    outline: none;
    border-color: var(--secondary-color);
    background-color: #ffffff;
    box-shadow: none;
}

/* Голубое выделение при наведении / фокусе в строке — все поля, кроме кнопки «Удалить» */
#students-table tr:hover .dx-input,
#students-table tr:hover .dx-date-picker-btn,
#students-table tr:hover .dx-student-num-display {
    background-color: var(--secondary-color-light);
}

/* Кнопка «Удалить» не подсвечивается голубым вместе со строкой; при наведении на саму кнопку — красный ховер ниже */
#students-table tr:hover .dx-btn--row-delete:not(:hover),
#students-table tr:hover .dx-btn--row-delete:not(:hover) {
    background-color: #f6f8fa;
    border-color: rgba(228, 28, 41, 0.35);
}

/* Перекрываем общий table tr:hover, чтобы не заливался зазор */
#students-table tr:hover {
    background-color: transparent;
}

/* Между датой и календарем оставляем отдельный зазор без заливки */
#students-table tr:hover .dx-date-input-wrap,
#students-table tr:hover .dx-date-input-wrap {
    background-color: transparent;
}

.dx-order-csv-upload {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dx-date-input-wrap--compact {
    gap: 4px;
    align-items: center;
    display: inline-flex;
}

.dx-date-input-wrap--compact .dx-input[type="date"] {
    min-width: 170px;
    height: 40px;
    box-sizing: border-box;
    margin: 0;
    vertical-align: middle;
}

.dx-date-picker-btn--compact {
    width: 34px;
    min-width: 34px;
    height: 40px;
    padding: 0;
    border: 2px solid var(--secondary-color-light);
    border-radius: var(--border-radius-main);
    background-color: transparent;
    background-image: url("/assets/media/oeaepcz_icons_calendar.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    font-size: 0;
    line-height: 1;
    box-sizing: border-box;
    margin: 0;
    vertical-align: middle;
    align-self: center;
}

.dx-csv-modal[hidden] {
    display: none;
}

.dx-csv-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.dx-csv-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 29, 79, 0.35);
}

.dx-csv-modal__dialog {
    position: relative;
    width: min(960px, calc(100vw - 80px));
    max-height: calc(100vh - 20px);
    margin: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dx-csv-modal__head,
.dx-csv-modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #e1e4e8;
}

.dx-csv-modal__actions {
    justify-content: space-between;
    border-bottom: none;
    border-top: 1px solid #e1e4e8;
}

.dx-csv-modal__note {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid #e1e4e8;
}

.dx-csv-modal__note .dx-note {
    margin: 0;
}

.dx-csv-modal__actions-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.dx-csv-modal__body {
    padding: 16px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dx-csv-modal__close {
    border: none;
    background: transparent;
    font-size: 2.4rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-color);
}

.dx-csv-modal__row {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: center;
    gap: 10px;
}

.dx-csv-modal__file-input {
    width: 100%;
    box-sizing: border-box;
    cursor: default;
}

.dx-csv-modal__file-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.dx-order-history-modal .dx-order-history-modal__dialog {
    width: min(1100px, calc(100vw - 80px));
}

.dx-order-history-modal__body {
    min-height: 120px;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
}

.dx-order-history-scroll {
    overflow: auto;
    max-height: min(520px, calc(100vh - 220px));
}

.dx-order-history-table {
    width: 100%;
    border-collapse: collapse;
    font-family: inherit;
    font-size: 1.4rem;
    line-height: 1.5;
}

.dx-order-history-table th,
.dx-order-history-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e1e4e8;
    vertical-align: top;
}

.dx-order-history-table th {
    font-weight: 600;
    position: sticky;
    top: 0;
    background: #f6f8fa;
    z-index: 1;
}

/* Колонка «Имя Фамилия» (после №) */
.dx-order-history-table th:nth-child(4),
.dx-order-history-table td:nth-child(4) {
    min-width: 11em;
    max-width: 22em;
    word-break: break-word;
}

.dx-order-history-loading,
.dx-order-history-empty {
    margin: 0 0 12px;
    color: var(--text-color);
    opacity: 0.9;
}

.dx-order-history-snapshot {
    font-family: inherit;
    font-size: 1.4rem;
    line-height: 1.5;
    max-width: 28em;
}

.dx-order-history-snapshot__line + .dx-order-history-snapshot__line {
    margin-top: 2px;
}

.dx-csv-modal__file-controls .dx-btn {
    flex-shrink: 0;
}

#order-submit-modal .dx-csv-modal__dialog {
    width: min(560px, calc(100vw - 80px));
    min-height: 320px;
}

#order-submit-modal .dx-csv-modal__body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#order-submit-modal .dx-csv-modal__body p {
    font-size: 1.6rem;
    line-height: 1.45;
}

#order-submit-modal .dx-csv-modal__actions {
    margin-top: auto;
    justify-content: center;
}

#order-submit-modal .dx-csv-modal__actions-right {
    width: 100%;
    justify-content: center;
}

.dx-csv-preview-wrap {
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    min-height: 360px;
    max-height: min(56vh, 620px);
    overflow: auto;
}

#csv-preview-table {
    width: 100%;
    border-collapse: collapse;
}

#csv-preview-table th,
#csv-preview-table td {
    border: 1px solid #e1e4e8;
    padding: 6px 8px;
    text-align: left;
    background: #fff;
}

#csv-preview-table th {
    background: #f2f4f7;
}

#csv-preview-table td.dx-csv-preview-cell--error {
    background: #fff5f5;
}

#csv-preview-table td.dx-csv-preview-td--editable {
    padding: 2px 4px;
    vertical-align: middle;
}

.dx-csv-preview-cell-input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 4px 6px;
    font: inherit;
    font-size: inherit;
    line-height: 1.4;
    background: transparent;
    color: inherit;
}

.dx-csv-preview-cell-input:hover {
    border-color: var(--border-color, #d3d7e0);
}

.dx-csv-preview-cell-input:focus {
    outline: none;
    border-color: var(--secondary-color, #0056d3);
    background: #fff;
}

#csv-preview-table td.dx-csv-preview-cell--error .dx-csv-preview-cell-input:focus {
    background: #fff;
}