@import "./styles.css";


.admin-console-modal-frame[content="dispatch-modal-call-create"] {
    height: fit-content;
    width: 40%;
    top: 40%;
    left: 30%;
}

.admin-console-modal-frame[content="dispatch-modal-call-create"] .admin-console-modal-center {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.8rem;
}


.admin-console-content[content="dispatch"] {
    justify-content: center;
    align-items: center;
    padding: 0.4rem;
    display: grid;
    grid-template-areas:
        "header right"
        "frame right";
    /* row-gap: 0.2rem; */
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    font-weight: 400;
    font-size: 0.65rem;
}

.admin-dispatch-header {
    grid-area: header;
    /*height: fit-content;*/
    /*padding: 1rem;*/
    display: grid;
    grid-template-areas:
        'date order';
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    font-size: 0.6rem;
    padding: 0.4rem 0.4rem;
    column-gap: 0.6rem;
    color: var(--grey50);
    background-color: var(--dm3);
    box-shadow: var(--boxShadow);
    border-radius: 6px 6px 0px 0px;
    overflow: hidden;
    min-height: 3rem;
    border-bottom: 1px solid var(--grey900);
}

.admin-dispatch-frame[view="dispatch"] {
    grid-area: frame;
    justify-self: center;
    display: grid;
    grid-template-areas:
        "header header right"
        "left timeline right"
        "footer footer right";
    grid-template-rows: 0fr 1fr 0fr;
    grid-template-columns: auto 1fr auto;
    font-weight: 500;
    width: 100%;
    height: 100%;
    color: var(--grey50);
    background-color: var(--dm3);
    box-shadow: var(--boxShadow);
    border-radius: 0px 0px 6px 6px;
    position: relative;
    overflow: hidden;
}


.admin-dispatch-frame-left {
    grid-area: left;
    display: grid;
    grid-template-areas:
        'header'
        'options';
    grid-template-columns: auto;
    grid-template-rows: 0fr 1fr;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 14rem;
    height: 100%;
    border-right: 1px solid var(--grey900);
    font-size: 0.6rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.admin-dispatch-frame-left-options {
    grid-area: options;
    display: flex;
    height: 100%;
}

.admin-dispatch-frame-left-options-optionDiv {
    display: flex;
    padding: 0.4rem;
    transition: opacity 0.2s linear, border 0.2s linear, background-color 0.2s linear, color 0.2s linear, box-shadow 0.2s linear;
}

.admin-dispatch-frame-left-options-optionDiv:hover {
    cursor: pointer;
}

.admin-dispatch-frame-center {
    grid-area: center;
}

.admin-dispatch-frame-center[content=groups] {
    grid-area: center;

}







/* modal styles */

.admin-console-modal-frame[content="dispatch"] {
    height: 95%;
    top: 2.5%;
    width: 95%;
    left: 2.5%;
}

.admin-console-modal-center[content="dispatch"] {
    display: grid;
    grid-template-areas:
        'options left'
        'content left';
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr auto;
    overflow: hidden;
    font-weight: 400;
    font-size: 0.65rem;
}

/* .admin-dispatch-modal-center {} */

/* header options */
.admin-dispatch-modal-options {
    grid-area: options;
    display: flex;
    flex-direction: row;
    padding: 0.6rem;
    width: 100%;
    border-bottom: 1px solid var(--grey200);
}

.admin-dispatch-modal-options-view {
    grid-area: view;
    display: flex;
    flex-direction: row;
    column-gap: 0.6rem;
}

.admin-dispatch-modal-options-optionBtn {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-weight: 500;
    font-size: 0.65rem;
    padding: 0.4rem 0.6rem;
    font-weight: 600;
    color: var(--grey600);
    background-color: var(--grey50);
    border: 1px solid transparent;
    border-radius: 4px;
    box-sizing: border-box;
    min-width: 6rem;
    /* box-shadow: var(--boxShadow); */
    width: fit-content;
    transition: background-color 0.2s linear, color 0.2s linear, border 0.2s linear, box-shadow 0.2s linear;
}

.admin-dispatch-modal-options-optionBtn:hover {
    cursor: pointer;
    color: var(--indigo500);
    /* border: 1px solid var(--indigo500); */
}

.admin-dispatch-modal-options-optionBtn[select=true] {
    cursor: auto;
    color: var(--grey50);
    background-color: var(--indigo500);
    border: 1px solid var(--indigo500);
}

.admin-dispatch-modal-content {
    grid-area: content;
    display: flex;
    width: 100%;
    overflow: hidden;
    background-color: var(--grey50);
    /* border-bottom: 1px solid var(--grey200); */
}

.admin-dispatch-modal-content[content="create"] {
    display: grid;
    grid-template-areas:
        'create';
    grid-template-rows: 1fr;
}

/* default view */
.admin-dispatch-modal-content[content="default"] {
    display: grid;
    grid-template-areas:
        'order'
        'call';
    grid-template-rows: auto 1fr;
}

.admin-dispatch-modal-content-orderDiv {
    grid-area: order;
    display: flex;
    grid-template-areas:
        'info';
    width: 100%;
    /* border-bottom: 1px solid var(--grey200); */
}

.admin-dispatch-modal-content-orderDiv-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0.6rem;
    row-gap: 0.2rem;
    column-gap: 0.2rem;
}

.admin-dispatch-modal-content-orderDiv-info-el {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.admin-dispatch-modal-content-orderDiv-info-el[ref="ref"] {
    font-weight: 500;
}

/* create call div */
.admin-dispatch-modal-content-createDiv {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 0.4rem;
    height: 100%;
    width: 100%;
    padding: 0.6rem;
    margin: auto;
    background-color: var(--grey100);
    transition: background-color 0.2s linear, border 0.2s linear, color 0.2s linear, box-shadow 0.2s linear;
}

.admin-dispatch-modal-content-createDiv:hover {
    background-color: var(--lightBlue);
}

.admin-dispatch-modal-content-createDiv::before {
    grid-area: title;
    content: 'No dispatch call exists';
    color: var(--grey600);
    font-size: 0.65rem;
    font-weight: 500;
}

.admin-dispatch-modal-content-createDiv-btn {
    grid-area: createBtn;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--grey50);
    background-color: var(--green500);
    box-shadow: var(--boxShadow);
    border: 1px solid var(--green500);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    width: fit-content;
    transition: background-color 0.2s linear, border 0.2s linear, color 0.2s linear, box-shadow 0.2s linear;
}

.admin-dispatch-modal-content-createDiv-btn:hover {
    cursor: pointer;
    color: var(--green500);
    background-color: var(--indigo500);
    border: 1px solid var(--green500);
    box-shadow: none;
}

/* groups */
.admin-dispatch-modal-content[content="groups"] {
    display: grid;
    grid-template-areas:
        'call order';
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.admin-dispatch-modal-content-callDiv {
    grid-area: call;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--grey200);
}

.admin-dispatch-modal-content-orderDiv {
    grid-area: order;
    display: flex;
    flex-direction: column;
}

.admin-dispatch-modal-content-callDiv-groupList {
    grid-area: groups;
    display: flex;
    flex-direction: column;
    padding: 0.6rem;
    row-gap: 0.4rem;
    height: 100%;
    width: 100%;
    overflow: auto;
}

.admin-dispatch-modal-content-callDiv-groupList-groupDiv {
    display: grid;
    grid-template-areas:
        'actions info';
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    border-radius: 4px;
    /* box-shadow: var(--boxShadow); */
    border: 1px solid var(--grey200);
    overflow: hidden;
}

.admin-dispatch-modal-content-callDiv-groupList-groupDiv-actions {
    grid-area: actions;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 0.6rem;
}

.admin-dispatch-modal-content-callDiv-groupList-groupDiv-actions-removeBtn {
    grid-area: addBtn;
    display: flex;
    /* display: none; */
    /* visibility: hidden; */
    justify-content: center;
    align-items: center;
    color: var(--grey50);
    background-color: var(--red300);
    box-shadow: var(--boxShadow);
    border: 1px solid var(--red300);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 500;
    width: fit-content;
    margin-left: auto;
    text-align: center;
    transition: background-color 0.2s linear, border 0.2s linear, color 0.2s linear, box-shadow 0.2s linear;
}

.admin-dispatch-modal-content-callDiv-groupList-groupDiv-actions-removeBtn:hover {
    cursor: pointer;
    color: var(--red300);
    background-color: var(--lightRed);
    border: 1px solid var(--red300);
    box-shadow: none;
}

.admin-dispatch-modal-content-orderDiv-assignList {
    grid-area: assignments;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: auto;
}

.admin-dispatch-modal-content-orderDiv-assignList-assignDiv {
    display: grid;
    grid-template-areas:
        'actions info';
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.admin-dispatch-modal-content-orderDiv-assignList-assignDiv:not(:last-child) {
    border-bottom: 1px solid var(--grey200);
}

.admin-dispatch-modal-content-orderDiv-assignList-assignDiv[group-match=true] {
    background-color: var(--lightGreen);
}

.admin-dispatch-modal-content-orderDiv-assignList-assignDiv-actions {
    grid-area: actions;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 0.6rem;
}

.admin-dispatch-modal-content-orderDiv-assignList-assignDiv-actions-addBtn {
    grid-area: addBtn;
    display: flex;
    /* display: none; */
    /* visibility: hidden; */
    justify-content: center;
    align-items: center;
    color: var(--grey50);
    background-color: var(--indigo500);
    box-shadow: var(--boxShadow);
    border: 1px solid var(--indigo500);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 500;
    width: fit-content;
    margin-left: auto;
    text-align: center;
    transition: background-color 0.2s linear, border 0.2s linear, color 0.2s linear, box-shadow 0.2s linear;
}

.admin-dispatch-modal-content-orderDiv-assignList-assignDiv-actions-addBtn:hover {
    cursor: pointer;
    color: var(--indigo500);
    background-color: var(--lightBlue);
    border: 1px solid var(--indigo500);
    box-shadow: none;
}

.admin-dispatch-modal-content-orderDiv-assignList-assignDiv[group-match=true] .admin-dispatch-modal-content-orderDiv-assignList-assignDiv-actions-addBtn {
    pointer-events: none;
    background-color: var(--grey200);
    color: var(--grey500);
    border: 1px solid var(--grey200);
    box-shadow: none;
    cursor: default;
}

.admin-dispatch-modal-content-orderDiv-assignList-assignDiv-actions-addBtn[active=false] {
    pointer-events: none;
    background-color: var(--grey200);
    color: var(--grey500);
    border: 1px solid var(--grey200);
    box-shadow: none;
    cursor: default;
}

.admin-dispatch-modal-content-orderDiv-assignList-assignDiv-info {
    grid-area: info;
    display: grid;
    grid-template-columns: 6rem 12rem 3rem 3rem 3rem 3rem 3rem 3rem 8rem;
    column-gap: 0.4rem;
    /* padding: 0.6rem; */
    width: 100%;
    /* border-bottom: 1px solid var(--grey200); */
    background-color: var(--grey100);
}