[ng\:cloak], [ng-cloak], .ng-cloak {
    display: none;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    /*background: #222;*/
}

.app-container {
    border-radius: 4px;
    overflow: hidden;
    width: 95%;
    height: auto;
    max-width: 100%;
    top: 120px;
    left: 0;
    right: 0;
    margin: auto;
}

.buttons-container {
    position: absolute;
    bottom: 15px;
    right: 0;
    height: 40px;
    font-family: "Roboto", sans-serif;
}

.cancel-button,
.save-button {
    float: left;
    height: 40px;
    line-height: 40px;
    padding: 0 15px;
    border-radius: 2px;
    margin-right: 15px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cancel-button {
    background: white;
    color: #0DAD83;
}

.save-button {
    background: #0DAD83;
    color: white;
}

/* Datepicker Stuff */
.datepicker {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    font-family: "Roboto", sans-serif;
    overflow: hidden;
    transition: background 0.15s ease;
    background: white;
}

.datepicker-calendar {
    flex: 1; /* Takes remaining space */
    min-width: 300px; /* Minimum width to prevent too small */
    padding: 20px 15px 15px;
    display: block;
}

.datepicker-image {
    width: 50%;
    padding: 20px 15px 15px;
    max-width: 400px;
    display: block;
}

.datepicker-header {
    width: 100%;
    color: white;
    overflow: hidden;
    background: #ed786a;
}

.datepicker-title {
    width: 50%;
    float: left;
    height: 60px;
    line-height: 60px;
    padding: 0 15px;
    text-align: left;
    font-size: 20px;
}

.datepicker-subheader {
    width: 50%;
    float: left;
    height: 60px;
    line-height: 60px;
    font-size: 14px;
    padding: 0 15px;
    text-align: right;
}

.calendar-header {
    color: black;
    font-weight: bolder;
    text-align: center;
    font-size: 18px;
    padding: 10px 0;
    position: relative;
}

.current-month-container {
    display: inline-block;
    height: 30px;
    position: relative;
}

.goback,
.goforward {
    height: 30px;
    width: 30px;
    border-radius: 30px;
    display: inline-block;
    cursor: pointer;
    position: relative;
    top: -4px;
}

.goback path,
.goforward path {
    transition: stroke 0.15s ease;
}

.goback {
    float: left;
    margin-left: 3.8%;
}

.goforward {
    float: right;
    margin-right: 3.8%;
}

.calendar-day-header {
    width: 100%;
    position: relative;
}

.day-label {
    color: #8A8A8A;
    padding: 5px 0;
    width: 14.2857142%;
    display: inline-block;
    text-align: center;
}

.datecontainer {
    width: 14.2857142%;
    display: inline-block;
    text-align: center;
    padding: 4px 0;
}

.datenumber {
    max-width: 35px;
    max-height: 35px;
    line-height: 35px;
    margin: 0 auto;
    color: #8A8A8A;
    position: relative;
    text-align: center;
    cursor: pointer;
    z-index: 1;
    transition: all 0.25s cubic-bezier(0.7, -0.12, 0.2, 1.12);
}

.no-hover .datenumber,
.no-hover .datenumber:hover,
.no-hover .datenumber:before,
.no-hover .datenumber:hover::before {
    cursor: default;
    color: #8A8A8A;
    background: transparent;
    opacity: 0.5;
}

.no-hover .datenumber.day-selected {
    color: white;
}

.datenumber:hover {
    color: white;
}

.datenumber:before {
    content: "";
    display: block;
    position: absolute;
    height: 35px;
    width: 35px;
    border-radius: 100px;
    z-index: -1;
    background: transparent;
    transform: scale(0.75);
    transition: all 0.25s cubic-bezier(0.7, -0.12, 0.2, 1.12);
    transition-property: background, transform, color, border;
}

.datenumber:hover::before {
    background: #FFAB91;
    transform: scale(1);
}

.day-selected {
    color: white;
}

.datenumber.day-selected:before {
    background: #FF6E40;
    transform: scale(1);
    -webkit-animation: select-date 0.25s forwards;
    animation: select-date 0.25s forwards;
}

@-webkit-keyframes select-date {
    0% {
        background: #FFAB91;
    }
    100% {
        background: #FF6E40;
    }
}
@keyframes select-date {
    0% {
        background: #FFAB91;
    }
    100% {
        background: #FF6E40;
    }
}
/* timepicker styles */
.timepicker-container-outer {
    /*width: 50%;*/
    max-width: 700px;
    /*float: left;*/
    display: block;
    padding: 40px 30px 30px;
    position: relative;
    top: 50px;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
}

.timepicker-container-inner {
    width: 100%;
    height: 100%;
    max-width: 320px;
    margin: 0 auto;
    position: relative;
    display: block;
}

.timeline-container {
    display: block;
    float: left;
    position: relative;
    width: 100%;
    height: 36px;
}

.current-time {
    display: block;
    position: absolute;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    top: -25px;
    left: -20px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.current-time::after {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    position: absolute;
    background: #FF6E40;
    transition: all 0.15s ease;
    transform: rotate(45deg);
    border-radius: 20px 20px 3px 20px;
    z-index: -1;
    top: 0;
}

.actual-time {
    color: white;
    line-height: 40px;
    font-size: 12px;
    text-align: center;
    transition: all 0.15s ease;
}

.timeline {
    display: block;
    z-index: 1;
    width: 100%;
    height: 2px;
    position: absolute;
    bottom: 0;
}

.timeline::before, .timeline::after {
    content: "";
    display: block;
    width: 2px;
    height: 10px;
    top: -6px;
    position: absolute;
    background: #0DAD83;
    left: -1px;
    transition: background 0.15s ease;
}

.timeline::after {
    left: auto;
    right: -1px;
}

.hours-container {
    display: block;
    z-index: 0;
    width: 100%;
    height: 10px;
    position: absolute;
    top: 31px;
    left: 1px;
}

.hour-mark {
    width: 2px;
    display: block;
    float: left;
    height: 4px;
    background: #0DAD83;
    position: relative;
    margin-left: calc((100% / 24) - 2px);
    transition: background 0.15s ease;
}

.hour-mark:nth-child(3n) {
    height: 6px;
    top: -1px;
}

.display-time {
    width: 100%;
    display: block;
    margin-top: 30px;
    height: 36px;
    line-height: 36px;
    overflow: hidden;
    float: left;
    position: relative;
    font-size: 20px;
    text-align: center;
    transition: color 0.15s ease;
    color: #FF6E40;
}

.decrement-time,
.increment-time {
    cursor: pointer;
    position: absolute;
    display: block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    top: 6px;
    font-size: 20px;
}

.decrement-time {
    left: 0;
    text-align: left;
}

.increment-time {
    right: 0;
    text-align: right;
}

.increment-time path,
.decrement-time path {
    transition: all 0.15s ease;
}

.time {
    width: calc(100% - 48px);
    position: relative;
    left: 24px;
    height: 36px;
}
.time:after {
    content: "";
    height: 2px;
    width: 100%;
    position: absolute;
    bottom: 0;
    background: #FF693C;
    left: 0;
    right: 0;
    opacity: 0.5;
    transition: all 0.15s ease;
}

.time.time-active:after {
    display: none;
}

.time-input {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 34px;
    line-height: 34px;
    bottom: 2px;
    width: 100%;
    border: none;
    background: none;
    text-align: center;
    color: #FF693C;
    font-size: inherit;
    opacity: 0;
    transition: all 0.15s ease;
    cursor: pointer;
    z-index: 1;
}
.time-input:focus, .time-input:active {
    outline: none;
    opacity: 1;
}

.formatted-time {
    cursor: pointer;
    position: relative;
    z-index: 0;
}

.time-input:focus {
    cursor: auto;
}
.time-input:focus ~ .formatted-time {
    border-radius: 2px;
    background: #0DAD83;
    color: white;
    cursor: default;
    opacity: 0;
}

/* Remove AM/PM container styles */
.am-pm-container {
    display: none;
}

.am-pm-button {
    display: none;
}

/* ... existing code ... */

/* Simplify datepicker color classes - remove AM/PM specific styles */
.datepicker .current-time::after {
    background: #0DAD83;
}

.datepicker .actual-time {
    color: white;
}

.datepicker .increment-time path,
.datepicker .decrement-time path {
    stroke: #FF693C;
}

.datepicker .datepicker-subheader {
    color: white;
}

.datepicker .cancel-button {
    background: white;
    color: #0DAD83;
}

.datepicker .save-button {
    background: #0DAD83;
    color: white;
}

/* Remove all .datepicker.am and .datepicker.pm specific styles */

.datepicker.compact .datepicker-title,
.datepicker.compact .datepicker-subheader {
    width: 100%;
    text-align: center;
}
.datepicker.compact .datepicker-title {
    height: 50px;
    line-height: 50px;
}
.datepicker.compact .datepicker-subheader {
    height: 30px;
    line-height: 30px;
}
.datepicker.compact .display-time {
    width: 100%;
    font-size: 20px;
    line-height: 36px;
}
.datepicker.compact .app-container {
    width: 100%;
}
.datepicker.compact .datepicker-calendar {
    width: 100%;
    margin: 0 auto;
    float: none;
}
.datepicker.compact .timepicker-container-outer {
    width: 100%;
    margin: 0 auto;
    float: none;
    top: -15px;
}
.datepicker.compact .buttons-container {
    position: relative;
    float: right;
}

.person-img {
    width: 90%;
    height: auto;
}

.person-img-small {
    width: 10%;
    height: auto;
}

.margin-top-10 {
    margin-top: 1em;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
}

.toggle-calendar-button {
    margin-left: 10px;
}

/* --- Responsive admin table (admin_calendar.html) --- */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Keep headers visible style; ensure table doesn't collapse too narrow */
.table-wrapper table {
    min-width: 760px; /* adjust if you add/remove columns */
}

/* Mobile: turn rows into cards */
@media screen and (max-width: 736px) {
    .table-wrapper table {
        min-width: 0;
    }

    .table-wrapper table thead {
        display: none;
    }

    .table-wrapper table,
    .table-wrapper tbody,
    .table-wrapper tr,
    .table-wrapper td {
        display: block;
        width: 100%;
    }

    .table-wrapper tbody tr {
        border: 1px solid #e5e5e5;
        border-radius: 6px;
        background: #fff;
        padding: 10px 12px;
        margin-bottom: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    }

    .table-wrapper td {
        border: 0;
        padding: 8px 0;
    }

    .table-wrapper td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.75em;
        color: #888;
        margin-bottom: 2px;
    }

    /* Buttons look better full width on mobile in your theme anyway */
    .table-wrapper td .button {
        width: 100%;
    }
}

/* --- USER auth-aware nav visibility (only on NON-admin pages) --- */
body:not(.admin-page).user-logged-in .nav-login {
    display: none !important;
}

body:not(.admin-page):not(.user-logged-in) .nav-logout {
    display: none !important;
}

body:not(.admin-page).user-logged-in #navPanel a[href$="login.html"] {
    display: none !important;
}

body:not(.admin-page):not(.user-logged-in) #navPanel a[href$="logout.html"] {
    display: none !important;
}

/* --- ADMIN auth-aware nav visibility (only on admin pages) --- */
body.admin-page.admin-logged-in #nav a[href$="admin_login.html"],
body.admin-page.admin-logged-in #navPanel a[href$="admin_login.html"] {
    display: none !important;
}

body.admin-page:not(.admin-logged-in) #nav a[href$="admin_logout.html"],
body.admin-page:not(.admin-logged-in) #navPanel a[href$="admin_logout.html"] {
    display: none !important;
}

/* Booking modal: scrollable on small screens */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Allow safe padding + prevent content touching edges */
    padding: 16px;

    /* If modal is taller than viewport, allow overlay to scroll too */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    width: min(560px, 100%);
    max-height: 90vh;

    /* The actual scrolling happens inside the modal */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    /* Prevent iOS “rubber-band” from scrolling the page behind */
    overscroll-behavior: contain;
}

/* Optional: keep actions visible if the form is long */
.modal-actions {
    position: relative;
    bottom: 0;
    background: inherit;
    padding-top: 12px;
}

/* Admin modal: scrollable on mobile */
.modal-backdrop {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
}

.modal-card {
    max-height: 90vh;
    overflow: hidden; /* keep header/actions visible with inner scroll */
}

.modal-card .content {
    max-height: calc(90vh - 120px); /* header + actions approx */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}