@import "./styles.css";

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

.admin-dispatch-frame {
    grid-area: frame;
    justify-self: center;
    display: grid;
    grid-template-areas:
        "left header right"
        "left center right"
        "left 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-header {
    grid-area: header;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    column-gap: 1rem;
    border-bottom: 1px solid var(--grey900);
}

.admin-dispatch-frame-header-title {
    grid-area: title;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    column-gap: 0.6rem;
    font-size: 0.7rem;
    font-weight: 500;
}

.admin-dispatch-frame-header-actions {
    grid-area: actions;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    column-gap: 0.6rem;
}

.admin-dispatch-frame-header-actions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.6rem;
    padding: 0.5rem 1rem;
    color: var(--grey50);
    background-color: var(--indigo500);
    height: 100%;
    width: fit-content;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: var(--boxShadow);
    transition: background-color 0.2s linear, color 0.2s linear, border 0.2s linear, box-shadow 0.2s linear;
}

.admin-dispatch-frame-header-actions-btn:hover {
    cursor: pointer;
    color: var(--grey50);
    background-color: transparent;
    box-shadow: none;
}

.admin-dispatch-frame-right {
    grid-area: right;
    display: grid;
    grid-template-areas:
        "info"
        "contact"
        "client";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto 1fr;
    min-width: 30rem;
    border-right: 1px solid var(--grey90);
    color: var(--grey900);
    background-color: var(--grey50);
    font-size: 0.65rem;
    font-weight: 500;
    overflow-y: auto;
}

.admin-dispatch-frame-right-infoSec {
    grid-area: info;
    display: flex;
    flex-direction: column;
    row-gap: 0.4rem;
    padding: 0.6rem;
    width: 100%;
    border-bottom: 1px solid var(--grey200);
}

.admin-dispatch-frame-right-infoSec-el {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.admin-dispatch-frame-right-infoSec-el[ref="ref"] {
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-dispatch-frame-right-infoSec-map {
    display: flex;
    width: 100%;
    height: auto;
    max-height: 8rem;
    border-radius: 4px;
    box-shadow: var(--boxShadow);
    object-fit: cover;
}

.admin-dispatch-frame-right-infoSec-weather {
    display: flex;
    width: 100%;
    height: auto;
    max-height: 8rem;
    border-radius: 4px;
    box-shadow: var(--boxShadow);
    object-fit: cover;
}

.admin-dispatch-frame-right-contactSec {
    grid-area: contact;
    display: flex;
    flex-direction: column;
    row-gap: 0.4rem;
    padding: 0.6rem;
    width: 100%;
    /* background-color: var(--grey100); */
    border-bottom: 1px solid var(--grey200);
}

.admin-dispatch-frame-right-contactSec-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--grey900);
    font-size: 0.75rem;
    /* background-color: var(--grey50); */
}

/* .admin-dispatch-frame-right-contactSec-title::after {
    content: 'call';
    font-weight: 400;
    font-family: "material symbols rounded";
    font-size: 1.3rem;
    font-weight: 200;
    color: var(--grey600);
    line-height: 1;
} */

.admin-dispatch-frame-right-contactSec-el {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    row-gap: 0.2rem;
    font-weight: 400;
}

.admin-dispatch-frame-right-contactSec-el[ref="ref"] {
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-dispatch-frame-right-contactSec-el-input {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 400;
    width: fit-content;
    min-width: 12rem;
    border: 1px solid var(--grey200);
    border-radius: 4px;
    padding: 0.4rem;
    text-align: end;
    transition: border 0.2s linear, background-color 0.2s linear, color 0.2s linear;
}

.admin-dispatch-frame-right-contactSec-el-input:hover {
    /* background-color: var(--lightBlue); */
    border: 1px solid var(--indigo500);
}

.admin-dispatch-frame-right-contactSec-el-input:focus {
    background-color: var(--lightBlue);
    border: 1px solid var(--indigo500);
}

.admin-dispatch-frame-right-clientSec {
    grid-area: client;
    display: flex;
    flex-direction: column;
    row-gap: 0.4rem;
    padding: 0.6rem;
    width: 100%;
    border-bottom: 1px solid var(--grey200);
}

.admin-dispatch-frame-right-clientSec-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 4px;
    width: 100%;
    height: 6rem;
    overflow: hidden;
    background-color: var(--grey200);
    box-shadow: var(--boxShadow);
}

.admin-dispatch-frame-right-clientSec-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--grey600);
}

.admin-dispatch-frame-right-clientSec-el {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    row-gap: 0.2rem;
    font-weight: 400;
}

.admin-dispatch-frame-right-clientSec-el[ref="ref"] {
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-dispatch-frame-right-clientSec-el-input {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 400;
    width: fit-content;
    min-width: 12rem;
    border: 1px solid var(--grey200);
    border-radius: 4px;
    padding: 0.4rem;
    transition: border 0.2s linear, background-color 0.2s linear, color 0.2s linear;
}

.admin-dispatch-frame-right-clientSec-el-input:hover {
    /* background-color: var(--lightBlue); */
    border: 1px solid var(--indigo500);
}

.admin-dispatch-frame-right-clientSec-el-input:focus {
    background-color: var(--lightBlue);
    border: 1px solid var(--indigo500);
}


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

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

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

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

.admin-console-modal-center[content="product-dispatch-create"] {}

.admin-dispatch-modal-create-label {
    padding: 0.6rem;
}

/* groups tab */

.admin-dispatch-frame-center[content='groups'] {
    display: grid;
    grid-template-areas:
        'timeline';
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: 100%;
    overflow: hidden;
}

.admin-dispatch-groups-timeline {
    grid-area: timeline;
    display: flex;
    height: 100%;
    overflow: hidden;
}

.admin-dispatch-groups-timeline-groupList {
    grid-area: list;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0.6rem;
    row-gap: 0.8rem;
    overflow: auto;
}

.admin-dispatch-groups-timeline-groupDiv {
    display: grid;
    grid-template-areas:
        'header'
        'counts'
        'transport';
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    border-radius: 4px;
    color: var(--grey900);
    background-color: var(--grey50);
    box-shadow: var(--boxShadow);
}

.admin-dispatch-groups-timeline-groupDiv-header {
    grid-area: header;
    display: grid;
    grid-template-areas: 'info';
    grid-template-columns: 1fr;
    color: var(--grey900);
    background-color: var(--grey100);
    /* border-radius: 4px 4px 0px 0px; */
    border-radius: 4px 4px 0px 0px;
    border-bottom: 1px solid var(--grey200);
    padding: 0.6rem;
    font-size: 0.75rem;
}

.admin-dispatch-groups-timeline-groupDiv-header-info {
    grid-area: info;
    display: grid;
    grid-template-areas:
        "num prelim-start"
        "code ref";
    grid-template-columns: 1fr auto;
    row-gap: 0.2rem;
}

.admin-dispatch-groups-timeline-groupDiv-header-info-el[ref="prelim-start"] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.admin-dispatch-groups-timeline-groupDiv-counts {
    grid-area: counts;
    display: grid;
    grid-template-areas:
        'prelim live final notes';
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 0.6rem;
}