/*
 * Niraplast Calendar Organizer — shared component layer.
 * Shared controls and interaction states live here; page stylesheets own layout.
 */
:where(.sfc-co-app, .sfc-co-booking, .sfc-co-portal-body) {
  color: var(--sfc-co-color-text, #172B3A);
  font-family: var(--sfc-co-font-family, Montserrat, Arial, sans-serif);
}
:where(.sfc-co-app, .sfc-co-booking, .sfc-co-portal-body) *,
:where(.sfc-co-app, .sfc-co-booking, .sfc-co-portal-body) *::before,
:where(.sfc-co-app, .sfc-co-booking, .sfc-co-portal-body) *::after {
  box-sizing: border-box;
}
:where(.sfc-co-app, .sfc-co-booking, .sfc-co-portal-body) :is(button, input, select, textarea) {
  font-family: inherit;
}
:where(.sfc-co-app, .sfc-co-booking, .sfc-co-portal-body) :is(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--sfc-co-color-primary, #D71920);
  outline-offset: 2px;
}
:where(.sfc-co-app, .sfc-co-booking) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]), select, textarea),
.sfc-co-portal-card :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea) {
  border-color: var(--sfc-co-color-border, #D1D5DB);
  border-radius: 8px;
  color: var(--sfc-co-color-text, #172B3A);
  background-color: var(--sfc-co-color-surface, #FFFFFF);
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}
:where(.sfc-co-app, .sfc-co-booking) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]), select, textarea):hover,
.sfc-co-portal-card :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea):hover {
  border-color: var(--sfc-co-color-border, #D1D5DB);
}
:where(.sfc-co-app, .sfc-co-booking) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]), select, textarea):focus,
.sfc-co-portal-card :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea):focus {
  border-color: var(--sfc-co-color-primary, #D71920);
  box-shadow: 0 0 0 3px var(--sfc-co-color-primary-soft, #FFF1F2);
}
:where(.sfc-co-app, .sfc-co-booking) :is(button, .sfc-co-btn, .sfc-co-booking-submit, .sfc-co-booking-success-actions a, .sfc-co-booking-choice-card button, .sfc-co-portal-card button) {
  -webkit-tap-highlight-color: transparent;
}
.sfc-co-app :is(.sfc-co-btn-primary, .sfc-co-primary),
.sfc-co-booking .sfc-co-booking-submit,
.sfc-co-booking .sfc-co-booking-success-actions a.is-primary,
.sfc-co-portal-card button {
  border-color: var(--sfc-co-color-primary, #D71920);
  background-color: var(--sfc-co-color-primary, #D71920);
  color: #FFFFFF;
}
.sfc-co-app :is(.sfc-co-btn-primary, .sfc-co-primary):hover:not(:disabled),
.sfc-co-booking .sfc-co-booking-submit:hover:not(:disabled),
.sfc-co-booking .sfc-co-booking-success-actions a.is-primary:hover,
.sfc-co-portal-card button:hover {
  border-color: var(--sfc-co-color-primary-hover, #B5161C);
  background-color: var(--sfc-co-color-primary-hover, #B5161C);
  color: #FFFFFF;
}
.sfc-co-app :is(.sfc-co-btn-outline, .sfc-co-text-btn),
.sfc-co-booking .sfc-co-booking-success-actions a:not(.is-primary) {
  border-color: var(--sfc-co-color-border, #D1D5DB);
  background-color: var(--sfc-co-color-surface, #FFFFFF);
  color: var(--sfc-co-color-text, #172B3A);
}
.sfc-co-app :is(.sfc-co-btn-outline, .sfc-co-text-btn):hover:not(:disabled),
.sfc-co-booking .sfc-co-booking-success-actions a:not(.is-primary):hover {
  border-color: var(--sfc-co-color-border, #D1D5DB);
  background-color: var(--sfc-co-color-surface-muted, #F3F4F6);
  color: var(--sfc-co-color-text, #172B3A);
}
.sfc-co-app :is(.sfc-co-btn, .sfc-co-btn-primary, .sfc-co-btn-outline, .sfc-co-primary, .sfc-co-text-btn),
.sfc-co-booking :is(.sfc-co-booking-submit, .sfc-co-booking-success-actions a),
.sfc-co-portal-card button {
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.sfc-co-app :is(.sfc-co-btn, .sfc-co-btn-primary, .sfc-co-btn-outline, .sfc-co-primary, .sfc-co-text-btn):disabled,
.sfc-co-booking .sfc-co-booking-submit:disabled,
.sfc-co-portal-card button:disabled {
  cursor: not-allowed;
  opacity: .58;
}
.sfc-co-app :is(.sfc-co-card, .sfc-co-modal-panel, .sfc-co-bookings-table-wrap),
.sfc-co-booking :is(.sfc-co-booking-shell, .sfc-co-booking-choice-card, .sfc-co-booking-summary-card, .sfc-co-booking-success-card),
.sfc-co-portal-card {
  border-color: var(--sfc-co-color-border, #D1D5DB);
}
.sfc-co-app :is(.sfc-co-booking-status, .sfc-co-status-badge) {
  font-weight: 600;
}
.sfc-co-app .sfc-co-location-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--sfc-co-color-muted, #687987);
}
.sfc-co-app .sfc-co-location-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  :where(.sfc-co-app, .sfc-co-booking, .sfc-co-portal-body) *,
  :where(.sfc-co-app, .sfc-co-booking, .sfc-co-portal-body) *::before,
  :where(.sfc-co-app, .sfc-co-booking, .sfc-co-portal-body) *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* 2.3.14 — calendar toolbar control alignment fixes. */
/* Keep the staff selector's arrow visible even when shared select styles load later. */
html body .sfc-co-app .sfc-co-toolbar-right select.sfc-co-staff-filter-select,
html body .sfc-co-app .sfc-co-toolbar-right > label.sfc-co-staff-filter select {
  padding-right: 38px !important;
  background-color: var(--sfc-co-color-surface, #FFFFFF) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%236B7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

@media (min-width: 768px) {
  html body .sfc-co-app .sfc-co-toolbar-right > button[data-action="add-appointment"],
  html body .sfc-co-app .sfc-co-toolbar-right > button[data-action="block-time"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-align: center !important;
    gap: 8px !important;
    padding: 0 18px !important;
    line-height: 1.2 !important;
    font-size: 13px !important;
  }
  html body .sfc-co-app .sfc-co-toolbar-right > button[data-action="add-appointment"] svg,
  html body .sfc-co-app .sfc-co-toolbar-right > button[data-action="block-time"] svg {
    flex: 0 0 auto !important;
  }
}


/* 2.3.15 — structural technician dropdown chevron.
   The arrow is an actual child element, not a pseudo-element or select background image. */
html body .sfc-co-app .sfc-co-toolbar-right > label.sfc-co-staff-filter {
  position: relative !important;
}
html body .sfc-co-app .sfc-co-toolbar-right > label.sfc-co-staff-filter > select.sfc-co-staff-filter-select {
  padding-right: 42px !important;
  background-image: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}
html body .sfc-co-app .sfc-co-toolbar-right > label.sfc-co-staff-filter > .sfc-co-staff-filter-chevron {
  position: absolute !important;
  z-index: 3 !important;
  top: 50% !important;
  right: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #64748B !important;
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
  transform: translateY(-50%) !important;
  line-height: 1 !important;
}
html body .sfc-co-app .sfc-co-toolbar-right > label.sfc-co-staff-filter > .sfc-co-staff-filter-chevron svg {
  display: block !important;
  width: 12px !important;
  height: 8px !important;
  overflow: visible !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.6 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}


/* 2.3.16 — definitive technician dropdown arrow fallback for desktop and mobile.
   Draw the chevron on the label itself so it remains visible even if an older cached
   app.js is served and does not contain the SVG child. */
html body.sfc-co-app .sfc-co-toolbar .sfc-co-toolbar-right > label.sfc-co-staff-filter {
  position: relative !important;
  display: block !important;
}
html body.sfc-co-app .sfc-co-toolbar .sfc-co-toolbar-right > label.sfc-co-staff-filter::after,
html body.sfc-co-app .sfc-co-toolbar .sfc-co-toolbar-right > label.sfc-co-staff-filter:hover::after,
html body.sfc-co-app .sfc-co-toolbar .sfc-co-toolbar-right > label.sfc-co-staff-filter:focus-within::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  width: 7px !important;
  height: 7px !important;
  margin: -5px 0 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-right: 1.6px solid #64748B !important;
  border-bottom: 1.6px solid #64748B !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: rotate(45deg) !important;
  pointer-events: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 10 !important;
}
html body.sfc-co-app .sfc-co-toolbar .sfc-co-toolbar-right > label.sfc-co-staff-filter > .sfc-co-staff-filter-chevron {
  display: none !important;
}
html body.sfc-co-app .sfc-co-toolbar .sfc-co-toolbar-right > label.sfc-co-staff-filter > select.sfc-co-staff-filter-select {
  padding-right: 42px !important;
  background-image: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}
