


.section-pane {
    display: none;
}
.section-toggle {
    cursor: pointer;
    color: #538167;
}

.delete-link {
    color: red;
    cursor: pointer;
}

.location-hours span:nth-child(1) {
    display: inline-block;
    width: 50px;
}


/* scheduler -------------------------------------- */

#appointment-scheduler-controls input[type=text] {
    width: 100%;
}
#appointment-scheduler-controls select {
    width: 100%;
}

#scheduler {

}

.stylist-service {
    /*display: none;*/
}

.stylist-row {

}

.time-block {
    text-align: center;
    border: 1px solid black;
    height: 65px;
    width: 100px;
    font-size: 10px;
    display: inline-block;
    cursor: pointer;
    border-radius: 3px;
    margin: 3px;
    visibility: hidden;
}

.block-selected {
    color: white;
    background-color: #538167;
}

/*.ui-datepicker-year { display: none; }*/


.appointment-upcoming span {
    font-weight: bold;
    color: #ff4444;
}

.appointment-history span {
    font-weight: bold;
    color: #ffbb33;
}

.profile-pic-sm {
    height: 100px;
    width: 100px;
}

#appointment-summary span {
    font-weight: bold;
    color: #538167;
}

#appointment-summary span.attention {
    font-weight: bold;
    color: #11cd65;
    font-size: large;
}

/* overrides -------------------------------------- */
.portfolio_slider_sec {
    /*padding: 40px 0px;*/
    padding: 10px 0px;
}

.font-weight-bold{
    font-weight: bold;
}

/* required field asterisk */
form div.required label.control-label:after {
    content:" * ";
    color:red;
}

/* helpers -------------------------------------- */
.mt2{
    margin-top: 2px;
}

.mt4{
    margin-top: 4px;
}

.mt5{
    margin-top: 5px;
}

.mt6{
    margin-top: 6px;
}

.mt8{
    margin-top: 8px;
}

.mt10{
    margin-top: 10px;
}

.mt20{
    margin-top: 20px;
}

.mt30{
    margin-top: 30px;
}

.mt40{
    margin-top: 40px;
}

.mt100{
    margin-top: 100px;
}

/* *********************************************************** */

.mb2{
    margin-bottom: 2px;
}

.mb4{
    margin-bottom: 4px;
}

.mb5{
    margin-bottom: 5px;
}

.mb6{
    margin-bottom: 6px;
}

.mb8{
    margin-bottom: 8px;
}

.mb10{
    margin-bottom: 10px;
}

.mb20{
    margin-bottom: 20px;
}

.mb30{
    margin-bottom: 30px;
}

.mb40{
    margin-bottom: 40px;
}

.mb100{
    margin-bottom: 100px;
}

/* *********************************************************** */

p#booking_err{
    font-weight: bold;
    color: red;
}

div.booking_schedule label{
    font-weight: bold;
}
/* ---------------------------------------------------------------------------
   Barber avatar uploader (views/stylist/update.php + web/js/avatar-upload.js).
   The whole circle is the file picker, so it has to read as clickable without
   a separate button competing with it for attention.

   NOTE: this file is served with max-age=2592000 (30 days) and is cache-busted
   only by the hand-written `?cb=` token in assets/AdminAsset.php and
   assets/BarberThemeAsset.php. Bump that token whenever you edit this file, or
   returning visitors keep the old stylesheet for a month -- which is exactly
   how these rules went missing in production and let an uploaded photo render
   at full size.
   --------------------------------------------------------------------------- */
.barber-avatar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 18px;
}

.barber-avatar-button {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    line-height: 0;
}

.barber-avatar-button:disabled {
    cursor: default;
}

/* flex-shrink/min-width: the avatar sits in a flex row, and a flex item's default
   min-width is auto -- so an image wider than the track can refuse to shrink and push
   the row open. Pinning both means a photo of any dimensions renders in the same
   110px circle. */
.barber-avatar-img {
    width: 110px;
    height: 110px;
    min-width: 110px;
    max-width: 110px;
    flex: 0 0 110px;
    border-radius: 50%;
    object-fit: cover;
    background: #e1e1e1;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #ccc;
}

/* The camera badge sits bottom-right of the circle and is the only always-on
   affordance; the dimming overlay below is hover/focus only. */
.barber-avatar-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-size: 15px;
    line-height: 32px;
    text-align: center;
    border: 2px solid #fff;
}

.barber-avatar-button:hover .barber-avatar-img,
.barber-avatar-button:focus .barber-avatar-img {
    filter: brightness(0.85);
}

.barber-avatar-button:focus-visible {
    outline: 2px solid #337ab7;
    outline-offset: 3px;
}

.barber-avatar.is-busy .barber-avatar-img {
    opacity: 0.55;
}

.barber-avatar-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: barber-avatar-spin 0.7s linear infinite;
}

@keyframes barber-avatar-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .barber-avatar-spinner {
        animation-duration: 2.4s;
    }
}

.barber-avatar-name {
    font-size: 20px;
    font-weight: bold;
}

.barber-avatar-hint {
    font-size: 13px;
    color: #777;
}

.barber-avatar-hint.is-error {
    color: #a94442;
}

.barber-avatar-remove {
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: #777;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.barber-avatar-remove:hover {
    color: #a94442;
}

/* ---------------------------------------------------------------------------
   Shop photo uploader (views/location/_form.php +
   web/js/location-photo-upload.js). Landscape rather than the barber avatar's
   circle, because a storefront is not a face -- see
   app\helpers\LocationImage::VARIANTS.

   NOTE: this file is served with max-age=2592000 (30 days) and is cache-busted
   only by the hand-written `?cb=` token in assets/AdminAsset.php and
   assets/BarberThemeAsset.php. Bump that token whenever you edit this file, or
   returning visitors keep the old stylesheet for a month.
   --------------------------------------------------------------------------- */
.shop-photo {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 18px;
}

.shop-photo-button {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    line-height: 0;
}

.shop-photo-button:disabled {
    cursor: default;
}

/* 3:2, matching the `card` variant -- the admin sees the shop the way the
   locations grid will. flex-shrink/min-width are pinned for the same reason as
   the avatar: a flex item's default min-width is auto, so an image wider than
   the track can refuse to shrink and push the row open. */
.shop-photo-frame {
    position: relative;
    display: block;
    width: 240px;
    height: 160px;
    min-width: 240px;
    flex: 0 0 240px;
    border-radius: 4px;
    overflow: hidden;
    background: #e1e1e1;
    border: 1px solid #ccc;
}

.shop-photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Both of these set `display`, which outranks the UA stylesheet's
   `[hidden] { display: none }` -- without this the empty <img> renders as a broken
   box on top of the placeholder. The JS toggles the attribute, not a class. */
.shop-photo-img[hidden],
.shop-photo-placeholder[hidden] {
    display: none;
}

.shop-photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
}

/* The camera badge sits bottom-right of the frame and is the only always-on
   affordance; the dimming below is hover/focus only. */
.shop-photo-overlay {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-size: 15px;
    line-height: 32px;
    text-align: center;
    border: 2px solid #fff;
}

.shop-photo-button:hover .shop-photo-img,
.shop-photo-button:focus .shop-photo-img {
    filter: brightness(0.85);
}

.shop-photo-button:focus-visible {
    outline: 2px solid #337ab7;
    outline-offset: 3px;
}

.shop-photo.is-busy .shop-photo-img {
    opacity: 0.55;
}

/* Reuses the avatar uploader's keyframes above rather than declaring a second
   identical rotation. */
.shop-photo-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: barber-avatar-spin 0.7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .shop-photo-spinner {
        animation-duration: 2.4s;
    }
}

.shop-photo-hint {
    font-size: 13px;
    color: #777;
    max-width: 38em;
}

.shop-photo-hint.is-error {
    color: #a94442;
}

.shop-photo-remove {
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: #777;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.shop-photo-remove:hover {
    color: #a94442;
}

/* ---------------------------------------------------------------------------
   "Recent work" uploader (views/stylist/update.php +
   web/js/work-photo-upload.js), dataskills/ciub#153. Square, like the barber
   avatar and unlike the shop photo, because the tiles sit four to a row and a
   portrait fade has to line up with a landscape line-up -- see
   app\helpers\PortfolioImage::VARIANTS.

   NOTE: this file is served with max-age=2592000 (30 days) and is cache-busted
   only by the hand-written `?cb=` token in assets/AdminAsset.php and
   assets/BarberThemeAsset.php. Bump that token whenever you edit this file, or
   returning visitors keep the old stylesheet for a month.
   --------------------------------------------------------------------------- */
.work-photos {
    margin: 0 0 18px;
}

.work-photos-hint {
    font-size: 13px;
    color: #777;
    margin: 0 0 10px;
}

.work-photos-hint.is-error {
    color: #a94442;
}

/* auto-fill with a fixed track rather than a column count: the limit is a
   param, so the number of tiles is not known here. */
.work-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 160px));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.work-photo,
.work-photo-add {
    position: relative;
    margin: 0;
}

/* aspect-ratio keeps the tile square before the image has loaded, so the grid
   does not jump as four thumbnails arrive. */
.work-photo-link,
.work-photo-add-button {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

.work-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #e1e1e1;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.work-photo-link:hover .work-photo-img,
.work-photo-link:focus .work-photo-img {
    filter: brightness(0.9);
}

/* Top-right, over the photo. Always visible rather than hover-only: this page
   is used on a phone, where there is no hover. */
.work-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-size: 15px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
}

.work-photo-remove:hover {
    background: #a94442;
}

.work-photo-remove:disabled {
    cursor: default;
    opacity: 0.5;
}

.work-photo-add-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 2px dashed #bbb;
    background: #fafafa;
    color: #777;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
}

.work-photo-add-button:hover {
    border-color: #337ab7;
    color: #337ab7;
}

.work-photo-add-button:disabled {
    cursor: default;
    opacity: 0.6;
}

.work-photo-add-plus {
    font-size: 28px;
    line-height: 1;
}

.work-photos.is-busy .work-photos-grid {
    opacity: 0.6;
}

/* --- the square mask ----------------------------------------------------- */

.work-photo-cropper {
    position: fixed;
    inset: 0;
    z-index: 1060; /* above Bootstrap 3's modal backdrop (1040) and modal (1050) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.65);
}

.work-photo-cropper[hidden] {
    display: none;
}

.work-photo-cropper-panel {
    width: 100%;
    max-width: 420px;
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.work-photo-cropper-title {
    margin: 0 0 6px;
    font-size: 18px;
}

.work-photo-cropper-help {
    margin: 0 0 12px;
    font-size: 13px;
    color: #777;
}

/* The stage IS the crop: whatever this square shows is what gets posted, so it
   is square here and square in the canvas, and nothing about the framing is
   decided anywhere else. touch-action: none so a drag pans the photo instead of
   scrolling the page on a phone. */
.work-photo-cropper-stage {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 12px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    background: #222;
    cursor: move;
    touch-action: none;
}

.work-photo-cropper-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.work-photo-cropper-zoom-label {
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: #777;
    margin: 0;
}

.work-photo-cropper-zoom {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 14px;
}

.work-photo-cropper-zoom:disabled {
    opacity: 0.4;
}

.work-photo-cropper-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}
