@import "./styles.css";

/* dates elements */
.admin-console-content[content='dashboard'] {
    flex-direction: column;
    justify-content: flex-start;
    padding: 1rem;
    display: grid;
    grid-template-areas:
        "orders timeline timeline timeline"
        "reports . . msgactions";
    column-gap: 1.5rem;
    row-gap: 1.5rem;
    grid-template-columns: 1fr 1fr 1fr 20%;
    grid-template-rows: 0.8fr 1fr;
}

.admin-dash-timeline {
    grid-area: timeline;
    display: grid;
    grid-template-areas:
        "header"
        "list"
        "footer";
    grid-template-rows: 0fr 1fr 0fr;
    grid-template-columns: 1fr;
    background-color: var(--grey50);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    box-shadow: var(--boxShadow);
    overflow: hidden;
    box-sizing: border-box;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--grey700);
}

.admin-dash-timeline-header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    height: 3rem;
    color: var(--grey800);
    border-bottom: 1px solid var(--grey200);
}

.admin-dash-timeline-header-datesbtn {
    grid-area: datesbtn;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    color: var(--grey50);
    background-color: var(--indigo500);
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: var(--boxShadow);
    transition: background-color 0.2s linear;
}

.admin-dash-timeline-header-datesbtn:hover {
    cursor: pointer;
}

.admin-dash-timeline-footer {
    grid-area: footer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.8rem;
    height: 3rem;
    color: var(--grey800);
    border-top: 1px solid var(--grey200);
}

.admin-dash-timeline-list {
    grid-area: list;
    display: grid;
    grid-auto-flow: row;
    padding: 0.8rem;
}

.admin-dash-timeline-list-daterow {
    display: grid;
    justify-content: center;
    align-items: flex-end;
    font-size: 0.6rem;
    font-weight: 500;
    padding: 0.4rem 0rem;
}

.admin-dash-today {
    grid-area: today;
    display: flex;
    flex-direction: column;
    background-color: var(--grey50);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    box-shadow: var(--boxShadow);
    overflow: hidden;
    box-sizing: border-box;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--grey700);
}

.admin-dash-today-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.8rem;
    height: 3rem;
    width: 100%;
    color: var(--grey800);
    border-bottom: 1px solid var(--grey200);
}

.admin-dash-today-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
}

/* orders */
.admin-dash-orders {
    grid-area: orders;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    box-shadow: var(--boxShadow);
    overflow: hidden;
    box-sizing: border-box;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--grey700);
    background-color: var(--grey50);
}

.admin-dash-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    height: 3rem;
    width: 100%;
    color: var(--grey800);
    /* background-color: var(--grey50); */
    border-bottom: 1px solid var(--grey200);
}

.admin-dash-orders-header-testBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    color: var(--indigo500);
    background-color: var(--lightBlue);
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: var(--boxShadow);
    transition: background-color 0.2s linear;
    cursor: pointer;
}

.admin-dash-orders-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.4rem 0.6rem;
    height: fit-content;
    width: 100%;
    /* color: var(--grey600); */
    color: var(--indigo500);
    font-weight: 500;
    font-size: 0.6rem;
    /* background-color: var(--grey50); */
    border-top: 1px solid var(--grey200);
    column-gap: 0.4rem;
}

.admin-dash-orders-footer::before {
    content: 'info';
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 400;
    font-size: 1rem;
    font-family: 'material symbols rounded';
    color: var(--indigo500);
}

.admin-dash-orders-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

.admin-dash-orders-list-orderDiv {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-weight: 500;
    font-size: 0.65rem;
    color: var(--grey800);
    background-color: var(--grey50);
    transition: color 0.2s linear, background-color 0.2s linear, border 0.2s linear;
    cursor: pointer;
}

.admin-dash-orders-list-orderDiv:not(:last-child) {
    border-bottom: 1px solid var(--grey200);
}

.admin-dash-orders-list-orderDiv:hover {
    color: var(--indigo500);
    background-color: var(--lightBlue);
}

.admin-dash-orders-list-orderDiv-title {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.admin-dash-orders-list-orderDiv-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    font-weight: 400;
    font-size: 1rem;
    font-family: 'material symbols rounded';
}

/* reports */
.admin-dash-reports {
    grid-area: reports;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    box-shadow: var(--boxShadow);
    overflow: hidden;
    box-sizing: border-box;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--grey700);
    background-color: var(--grey50);
}

.admin-dash-reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    height: 3rem;
    width: 100%;
    color: var(--grey800);
    /* background-color: var(--grey50); */
    border-bottom: 1px solid var(--grey200);
}

.admin-dash-reports-header-testBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    color: var(--indigo500);
    background-color: var(--lightBlue);
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: var(--boxShadow);
    transition: background-color 0.2s linear;
    cursor: pointer;
}

.admin-dash-reports-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.4rem 0.6rem;
    height: fit-content;
    width: 100%;
    /* color: var(--grey600); */
    color: var(--indigo500);
    font-weight: 500;
    font-size: 0.6rem;
    /* background-color: var(--grey50); */
    border-top: 1px solid var(--grey200);
    column-gap: 0.4rem;
}

.admin-dash-reports-footer::before {
    content: 'info';
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 400;
    font-size: 1rem;
    font-family: 'material symbols rounded';
    color: var(--indigo500);
}

.admin-dash-reports-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

.admin-dash-reports-list-orderDiv {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-weight: 500;
    font-size: 0.65rem;
    color: var(--grey800);
    background-color: var(--grey50);
    transition: color 0.2s linear, background-color 0.2s linear, border 0.2s linear;
    cursor: pointer;
}

.admin-dash-reports-list-orderDiv:not(:last-child) {
    border-bottom: 1px solid var(--grey200);
}

.admin-dash-reports-list-orderDiv:hover {
    color: var(--indigo500);
    background-color: var(--lightBlue);
}

.admin-dash-reports-list-orderDiv-title {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.admin-dash-reports-list-orderDiv-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    font-weight: 400;
    font-size: 1rem;
    font-family: 'material symbols rounded';
}

/* todo */

.admin-dash-todo {
    grid-area: todo;
    display: flex;
    flex-direction: column;
    background-color: var(--grey50);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    box-shadow: var(--boxShadow);
    overflow: hidden;
    box-sizing: border-box;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--grey700);
}

.admin-dash-todo-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.8rem;
    height: 3rem;
    width: 100%;
    color: var(--grey800);
    border-bottom: 1px solid var(--grey200);
}

.admin-dash-todo-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
}

.admin-dash-todo-list>*:hover {
    cursor: pointer;
    background-color: var(--lightBlue);
}

.admin-dash-todo-list-bookdiv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    font-size: 0.65rem;
    font-weight: 500;
    border-bottom: 1px solid var(--grey200);
    color: var(--grey500);
    background-color: var(--grey100);
    width: 100%;
}

.admin-dash-todo-list-bookdiv::before {
    padding: 0.4rem 0.6rem;
    font-weight: 600;
    color: var(--darkBlue);
    background-color: var(--grey50);
    border-radius: 4px;
    box-shadow: var(--boxShadow);
}

.admin-dash-todo-list-bookdiv[stage="booking"]::before {
    content: 'Booking';
}

.admin-dash-todo-list-bookdiv[stage="report"]::before {
    content: 'Report';
}

.admin-dash-todo-list-bookdiv-open {
    font-weight: 400;
    font-size: 1.2rem;
}

.admin-dash-msgactions {
    grid-area: msgactions;
    display: flex;
    flex-direction: column;
    background-color: var(--grey50);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    box-shadow: var(--boxShadow);
    overflow: hidden;
    box-sizing: border-box;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--grey700);
}

.admin-dash-msgactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    height: 3rem;
    width: 100%;
    color: var(--grey800);
    border-bottom: 1px solid var(--grey200);
}

.admin-dash-msgactions-header-open {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    color: var(--grey50);
    background-color: var(--indigo500);
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: var(--boxShadow);
    transition: background-color 0.2s linear;
}

.admin-dash-msgactions-header-open:hover {
    cursor: pointer;
}

.admin-dash-msgactions-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
    row-gap: 1.4rem;
    padding: 0.8rem;
    font-weight: 500;
    font-size: 0.7rem;
    background-color: var(--grey100);
    height: 100%;
}

.admin-dash-msgactions-list-msgdiv {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: fit-content;
    padding: 0.6rem 0.8rem;
    color: var(--grey50);
    background-color: var(--blue400);
    border-radius: 4px;
    margin-left: auto;
    box-shadow: var(--boxShadow);
    position: relative;
}

.admin-dash-msgactions-list-msgdiv {
    animation: msgdivshow 0.8s linear forwards;
}

.admin-dash-msgactions-list-msgdiv::before {
    content: attr(msg-sent-ts);
    position: absolute;
    white-space: nowrap;
    bottom: -1rem;
    right: 0;
    font-weight: 500;
    font-size: 0.65rem;
    color: var(--grey500);
}