/* ── FullCalendar: Estilo Google Calendar ── */

.fc-event-title {
    white-space: pre-line !important;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.3;
}

.fc-timegrid-event {
    border-radius: 4px !important;
    border-left-width: 3px !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    padding: 3px 6px !important;
    min-height: 36px;
}

.calendar-card {
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.calendar-card:hover,
.calendar-card:focus {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18) !important;
    transform: translateY(-1px);
}

.calendar-card-free {
    border-left-color: #15803d !important;
    background: #16a34a !important;
}

.calendar-card-blocked {
    border-left-color: #3f3f46 !important;
    background: repeating-linear-gradient(
        135deg,
        #71717a 0,
        #71717a 8px,
        #66666f 8px,
        #66666f 16px
    ) !important;
}

.calendar-card-appointment {
    border-left-color: rgba(255, 255, 255, 0.7) !important;
}

.barber-slot-summary {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.barber-slot-summary__eyebrow {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.barber-slot-summary__time {
    margin-top: 0.35rem;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
}

.barber-slot-summary__date {
    margin-top: 0.35rem;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 600;
}

.barber-slot-summary__hint,
.barber-slot-empty {
    margin-top: 0.9rem;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

.appointment-current .fc-event-main {
    -webkit-animation: pulse-border 2s infinite;
    animation: pulse-border 2s infinite;
}
@-webkit-keyframes pulse-border {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.75; }
}
@keyframes pulse-border {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.75; }
}

.fc-timegrid-now-indicator-line {
    border-color: #ef4444 !important;
    border-width: 2px !important;
}
.fc-timegrid-now-indicator-arrow {
    border-top-color: #ef4444 !important;
    border-bottom-color: #ef4444 !important;
}

.fc-col-header-cell {
    padding: 6px 0 !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.calendar-past-time {
    opacity: 0.5;
}

.fc-timegrid-slot {
    height: 2.5rem !important;
}
.fc-timegrid-slot-minor {
    border-top-style: dotted !important;
    opacity: 0.4;
}

.fc-timegrid-slot-label {
    font-size: 0.68rem;
    vertical-align: top;
    padding-top: 2px;
}

/* Slots libres en vista lista (móvil) */
.free-slot .fc-list-event-title {
    opacity: 0.75;
    font-style: italic;
}
.fc-list-event.free-slot:hover {
    cursor: pointer;
}

/* Fuentes más grandes en pantallas pequeñas */
@media (min-width: 641px) {
    .fi-panel-barbero {
        background: #f8fafc;
    }

    .fi-panel-barbero .fi-main {
        padding-top: 1.75rem !important;
        padding-inline: clamp(1.5rem, 2.4vw, 2.5rem) !important;
    }

    .fi-panel-barbero .fi-page-main,
    .fi-panel-barbero .fi-page-content {
        row-gap: 1rem !important;
    }

    .fi-panel-barbero .fi-wi {
        gap: 1rem !important;
    }

    .fi-panel-barbero .fi-section {
        border: 1px solid #e5e7eb !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
    }

    .fi-panel-barbero .fi-section-content {
        padding: 1.6rem 1.8rem 1.8rem !important;
    }

    .fi-panel-barbero .fi-section > .flex.justify-end.flex-1.mb-4 {
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 1.05rem !important;
        padding-bottom: 1rem;
        border-bottom: 1px solid #eef2f7;
    }

    .fi-panel-barbero .fi-section > .flex.justify-end.flex-1.mb-4::before {
        color: #334155;
        content: "Agenda del barbero";
        font-size: 0.95rem;
        font-weight: 800;
    }

    .fi-panel-barbero .fi-section > .flex.justify-end.flex-1.mb-4 .fi-ac {
        align-items: center;
        flex-wrap: wrap;
        gap: 0.65rem !important;
    }

    .fi-panel-barbero .fi-section > .flex.justify-end.flex-1.mb-4 .fi-btn,
    .fi-panel-barbero .fi-section > .flex.justify-end.flex-1.mb-4 .fi-icon-btn {
        min-height: 42px;
        border-radius: 9px !important;
        font-size: 0.92rem !important;
        font-weight: 700 !important;
    }

    .fi-panel-barbero .fi-section > .flex.justify-end.flex-1.mb-4 .fi-btn {
        padding-inline: 0.9rem !important;
    }

    .fi-panel-barbero .filament-fullcalendar {
        overflow: hidden;
    }

    .fc {
        --fc-border-color: #dbe3ec;
        --fc-neutral-bg-color: #f8fafc;
        --fc-page-bg-color: #ffffff;
        --fc-small-font-size: 0.83rem;
    }

    .fc .fc-toolbar {
        display: grid;
        grid-template-columns: minmax(12rem, 1fr) auto minmax(12rem, 1fr);
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem !important;
    }

    .fc .fc-toolbar-chunk:first-child {
        justify-self: start;
    }

    .fc .fc-toolbar-chunk:nth-child(2) {
        justify-self: center;
        min-width: 18rem;
        text-align: center;
    }

    .fc .fc-toolbar-chunk:last-child {
        justify-self: end;
    }

    .fc .fc-toolbar-title {
        color: #0f172a;
        font-size: clamp(1.35rem, 1.7vw, 1.85rem);
        font-weight: 850;
        line-height: 1.1;
        text-transform: capitalize;
    }

    .fc .fc-button {
        min-height: 42px;
        border-radius: 8px !important;
        font-size: 0.9rem !important;
        font-weight: 750 !important;
        box-shadow: none !important;
    }

    .fc .fc-button-group {
        gap: 0.15rem;
    }

    .fc .fc-button-group .fc-button {
        border-radius: 8px !important;
    }

    .fc .fc-today-button {
        padding-inline: 0.95rem !important;
    }

    .fc .fc-scrollgrid {
        border-radius: 11px;
        overflow: hidden;
        border-color: #dbe3ec !important;
    }

    .fc .fc-col-header-cell {
        background: #fbfdff;
        padding: 0.75rem 0 !important;
        color: #0f172a;
        font-size: 0.82rem;
        font-weight: 850;
        letter-spacing: 0;
    }

    .fc .fc-timegrid-axis,
    .fc .fc-timegrid-slot-label {
        background: #fbfdff;
    }

    .fc .fc-timegrid-axis {
        width: 3.25rem !important;
    }

    .fc .fc-timegrid-slot-label {
        color: #475569;
        font-size: 0.78rem;
        font-weight: 700;
        padding-top: 0.35rem;
    }

    .fc .fc-timegrid-slot {
        height: 3rem !important;
    }

    .fc .fc-timegrid-slot-minor {
        border-top-style: solid !important;
        opacity: 0.55;
    }

    .fc .fc-non-business {
        background: #f3f4f6 !important;
    }

    .fc-timegrid-event {
        border-radius: 8px !important;
        border-left-width: 5px !important;
        min-height: 38px;
        padding: 6px 8px !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    }

    .fc-event-title {
        font-size: 0.78rem;
        font-weight: 750;
        line-height: 1.28;
    }

    .calendar-card-blocked {
        border: 1px solid #a8a8b3 !important;
        border-left: 5px solid #52525b !important;
        background: repeating-linear-gradient(
            135deg,
            #e4e4e7 0,
            #e4e4e7 8px,
            #d4d4d8 8px,
            #d4d4d8 16px
        ) !important;
        box-shadow: none !important;
    }

    .calendar-card-blocked .fc-event-main {
        color: #27272a !important;
    }

    .calendar-card-blocked .fc-event-title {
        color: #27272a !important;
        font-size: 0.78rem;
        font-style: normal;
        font-weight: 800;
        line-height: 1.25;
    }

    .calendar-card-appointment .fc-event-title {
        font-weight: 800;
    }

    .fc-timegrid-event.payment-pending {
        border-right-width: 4px !important;
    }
}

@media (max-width: 640px) {
    .fi-panel-barbero {
        background: #f8fafc;
    }

    .fi-panel-barbero .fi-main,
    .fi-panel-barbero .fi-page-main,
    .fi-panel-barbero .fi-page-content {
        row-gap: 1rem !important;
    }

    .fi-panel-barbero .fi-main {
        padding-inline: 0.75rem !important;
        padding-top: 1rem !important;
    }

    .fi-panel-barbero .fi-page-header-main-ctn {
        margin-bottom: 0.25rem !important;
    }

    .fi-panel-barbero .fi-page-heading {
        font-size: 1.45rem !important;
        line-height: 1.15 !important;
        font-weight: 850 !important;
    }

    .fi-panel-barbero .fi-wi {
        gap: 0.8rem !important;
    }

    .fi-panel-barbero .fi-wi-stats-overview {
        gap: 0.6rem !important;
    }

    .fi-panel-barbero .fi-wi-stats-overview-stat {
        border-radius: 10px !important;
        padding: 0.8rem !important;
    }

    .fi-panel-barbero .fi-wi-stats-overview-stat-value {
        font-size: 1.05rem !important;
        line-height: 1.2 !important;
    }

    .fi-panel-barbero .fi-wi-stats-overview-stat-label,
    .fi-panel-barbero .fi-wi-stats-overview-stat-description {
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
    }

    .fi-panel-barbero .fi-section {
        border-radius: 12px !important;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07) !important;
    }

    .fi-panel-barbero .fi-section-content {
        padding: 0.85rem !important;
    }

    .fi-panel-barbero .fi-section > .flex.justify-end.flex-1.mb-4 {
        justify-content: stretch !important;
        margin-bottom: 0.75rem !important;
    }

    .fi-panel-barbero .fi-section > .flex.justify-end.flex-1.mb-4 .fi-ac {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem !important;
        width: 100%;
    }

    .fi-panel-barbero .fi-section > .flex.justify-end.flex-1.mb-4 .fi-btn {
        min-height: 44px;
        width: 100%;
        justify-content: center;
        border-radius: 9px !important;
        padding-inline: 0.65rem !important;
        font-size: 0.84rem !important;
        white-space: nowrap;
    }

    .fi-panel-barbero .fi-section > .flex.justify-end.flex-1.mb-4 .fi-icon-btn {
        min-height: 44px;
        width: 100%;
        border-radius: 9px !important;
    }

    .fc {
        --fc-small-font-size: 0.82rem;
    }

    .fi-panel-barbero .filament-fullcalendar {
        margin-inline: -0.1rem;
        overflow: hidden;
    }

    .fc .fc-toolbar {
        align-items: stretch;
        gap: 0.5rem;
        margin-bottom: 0.75rem !important;
    }

    .fc .fc-toolbar-title {
        align-self: center;
        font-size: 0.98rem;
        font-weight: 800;
        line-height: 1.2;
        text-transform: capitalize;
        text-align: center;
    }

    .fc .fc-button {
        min-height: 44px;
        min-width: 44px;
        border-radius: 8px !important;
        font-weight: 700;
    }

    .fc .fc-button-group {
        gap: 0.15rem;
    }

    .fc .fc-button-group .fc-button {
        border-radius: 8px !important;
    }

    .fc .fc-today-button {
        padding-inline: 0.7rem !important;
    }

    .fc .fc-scrollgrid {
        border-radius: 10px;
        overflow: hidden;
    }

    .fc-event-title {
        font-size: 0.82rem;
        line-height: 1.25;
    }

    .fc-timegrid-slot-label {
        font-size: 0.78rem;
    }

    .fc-timegrid-slot {
        height: 3.25rem !important;
    }

    .fc-timegrid-axis {
        width: 2.3rem !important;
    }

    .fc-timegrid-event {
        border-radius: 8px !important;
        min-height: 48px;
        padding: 8px 10px !important;
        border-left-width: 5px !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
    }

    .fc-v-event .fc-event-main {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .calendar-card-free .fc-event-title,
    .calendar-card-blocked .fc-event-title {
        font-size: 0.86rem;
        font-weight: 800;
    }

    .fc-timegrid-col-events {
        margin-inline: 4px !important;
    }

    .fc-col-header-cell {
        padding: 10px 0 !important;
        font-size: 0.82rem;
    }

    .fc-timegrid-body,
    .fc-timegrid-cols table,
    .fc-timegrid-slots table {
        width: 100% !important;
    }

    .fc-scroller {
        -webkit-overflow-scrolling: touch;
    }

    .barber-slot-actions-modal {
        min-height: auto !important;
    }

    .barber-slot-actions-modal .fi-modal-content {
        flex: none !important;
        padding-bottom: 1rem !important;
    }

    .barber-slot-actions-modal .fi-modal-footer {
        margin-top: 0 !important;
        padding-top: 0.85rem !important;
    }

    .barber-slot-actions-modal .fi-modal-footer-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.65rem !important;
        width: 100%;
    }

    .barber-slot-actions-modal .fi-modal-footer-actions .fi-btn {
        justify-content: center;
        min-height: 46px;
        width: 100%;
    }

    .barber-slot-primary-action {
        order: 1;
    }

    .barber-slot-secondary-action {
        order: 2;
    }

    .barber-slot-actions-modal .fi-modal-footer-actions .fi-btn:not(.barber-slot-primary-action):not(.barber-slot-secondary-action) {
        order: 3;
    }

    .barber-slot-summary {
        padding: 1rem;
    }

    .barber-slot-summary__time {
        font-size: 1.45rem;
    }

    .barber-create-appointment-modal .fi-modal-header {
        padding-bottom: 0.85rem !important;
    }

    .barber-create-appointment-modal .fi-modal-description {
        margin-top: 0.35rem;
        max-width: 18rem;
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .barber-create-appointment-modal .fi-modal-content {
        padding-top: 1rem !important;
        padding-bottom: 1.1rem !important;
    }

    .barber-create-appointment-modal .fi-fo-field {
        gap: 0.45rem;
    }

    .barber-create-appointment-modal .fi-fo-field-label {
        font-size: 0.9rem;
        font-weight: 750;
    }

    .barber-create-appointment-modal .fi-input,
    .barber-create-appointment-modal .fi-select-input,
    .barber-create-appointment-modal .fi-select-input-btn {
        min-height: 48px;
        font-size: 0.95rem;
    }

    .barber-create-appointment-modal .fi-input-wrp,
    .barber-create-appointment-modal .fi-select-input {
        border-radius: 10px !important;
    }

    .barber-create-total {
        border: 1px solid #fde68a;
        border-radius: 10px;
        background: #fffbeb;
        padding: 0.85rem 1rem;
    }

    .barber-create-total .fi-fo-field-label {
        color: #92400e;
        font-size: 0.78rem;
        text-transform: uppercase;
    }

    .barber-create-total .fi-fo-field-content {
        color: #111827;
        font-size: 1.08rem;
        font-weight: 800;
    }

    .barber-create-appointment-modal .fi-toggle {
        min-height: 44px;
        align-items: center;
    }

    .barber-create-appointment-modal .fi-modal-footer {
        padding-top: 0.85rem !important;
    }

    .barber-create-appointment-modal .fi-modal-footer-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.65rem !important;
        width: 100%;
    }

    .barber-create-appointment-modal .fi-modal-footer-actions .fi-btn {
        justify-content: center;
        min-height: 48px;
        width: 100%;
    }

    .barber-create-appointment-modal .fi-modal-footer-actions .fi-btn:first-child {
        order: 1;
    }

    .barber-create-appointment-modal .fi-modal-footer-actions .fi-btn:last-child {
        order: 2;
    }

    .barber-schedule-block-create-page .fi-page-subheading {
        max-width: 19rem;
        color: #64748b !important;
        font-size: 0.9rem !important;
        line-height: 1.35 !important;
    }

    .barber-schedule-block-create-page .fi-page-content {
        margin-top: 0.75rem !important;
    }

    .barber-schedule-block-create-page .fi-section {
        border-radius: 12px !important;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
    }

    .barber-schedule-block-create-page .fi-section-content {
        padding: 0.95rem !important;
    }

    .barber-schedule-block-create-page .fi-section-header {
        padding: 0.95rem 0.95rem 0 !important;
    }

    .barber-schedule-block-create-page .fi-section-heading {
        font-size: 1rem !important;
        font-weight: 850 !important;
        line-height: 1.2 !important;
    }

    .barber-schedule-block-create-page .fi-section-description {
        margin-top: 0.25rem;
        color: #64748b !important;
        font-size: 0.84rem !important;
        line-height: 1.35 !important;
    }

    .barber-schedule-block-create-page .fi-fo-field {
        gap: 0.45rem;
    }

    .barber-schedule-block-create-page .fi-fo-field-label {
        font-size: 0.9rem;
        font-weight: 750;
    }

    .barber-schedule-block-create-page .fi-input,
    .barber-schedule-block-create-page .fi-input-wrp,
    .barber-schedule-block-create-page .fi-toggle {
        min-height: 48px;
    }

    .barber-schedule-block-create-page .fi-input-wrp {
        border-radius: 10px !important;
        background: #ffffff !important;
    }

    .barber-schedule-block-create-page .fi-input {
        font-size: 0.95rem;
    }

    .barber-schedule-block-create-page .fi-fo-field-wrp-helper-text {
        color: #64748b !important;
        font-size: 0.82rem !important;
        line-height: 1.35 !important;
    }

    .barber-schedule-block-create-page .fi-toggle {
        align-items: center;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #ffffff;
        padding: 0.65rem 0.75rem;
    }

    .barber-schedule-block-create-page form > .fi-sc-actions,
    .barber-schedule-block-create-page .fi-form-actions,
    .barber-schedule-block-create-page .fi-ac {
        width: 100%;
    }

    .barber-schedule-block-create-page .fi-ac {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.65rem !important;
    }

    .barber-schedule-block-create-page .fi-ac .fi-btn {
        justify-content: center;
        min-height: 48px;
        width: 100%;
        border-radius: 9px !important;
    }

    .barber-working-hours-page .fi-page-content {
        margin-top: 0.75rem !important;
    }

    .barber-working-hours-page .fi-ta {
        border-radius: 12px !important;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
    }

    .barber-working-hours-page .fi-ta-header,
    .barber-working-hours-page .fi-ta-toolbar {
        padding-inline: 0.9rem !important;
    }

    .barber-working-hours-page .fi-ta-description {
        color: #64748b !important;
        font-size: 0.9rem !important;
        line-height: 1.42 !important;
    }

    .barber-working-hours-page .fi-ta-filters,
    .barber-working-hours-page .fi-ta-toolbar {
        gap: 0.6rem !important;
    }

    .barber-working-hours-page .barber-working-hour-row {
        border-bottom: 8px solid #f8fafc !important;
        background: #ffffff !important;
    }

    .barber-working-hours-page .barber-working-hour-row-inactive {
        background: #f9fafb !important;
        opacity: 0.78;
    }

    .barber-working-hours-page .fi-ta-cell {
        padding-block: 0.35rem !important;
    }

    .barber-working-hours-page .barber-working-hour-day {
        padding-top: 0.8rem !important;
    }

    .barber-working-hours-page .barber-working-hour-day .fi-ta-text-item {
        color: #111827 !important;
        font-size: 1.08rem !important;
        font-weight: 850 !important;
    }

    .barber-working-hours-page .barber-working-hour-time .fi-ta-text-item {
        align-items: center;
        display: inline-flex;
        gap: 0.25rem;
        font-size: 1rem !important;
        font-weight: 800 !important;
    }

    .barber-working-hours-page .barber-working-hour-duration .fi-ta-text-item {
        color: #64748b !important;
        font-weight: 650 !important;
    }

    .barber-working-hours-page .barber-working-hour-status .fi-badge {
        min-height: 26px;
        border-radius: 7px !important;
        font-weight: 750;
    }

    .barber-working-hours-page .fi-ta-actions {
        padding: 0.75rem 0.9rem 0.9rem !important;
    }

    .barber-working-hours-page .barber-working-hour-edit-action {
        justify-content: center;
        min-height: 44px;
        width: 100%;
        border-radius: 9px !important;
    }

    .barber-working-hours-page .fi-modal-window {
        border-radius: 14px 14px 0 0 !important;
    }

    .barber-working-hours-page .fi-modal-content {
        padding-top: 1rem !important;
    }

    .barber-working-hours-page .fi-modal-footer-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.65rem !important;
        width: 100%;
    }

    .barber-working-hours-page .fi-modal-footer-actions .fi-btn {
        justify-content: center;
        min-height: 48px;
        width: 100%;
    }

    .barber-schedule-blocks-page .fi-page-subheading {
        max-width: 20rem;
        color: #64748b !important;
        font-size: 0.94rem !important;
        line-height: 1.42 !important;
    }

    .barber-schedule-blocks-page .fi-page-header-actions,
    .barber-schedule-blocks-page .fi-page-header-actions .fi-ac {
        width: 100%;
    }

    .barber-schedule-blocks-page .barber-schedule-block-create-action {
        justify-content: center;
        min-height: 44px;
        width: 100%;
        border-radius: 9px !important;
    }

    .barber-schedule-blocks-page .fi-page-content {
        margin-top: 0.75rem !important;
    }

    .barber-schedule-blocks-page .fi-ta {
        border-radius: 12px !important;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
    }

    .barber-schedule-blocks-page .fi-ta-header,
    .barber-schedule-blocks-page .fi-ta-toolbar {
        padding-inline: 0.9rem !important;
    }

    .barber-schedule-blocks-page .fi-ta-search-field {
        width: 100% !important;
    }

    .barber-schedule-blocks-page .fi-ta-search-field .fi-input-wrp {
        min-height: 44px;
        border-radius: 10px !important;
    }

    .barber-schedule-blocks-page .fi-ta-filters,
    .barber-schedule-blocks-page .fi-ta-toolbar {
        gap: 0.6rem !important;
    }

    .barber-schedule-blocks-page .barber-schedule-block-row {
        position: relative;
        border-bottom: 8px solid #f8fafc !important;
        background: #ffffff !important;
    }

    .barber-schedule-blocks-page .barber-schedule-block-row::before {
        position: absolute;
        inset-block: 0.85rem;
        left: 0;
        width: 4px;
        border-radius: 0 999px 999px 0;
        background: #f59e0b;
        content: "";
    }

    .barber-schedule-blocks-page .barber-schedule-block-row-once::before {
        background: #64748b;
    }

    .barber-schedule-blocks-page .fi-ta-cell {
        padding-block: 0.35rem !important;
        padding-inline-start: 1rem !important;
    }

    .barber-schedule-blocks-page .barber-schedule-block-time {
        padding-top: 0.8rem !important;
    }

    .barber-schedule-blocks-page .barber-schedule-block-time .fi-ta-text-item {
        color: #111827 !important;
        font-size: 1rem !important;
        font-weight: 850 !important;
        line-height: 1.25 !important;
    }

    .barber-schedule-blocks-page .barber-schedule-block-time .fi-ta-text-description {
        color: #64748b !important;
        font-size: 0.84rem !important;
        line-height: 1.3 !important;
    }

    .barber-schedule-blocks-page .barber-schedule-block-reason .fi-ta-text-item {
        color: #1f2937 !important;
        font-weight: 650 !important;
        line-height: 1.35 !important;
    }

    .barber-schedule-blocks-page .barber-schedule-block-type .fi-badge {
        min-height: 26px;
        border-radius: 7px !important;
        font-weight: 750;
    }

    .barber-schedule-blocks-page .fi-ta-actions {
        padding: 0.75rem 0.9rem 0.9rem 1rem !important;
    }

    .barber-schedule-blocks-page .fi-ta-actions .fi-ac {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem !important;
        width: 100%;
    }

    .barber-schedule-blocks-page .barber-schedule-block-edit-action,
    .barber-schedule-blocks-page .barber-schedule-block-delete-action {
        justify-content: center;
        min-height: 44px;
        width: 100%;
        border-radius: 9px !important;
    }

    .barber-schedule-blocks-page .fi-pagination {
        padding-inline: 0.9rem !important;
    }

    .barber-schedule-blocks-page .fi-modal-footer-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.65rem !important;
        width: 100%;
    }

    .barber-schedule-blocks-page .fi-modal-footer-actions .fi-btn {
        justify-content: center;
        min-height: 48px;
        width: 100%;
    }

    .barber-appointments-page .fi-page-subheading {
        max-width: 20rem;
        color: #64748b !important;
        font-size: 0.94rem !important;
        line-height: 1.42 !important;
    }

    .barber-appointments-page .fi-page-header-actions,
    .barber-appointments-page .fi-page-header-actions .fi-ac {
        width: 100%;
    }

    .barber-appointments-page .barber-appointment-create-action {
        justify-content: center;
        min-height: 44px;
        width: 100%;
        border-radius: 9px !important;
    }

    .barber-appointments-page .fi-tabs {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem !important;
        overflow: visible;
        padding: 0.45rem !important;
    }

    .barber-appointments-page .fi-tabs-item {
        justify-content: center;
        min-width: 0;
        min-height: 48px;
        border-radius: 8px !important;
        text-align: center;
        white-space: normal;
    }

    .barber-appointments-page .fi-tabs-item:last-child {
        grid-column: 1 / -1;
    }

    .barber-appointments-page .fi-tabs-item-label {
        min-width: 0;
        font-size: 0.78rem !important;
        line-height: 1.15 !important;
        text-align: center;
        white-space: normal;
    }

    .barber-appointments-page .fi-page-content {
        margin-top: 0.75rem !important;
    }

    .barber-appointments-page .fi-ta {
        border-radius: 12px !important;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
    }

    .barber-appointments-page .fi-ta-header,
    .barber-appointments-page .fi-ta-toolbar {
        padding-inline: 0.9rem !important;
    }

    .barber-appointments-page .fi-ta-header-toolbar {
        align-items: stretch !important;
        gap: 0.6rem !important;
    }

    .barber-appointments-page .fi-ta-search-field {
        width: 100% !important;
    }

    .barber-appointments-page .fi-ta-search-field .fi-input-wrp {
        min-height: 44px;
        border-radius: 10px !important;
    }

    .barber-appointments-page .fi-ta-filters,
    .barber-appointments-page .fi-ta-toolbar {
        gap: 0.6rem !important;
    }

    .barber-appointments-page .fi-ta-filters .fi-btn {
        justify-content: center;
        min-height: 44px;
        border-radius: 9px !important;
    }

    .barber-appointments-page .fi-ta-empty-state {
        padding-block: 2.5rem !important;
    }

    .barber-appointments-page .fi-ta-empty-state-heading {
        font-size: 0.98rem !important;
        line-height: 1.3 !important;
    }

    .barber-appointments-page .fi-ta-empty-state-description {
        max-width: 16rem;
        margin-inline: auto;
        color: #64748b !important;
        font-size: 0.86rem !important;
        line-height: 1.4 !important;
    }

    .barber-appointments-page .barber-appointment-row {
        position: relative;
        border-bottom: 8px solid #f8fafc !important;
        background: #ffffff !important;
    }

    .barber-appointments-page .barber-appointment-row::before {
        position: absolute;
        inset-block: 0.85rem;
        left: 0;
        width: 4px;
        border-radius: 0 999px 999px 0;
        background: #f59e0b;
        content: "";
    }

    .barber-appointments-page .barber-appointment-row-confirmed::before {
        background: #22c55e;
    }

    .barber-appointments-page .barber-appointment-row-completed::before {
        background: #64748b;
    }

    .barber-appointments-page .barber-appointment-row-cancelled {
        opacity: 0.74;
    }

    .barber-appointments-page .barber-appointment-row-cancelled::before {
        background: #ef4444;
    }

    .barber-appointments-page .fi-ta-cell {
        padding-block: 0.32rem !important;
        padding-inline-start: 1rem !important;
    }

    .barber-appointments-page .barber-appointment-time {
        padding-top: 0.8rem !important;
    }

    .barber-appointments-page .barber-appointment-time .fi-ta-text-item {
        color: #111827 !important;
        font-size: 1.05rem !important;
        font-weight: 850 !important;
        line-height: 1.25 !important;
    }

    .barber-appointments-page .barber-appointment-time .fi-ta-text-description {
        color: #64748b !important;
        font-size: 0.84rem !important;
        line-height: 1.3 !important;
    }

    .barber-appointments-page .barber-appointment-client .fi-ta-text-item {
        color: #111827 !important;
        font-size: 1rem !important;
        font-weight: 800 !important;
    }

    .barber-appointments-page .barber-appointment-client .fi-ta-text-description,
    .barber-appointments-page .barber-appointment-service .fi-ta-text-description {
        color: #64748b !important;
        font-size: 0.84rem !important;
    }

    .barber-appointments-page .barber-appointment-service .fi-ta-text-item {
        color: #1f2937 !important;
        font-weight: 700 !important;
    }

    .barber-appointments-page .barber-appointment-status .fi-badge,
    .barber-appointments-page .barber-appointment-payment .fi-badge {
        min-height: 26px;
        border-radius: 7px !important;
        font-weight: 750;
    }

    .barber-appointments-page .fi-ta-actions {
        padding: 0.75rem 0.9rem 0.9rem 1rem !important;
    }

    .barber-appointments-page .fi-ta-actions .fi-ac {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem !important;
        width: 100%;
    }

    .barber-appointments-page .fi-ta-actions .fi-btn {
        justify-content: center;
        min-height: 44px;
        width: 100%;
        border-radius: 9px !important;
    }

    .barber-appointments-page .barber-appointment-more-action {
        grid-column: 1 / -1;
    }

    .barber-appointments-page .fi-pagination {
        padding-inline: 0.9rem !important;
    }

    .barber-appointments-page .fi-modal-footer-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.65rem !important;
        width: 100%;
    }

    .barber-appointments-page .fi-modal-footer-actions .fi-btn {
        justify-content: center;
        min-height: 48px;
        width: 100%;
    }
}

/* Indicador de pago pendiente en eventos del calendario */
.fc-timegrid-event.payment-pending {
    border-right: 2px solid #f59e0b !important;
}
.payment-pending .fc-event-main {
    position: relative;
}
.payment-pending .fc-event-main::after {
    content: '💰';
    position: absolute;
    right: 3px;
    top: 2px;
    font-size: 9px;
    line-height: 1;
}

/* Barber agenda: stable responsive shell */
.barber-calendar-shell .barber-calendar-actions {
    margin-bottom: 1rem;
}

.barber-calendar-shell .barber-calendar-actions > .fi-ac {
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem !important;
}

.barber-calendar-shell .barber-calendar-action {
    min-height: 42px;
    border-radius: 9px !important;
    font-weight: 750 !important;
}

@media (max-width: 640px) {
    .fi-panel-barbero .fi-page-heading {
        color: #0f172a !important;
    }

    .dark .fi-panel-barbero,
    .dark .fi-panel-barbero .fi-main {
        background: #030712 !important;
    }

    .dark .fi-panel-barbero .fi-page-heading {
        color: #f8fafc !important;
    }

    .fi-panel-barbero .fi-main {
        padding-inline: 0.5rem !important;
        padding-top: 0.75rem !important;
    }

    .barber-calendar-shell.fi-section > .fi-section-content {
        padding: 0.65rem !important;
    }

    .barber-calendar-shell .barber-calendar-actions {
        margin-bottom: 0.65rem;
    }

    .barber-calendar-shell .barber-calendar-actions > .fi-ac {
        display: flex !important;
        gap: 0.45rem !important;
        width: 100%;
    }

    .barber-calendar-shell .barber-calendar-action {
        min-height: 44px;
        justify-content: center;
        border-radius: 10px !important;
        padding-inline: 0.55rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
    }

    .barber-calendar-shell .barber-calendar-action--create,
    .barber-calendar-shell .barber-calendar-action--filter {
        flex: 1 1 calc(50% - 0.25rem);
    }

    .barber-calendar-shell .barber-calendar-action--current,
    .barber-calendar-shell .barber-calendar-action--next,
    .barber-calendar-shell .barber-calendar-action--clear {
        flex: 1 1 6.25rem;
    }

    .barber-calendar-shell .barber-calendar-action--block {
        flex: 0 0 44px;
        width: 44px;
        padding-inline: 0 !important;
    }

    .barber-calendar-shell .fc .fc-toolbar {
        gap: 0.35rem;
        margin-bottom: 0.5rem !important;
    }

    .barber-calendar-shell .fc .fc-toolbar-title {
        font-size: 0.92rem;
    }

    .barber-calendar-shell .fc .fc-button {
        min-height: 42px;
        min-width: 42px;
    }

    .barber-calendar-shell .fc .fc-today-button {
        padding-inline: 0.6rem !important;
    }

    .barber-calendar-shell .fc-timegrid-axis {
        width: 2rem !important;
    }

    .barber-calendar-shell .fc-timegrid-slot {
        height: 3rem !important;
    }

    .barber-calendar-shell .fc-timegrid-col-events {
        margin-inline: 3px !important;
    }

    .barber-calendar-shell .fc-timegrid-event {
        min-height: 44px;
        padding: 4px 7px !important;
    }

    .barber-calendar-shell .fc-v-event .fc-event-main {
        min-width: 0;
        min-height: 36px;
        overflow: hidden;
    }

    .barber-calendar-shell .fc-event-title,
    .barber-calendar-shell .calendar-card-blocked .fc-event-title {
        display: block;
        min-width: 0;
        overflow: hidden;
        font-size: 0.78rem;
        font-weight: 800;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap !important;
    }

    .barber-calendar-shell .fc-col-header-cell {
        padding: 8px 0 !important;
    }
}
