h2, h3 {
    font-size: 1.3em !important;
    margin: 1em 0 !important;
    font-weight: 600 !important;
}

/* Dashboard */
.fc-event-main,        /* the main content wrapper in v6 */
.fc-event,             /* fallback for other versions */
.fc-daygrid-event,     /* month‐view events */
.fc-timegrid-event {   /* week/day‐view events */
  overflow: hidden !important;
}

.fc-event-service {
    font-weight: 600;
}

/* Appointments list */
.appointment-table .column-id {
    width: 8ch;
}

.appointment-table th, .appointment-table td, .customer-table th, .customer-table td {
    padding: 10px 8px !important;
    vertical-align: middle !important;
}

.appointment-status {
    display: inline-flex;
    line-height: 2.5em;
    border-radius: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    margin: -.25em 0;
    cursor: inherit !important;
    white-space: nowrap;
    max-width: 100%;
    padding: 0 1em;
}

.appointment-table .edit-appointment {
    font-weight: 600;
    vertical-align: middle;
}

.appointment-table .edit-appointment-icon {
    float: right;
    width: 16px;
    padding: 20px 4px 4px 4px;
    height: 0;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    border-radius: 4px;
}

.appointment-table .edit-appointment-icon::before {
    font-family: dashicons;
    content: "\f464";
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    margin: 0;
    text-indent: 0;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 16px;
    font-size: 14px;
    vertical-align: middle;
    top: 4px;
}

.appointment-table .appointment-datetime {
    vertical-align: -webkit-baseline-middle;
}

.appointment-table .pending {
    background: #f8dda7;
    color: #573b00;
}

.appointment-table .confirmed {
    background: #c6e1c6;
    color: #2c4700;
}

.appointment-table .completed {
    background: #c8d7e1;
    color: #003d66;
}

.appointment-table .cancelled {
    color: #454545;
    background: #e5e5e5;
}

.appointment-table .missed {
    background: #eba3a3;
    color: #570000;
}

.appointment-table .actions {
    padding: 0 7px;
    margin-right: 5px;
}

.appointment-table .action-confirmed::before {
    font-family: dashicons;
    font-size: 14px;
    content: "\f159";
}
.appointment-table .action-completed::before {
    font-family: dashicons;
    font-size: 14px;
    content: "\f147";
}
.appointment-table .action-cancelled::before {
    font-family: dashicons;
    font-size: 14px;
    content: "\f158";
}
.appointment-table .action-missed::before {
    font-family: dashicons;
    font-size: 14px;
    content: "\f534";
}

#add-appointment-modal button {
    float: right;
}

/* Add new appointment modal */
.yo-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 100000; /* above WP admin */
  display: none; /* toggle to flex when open */
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.4);
}

.yo-booking-modal.is-open { display: flex; }

.yo-booking-modal-content {
  background: #fff;
  width: min(560px, 95vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  padding: 24px 24px 28px;
  position: relative;
}

/* Close button */
.yo-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Form grid */
.yo-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.yo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 16px;
  margin-bottom: 16px;
}

.yo-col-span-3 { grid-column: 1 / -1; }

/* Fields */
.yo-field label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
}

.yo-field input[type="text"],
.yo-field input[type="email"],
.yo-field input[type="tel"],
.yo-field input[type="time"],
.yo-field input[type="date"],
.yo-field input[type="number"],
.yo-field select,
.yo-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Make intl-tel-input fill the column */
.yo-field .iti { width: 100%; }

/* Actions */
.yo-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

/* Responsive breakpoints (match WP admin breakpoints roughly) */
@media (max-width: 1200px) {
    .yo-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
    .yo-grid-2 { grid-template-columns: 1fr; }
    .yo-grid-3 { grid-template-columns: 1fr; }
}


/* Edit appointment */
#edit-appointment-form #edit_appointment_duration {
    width: 80px;
}
#edit-appointment-form #edit_customer_name, #edit-appointment-form #edit_customer_phone, #edit-appointment-form #edit_customer_email {
    width: 180px;
}

#edit-appointment-form p, #edit-customer-modal p {
    display: flex;
}

#edit-appointment-form textarea {
    width: 300px;
}

#edit-appointment-form .updated-at {
    font-size: 0.9em;
}

#edit-appointment-form #delete-link {
    margin-right: 8px;
}

.customer_name {
    display: relative;
}

#edit_customer_name_text {
    display: flex;
    align-items: center;
    justify-content: end;
    font-size: 90%;
}

#edit_customer_name_text .dashicons {
    font-size: 16px;
    margin-top: 5px;
}

#edit_customer_name_text a, .connected-user a {
    text-decoration: none;
}

/* Services */
#service_duration {
    width: 70px;
}

.id-column {
    width: 3em;
}

.actions-column {
    width: 6em;
}

.inline-edit-legend {
    margin: 0;
    padding: .2em 0;
    line-height: 2.5;
    font-weight: 600;
}

/* Staff */
#staff_custom_schedule th {
    width: 100px;
}

.select-all-services {
    float: right;
    margin-right: 30px;
}

/* Customers */
.yo-booking-modal-content .form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

#add-customer-modal #customer_name, #add-customer-modal #customer_phone, #add-customer-modal #customer_email, #edit-customer-modal #edit_customer_name, #edit-customer-modal #edit_customer_phone, #edit-customer-modal #edit_customer_email {
    width: 180px;
}

#add-customer-modal textarea, #edit-customer-modal textarea {
    width: 300px;
}

.yo-booking-modal-content .message {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.message .customer-email-message, .message .customer-phone-message {
    font-size: 0.9em;
    color: #d63638;
}

#add-customer-modal .button, #edit-customer-modal .button {
    float: right;
}

.customer-table .actions {
    padding: 0 7px;
}

.customer-table .column-id {
    width: 3em;
}

.customer-table .column-appointments {
    width: 6.5em;
}

.customer-table .column-actions {
    width: 4em;
}

.customer-table .edit-customer::before {
    font-family: dashicons;
    font-size: 14px;
    content: "\f464";
}

#edit-customer-modal #delete-link {
    margin-left: 0;
}

/* Notifications */
.notifications-description {
    margin-bottom: 20px;
}

.notifications-table th {
    font-weight: 700;
}

.notifications-table th, .notifications-table td {
    display: table-cell !important;
    padding: 1em !important;
    vertical-align: middle !important;
    line-height: 1.75em;
}

.notifications-table .column-status {
    width: 1em;
}

.notifications-table .status-enabled, .notifications-table .status-disabled {
    font-size: 1.6em;
    display: block;
    height: 1em;
    width: 1em;
}

.notifications-table .status-disabled:before {
    font-family: 'dashicons';
    line-height: 1;
    margin: 0;
    text-indent: 0;
    content: "\f153";
    color: #ccc;
}

#edit-email-modal input[type=text] {
    width: 350px;
}

#edit-email-modal input[type=checkbox] {
    margin: 0;
}

#edit-email-modal textarea {
    width: 350px;
    height: 200px;
}

.email-guide {
    font-size: .9em;
}
.email-guide .dashicons {
    font-size: 16px;
    vertical-align: middle;
    width: auto;
    height: auto;
}
.email-guide a {
    text-decoration: none;
    vertical-align: middle;
}

/* Settings > Section2 */
li.select2-search.select2-search--inline {
    margin-bottom: 0;
}

.select2-selection__choice {
    margin: 5px 5px 0 0 !important;
    padding: 4px 6px !important;
}

.select2-container--open .select2-dropdown {
    border-color: var(--wp-admin-theme-color, #007cba);
}

.select2-container--open .select2-dropdown--above, .select2-container--open .select2-dropdown--below {
    box-shadow: 0 0 0 1px var(--wp-admin-theme-color,#007cba),0 2px 1px rgba(0,0,0,.1);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: solid 1px !important;
    border-color: var(--wp-admin-theme-color, #007cba);
    box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #007cba);
}

.select2-results__option {
    padding: 8px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--wp-admin-theme-color,#007cba) !important;
}

/* Settings > Appearance */
.yo-booking-settings-appearance td {
    display: flex;
}