/* =========================================================
   Mobile Appointment Workspace
   ========================================================= */

.mobile-appointment-book {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---------------------------------------------------------
   Date navigation
   --------------------------------------------------------- */

.mobile-appointment-date {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: var(--text-primary, #f5f5f5);

    transform: translateY(3px);
}

.mobile-appointment-date strong {
    min-width: 110px;

    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.mobile-appointment-date__button {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #9da3aa;

    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}

.mobile-appointment-date__button:hover {
    background: #24282d;
    color: #fff;
}

.mobile-appointment-date__picker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-appointment-date__picker button {
    min-width: 110px;

    padding: 0;
    border: 0;

    background: transparent;
    color: var(--text-primary, #f5f5f5);

    font-size: 15px;
    font-weight: 600;
    text-align: center;

    cursor: pointer;
}

.mobile-appointment-date__picker button:hover {
    color: #fff;
}

.mobile-appointment-date__picker input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

/* ---------------------------------------------------------
   Appointment workspace
   --------------------------------------------------------- */

.mobile-appointment-columns {
    flex: 1;
    min-height: 0;

    display: flex;
    gap: 12px;

    padding: 12px;

    overflow-x: auto;
    overflow-y: auto;

    background: #15171a;
    border: 1px solid #292d32;
    border-radius: 18px;

    scroll-snap-type: x mandatory;
}


/* ---------------------------------------------------------
   Staff columns
   --------------------------------------------------------- */

.mobile-appointment-column {
    flex: 0 0 320px;
    min-height: 100%;

    display: flex;
    flex-direction: column;

    background: #1d2024;
    border: 1px solid #30353b;
    border-radius: 14px;

    overflow: hidden;

    scroll-snap-align: start;
}


/* Staff name */

.mobile-appointment-column__header {
    flex: 0 0 auto;

    padding: 14px 16px;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;

    color: #f5f5f5;

    background: #24282d;
    border-bottom: 1px solid #343940;
}


/* ---------------------------------------------------------
   Appointment area
   --------------------------------------------------------- */

.mobile-appointment-column__appointments {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: 16px;
}


/* ---------------------------------------------------------
   Appointment cards
   --------------------------------------------------------- */

.mobile-appointment-card {
    padding: 14px 15px;

    border-radius: 12px;

    color: #fff;

    background: #343a40;
    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.mobile-appointment-card__time {
    margin-bottom: 7px;

    font-size: 12px;
    font-weight: 500;

    opacity: 0.75;
}

.mobile-appointment-card__customer {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.mobile-appointment-card__notes {
    margin-top: 8px;

    font-size: 12px;
    line-height: 1.4;

    opacity: 0.75;
}

.mobile-appointment-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mobile-appointment-card__status {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.mobile-appointment-status {
    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 10px;
    font-weight: 700;

    color: #fff;
}

.mobile-appointment-status.requested {
    background: #d9534f;
}

.mobile-appointment-status.confirmed {
    background: #28a745;
}

/* ---------------------------------------------------------
   Error
   --------------------------------------------------------- */

.mobile-appointment-error {
    padding: 20px;
    color: #f5f5f5;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .mobile-appointment-columns {
        gap: 10px;
        padding: 8px;

        scroll-padding-left: 8px;
    }

    .mobile-appointment-column {
        /*
         * One staff member fills the available workspace.
         * The horizontal board then snaps between staff.
         */
        flex-basis: calc(100vw - 52px);
    }

    .mobile-appointment-column__appointments {
        padding: 14px;
        gap: 12px;
    }

    .mobile-appointment-card {
        padding: 15px;
    }
}

.mobile-appointment-card.light {
    color: #202328;
}

.mobile-appointment-card.light .mobile-appointment-card__time,
.mobile-appointment-card.light .mobile-appointment-card__notes {
    opacity: 0.7;
}