﻿
@media only screen and (max-width: 768px) {
    /* For mobile phones: */

    /* Edit view dialog: */
    .modal {
        max-width: none;
        min-width: 10px;
        width: 100vw;
        top: 0;
        left: 0;
        height: 100dvh;
        display: block;
        position: absolute;
        margin: 20px 0 20px;
        transition: all 0.5s ease-in-out;
    }

    .modal-wrapper.open .modal {
        opacity: 1;
    }



    scroll-container {
        display: block;
        width: 100vw;
        height: 85dvh;
    }

    .modal-wrapper.open .modal {
        margin-top: 0px;
        opacity: 1;
    }
    /* login: */
    .box {
        position: absolute;
        left: 0%;
        top: 0%;
        width: 100%;
        height: 100%;
        transform: none;
        background-color: rgba(0, 0, 0, 0.73);
        border-radius: 3px;
        padding: 0px;
    }

    form {
        padding: 0px 50px;
        margin-top: 10em;
    }

    .btn {
        margin-top: 0px;
        position: absolute;
    }

    .contentDialog .btn {
        left: 55%;
        width: 50%;
        position: relative;
        margin-top: 0px;
        margin-bottom: 5px;
        bottom: 1dvh;
    }


        .contentDialog .btn.save {
            left: 75%;
            width: 20%;
            position: absolute;
            margin-top: 0px;
            bottom: 2dvh;
        }

    .mail {
        width: 80%;
        min-height: 90%;
        padding: 20px;
        margin: 5px;
        overflow-wrap: break-word;
    }

    .textBlock {
        width: 80%;
        min-height: 90%;
        padding: 20px;
        margin: 5px;
        overflow-wrap: break-word;
    }

    .loading {
        min-height: 65vh;
    }
}

@media screen and (max-width: 601px) {
    .rwd-table tr:nth-child(2) {
        border-top: none;
    }

    .rwd-table td {
        max-width: 450px;
        word-wrap: break-word;
        word-break: break-word;
        height: auto;
        font-size: 10px;
    }
    .rwd-table th,
    .rwd-table td {
        padding: .1em 1em;
    }
        .rwd-table td[data-th='-'] {
            display: none;
        }

    .input-container input {
        font-size: 10px;
    }

        .input-container input:focus ~ label,
        .input-container input:valid ~ label {
            font-size: 8px;
        }

    .input-container label {
        font-size: 10px;
    }

    .checkbox {
        font-size: 10px;
    }

    .btn-Add {
        padding: 2px;
        width: 24px;
        height: 24px;
        font-size: 8px;
    }

    .button.phone.create {
        height: 24px;
    }

    .btn {
        font-size: 10px;
        padding: 5px 10px;
    }

    .page-scroll .btn span {
        font-size: 25px;
    }

    .page-scroll .btn {
        padding: 1px;
        width: 30px;
        height: 30px;
    }

        .page-scroll .btn.btn-up {
            margin-bottom: 90px;
            margin-right: 10px;
        }
    .rwd-table td[class*='td_']:before {
        content: none;
    }

    .rwd-table td[class*='td_'] {
        display: flex; 
    }
    .rwd-table td[data-th='--']:before {
        content: none;
    }

    .rwd-table td[data-th='--'] {
        text-align: center;
    }
        .rwd-table td[class*='td_'] button {
            margin: 0 99px 0 0;
        }
    .rwd-table td:empty {
        display: none;
    }
    tr.off {
        position: relative;
    }
        tr.off::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 20%;
            width: 60%;
            height: 2px; /* товщина лінії */
            background-color: red; /* колір лінії */
            transform: rotate(-45deg); /* кут нахилу лінії */
            transform-origin: center;
        } 
    /* Початковий стан blockquote - прихований */
    blockquote {
        margin: 0 0 0 120px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }

        /* Клас для розкриття blockquote */
        blockquote.open { 
            max-height: 500px; /* Підлаштуйте висоту за потребою */
        }

        /* Додаткова анімація для плавності */
        blockquote p {
            opacity: 0;
            transition: opacity 0.5s ease-out;
        }

        blockquote.open p {
            opacity: 1;
        }
}
