@import "./styles.css";

/* avail elements */
.admin-console-content[content="operations"] {
    flex-direction: column;
    justify-content: flex-start;
    /* background-color: var(--grey50); */
}

.admin-operations-frame {
    justify-self: center;
    display: grid;
    grid-template-areas:
        "header"
        "center"
        "footer";
    grid-template-rows: 0fr 1fr 0fr;
    grid-template-columns: 1fr;
    width: 100%;
    height: 100%;
    font-weight: 400;
    font-size: 0.65rem;
    border-radius: 6px;
    background-color: var(--dm3);
    box-shadow: var(--boxShadow);
    overflow: hidden;
}

.admin-operations-frame-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0.6rem;
    column-gap: 0.6rem;
    padding: 0.6rem;
    border-bottom: 1px solid var(--grey900);
}

.admin-operations-frame-header-view-viewBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.65rem;
    padding: 0.5rem 1rem;
    color: var(--grey50);
    background-color: var(--indigo500);
    border: 1px solid var(--indigo500);
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: var(--boxShadow);
    cursor: pointer;
    transition: background-color 0.2s linear, border 0.2s linear, color 0.2s linear, box-shadow 0.2s linear;

}

.admin-operations-frame-header-view-viewBtn:hover {
    background-color: var(--green500);
    border: 1px solid var(--green500);
    box-shadow: none;
}

.admin-operations-frame-header-view-viewBtn[select=true] {
    pointer-events: none;
    background-color: var(--green500);
    border: 1px solid var(--green500);
    box-shadow: none;
}

.admin-operations-frame-center {
    grid-area: center;
    height: 100%;
    width: 100%;
}

.admin-operations-frame-center[content="clients"] {
    display: grid;
    grid-template-areas:
        'left editor';
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.admin-operations-frame-center-left {
    grid-area: left;
    display: grid;
    grid-template-areas:
        'header'
        'list'
        'footer';
    grid-template-rows: auto 1fr auto;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-right: 1px solid var(--grey900);
}

.admin-operations-frame-center-left-header {
    grid-area: header;
    display: flex;
    height: 100%;
    width: 100%;
    padding: 0.6rem;
    border-bottom: 1px solid var(--grey900);
}

.admin-operations-frame-center-left-header-search {
    grid-area: search;
    display: flex;
    width: 20rem;
    justify-content: flex-start;
    align-items: center;
    /* height: 3rem; */
    background-color: var(--dm5);
    border-radius: 6px;
    padding: 0.4rem;
}

.admin-operations-frame-center-left-header-search::before {
    content: "search";
    font-family: "material symbols rounded";
    font-weight: 200;
    font-size: 1.3rem;
    color: var(--grey600);
    margin-right: 0.5rem;
    line-height: 1;
}

.admin-operations-frame-center-left-header-search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--grey600);
}

.admin-operations-frame-center-left-list {
    grid-area: list;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    row-gap: 0.4rem;
    column-gap: 0.4rem;
    padding: 0.6rem;
    height: 100%;
    min-width: 20rem;
    overflow-y: scroll;
}

.admin-operations-frame-center-left-footer {
    grid-area: footer;
    padding: 0.6rem;
    border-top: 1px solid var(--grey900);
}

.admin-operations-frame-center-left-footer-addBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.65rem;
    padding: 0.5rem 1rem;
    color: var(--grey50);
    background-color: var(--indigo500);
    border: 1px solid var(--indigo500);
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: var(--boxShadow);
    cursor: pointer;
    transition: background-color 0.2s linear, border 0.2s linear, color 0.2s linear, box-shadow 0.2s linear;

}

.admin-operations-frame-center-left-footer-addBtn:hover {
    background-color: var(--green500);
    border: 1px solid var(--green500);
    box-shadow: none;
}

.admin-operations-frame-center-left-list-clientDiv {
    display: grid;
    justify-content: flex-start;
    align-items: flex-start;
    grid-template-areas:
        'ref photo'
        'pseudo photo';
    grid-template-columns: 1fr auto;
    grid-template-rows: 0fr 1fr;
    row-gap: 0.4rem;
    column-gap: 0.4rem;
    padding: 0.8rem 0.6rem;
    width: 20rem;
    height: fit-content;
    transition: background-color 0.2s linear, border 0.2s linear;
    border-radius: 6px;
    box-shadow: var(--boxShadow);
    background-color: var(--grey50);
    border: 1px solid var(--grey50);
    /*margin: 0.4rem 0.6rem;*/
}

.admin-operations-frame-center-left-list-clientDiv:hover {
    cursor: pointer;
    background-color: var(--lightBlue);
    border: 1px solid var(--indigo500);
}

.admin-operations-frame-center-left-list-clientDiv-infoEl {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.admin-operations-frame-center-left-list-clientDiv-infoEl[ref="ref"] {
    grid-area: ref;
    font-weight: 500;
}

.admin-operations-frame-center-left-list-clientDiv-infoEl[ref="pseudo"] {
    grid-area: pseudo;
    font-style: italic;
}

.admin-operations-frame-center-left-list-clientDiv-photo {
    grid-area: photo;
    justify-content: center;
    align-items: center;
    /* margin: auto; */
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 4px;
    width: 3.5rem;
    height: 4rem;
    overflow: hidden;
    /* margin-left: 0.4rem; */
    background-color: var(--grey200);
    box-shadow: var(--boxShadow);
}

.admin-operations-frame-center[content="venues"] {
    display: grid;
    grid-template-areas:
        'left editor';
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.admin-operations-frame-center-left-list-venueDiv {
    display: grid;
    justify-content: flex-start;
    align-items: flex-start;
    grid-template-areas:
        'ref photo'
        'address photo'
        'supplier photo';
    grid-template-columns: 1fr auto;
    grid-template-rows: 0fr 0fr 1fr;
    row-gap: 0.4rem;
    column-gap: 0.4rem;
    padding: 0.8rem 0.6rem;
    width: 20rem;
    height: fit-content;
    transition: background-color 0.2s linear, border 0.2s linear;
    border-radius: 6px;
    box-shadow: var(--boxShadow);
    background-color: var(--grey50);
    border: 1px solid var(--grey50);
    /*margin: 0.4rem 0.6rem;*/
}

.admin-operations-frame-center-left-list-venueDiv:hover {
    cursor: pointer;
    background-color: var(--lightBlue);
    border: 1px solid var(--indigo500);
}

.admin-operations-frame-center-left-list-venueDiv-infoEl {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.admin-operations-frame-center-left-list-venueDiv-infoEl[ref="ref"] {
    grid-area: ref;
    font-weight: 500;
}

.admin-operations-frame-center-left-list-venueDiv-infoEl[ref="address"] {
    grid-area: address;
}

.admin-operations-frame-center-left-list-venueDiv-infoEl[ref="supplier"] {
    grid-area: supplier;
    font-style: italic;
}

.admin-operations-frame-center-left-list-venueDiv-photo {
    grid-area: photo;
    justify-content: center;
    align-items: center;
    /* margin: auto; */
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 4px;
    width: 3.5rem;
    height: 4rem;
    overflow: hidden;
    /* margin-left: 0.4rem; */
    background-color: var(--grey200);
    box-shadow: var(--boxShadow);
}

.admin-operations-frame-center-editor {
    grid-area: editor;
    display: grid;
    grid-template-areas:
        'info'
        'materials';
    height: 100%;
    width: 100%;
    overflow: hidden;
    padding: 0.6rem;
}

.admin-operations-frame-center-editor-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: var(--grey50);
    border-radius: 6px;
    box-shadow: var(--boxShadow);
}

.admin-operations-frame-center-editor-materials {
    grid-area: materials;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: var(--grey50);
    border-radius: 6px;
    box-shadow: var(--boxShadow);
}

/* create new client modal */
.admin-console-modal-frame[content="operations-client-create"] {
    width: 25%;
    left: 37.5%;
    height: fit-content;
    top: 25%;
}

.admin-console-modal-center[content="operations-client-create"] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* create new venue modal */
.admin-console-modal-frame[content="operations-venue-create"] {
    width: 25%;
    left: 37.5%;
    height: fit-content;
    top: 10%;
}

.admin-console-modal-center[content="operations-venue-create"] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-operations-modal-form {
    grid-area: form;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: auto;
    padding: 0.8rem;
    row-gap: 0.6rem;
    font-weight: 400;
    font-size: 0.65rem;
}

.admin-operations-modal-form-field {
    display: flex;
    flex-direction: column;
    display: grid;
    justify-content: space-between;
    align-items: center;
    column-gap: 0.6rem;
    row-gap: 0.2rem;
}

.admin-operations-modal-form-field-title {
    color: var(--grey900);
    font-weight: 500;
}

.admin-operations-modal-form-field[required=true] .admin-operations-modal-form-field-title::after {
    content: '*';
    font-family: 'Quicksand';
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--red200);
    margin-left: 0.2rem;
}

.admin-operations-modal-form-field-subtitle {
    color: var(--grey900);
}

.admin-operations-modal-form-field-input {
    font-family: 'Quicksand';
    padding: 0.6rem;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid var(--grey200);
    border-radius: 4px;
    background-color: var(--grey50);
    width: 20rem;
    transition: background-color 0.2s linear, border 0.2s linear;
}

.admin-operations-modal-form-field-input:hover {
    border: 1px solid var(--indigo500);
    /* background-color: var(--lightBlue); */
}

.admin-operations-modal-form-field-input:focus {
    border: 1px solid var(--indigo500);
    background-color: var(--lightBlue);
}

.admin-operations-modal-form-field-select {
    font-family: 'Quicksand';
    padding: 0.6rem;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid var(--grey200);
    border-radius: 4px;
    background-color: var(--grey50);
    width: 20rem;
    transition: background-color 0.2s linear, border 0.2s linear;
}

.admin-operations-modal-form-field-select:hover {
    border: 1px solid var(--indigo500);
    /* background-color: var(--lightBlue); */
}

.admin-operations-modal-form-field-select-option {}