body {
    margin: 0;
    padding: 0;
    font-family: 'Exo 2', sans-serif;
    font-size: 22px;
}

.container {
    width: 1680px;
    margin: 0 auto;
}

h1 {
    font-size: 1.82em;
    text-align: center;
    color: #0F153C;
    margin: 0 auto 1.13em;
}

h3 {
    font-weight: 700;
    font-size: 1.45em;
    margin: 1.87em 4.44em 0.94em;
}

/* --- HEADER START --- */

h4 {
    padding: 0;
    color: white;
    text-transform: uppercase;
    font-size: 1.2em;
    margin: 0 0 0 1.5em;
    line-height: 1.3em;
}

form {
    margin: 0;
}

.sbc {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header {
    background: #1C396E;
    height: 5em;
    display: flex;
    align-items: center;
}

header a {
    color: white;
}

header li {
    list-style-type: none;
    margin-left: 2em;
}

header li a {
    font-size: 24px;
    text-decoration: none;
}

.menu {
    display: flex;
    margin-left: auto;
    align-items: center;
}

.menu li button {
    font-style: inherit;
    font-size: 1.1em;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
}
.flex {
    display: flex;
    align-items: center;
}

.alert {
    border-radius: 50%;
    height: 20px;
    width: 20px;
    background: #F07D00;
    margin-left: 5px;
}

.s-flex {
    display: flex;
}

.unread_messages_icon {
    position: relative;
}

.unread_messages_icon .badge {
    position: absolute;
    background: #f07d00;
    border-radius: .75rem;
    padding: 0 .3125rem;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    text-align: center;
    right: 0;
    height: 1.34em;
    min-width: 0.7em;
}

/*CUT*/

.exit {
    margin-left: 12px;
}

/*CUT*/

/* --- HEADER END --- */

h2 {
    font-size: 1.6em;
    text-align: center;
    color: #0F153C;
    margin: 0 auto 1.1em;
}

#main, #messages {
    padding-top: 80px;
}

.box {
    background: #fff;
    padding: 2.9em 2.7em;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    margin-bottom: 20px;
}

.column-1 {
    width: 58%;
}

.column-2 {
    width: 40%;
}

.sb {
    display: flex;
    justify-content: space-between;
}

.button-with-svg {
    margin-top: 1.8em;
    background: #1C396E;
    color: white;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    border-radius: 75px;
    padding: 0.3em 2em 0.3em 0.3em;
    width: max-content;
    cursor: pointer;
}

.svg-frame {
    border-radius: 50%;
    height: 1.9em;
    width: 1.9em;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.13em;
}

.column-2 .box a {
    color: inherit;
}

/* --- FOOTER START --- */

.footer-logo {
    height: 5.4em;
}

footer {
    background: #1C396E;
    height: 287px;
    display: flex;
    align-items: center;
    margin-top: 90px;
}

footer h4 {
    margin-left: 20px;
    line-height: 150%;
}

footer h5 {
    color: white;
    font-size: 1.27em;
    font-weight: 600;
    margin: 0;
}

footer h6 {
    color: #F07D00;
    font-weight: 400;
    font-size: 0.8em;
    margin-top: 1.4em;
    margin-bottom: 0;
}

footer p {
    color: white;
    font-size: 1.1em;
    margin: 0;
}

footer a {
    color: white;
    font-size: 1.1em;
    margin: 0;
    text-decoration: none;
}

footer .s-flex {
    margin-top: 6px;
}

.footer-svg {
    height: 30px;
    width: 30px;
    margin-right: 12px;
}

.contact {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.search-bar input[type=text] {
    width: 981px;
    display: inline-block;
    box-sizing: border-box;
    font-size: 1.1em;
    border: 2px solid #F07D00;
    border-radius: 35px;
    color: #4C4D55;
    font-family: 'Exo 2', sans-serif;
    padding: 0.58em 3.33em;
}

.search-bar input[type=text]:focus {
    outline: none;
}

.search-bar input[type="submit"] {
    background: url(../img/search_button.svg) no-repeat center;
    color: inherit;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    font-size: 2.41em;
    width: 1em;
    height: 1em;
    background-size: contain;
    position: relative;
    z-index: 1;
    left: calc(-1em - 3px);
}

.search-groups p {
    margin-top: 0;
    margin-bottom: 0.5em;
}

.orange-button-with-svg {
    background: #F07D00;
    color: white;
    font-size: 1.14em;
    display: flex;
    align-items: center;
    border-radius: 75px;
    padding: 0.28em 2em 0.28em 0.28em;
    width: max-content;
    cursor: pointer;
}

.styled-table {
    border-collapse: collapse;
    margin: 40px auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.styled-table thead tr {
    background: #1C396E;
    color: #ffffff;
    text-align: left;
    border: 2px solid #1C396E;
}

.styled-table th, .styled-table td {
    padding: 0.68em 1.36em;
}

.styled-table tbody tr {
    border: 2px solid #1C396E;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #D2D7E2;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 10px solid #1C396E;
}

.pagination {
    justify-content: center;
}

.pagination button {
    font-size: 28px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: #0F153C;
    margin-right: 15px;
    margin-left: 15px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.pagination span {
    font-size: 28px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: #0F153C;
    margin-right: 15px;
    margin-left: 15px;
    padding: 0;
    border: 0;
}

.pagination button:last-child {
    margin-right: 0;
}

/* --- PAGE 3 --- */

.main-sb {
    justify-content: center;
    margin-bottom: 2.73em;
}

.group-box {
    font-size: 1.36em;
    font-family: 'Exo 2', sans-serif;
    width: 8em;
    padding: 0.27em;
    background: white;
    border: 1px solid #FFFFFF;
    box-shadow: 2px 3px 5px 2px rgba(0, 0, 0, 0.25);
    border-radius: 35px;
    margin-right: 2em;
    cursor: pointer;
    margin-bottom: 0.75em;
}

/* --- PAGE 4 --- */

.create_new input, .create_new select, .add_file input[type=text], .add_file select, .categorySelect {
    border: 2px solid #1C396E;
    color: #4C4D55;
    font-family: 'Exo 2', sans-serif;
    padding: 0.58em 2.83em 0.58em 0.83em;
    display: inline-block;
    box-sizing: border-box;
    font-size: 1.1em;
    margin-top: 0.63em;
    margin-bottom: 1.67em;
    outline: none;
}

.categorySelect {
    width: 300px;
    background: none;
    border: 2px solid #F07D00;
    margin: 0;
}

.create_new label {
    font-size: 1.1em;
}

.create_new b {
    color: #F07D00;
}

.create_new #name {
    width: 952px;
    background: url(../img/name.svg) no-repeat calc(100% - 12px) center;
}

.create_new #address {
    width: 740px;
    background: url(../img/address.svg) no-repeat calc(100% - 12px) center;
}

.create_new #email {
    width: 648px;
    background: url(../img/blue.envelope.svg) no-repeat calc(100% - 12px) center;
}

.create_new #tg {
    width: 404px;
    background: url(../img/telegram.svg) no-repeat calc(100% - 12px) center;
}

.create_new #mob, .create_new #add_mob {
    width: 400px;
    background: url(../img/blue.phone.svg) no-repeat calc(100% - 12px) center;
}

.create_new #course {
    width: 157px;
    background: url(../img/graduation.svg) no-repeat calc(100% - 12px) center;
}

.create_new #group {
    width: 278px;
    background: url(../img/group.svg) no-repeat calc(100% - 12px) center;
}

.create_new #study_form {
    width: 269px;
    background: url(../img/graduation.svg) no-repeat calc(100% - 12px) center;
}

input[type="date"] {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 10px;
    width: 262px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: url(../img/calendar.svg) no-repeat;
    width: 44px;
    height: 44px;
}

.create_new select {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.add {
    flex-direction: column;
}

.add .fields {
    width: 100%;
}

.add .field {
    display: flex;
    flex-direction: column;
    max-width: 972px;
    margin: 0 0 47px 0;
}

.add .field label {
    font-size: 1.1em;
    line-height: 1.5em;
    margin: 0 0 0.63em 0;
}

.add .field input[type=text], .add .field input[type=number], .add .field select, .add .field textarea, .add .field input[type=password] {
    min-height: 2.5em;
    font-size: 1.1em;
}

.add .field textarea {
    resize: none;
}


.add .field #text {
    height: 500px;
}

.buttons {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

.buttons a {
    text-decoration: none;
}

.buttons .button-with-svg {
    margin-top: 0;
}

.create_new .buttons {
    margin-top: 1.13em;
}

.add button, .create_new input[type=submit],
.create_new button, #attestation_fail input[type=submit],
.create_new input[type=submit],
#import_subject {
    width: 17.7em;
    height: 3.08em;
    border-radius: 75px;
    font-size: 1.18em;
    line-height: 1.5em;
    border: none;
    margin-bottom: 0;
    cursor: pointer;
    padding: 0;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
}

.add #addMore, .create_new #addMore, #attestation_fail #save {
    background: #F07D00;
    color: #FFFFFF;
}

.add #save, .create_new #save {
    background: #EC6605;
    color: #FFFFFF;
}

.add #cancel, .create_new #cancel {
    background: #FFFFFF;
    color: #EC6605;
    border: 3px solid #F07D00;
}

.create_new #cancel {
    margin-top: 15px;
}

.create_new_lecturer #mob, .create_new_lecturer #tg, .create_new_lecturer #position {
    width: 506px;
}

.create_new_lecturer #position {
    background: url(../img/position.svg) no-repeat calc(100% - 12px) center;
}

.create_new_lecturer #institute {
    width: 1680px;
    background: url(../img/institute.svg) no-repeat calc(100% - 12px) center;
}

.create_new_lecturer #cathedra {
    width: 1680px;
    background: url(../img/cathedra.svg) no-repeat calc(100% - 12px) center;
}

.create_new_lecturer #scientificDegree {
    width: 476px;
    background: url(../img/college-diploma.svg) no-repeat calc(100% - 12px) center;
}

.create_new_lecturer #scientificTitle {
    width: 476px;
    background: url(../img/graduation.svg) no-repeat calc(100% - 12px) center;
}

.create_new_lecturer #area {
    width: 566px;
    background: url(../img/students-on-lecture.svg) no-repeat calc(100% - 12px) center;
}

.create_new #groupName {
    width: 283px;
    background: url(../img/group-of-students.svg) no-repeat calc(100% - 12px) center;
}

.create_new_group #email {
    width: 658px;
}

.create_new_group #educationDegree {
    width: 579px;
    background: url(../img/graduation.svg) no-repeat calc(100% - 12px) center;
}

.create_new_group #specialty {
    width: 627px;
    background: url(../img/college-diploma.svg) no-repeat calc(100% - 12px) center;
}

.create_new_group #curator {
    width: 618px;
    background: url(../img/curator.svg) no-repeat calc(100% - 12px) center;
}

.create_new_group #study_form {
    width: 275px;
    background: url(../img/study-process.svg) no-repeat calc(100% - 12px) center;
}

.create_new_group #educationProgram {
    width: 1396px;
    background: url(../img/graduate-student.svg) no-repeat calc(100% - 12px) center;
}

.create_new_group #course {
    width: 203px;
}

.guide-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.guides {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 60px;
}

.guides .box {
    padding: 0;
    grid-column: span 1;
    grid-row: span 1;
    text-align: center;
}

.guides .box h2 {
    font-size: 30px;
}
.guides .box img {
    max-width: 405px;
    max-height: 270px;
    min-height: 270px;
}
.guide-page {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.guide-text {
    font-size: 24px;
    line-height: 36px;
    text-align: justify;
    width: 83%;
}

.guide-image {
    width: 340px;
}

.guide-image img {
    box-shadow: 0 1px 5px 3px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.owl-carousel {
    width: 83%;
}

.guide-desc {
    color: #848484;
}

.guides a {
    text-decoration: none;
    display: grid;
}

.add_file {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
}

.add_file label {
    font-size: 1.1em;
}

.add_file input[type=file] {
    width: 280px;
    height: 60px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: 1;
    cursor: pointer;
}

.add_file input[type=text], .add_file select {
    margin-bottom: 0;
    width: 283px;
    border: 2px solid #F07D00;
}

.a_but {
    text-align: center;
    margin-top: 70px;
}

.a_hr {
    margin-top: 80px;
    margin-bottom: 30px;
    border: 2px solid #1C396E;
}

.attestation_table {
    font-size: 1em;
}

.attestation_table thead tr {
    text-align: left;
}

.attestation_table th, .attestation_table td {
    padding: 7px 70px;
}

#attestation_fail .buttons {
    margin-top: 90px;
}

#attestation_fail #sendLetters {
    background: #EC6605;
    color: #FFFFFF;
    width: 700px;
}

#attestation_fail .buttons button {
    background: #EC6605;
    color: #FFFFFF;
    border-radius: 75px;
    font-size: 1.18em;
    line-height: 1.5em;
    border: none;
    margin-bottom: 0;
    cursor: pointer;
    padding: 0 2em;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
}

#messages > .container > .sb > .column-1 > .box,
#messages > .container > .sb > .column-2 > .box {
    padding: 40px 0;
}

.box .box {
    padding: 20px 25px;
    width: 90%;
    box-sizing: border-box;
    margin: 0 auto 25px;
}

.box .box p {
    margin: 0;
}

.box .box .sbc {
    width: 84%;
    margin: auto auto 15px;
}

.box .box > p {
    line-height: 150%;
}

.box .box input, .box .box button {
    border-radius: 75px;
    color: white;
    border: 0;
    width: 42.5%;
    font-weight: 500;
    font-size: 1.1em;
    padding: 0.54em;
    margin-top: 0.83em;
    font-family: 'Exo 2', sans-serif;
    cursor: pointer;
}

.box .box input {
    background: #F07D00;
}

.box .box button {
    background: #1C396E;
}

.box-disabled {
    background: #E8E8E8;
}

.box-disabled p {
    color: #646464;
}

.box-disabled .buttons input, .box-disabled .buttons button {
    background: #ADADAD;
}

.column-2 > .box > .box > .buttons > input[type=submit] {
    width: 77%;
}

#messages > .container > .sb > .column-2 > .box > div > .button-with-svg {
    margin: 0.75em auto;
}

#messages .box > h2 {
    margin: 0 1em 0.6em;
    font-weight: 700;
    font-size: 1.45em;
}

/****** Modal ******/

.modal_bg, .modal_bg_read_all {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(3, 3, 3, 0.6);
    z-index: 2;
    /*backdrop-filter: blur(1px);*/
    align-items: center;
    justify-content: center;
    display: none;
}

.message_modal {
    width: 85%;
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    /*flex-direction: column;*/
    margin: auto;
    padding: 50px 141px 70px;
    box-sizing: border-box;
    position: relative;
}

.message_modal h1 {
    font-weight: 700;
    font-size: 32px;
    text-align: center;
    margin-bottom: 25px;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 50px;
    position: absolute;
    right: 60px;
    top: 30px;
}

.close:hover, .close:focus {
    color: #1C396E;
    text-decoration: none;
    cursor: pointer;
}

.message_modal label {
    font-weight: 600;
    font-size: 26px;
}

.message_modal p {
    margin-top: 30px;
    margin-bottom: 15px;
}

.message_modal select, #to_exactly {
    border: 2px solid #1C396E;
    font-family: 'Exo 2', sans-serif;
    padding: 6px 20px;
    display: inline-block;
    box-sizing: border-box;
    font-size: 26px;
    outline: none;
    width: 334px;
    margin-left: 20px;
}

#to_exactly {
    width: 100%;
    margin-top: 15px;
}

#to_exactly:disabled {
    border: 2px solid #BBBBBB;
    background: #dcdcdc;
}

.message_modal textarea {
    resize: none;
    font-family: 'Calibri', sans-serif;
    font-size: 20px;
    padding: 15px 20px;
    width: 100%;
    height: 222px;
    border: #1C396E 2px solid;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.message_modal .buttons button, .message_modal .buttons input[type=submit],
.plat_title_modal .buttons button, .plat_title_modal .buttons input[type=submit] {
    width: 350px;
    box-sizing: border-box;
    border-radius: 75px;
    color: white;
    background: #F07D00;
    font-weight: 600;
    font-size: 24px;
    font-family: 'Exo 2', sans-serif;
    padding: 13px;
    border: 0;
    cursor: pointer;
}

.message_modal .buttons .cancel, .plat_title_modal .buttons .cancel {
    margin-left: 1em;
    border: 2px solid #F07D00;
    color: #F07D00;
    background: white;
}

.message_modal .sbc {
    width: 80%;
    margin: auto;
}

.modal_bg_read_all .sbc p {
    margin: 0;
}

.message_modal .read_all_text {
    font-family: 'Exo 2', sans-serif;
    font-size: 22px;
    line-height: 130%;
    overflow: auto;
    max-height: 450px;
    margin: 30px auto;
    padding-right: 10px;
    box-sizing: border-box;
}

.message_modal input[type="date"] {
    margin-bottom: 0;
    margin-left: 0.75em;
}

/*** End of modal ***/

.login .column-1 {
    width: 50%;
}

.login .column-2 {
    display: flex;
    justify-content: center;
    width: 50%;
}

.no-style-href {
    text-decoration: none;
}

.file_name_xls {
    margin: 0 0 15px 20px;
    color: #646464;
    font-size: 15px;
    min-height: 1.2em;
}

.error {
    background: #F7C29B;
    color: #3D1A00;
    font-size: 24px;
    display: flex;
    align-items: center;
    border-radius: 75px;
    padding: 8px;
    width: 93%;
    margin: auto auto 30px;
}

.error:last-child {
    margin-bottom: 0;
}


.error .svg-frame {
    height: 54px;
    width: 54px;
}

.error_section {
    margin-top: 50px;
    margin-bottom: 70px;
}

.ind-plan {
    margin-top: 40px;
}

.ind-plan button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ind-plan button span {
    margin-top: 15px;
}

.fe {
    display: flex;
    justify-content: flex-end;
}

.choose_monitor {
    color: #1C396E;
    cursor: pointer;
}

.table_modal {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    padding: 40px 70px 1px;
}

.table_modal .styled-table {
    margin-top: 0;
}

.table_modal .styled-table tbody tr {
    background-color: #BBBBBB;
}

.table_modal .styled-table tbody tr:hover {
    background-color: #F07D00;
}

.table_modal_overflow {
    max-height: 500px;
    overflow: auto;
}

.fe a {
    margin-left: 60px;
}

.blue-span {
    color: #1C396E;
}

.link-category-header {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    height: 79px;
    line-height: 79px;
}

.links .entry {
    height: 50px;
    width: 340px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #000000;
}

.links .entry:last-child {
    border-bottom: none;
}

.links .entry a {
    text-decoration: none;
    font-size: 20px;
    line-height: 30px;
    color: #000000;
}

.info-page {
    text-align: center;
}

.info-page .box {
    padding: 0 33px 46px;
}

.info {
    width: 69%;
    text-align: left;
}

.info a {
    text-decoration: none;
    color: #000000;
}

.info .category-header {
    font-weight: 600;
}

ul {
    list-style-type:disc;
}

.info-page h3 {
    color: #848484;
}

.errorPage {
    height: calc(100vh - 487px);
    width: 100%;
}

td button {
    background: none;
    border: none;
    font-size: 22px;
    text-decoration: underline;
    cursor: pointer;
}

.styled-table tr td a {
    color: #000000;
}

#sent-message .box {
    margin-top: 80px;
    margin-bottom: 60px;
    padding: 35px 65px;
}

#sent-message .box .sbc {
    width: 85%;
    margin: auto;
}

#sent-message .box .sbc p {
    margin: 0;
}

#sent-message input[type=submit] {
    all: unset;
    color: #1C396E;
    text-decoration: underline;
    cursor: pointer;
}

#sent-message .box > p {
    margin-top: 35px;
    margin-bottom: 0;
}

.box > .box > .sent-message-modal-date {
    margin-left: 50px;
    margin-bottom: 15px;
}

.truncate-overflow {
    --max-lines: 3;
    max-height: calc(1.2em * var(--max-lines));
    overflow: hidden;
}

/*.truncate-overflow::before {*/
/*    position: absolute;*/
/*    content: "...";*/
/*    bottom: 0;*/
/*    right: 0;*/
/*}*/

.masked-value {
    cursor: pointer;
}

.table-delete-button {
    background: none !important;
    color: red !important;
    padding: 0 !important;
    width: 100%;
    cursor: pointer;
    border: 0;
}

.attestation-modal {
    position: relative;
    width: 50%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.attestation-modal button, #reply_form input[type=submit], #reply_form .cancel {
    border-radius: 75px;
    font-size: 26px;
    border: none;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    background: #F07D00;
    padding: 13px 55px;
    color: white;
}

.attestation-modal p {
    line-height: 150%;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.7em;
}

.attestation-reports {
    margin-top: 2.8em;
    display: flex;
    justify-content: space-evenly;
}

.attestation-reports input[type=submit] {
    font-size: 1.1em;
    border: 3px solid #1C396E;
    border-radius: 75px;
    line-height: 1.63em;
    margin-bottom: 0;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    background: white;
    padding: 0.75em 2.7em;
    color: #1C396E;
}

.chart_box {
    width: 41.7%;
}

.plan-table td, .plan-table th {
    border: 1px solid black;
    padding: 15px 30px;
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
}

.plan-table .td-button {
    vertical-align: middle;
    text-align: center;
    background: #F07D00;
    color: #ffffff;
    font-weight: 600;
    border-bottom-left-radius: 3em;
    border-bottom-right-radius: 3em;
    border: 0;
    padding: 20px;
}

.plan-table thead tr {
    background: #1C396E;
    color: #ffffff;
}

.message_modal .create_new {
    margin: 0;
}

.plat_title_modal {
    width: 85%;
    margin: auto;
    padding: 50px 141px 70px;
    box-sizing: border-box;
    position: relative;
}

#new_plan_modal textarea,
#note_modal textarea,
#assign_task_modal textarea {
    white-space: pre-wrap;
    resize: none;
    font-family: 'Exo 2', sans-serif;
    font-size: 20px;
    padding: 15px 20px;
    width: 100%;
    height: 7em;
    border: #1C396E 2px solid;
    box-sizing: border-box;
    margin-bottom: 30px;
}

#assign_task_modal select {
    width: 18em;
}

#subjects_scores .styled-table {
    font-size: 20px;
}

#students_scores {
    font-size: 1em;
}

#students_scores .styled-table tr {
    text-align: center;
}

.plan-table td button {
    background: #F07D00;
    color: white;
    font-size: 25px;
    display: flex;
    align-items: center;
    border-radius: 75px;
    padding: 10px 20px;
    text-decoration: none;
    margin: 0 auto;
}

.box-container {
    padding: 0 2.5em;
}

.box-container h3 {
    margin: 1em 1.5em;
    font-weight: 700;
    font-size: 1.25em;
}

.editable-plan-title {
    white-space: pre-line;
}

.edit-plan-title {
    font-size: 40px;
    text-align: center;
    color: #0F153C;
    margin: 0 auto 45px;
    border: 0;
    font-family: 'Exo 2', sans-serif;
    font-weight: bold;
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #1C396E;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Показуємо випадаючий список при наведенні на "Атестація" */
.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

#reply_form {
    margin-top: 1.5em;
}

#reply_form .quill-editor {
    margin-top: 1.5em;
}

.ql-container {
    font-size: 1em;
    font-family: 'Exo 2', sans-serif;
}

#reply_form .cancel {
    margin-left: 1em;
    border: 2px solid #F07D00;
    color: #F07D00;
    background: white;
}

#reply_form #quill-editor {
    margin-bottom: 1em;
}

.buttons .read-all {
    background: #1C396E !important;
}

#reply-section #edit p {
    margin: 0;
}

#sent-message .reply {
    margin-bottom: 1em;
}

#sent-message .reply p {
    margin: 0;
}

/* --- ATTESTATION PAGE --- */

.att-layout {
    display: flex;
    gap: 2em;
    align-items: flex-start;
    margin-top: 2em;
}

.att-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    padding: 2em 2.2em 2.2em;
}

.att-card h2 {
    font-size: 1.3em;
    font-weight: 700;
    color: #0F153C;
    margin: 0 0 1.2em 0;
    text-align: left;
}

.att-create {
    flex: 1.4;
}

.att-reports {
    flex: 1;
}

.att-fields {
    display: flex;
    gap: 1.2em;
    margin: 1.4em 0;
}

.att-field {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.att-field label {
    font-size: 0.9em;
    color: #444;
    margin-bottom: 0.4em;
}

.att-field input[type=text],
.att-field select {
    border: 1.5px solid #ccc;
    border-radius: 8px;
    padding: 0.55em 0.9em;
    font-size: 1em;
    font-family: 'Exo 2', sans-serif;
    color: #333;
    outline: none;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
}

.att-field input[type=text]::placeholder {
    color: #aaa;
}

.att-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    padding-right: 2.2em;
    appearance: none;
    -webkit-appearance: none;
}

.att-submit-btn {
    width: 100%;
    background: #F07D00;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75em;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    cursor: pointer;
    margin-top: 0.4em;
}

.att-submit-btn:hover {
    background: #d96e00;
}

.att-report-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85em 0;
    border-bottom: 1px solid #eee;
}

.att-report-item:last-child {
    border-bottom: none;
}

.att-report-left {
    display: flex;
    align-items: center;
    gap: 0.7em;
}

.att-report-icon {
    background: #FFF0E0;
    border-radius: 8px;
    width: 2.2em;
    height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.att-report-icon img {
    width: 1.2em;
}

.att-report-label {
    font-size: 1em;
    color: #222;
}

.att-report-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    color: #F07D00;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
}

.att-report-download:hover {
    text-decoration: underline;
}

.inputfile {
    opacity: 0;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.file-input-wrap {
    position: relative;
    display: inline-block;
}
