body {
    background-color: #F9FBFC;
    font-family: "Inter", sans-serif;
    margin: 0;
    box-sizing: border-box;
}

header {
    font-size: 24px;
    font-weight: bold;
    background-color: #F9FBFC;
    display: flex;
    align-items: center;
}

.wrapper-header {
    box-sizing: border-box;
    width: 90%;
    margin: 0 auto;
    margin-top: 15px;
    padding: 15px 35px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    background-color: #FEFEFE;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.07);
}

.wrapper-request {
    width: 35%;
    margin: 0 auto;
    margin-top: 35px;
    margin-bottom: 35px;
    background-color: #FEFEFE;
    border-radius: 7px;
    padding: 35px 35px 60px 35px;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.07);
}

.name {
    border-left: 7px solid #32db84;
    font-weight: 600;
    padding: 5px 0px 5px 10px;
    margin: 0;
}

.wrapper-main-panel {
    width: 90%;
    margin: 0 auto;
    margin-top: 35px;
    display: grid;
    justify-items: center;
    padding-bottom: 45px;
}

.warning {
    box-sizing: border-box;
    background-color: #f5ffef;
    border: 1px solid #32db84;
    padding: 15px 10px;
    width: 100%;
    display: flex;
    align-items: center;
    border-radius: 7px;
    gap: 10px;
    margin-bottom: 25px;
}

.warning-icon {
    height: 70px;
    width: 20%;
    text-align: center;
}

.text-warning {
    width: 80%;
    text-align: center;
}

.h3-warning {
    font-size: 20px;
    margin: 5px 0;
}

.p-warning {
    font-size: 16px;
    margin: 10px 0 5px;
    line-height: 1.3;
}

.elements {
    display: flex;
    width: 900px;
    align-items: stretch;
    gap: 2%;
    margin-right: auto;
    margin-left: auto;
}

.form {
    width: 100%;
    margin-top: 10px;
}

.h-form {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 550;
}

.forms {
    font-family: inherit;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 7px;
    padding: 10px 40px 10px 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.block-wrapper {
    width: 100%;
    display: grid;
    box-sizing: border-box;
    gap: 15px;
}

.forms-panel {
    width: fit-content;
    text-align: center;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 7px;
    padding: 10px 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    border: 1px solid #32db84;
}

.date-panel {
    display: flex;
    padding: 0;
}

.data-panel-date {
    border: 1px solid #32db84;
    border-radius: 7px;
    font-size: 14px;
    padding: 0 8px;
}

.forms[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.forms[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.forms:focus {
    outline: none;
    border-color: #32db84;
    box-shadow: 0 0 0 2px rgba(50, 219, 132, 0.2);
}

.forms.input-error {
    border-color: #e74c3c;
}

.forms.input-error:focus {
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.wrapper-choices {
    display: flex;
    width: 100%;
    gap: 15px;
}

.block-choice {
    margin: 15px 0 0;
    width: 100%;
}

.block-choice textarea.forms {
    width: 100%;
    resize: none;
    box-sizing: border-box;
}

.choice-clinic {
    text-align: center;
}

.button-request {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    background-color: #32db84;
    border: none;
    border-radius: 7px;
    display: block;
    width: 100%;
    padding: 20px 10px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button-request:hover {
    background-color: #20cd74;
}

.agree {
    margin: 15px 0;
}

.toggle-buttons {
    display: inline-flex;
}

.toggle-btn {
    width: 113px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    border-radius: 0;
    padding: 0 10px;
    border: 1px solid #32db84;
    background-color: #fff;
}

.toggle-btn + .toggle-btn {
    margin-left: -1px;
}

.toggle-btn:first-child {
    border-radius: 7px 0 0 7px;
}

.toggle-btn:last-child {
    border-radius: 0 7px 7px 0;
}

.toggle-btn.active {
    background-color: #32db84;
    color: white;
    font-weight: 500;
    box-sizing: border-box;
}

.excel-export {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: #494949;
    text-decoration: underline;
    cursor: pointer;
}

.excel-export:hover {
    color: #20cd74;
}

.excel-export:active {
    opacity: 0.7;
}

.configs {
    display: flex;
    gap: 10px;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.btn-update {
    box-sizing: border-box;
    display: block;
}

.btn-update img {
    width: 22px;
    height: 22px;
}

.update-page {
    width: 33px;
    height: 33px;
    box-sizing: border-box;
    background-color: #20cd74;
    border: 0;
    padding: 3px 3px;
    margin: 0;
    cursor: pointer;
    border-radius: 7px;
}

.btn-update:hover {
    color: #20cd74;
}

.btn-update:active {
    opacity: 0.7;
}

.account {
    font-size: 16px;
    font-weight: 600;
    padding: 5px 15px;
    border: 1px solid #20cd74;
    border-radius: 7px;
    box-shadow: 2px 2px 2px rgba(32, 205, 116, 0.1);
}

.block {
    gap: 50px;
    box-sizing: border-box;
    background-color: #fff;
    width: 100%;
    padding: 15px 40px;
    border-radius: 7px;
    display: flex;
    box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.1);
}

.left-block {
    width: 60%;
    display: flex;
    gap: 40px;
}

.user-icon {
    width: 60px;
}

.pacient-info {
    font-size: 15px;
    display: grid;
    gap: 1px;

}

.order-time {
    font-size: 16px;
}

.fl-info {
    display: flex;
    column-gap: 10px;
    align-items: center;
}

.fl-info > p {
    margin: 0;
    font-weight: 300;
}

p.pacient-name {
    font-size: 18px;
    font-weight: 600;
}

.address-info {
    display: flex;
}

.address-info > p {
    margin: 0;
}

.address-about {
    font-weight: 300;
}

.phone-info {
    display: flex;
}

.phone {
    font-weight: 300;
}

.phone-info > p {
    margin: 0;
}

.reason-info {
    display: block;
    margin-bottom: 5px;
}

.reason-about {
    display: inline;
    font-weight: 300;
}

.reason-info > p {
    margin: 0;
}

.name-of-h {
    font-weight: 600;
}

.time-of-order {
    font-size: 13px;
    color: #929292;
    margin: 0;
}

.middle-block {
    align-content: center;
    margin-right: auto;
    width: 20%;
    box-sizing: border-box;
}

.name-of-clinic {
    width: 100%;
    font-size: 15px;
    font-weight: 500;
    padding: 15px 20px;
    background-color: rgba(50, 219, 70, 0.1);
    border-radius: 7px;
    text-align: center;
    box-sizing: border-box;
}

.right-block {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

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

.buttons-for-actions button {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    color: #fff;
    font-weight: 500;
    padding: 3px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.buttons-for-actions button img {
    width: 20px;
    height: 20px;
    display: block;
}

.btn-done {
    background-color: #E6FFEC;
    border: 1px solid #18BF71;
}

.btn-done:hover {
    background-color: #AEFFC2;
    cursor: pointer;
}

.btn-cancel {
    background-color: #FFDADB;
    border: 1px solid #F64043;
}

.btn-cancel:hover {
    background-color: #F6B2B3;
    cursor: pointer;
}

.btn-edit {
    background-color: #E3F1FF;
    border: 1px solid #7CACFF;
}

.btn-edit:hover {
    background-color: #B3D6F7;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    color: #aaa;
    padding: 60px 20px;
    font-size: 16px;
}

    .loading-state {
    text-align: center;
    color: #aaa;
    padding: 60px 20px;
    font-size: 16px;
}

.error-banner {
    background: #fff0f0;
    border: 1px solid #ff4747;
    border-radius: 7px;
    color: #cc0000;
    padding: 12px 20px;
    margin: 16px 0;
    display: none;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.visible {
    display: flex;
}

.modal-panel {         
    background: #fefefe;         
    border-radius: 7px;         
    padding: 30px 35px 35px;          
    width: 420px;         
    max-width: 90%;         
    max-height: 90vh;        
    overflow-y: auto;         
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);       
}
            
.modal-panel h3 {      
    margin: 0 0 20px;    
    font-size: 18px;
            
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.modal-actions button {
    padding: 10px 22px;
    border-radius: 10px;
    border: 0;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.modal-btn-save {
    background: #32db84;
    color: #fff;
}

.modal-btn-save:hover {
    background: #23b56d;
}

.modal-btn-cancel {
    background: #eee;
    color: #333;
}

.modal-btn-cancel:hover {
    background: #ddd;
}
.modal-btn-danger {
    background: #ff4747;
    color: #fff;
}

.modal-btn-danger:hover {
    background: #e02e2e;
}

.modal-panel-small {
    width: 360px;
}

.modal-panel-small h3 {
    margin-bottom: 0;
}

.icon-link {
    font-size: 13px;
    text-decoration: none;
}

.icon-link-logout {
    color: #888;
    margin-left: 8px;
}

.icon-link-settings {
    color: #555;
    margin-left: 8px;
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.elements-tight {
    gap: 0;
}

.card-align-start {
    align-self: start;
}

.table-loading {
    color: #aaa;
    padding: 20px;
}

.nav-link {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 7px;
    border: 1px solid #ccc;
    margin-right: 8px;
    transition: border-color 0.2s, color 0.2s;
}

.nav-link:hover {
    border-color: #32db84;
    color: #32db84;
}

.mgmt-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.1);
    padding: 24px 28px;
    box-sizing: border-box;
}

.card h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    border-left: 5px solid #32db84;
    padding-left: 10px;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th,
.user-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.user-table th {
    color: #888;
    font-weight: 500;
}

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

.user-table tr:hover td {
    background: #fafafa;
}

.btn-delete {
    font-size: 13px;
    color: #cc0000;
    background: none;
    border: 1px solid #ffcccc;
    border-radius: 5px;
    padding: 4px 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-delete:hover {
    background: #fff0f0;
}

.btn-delete:disabled {
    opacity: 0.4;
    cursor: default;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

.field-input {
    font-size: 14px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 7px;
    padding: 9px 12px;
    box-sizing: border-box;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field-input:focus {
    outline: none;
    border-color: #32db84;
    box-shadow: 0 0 0 2px rgba(50, 219, 132, 0.2);
}

.btn-create {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #32db84;
    border: none;
    border-radius: 7px;
    width: 100%;
    padding: 11px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-create:hover {
    background: #20cd74;
}

.form-msg {
    font-size: 13px;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 10px;
    display: none;
}

.form-msg.ok {
    background: #efffef;
    color: #1a8a1a;
    border: 1px solid #a0e0a0;
}

.form-msg.err {
    background: #fff0f0;
    color: #cc0000;
    border: 1px solid #ffaaaa;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7f7f7;
}

.login-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 1px 1px 10px 0px rgba(0, 0, 0, 0.1);
    padding: 40px 48px;
    width: 360px;
    box-sizing: border-box;
}

.login-title {
    border-left: 8px solid #32db84;
    font-size: 22px;
    font-weight: 500;
    padding: 6px 12px;
    margin: 0 0 28px 0;
}

.login-field {
    margin-bottom: 16px;
}

.login-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.login-input {
    font-size: 15px;
    color: #333;
    background-color: #fff;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 7px;
    padding: 10px 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:focus {
    outline: none;
    border-color: #32db84;
    box-shadow: 0 0 0 2px rgba(50, 219, 132, 0.2);
}

.login-btn {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #32db84;
    border: none;
    border-radius: 7px;
    display: block;
    width: 100%;
    padding: 14px 10px;
    margin-top: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-btn:hover {
    background-color: #20cd74;
}

.login-error {
    display: none;
    background-color: #fff0f0;
    border: 1px solid #ff4747;
    border-radius: 7px;
    color: #cc0000;
    font-size: 14px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.success-wrapper {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 1px 1px 10px 0px rgba(0, 0, 0, 0.1);
    padding: 40px 48px;
    text-align: center;
    max-width: 480px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.success-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #333;
}

.success-text {
    font-size: 15px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.6;
}

.success-link {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background-color: #32db84;
    border-radius: 7px;
    padding: 12px 28px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.success-link:hover {
    background-color: #20cd74;
}

@media screen and (min-width: 800px) {
  
}

/* адаптив под мобильные устройства */
@media screen and (min-width: 300px) and (max-width: 700px) { 

    header {
        font-size: 20px;
    }

    .wrapper-header {
        padding: 10px 20px;
    }

    .wrapper-request {
        width: 90%;
        box-sizing: border-box;
        padding: 20px 20px 40px 20px;
        margin-top: 15px;
        margin-bottom: 15px;

    }

    .success-wrapper {
        width: 90%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .login-card {
        width: 90%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .warning {
        padding: 10px;
    }

    .warning-icon {
        display: none;
    }

    .wrapper-choices {
        display: block;
    }

    .text-warning {
        width: 85%;
        margin: 0 auto;
    }

    .h3-warning {
        font-size: 18px;
        margin: 5px 0;
    }

    .p-warning {
        font-size: 15px;
        margin: 10px 0 5px;
        line-height: 1.3;
    }
}

/* адаптив под планшеты */
@media screen and (min-width: 700px) and (max-width: 1000px) { 

    header {
        font-size: 22px;
    }

    .wrapper-header {
        padding: 10px 20px;
    }

    .wrapper-request {
        width: 90%;
        box-sizing: border-box;
        padding: 30px 30px 40px 30px;
        margin-top: 25px;
    }

    .success-wrapper {
        width: 90%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .login-card {
        width: 90%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .warning {
        padding: 15px 60px;
    }

    .wrapper-choices {
        display: block;
    }

    .text-warning {
        width: 85%;
        margin: 0 auto;
    }

    .h3-warning {
        font-size: 19px;
        margin: 5px 0;
    }

    .p-warning {
        font-size: 16px;
        margin: 10px 0 5px;
        line-height: 1.3;
    }
}



