body {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
    touch-action: auto;
    font-family: 'Montserrat', sans-serif;
}


body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
    margin-left: 0;
}

.wrapper .content-wrapper {
    min-height: 100vh;
}

h1.text__welcome {
    padding: 50px 0;
    text-align: center;
    font-size: 2rem;
}

.btn-primary {
    background-color: #2fb3c1;
    border: unset;
}

.clinic__add {
    margin-top: 50px;
}

#file {
    height: 60px;
    padding-top: 15px;
}

.mb {
    padding-bottom: 40px;
}

.text-success {
    margin-top: 13px;
}

.btn__prev {
    margin-left: auto;
    display: block;
    max-width: 350px;
    background-color: #007bff;
    position: fixed;
    bottom: 0;
    right: 20px;
}

.logo {
    max-width: 100px;
}


.first__screen {
  position: relative;
  background-image: url('img/bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 300px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 53px;
}

.first__screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); 
}

.first__screen h1 {
  position: relative; 
  font-weight: 700;
  text-align: center;
}

.lab h3 {
    text-align: center;
}

/*----форма входа----*/
.login-container {
    width: 350px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 50px auto;
    border-top: 3px solid #26A6C9; 
}


.login-title {
    font-size: 24px;
    color: #26A6C9;
    margin-bottom: 5px;
}


.login-subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}


.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 12px 40px 12px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.login-button {
    width: 100%;
    background: #26A6C9;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.login-button:hover {
    background: #1f8ba6;
}

.error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

.lab p {
    text-align: center;
}


@media (max-width: 992px) {
    .first__screen h1 {
        font-size: 1.5rem;
    }
}


@media (max-width: 380px) {
    .login-container {
        width: 314px;
    }
}




/*-----таблица юзера----*/
table#example {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 0 1px rgba(0,0,0,.125),0 1px 3px rgba(0,0,0,.2);
}

table#example th,
table#example td {
    border: 1px solid #ddd;
    padding: 5px 8px;
    text-align: left;
}

table#example th {
    background-color: #f4f4f4;
}

/* Скрытые колонки */
table#example .hidden-column {
    display: none;
}

table#example .extra-columns {
    display: none;
    padding-left: 30px;
}



table#example .extra-columns td:first-child {
    font-weight: bold;
    padding-top: 8px;
    padding-bottom: 8px;
}

.btn__table {
    background: #2fb3c1;
}



table#example .toggle-button {
    cursor: pointer;
    color: #fff;
    font-size: 20px;
    margin: auto;
    display: block;
    text-align: center;
}

#ex {
    width: 100%;
    background: #FFFFFA;
}

.search-container {
    text-align: right;
    margin-bottom: 14px;
}

#pagination {
    margin-top: 20px;
}

#pagination button {
    background: #2fb3c1;
    color: #fff;
    margin-right: 10px;
    background: #2fb3c1;
    color: #fff;
    margin-right: 10px;
    border: none;
    padding: 5px 10px;
    font-weight: 600;
    font-size: 1.2rem;
}


.ex__input tbody tr td input {
    width: 100%;
}

.st__margin {
    margin-top: 8px;
}


.tbd__wrap tbody td input {
    width: 100%;
}

#file-name-display button {
    background: #2fb3c1;
    border: none;
    color: #fff;
    display: inline-block;
    margin-top: 6px;
}



#statuss option[value="В архиве"] {
    background-color: #4CAF50;
    color: #000;
}

#statuss option[value="Готово"] {
    background-color: #FFEB3B; 
    color: #000;
}

#statuss option[value="В работе"] {
    background-color: #F44336;
    color: #fff;
}


#statuss option[disabled] {
    background-color: #ccc;
    color: #000;
}



#status option[disabled] {
    background-color: #ccc;
    color: #000;
}


#status option[value="В архиве"] {
    background-color: #4CAF50;
    color: #000;
}

#status option[value="Готово"] {
    background-color: #FFEB3B; 
    color: #000;
}

#status option[value="В работе"] {
    background-color: #F44336;
    color: #fff;
}





.status-archive { background-color: #4CAF50!important; color: #000!important; }
.status-ready { background-color: #FFEB3B!important; color: #000!important; }
.status-inwork { background-color: #F44336!important; color: white!important; }





#statuss option[value="В архиве"]:hover {
    background: #4CAF50 !important;
    color: #000 !important;
}

#statuss option[value="Готово"]:hover {
    backgroundr: #FFEB3B !important;
    color: #000 !important;
}

#statuss option[value="В работе"]:hover {
    background: #F44336 !important;
    color: #fff !important;
}

#status option[value="В архиве"]:hover {
    background: #4CAF50 !important;
    color: #000 !important;
}

#status option[value="Готово"]:hover {
    background: #FFEB3B !important;
    color: #000 !important;
}

#status option[value="В работе"]:hover {
    background: #F44336 !important;
    color: #fff !important;
}






td.green {
    background-color: #4CAF50
}

/* Статусы в кабинете можно выделять и копировать на macOS/Safari */
td.red,
td.yellow,
td.green {
    cursor: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}


td.yellow {
    background-color: #FFEB3B
}

td.red {
    background-color: #F44336;
    color: #fff;
}


@media (max-width: 768px) {

    table#example td:nth-child(n+7),
    table#example th:nth-child(n+7) {
        display: block;
    }

    table#example td {
        width: 100%;
    }

    table#example tr {
        display: block;
        margin-bottom: 15px;
    }

    table#example th,
    table#example td {
        width: 100%;
    }
}

.delete-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.delete-modal.is-open {
    display: flex;
}

.delete-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    animation: deleteFadeIn 180ms ease forwards;
}

.delete-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 360px);
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px 22px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    animation: deletePopIn 180ms ease forwards;
    text-align: center;
}

.delete-modal.is-closing .delete-modal__backdrop {
    animation: deleteFadeOut 160ms ease forwards;
}

.delete-modal.is-closing .delete-modal__dialog {
    animation: deletePopOut 160ms ease forwards;
}

.delete-modal__title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: #1f2937;
}

.delete-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.delete-modal__actions .btn {
    min-width: 92px;
}

@keyframes deleteFadeIn {
    to { opacity: 1; }
}

@keyframes deleteFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes deletePopIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes deletePopOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(8px) scale(0.98); }
}
