@import "/assets/css/normalize.css";
@import "/assets/css/base_style.css";
@import "/assets/css/style.css";
@import "/assets//richtexteditor/rte_theme_default.css";
@import "/assets/snack_bar/snackbar.css";

body {
    font-family: 'Roboto';
}

input,
textarea, select {
    padding: 0.3em;
    border-radius: 0.3em;
    border-style: solid;
    margin-bottom: 1em;
    outline: none !important;
    background: #8080801a;
    color: inherit;
}

input:hover,
input:focus-visible,
input:focus,
input:active,
textarea:hover,
textarea:focus-visible {
    border-color: var(--primary) !important;
}

.input_help,
.input_error {
    font-style: normal;
    font-weight: 400;
    font-size: smaller;
    text-align: right;
    height: 22px;
    color: #61677C;
}

input+.input_help,
input+.input_error {
    margin-top: -1em;
}

.input_error {
    color: var(--error);
}

input:invalid,
.error {
    border-color: var(--error);
    color: var(--error);
}

input:read-only,
textarea:read-only {
    opacity: 40%;
    /* background: #F6F6F7;
    border: 2px solid rgba(238, 238, 238, 0.23); */
    /* SHADOW */
    /*box-shadow: -5.00172px -5.00172px 15.0052px #FFFFFF, 5.00172px 5.00172px 15.0052px rgba(174, 174, 192, 0.4);
    border-radius: 12px; */
}

.login_form {
    display: flex;
    flex-direction: column;
}

.login_form .btn {
    font-size: 1.13em;
    line-height: 1.13em;
}

header {
    gap: 1em;
}

header h2 {
    margin: 2px;
}

.card {
    background: inherit;
    box-shadow: 0 0 12px 0 rgb(0 0 0 / 60%);
    margin: 1em;
    border-radius: 7px;
    padding: 0.5em;
    overflow-y: auto;
}

.off-canvas-sidebar,
.sidebar {
    background: var(--primary);
    background: -webkit-gradient(linear, left bottom, left top, from(var(--primary)), to(var(--primarydark)));
    background: linear-gradient(-45deg, var(--primary), var(--primarydark));
    height: calc(100vh - 98px);
    z-index: 1;
    background-size: cover;
    background-position: 50%;
    display: block;
    /* -webkit-box-shadow: 0 0 45px 0 rgb(0 0 0 / 60%); */
    /* box-shadow: 0 0 45px 0 rgb(0 0 0 / 60%); */
    box-shadow: 0 0 12px 0 rgb(0 0 0 / 60%);
    margin: 1em;
    margin-left: -6px;
    border-radius: 7px;
    color: black;
    color: white;
    padding: 0.5em;
    overflow-y: auto;
}

.sidebar li {
    list-style: none;
    display: flex;
    padding: 0.5em;
    border-radius: 0.5em;
    margin-bottom: 0.2em;
    margin-left: 6px;
}

.sidebar li.active,
.sidebar li:hover {
    background: #FFFFFF;
    color: var(--primary);
}

.sidebar a>span {
    margin-left: 1em;
}

.sidebar svg {
    height: 1.15em;
    width: 1.15em;
}

.sidebar.floating {
    position: fixed;
    margin-top: 3em;
}

/* .sidebar.small svg {
    font-size: 1.8em;
} */

.sidebar a {
    color: inherit;
    text-decoration: none;
    text-transform: capitalize;
    display: flex;
    align-items: center;
}

.dashboard {
    display: flex;
    height: calc(100vh - 52px);
}

section{
    overflow-y: auto !important;
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 576px) {
    .dashboard {
        flex-direction: column-reverse;
        height: calc(100vh - 32px);
    }

    .dashboard>*:nth-child(2) {
        overflow: auto;
        margin-bottom: 6em;
    }

    .sidebar {
        position: fixed;
        display: flex;
        gap: 0.5em;
        bottom: 0;
        height: auto;
        width: -webkit-fill-available;
    }

    .sidebar li {
        height: 2em;
        margin-bottom: 0;
    }

    .sidebar a {
        flex-direction: column;
    }

    .sidebar a>span {
        font-size: small;
        margin: 0;
    }
}


tr:hover {
    background: #86868629;
}

th,
td {
    padding: 0.5em;
}

th {
    text-transform: capitalize;
    min-width: 4em;
    white-space: nowrap;
}

td {
    border-top: 1px solid #80808080;
    max-width: 300px;
    line-break: anywhere;
}

td img {
    max-height: 3em;
    max-width: 300px;
}

table {
    width: 100%;
    border-spacing: 0;
}

.table_holder {
    max-height: calc(100vh - 182px);
    min-height: 300px;
    overflow: auto;
}

.btns {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5em;
}

.two_column_grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    padding: 1em;
    gap: 1em;
    justify-items: left;
}

.two_column_grid>label {
    width: 100%;
    text-align: right;
    line-height: 2em;
}

/* flip-card */
.flip-card {
    background-color: transparent;
    width: 268px;
    height: 268px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-front {
    background-color: #bbb;
    color: black;
}

.flip-card-back {
    background-color: #2980b9;
    color: white;
    transform: rotateY(180deg);
}

/* flip-card */


/* button .btn */

.btn {
    background: #FFFCFC;
    background: inherit;
    border: 2px solid var(--primary);
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.5em;
    color: #000000;
    color: inherit;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* box-shadow: 0 0 5px #babecc, 0 0 5px #828282; */
    text-decoration: none;
}

.btn.active,
.btn:active,
.btn:hover,
.btn:focus {
    box-sizing: border-box;
    background: linear-gradient(330.43deg, var(--primary) 17.6%, var(--primarydark) 120.05%);
    /* border: 2px solid #FCFCFC; */
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    /* box-shadow: 1px 1px 5px #808080, 1px 1px 5px #BABECC; */

    font-weight: 700;
    /* or 17px */

    text-decoration: none;
    color: #FFFFFF !important;
}

.btn.danger {
    border: 2px solid var(--error);
}

.btn.danger:active,
.btn.danger:hover,
.btn.danger:focus {
    background: linear-gradient(330.43deg, var(--error) 17.6%, #ff4e0d 120.05%);
    /* border: 2px solid #FCFCFC; */
}

.btn.sm {
    font-size: 1em;
    padding: 0.2em;
    font-weight: 400 !important;
    line-height: 1em;
}

/* End button .btn */

.auto_form_lable{
    max-width: 200px;
    min-width: 142px; 
    text-align: right;    
    padding-right: 20px;
}


.richtexteditor {
    color: black;
}