/* General styles */

*, *::before, *::after {
    box-sizing: border-box;
    font-family: inherit;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: left;
    align-items: stretch;
    flex-direction: column;
    background-color: var(--bg1);
    height: 100%;
    width: 100%;
    position: absolute;
}

.overlay {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg1);
    opacity: 0.8;
    z-index: 54;
}

.font {
    color: var(--c1);
    text-align: center;
    font: normal normal normal 18px;
    letter-spacing: 0px;
}

.font-green {
    color: var(--green);
}

.font-red {
    color: var(--red);
}

.error {
    border: 1px solid var(--error) !important;
}

/* Margin start */
.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.50rem !important; }
.ms-3 { margin-left: 1.00rem !important; }
.ms-4 { margin-left: 1.50rem !important; }
.ms-5 { margin-left: 3.00rem !important; }

/* Margin end */
.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.50rem !important; }
.me-3 { margin-right: 1.00rem !important; }
.me-4 { margin-right: 1.50rem !important; }
.me-5 { margin-right: 3.00rem !important; }

.br-left {
    border-radius: 10px 0 0 0 !important;
}

.br-right {
    border-radius: 0 10px 0 0 !important;
}

.pd-left {
    padding-left: 20px;
}

.pd-right {
    padding-right: 20px;
}

.pd-5 {
    padding: 5px;
}

.link {
    color: var(--c1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: break-spaces;
}

.control {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    height: 50px;
    background: var(--button-bg) 0% 0% no-repeat padding-box;
    border-radius: 10px;
    opacity: 1;
    width: 45%;
}

.menu-item {
    flex: 0 0 auto;
    width: 33%;
    height: 45px;
    background: transparent;
    border-radius: 10px;
    opacity: 1;
    border: 0;
    cursor: pointer;
    white-space: break-spaces;
}

    .menu-item:hover {
        background: var(--card-bg) 0% 0% no-repeat padding-box;
    }

.menu-item-selected {
    background: var(--card-bg) 0% 0% no-repeat padding-box;
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 10;
    flex-grow: 10;
    margin: 0 25px;
    overflow: hidden;
}

.content-header {
    position: relative;
    display: flex;
    margin: 15px 0;
    font-size: 18px;
    color: var(--c1);
    align-items: center;
}

.content-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.content-body-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.content-body-list::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar);
}

.content-body-list {
    padding: 2px;
    flex-shrink: 1;
    overflow: auto;
    scrollbar-color: var(--scrollbar) transparent;
    scrollbar-width: thin;
}

/* General styles: buttons */

.button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--button-bg) 0% 0% no-repeat padding-box;
    border-radius: 10px;
    background-color: var(--button-bg);
    color: var(--c1);
    text-align: center;
    text-decoration: none;
    font-size: 1.25rem;
    cursor: pointer;
}

    .button:hover, .button:active {
        background-color: var(--highlight-bg);
    }

button.button-disabled {
    opacity: 0.4;
    outline: none;
    border: none;
    box-shadow: none;
    pointer-events: none;
    cursor: not-allowed !important;
}

/* General styles: modals */

.modal {
    border: 0;
    color: var(--c1);
    background: var(--card-bg) 0% 0% no-repeat padding-box;
    border-radius: 10px;
    opacity: 1;
}

    .modal::backdrop {
        background: #232323;
        opacity: 90%;
    }

/* General styles: forms and inputs */

.form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.input-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0 20px;
}

.input-label {
    height: 21px;
    color: var(--c1);
    text-align: left;
    font: normal normal normal 14px;
    letter-spacing: 0px;
    opacity: 1;
}

.input-field {
    height: 41px;
    border: 1px solid var(--stroke);
    outline: none;
    margin: 2px;
    padding: 8px;
    color: var(--c1);
    min-width: 80px;
    background: var(--forms) 0% 0% no-repeat padding-box;
}

.input-disabled {
    opacity: 0.4;
}

.svg {
    width: 16px;
    height: 16px;
    fill: var(--c1);
}

.div1 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.hover:hover {
    background: red 0% 0% no-repeat padding-box;
}

.div2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error1 {
    display: none;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    margin: 3px;
}

.pods-view {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 75%;
    left: 25%;
    bottom: 0;
    top: 100px;
    background: var(--bg2);
    z-index: 5;
}

.show {
    display: flex;
}

th.innovaphone-ui1-table {
    height: 42px;
    background: var(--bg2) 0% 0% no-repeat padding-box;
    opacity: 1;
    color: var(--c2);
    text-align: left;
    font: normal normal normal 16px;
    letter-spacing: 0px;
    padding-left: 20px;
}

innovaphone-ui1-table {
    height: 42px;
    background: var(--bg2) 0% 0% no-repeat padding-box;
    opacity: 1;
    color: var(--c2);
    text-align: left;
    font: normal normal normal 16px;
    letter-spacing: 0px;
    padding-left: 20px;
}

tr.innovaphone-ui1-table {
    background-color: var(--bg1);
    border: 1px solid var(--c2);
}

td.innovaphone-ui1-table {
    height: 42px;
    background: var(--bg3) 0% 0% no-repeat padding-box;
    opacity: 1;
    color: var(--c1);
    text-align: left;
    font: normal normal normal 16px;
    letter-spacing: 0px;
}

input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.tenants-container {
    container-type: inline-size;
    container-name: tenants-table;
}

@container tenants-table (max-width: 850px) {

    table.innovaphone-ui1-table {
        width: 100%;
    }

    tr.innovaphone-ui1-table {
        margin-bottom: 15px;
    }

    td.innovaphone-ui1-table {
        padding: 0;
        margin-bottom: 2px;
    }

        td.innovaphone-ui1-table::before {
            margin-right: 20px;
            color: var(--c2);
            min-width: 120px;
            width: 25%;
            text-align: left;
            background-color: var(--bg2);
            height: 95%;
            align-content: center;
            padding-left: 15px;
        }
}

@media(max-width: 1200px) {
    .pods-view {
        width: 100%;
        left: 0;
    }
}

@media(max-width: 400px) {
    .input-actions button > :nth-child(1) > :nth-child(2) {
        display: none;
    }

    .input-actions button > :nth-child(1) > :nth-child(1) {
        margin: 0 !important;
    }

    tr.innovaphone-ui1-table > :nth-child(5) {
        height: 80px;
    }

    tr.innovaphone-ui1-table > :nth-child(5) div {
        max-width: 42%;
        flex-wrap: wrap;
    }
}

@media(max-width: 1100px) {
    .control {
        width: 100%;
    }
}
