/**
 * iSATManager Design System
 * Mobile-first · Inter · Paleta suave
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --cpm-primary: #B7CEEB;
    --cpm-secondary: #9BFFED;
    --cpm-tertiary: #FFF4BD;
    --cpm-neutral: #333333;
    --cpm-neutral-light: #6B7280;
    --cpm-bg: #F5F7FA;
    --cpm-surface: #FFFFFF;
    --cpm-radius: 16px;
    --cpm-radius-sm: 12px;
    --cpm-shadow: 0 4px 20px rgba(51, 51, 51, 0.08);
    --cpm-shadow-sm: 0 2px 8px rgba(51, 51, 51, 0.06);
    --cpm-bottom-nav-h: 72px;
    --cpm-font: 'Inter', system-ui, -apple-system, sans-serif;
}

body.isat-app {
    font-family: var(--cpm-font);
    background: var(--cpm-bg);
    color: var(--cpm-neutral);
}

/* ── App shell ── */
.isat-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--cpm-surface);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--cpm-shadow-sm);
}

.isat-app-header__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    text-align: left;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.isat-app-header__user:active {
    opacity: 0.85;
}

.isat-app-header__text {
    min-width: 0;
    flex: 1;
}

.isat-app-header__chevron {
    font-size: 0.875rem;
    color: var(--cpm-neutral-light);
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.isat-app-header__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--cpm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--cpm-neutral);
    flex-shrink: 0;
}

.isat-app-header__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.isat-app-header__greeting {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--cpm-neutral);
}

.isat-app-header__brand {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--cpm-neutral-light);
    margin: 0;
}

.isat-app-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.isat-icon-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cpm-neutral);
    font-size: 1.25rem;
    position: relative;
}

.isat-icon-btn:hover {
    background: var(--cpm-bg);
}

.isat-icon-btn__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    border: 2px solid var(--cpm-surface);
}

/* ── Main content area ── */
.isat-app .main-content {
    background: var(--cpm-bg);
    padding: 0 0 calc(var(--cpm-bottom-nav-h) + 1rem);
    min-height: 100vh;
}

.isat-app #dashboard-content {
    padding: 1rem 1.25rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Agenda de hoy ── */
.agenda-section__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--cpm-neutral);
}

.agenda-section__subtitle {
    font-size: 0.875rem;
    color: var(--cpm-neutral-light);
    margin: 0 0 1.25rem;
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.agenda-card {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    padding: 1rem;
    box-shadow: var(--cpm-shadow-sm);
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.agenda-card:active {
    transform: scale(0.98);
}

.agenda-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--cpm-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    color: var(--cpm-neutral);
}

.agenda-card__icon--primary { background: var(--cpm-primary); }
.agenda-card__icon--secondary { background: var(--cpm-secondary); }
.agenda-card__icon--tertiary { background: var(--cpm-tertiary); }

.agenda-card__body {
    flex: 1;
    min-width: 0;
}

.agenda-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.agenda-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--cpm-neutral);
    line-height: 1.3;
}

.agenda-card__time {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cpm-neutral);
    background: var(--cpm-bg);
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.agenda-card__location {
    font-size: 0.8125rem;
    color: var(--cpm-neutral-light);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.agenda-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    color: var(--cpm-neutral-light);
}

.agenda-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

/* ── FAB ── */
.isat-fab {
    position: fixed;
    bottom: calc(var(--cpm-bottom-nav-h) + 1rem);
    right: 1.25rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--cpm-secondary);
    color: var(--cpm-neutral);
    border: none;
    box-shadow: 0 4px 16px rgba(155, 255, 237, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 200;
    transition: transform 0.15s;
}

.isat-fab:active {
    transform: scale(0.95);
}

/* ── Bottom navigation ── */
.isat-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--cpm-bottom-nav-h);
    background: var(--cpm-surface);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 16px rgba(51, 51, 51, 0.08);
    z-index: 300;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.isat-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--cpm-neutral-light);
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--cpm-font);
}

.isat-bottom-nav__item i {
    font-size: 1.35rem;
}

.isat-bottom-nav__item.active,
.isat-bottom-nav__item[aria-current="page"] {
    color: var(--cpm-neutral);
}

.isat-bottom-nav__item.active i,
.isat-bottom-nav__item[aria-current="page"] i {
    background: var(--cpm-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Buttons (design system) ── */
.btn-isat-primary {
    background: var(--cpm-secondary);
    color: var(--cpm-neutral);
    border: none;
    border-radius: var(--cpm-radius-sm);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-family: var(--cpm-font);
}

.btn-isat-outline {
    background: var(--cpm-surface);
    color: var(--cpm-neutral);
    border: 1.5px solid var(--cpm-neutral);
    border-radius: var(--cpm-radius-sm);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-family: var(--cpm-font);
}

/* ── Mobile: hide sidebar, show bottom nav ── */
@media (max-width: 991px) {
    .isat-app .grid-container {
        grid-template-columns: 1fr;
        background: var(--cpm-bg);
    }

    .isat-app #sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        width: 280px !important;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
    }

    .isat-app #sidebar.active {
        left: 0;
    }

    .isat-app .sidebar-overlay.active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1040;
    }

    .isat-app header.main-header {
        display: none;
    }
}

@media (min-width: 992px) {
    .isat-bottom-nav,
    .isat-fab {
        display: none;
    }

    .isat-app .main-content {
        padding-bottom: 0;
    }

    .isat-app #dashboard-content {
        max-width: none;
    }

    .isat-app-header {
        display: none;
    }

    .isat-app header.main-header {
        display: block;
    }
}

/* Override legacy cards inside isat app */
.isat-app .cpm-card-item {
    border-radius: var(--cpm-radius);
    box-shadow: var(--cpm-shadow-sm);
    border: none;
}

.isat-app .card {
    border-radius: var(--cpm-radius);
    border: none;
    box-shadow: var(--cpm-shadow-sm);
}

/* ── Agenda mobile (pestaña Agenda) ── */
.agenda-mobile-view {
    display: block;
}

.agenda-calendar-card {
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    box-shadow: var(--cpm-shadow);
    padding: 1.25rem 1rem 1rem;
    margin-bottom: 1.5rem;
}

.agenda-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.agenda-month-nav__title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0;
    text-transform: capitalize;
    color: var(--cpm-neutral);
}

.agenda-month-nav__btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--cpm-bg);
    border-radius: 50%;
    box-shadow: var(--cpm-shadow-sm);
    color: var(--cpm-neutral-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.agenda-month-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #9CA3AF;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    padding: 0 0.15rem;
}

.agenda-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem 0.15rem;
}

.agenda-month-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--cpm-font);
    padding: 0.35rem 0.15rem 0.5rem;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.agenda-month-day__num {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cpm-neutral);
    line-height: 1.2;
}

.agenda-month-day--muted .agenda-month-day__num {
    color: #D1D5DB;
    font-weight: 500;
}

.agenda-month-day.active {
    background: #E0F2FE;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.agenda-month-day.active .agenda-month-day__num {
    color: #2563EB;
    font-weight: 700;
}

.agenda-month-day__dot {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3B82F6;
}

.agenda-month-day--muted.has-events .agenda-month-day__dot {
    background: #93C5FD;
}

.agenda-services-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.agenda-services-header__title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cpm-neutral-light);
    margin: 0;
}

.agenda-services-header__date {
    font-size: 0.75rem;
    color: var(--cpm-neutral-light);
}

.agenda-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 4rem;
}

.agenda-services-loading {
    text-align: center;
    padding: 2rem;
}

/* Tarjeta servicio (Agenda) */
.service-card {
    display: flex;
    align-items: stretch;
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    box-shadow: var(--cpm-shadow-sm);
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    font-family: var(--cpm-font);
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.service-card__accent {
    width: 4px;
    flex-shrink: 0;
}

.service-card__accent--pendiente { background: #F59E0B; }
.service-card__accent--en-curso { background: #3B82F6; }
.service-card__accent--completado { background: #10B981; }

.service-card__inner {
    flex: 1;
    padding: 1rem;
    min-width: 0;
}

.service-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.service-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--cpm-neutral);
}

.service-card__badge {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.service-card__badge--pendiente {
    background: #FEF3C7;
    color: #B45309;
}

.service-card__badge--en-curso {
    background: #DBEAFE;
    color: #1D4ED8;
}

.service-card__badge--completado {
    background: #D1FAE5;
    color: #047857;
}

.service-card__address {
    font-size: 0.8125rem;
    color: var(--cpm-neutral-light);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    line-height: 1.4;
}

.service-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.service-card__time {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
}

.service-card__time--pendiente { background: #FEF3C7; color: #B45309; }
.service-card__time--en-curso { background: #DBEAFE; color: #1D4ED8; }
.service-card__time--completado { background: #D1FAE5; color: #047857; }

.service-card__action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--cpm-bg);
    color: var(--cpm-neutral-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card__action--done {
    background: #D1FAE5;
    color: #047857;
}

.agenda-services-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    color: var(--cpm-neutral-light);
}

.agenda-services-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.45;
}

/* ── Panel FullCalendar (FAB +) ── */
.calendar-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--cpm-bottom-nav-h);
    z-index: 250;
    background: var(--cpm-bg);
    transform: translateY(100%);
    transition: transform 0.32s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.calendar-sheet.active {
    transform: translateY(0);
}

body.calendar-sheet-open {
    overflow: hidden;
}

body.calendar-sheet-open .isat-fab {
    opacity: 0;
    pointer-events: none;
}

.calendar-sheet__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--cpm-surface);
    box-shadow: var(--cpm-shadow-sm);
    flex-shrink: 0;
}

.calendar-sheet__back {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--cpm-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--cpm-neutral);
}

.calendar-sheet__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--cpm-neutral);
}

.calendar-sheet__subtitle {
    font-size: 0.75rem;
    color: var(--cpm-neutral-light);
    margin: 0;
}

.calendar-sheet__body {
    flex: 1;
    overflow: auto;
    padding: 0.5rem;
}

.calendar-sheet__body #fullcalendar {
    min-height: calc(100vh - var(--cpm-bottom-nav-h) - 120px);
}

@media (min-width: 992px) {
    .agenda-mobile-view {
        display: none;
    }

    .calendar-sheet {
        display: none !important;
    }

    .clients-mobile-view {
        display: none;
    }

    .client-detail-sheet {
        display: none !important;
    }
}

/* ── Clientes mobile ── */
.clients-mobile-view {
    padding-bottom: 4rem;
}

.clients-search {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    padding: 0.75rem 1rem;
    box-shadow: var(--cpm-shadow-sm);
    margin-bottom: 1rem;
}

.clients-search i {
    color: var(--cpm-neutral-light);
    font-size: 1.1rem;
}

.clients-search__input {
    border: none;
    background: transparent;
    flex: 1;
    font-family: var(--cpm-font);
    font-size: 0.9375rem;
    color: var(--cpm-neutral);
    outline: none;
}

.clients-search__input::placeholder {
    color: #9CA3AF;
}

.clients-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.clients-filter {
    flex: 1;
    border: none;
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius-sm);
    padding: 0.625rem 1rem;
    font-family: var(--cpm-font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cpm-neutral-light);
    box-shadow: var(--cpm-shadow-sm);
    cursor: pointer;
}

.clients-filter.active {
    color: #2563EB;
    background: #EEF4FF;
    box-shadow: inset 0 0 0 1.5px #93C5FD;
}

.clients-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.client-card {
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    padding: 1rem;
    box-shadow: var(--cpm-shadow-sm);
}

.client-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
}

.client-card__identity {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.client-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--cpm-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.client-card__avatar--person {
    background: var(--cpm-primary);
    color: var(--cpm-neutral);
}

.client-card__avatar--company {
    background: #E0E7FF;
    color: #4338CA;
}

.client-card__name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--cpm-neutral);
    line-height: 1.3;
}

.client-card__badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.client-card__badge--activo {
    background: #D1FAE5;
    color: #047857;
}

.client-card__badge--urgente {
    background: #FEE2E2;
    color: #B91C1C;
}

.client-card__badge--pendiente {
    background: #F3F4F6;
    color: #6B7280;
}

.client-card__phone {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cpm-bg);
    color: #2563EB;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.client-card__address {
    font-size: 0.8125rem;
    color: var(--cpm-neutral-light);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    line-height: 1.4;
}

.client-card__note {
    font-size: 0.75rem;
    color: #047857;
    margin: 0 0 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.client-card__note-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    flex-shrink: 0;
}

.client-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.625rem;
    border-top: 1px solid #F3F4F6;
}

.client-card__visit {
    font-size: 0.75rem;
    color: var(--cpm-neutral-light);
}

.client-card__link {
    border: none;
    background: none;
    color: #2563EB;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-family: var(--cpm-font);
    cursor: pointer;
    padding: 0;
}

.clients-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    color: var(--cpm-neutral-light);
}

.clients-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.45;
}

/* Ficha cliente */
.client-detail-sheet {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: var(--cpm-bg);
    transform: translateY(100%);
    transition: transform 0.32s ease;
    display: flex;
    flex-direction: column;
}

.client-detail-sheet.active {
    transform: translateY(0);
}

body.client-detail-open {
    overflow: hidden;
}

body.client-detail-open .isat-fab {
    opacity: 0;
    pointer-events: none;
}

.client-detail-sheet__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--cpm-surface);
    box-shadow: var(--cpm-shadow-sm);
}

.client-detail-sheet__back {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--cpm-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-detail-sheet__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.client-detail-sheet__body {
    flex: 1;
    overflow: auto;
    padding: 1.25rem;
}

.client-detail__hero {
    text-align: center;
    margin-bottom: 1.5rem;
}

.client-detail__hero .client-card__avatar {
    margin: 0 auto 0.75rem;
    width: 72px;
    height: 72px;
    font-size: 1.75rem;
}

.client-detail__name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.client-detail__grid {
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    padding: 0.5rem 1rem;
    box-shadow: var(--cpm-shadow-sm);
    margin-bottom: 1rem;
}

.client-detail__row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #F3F4F6;
}

.client-detail__row:last-child {
    border-bottom: none;
}

.client-detail__row i {
    color: #2563EB;
    font-size: 1.125rem;
    margin-top: 0.125rem;
}

.client-detail__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cpm-neutral-light);
    margin-bottom: 0.15rem;
}

.client-detail__value {
    font-size: 0.9375rem;
    color: var(--cpm-neutral);
}

.client-detail__value a {
    color: #2563EB;
    text-decoration: none;
}

.client-detail__actions {
    display: flex;
    gap: 0.75rem;
}

.client-detail__actions .btn {
    flex: 1;
}

/* ── Detalle de servicio (sheet) ── */
.service-detail-sheet {
    position: fixed;
    inset: 0;
    z-index: 520;
    background: var(--cpm-bg);
    transform: translateY(100%);
    transition: transform 0.32s ease;
    display: flex;
    flex-direction: column;
}

.service-detail-sheet.active {
    transform: translateY(0);
}

body.service-detail-open {
    overflow: hidden;
}

body.service-detail-open .isat-fab,
body.service-detail-open .isat-bottom-nav {
    opacity: 0;
    pointer-events: none;
}

.service-detail-sheet__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--cpm-surface);
    box-shadow: var(--cpm-shadow-sm);
    flex-shrink: 0;
}

.service-detail-sheet__back {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--cpm-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--cpm-neutral);
}

.service-detail-sheet__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--cpm-neutral);
}

.service-detail-sheet__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px));
    touch-action: pan-y;
}

.service-detail-loading {
    display: flex;
    justify-content: center;
    padding: 3rem;
}

.service-detail__hero {
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--cpm-shadow-sm);
}

.service-detail__ref {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--cpm-neutral-light);
    display: block;
    margin-bottom: 0.35rem;
}

.service-detail__badge {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.service-detail__badge--pendiente { background: #FEF3C7; color: #B45309; }
.service-detail__badge--en-curso { background: #DBEAFE; color: #1D4ED8; }
.service-detail__badge--completado { background: #D1FAE5; color: #047857; }

.service-detail__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--cpm-neutral);
}

.service-detail__schedule {
    font-size: 0.875rem;
    color: var(--cpm-neutral-light);
    margin: 0;
}

.service-detail__start {
    margin-bottom: 0;
    touch-action: manipulation;
    min-height: 48px;
}

.service-detail__start-block {
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--cpm-shadow-sm);
}

.service-detail__start-option + .service-detail__start-option {
    margin-top: 0.25rem;
}

.service-detail__start-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cpm-neutral-dark);
}

.service-detail__start-title i {
    color: var(--cpm-primary);
}

.service-detail__start-desc {
    font-size: 0.85rem;
    color: var(--cpm-neutral-light);
    margin: 0 0 0.85rem;
}

.service-detail__start-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: var(--cpm-neutral-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.service-detail__start-divider::before,
.service-detail__start-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--cpm-border, #e2e8f0);
}

.service-detail__manual-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-detail__field-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cpm-neutral);
    margin-top: 0.25rem;
}

.service-detail__create-manual {
    margin-top: 0.5rem;
    touch-action: manipulation;
    min-height: 48px;
}

.service-detail__hours-block {
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--cpm-shadow-sm);
}

.service-detail__hours-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cpm-neutral-dark);
    margin-bottom: 0.5rem;
}

.service-detail__hours-label i {
    color: var(--cpm-primary);
    margin-right: 0.25rem;
}

.service-detail__hours-input {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    max-width: 8rem;
}

.service-detail__hours-hint {
    font-size: 0.8rem;
    color: var(--cpm-neutral-light);
    margin: 0.5rem 0 0;
}

.service-detail__timer {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    border-radius: var(--cpm-radius);
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
}

.service-detail__timer-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
    margin-bottom: 0.25rem;
}

.service-detail__timer-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

.service-detail__timer-actions {
    margin-top: 0.75rem;
}

.service-detail__timer-actions .btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.service-detail__section {
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--cpm-shadow-sm);
}

.service-detail__section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cpm-neutral-light);
    margin: 0 0 0.75rem;
}

.service-detail__section-title i {
    margin-right: 0.35rem;
}

.service-detail__client-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: var(--cpm-neutral);
}

.service-detail__meta {
    font-size: 0.875rem;
    color: var(--cpm-neutral-light);
    margin: 0;
    line-height: 1.5;
}

.service-material-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.service-material-row .service-material-name {
    flex: 1;
}

.service-material-row .service-material-qty {
    width: 72px;
    flex-shrink: 0;
}

.service-material-remove {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--cpm-bg);
    border-radius: 8px;
    color: var(--cpm-neutral-light);
    flex-shrink: 0;
}

.service-detail__signature-canvas {
    width: 100%;
    max-width: 100%;
    height: 140px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
    touch-action: none;
}

.service-detail__signature-img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.service-detail__finalize {
    margin-top: 0.5rem;
}

.service-detail__completed {
    text-align: center;
    padding: 1rem;
    background: #D1FAE5;
    color: #047857;
    border-radius: var(--cpm-radius);
    font-weight: 600;
    margin-top: 0.5rem;
}

.service-detail__completed i {
    margin-right: 0.35rem;
}

/* ── Mi perfil (sheet) ── */
.profile-sheet {
    position: fixed;
    inset: 0;
    z-index: 510;
    background: var(--cpm-bg);
    transform: translateY(100%);
    transition: transform 0.32s ease;
    display: flex;
    flex-direction: column;
}

.profile-sheet.active {
    transform: translateY(0);
}

body.profile-sheet-open {
    overflow: hidden;
}

body.profile-sheet-open .isat-fab,
body.profile-sheet-open .isat-bottom-nav {
    opacity: 0;
    pointer-events: none;
}

.profile-sheet__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--cpm-surface);
    box-shadow: var(--cpm-shadow-sm);
    flex-shrink: 0;
}

.profile-sheet__back {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--cpm-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--cpm-neutral);
    flex-shrink: 0;
}

.profile-sheet__title {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #0F766E;
    padding-right: 40px;
}

.profile-sheet__body {
    flex: 1;
    overflow: auto;
    padding: 1.25rem;
}

.profile-sheet__hero {
    text-align: center;
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--cpm-shadow-sm);
    margin-bottom: 1.25rem;
}

.profile-sheet__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--cpm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--cpm-neutral);
    overflow: hidden;
}

.profile-sheet__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-sheet__name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--cpm-neutral);
}

.profile-sheet__email {
    font-size: 0.875rem;
    color: var(--cpm-neutral-light);
    margin: 0 0 0.75rem;
}

.profile-sheet__role {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #ccfbf1;
    color: #0f766e;
}

.profile-sheet__section {
    margin-bottom: 1.25rem;
}

.profile-sheet__section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cpm-neutral-light);
    margin: 0 0 0.75rem;
}

.profile-sheet__cards {
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    box-shadow: var(--cpm-shadow-sm);
    overflow: hidden;
}

.profile-sheet__info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border-bottom: 1px solid #f1f5f9;
}

.profile-sheet__info-row:last-child {
    border-bottom: none;
}

.profile-sheet__info-row > i {
    font-size: 1.125rem;
    color: #0d9488;
    margin-top: 0.125rem;
}

.profile-sheet__info-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--cpm-neutral-light);
    margin-bottom: 0.125rem;
}

.profile-sheet__info-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cpm-neutral);
    word-break: break-word;
}

.profile-sheet__logout {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    padding: 1rem 1.125rem;
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    box-shadow: var(--cpm-shadow-sm);
    text-decoration: none;
    color: #dc2626;
    font-weight: 600;
    font-size: 0.9375rem;
}

.profile-sheet__logout-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.profile-sheet__logout-chev {
    margin-left: auto;
    color: #fca5a5;
    font-size: 0.875rem;
}

.profile-sheet__avatar-wrap {
    position: relative;
    width: 88px;
    margin: 0 auto 0.75rem;
}

.profile-sheet__avatar-btn {
    position: absolute;
    right: -4px;
    bottom: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0d9488;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--cpm-surface);
    cursor: pointer;
    margin: 0;
}

.profile-sheet__avatar-remove {
    border: none;
    background: none;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
}

.profile-sheet__since {
    font-size: 0.75rem;
    color: var(--cpm-neutral-light);
    margin: 0.5rem 0 0;
}

.profile-sheet__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.profile-sheet__stat {
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--cpm-shadow-sm);
}

.profile-sheet__stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f766e;
    line-height: 1.1;
}

.profile-sheet__stat span {
    font-size: 0.75rem;
    color: var(--cpm-neutral-light);
    font-weight: 600;
}

.profile-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.profile-form__full {
    grid-column: 1 / -1;
}

.profile-form__submit {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.profile-form__hint {
    font-size: 0.75rem;
    color: var(--cpm-neutral-light);
    margin: -0.25rem 0 0.75rem;
}

.profile-sheet--embedded .profile-sheet__logout {
    max-width: 480px;
}

.profile-view--desktop .profile-sheet__content {
    max-width: 640px;
}

@media (max-width: 480px) {
    .profile-form__grid {
        grid-template-columns: 1fr;
    }
}

.open-service-detail {
    cursor: pointer;
}

/* Modal cita — selector de horario */
.cpm-apt-schedule .cpm-apt-preset {
    min-height: 44px;
    flex: 1 1 auto;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
}

.cpm-apt-schedule select.form-control {
    min-height: 44px;
}

/* ── Proyectos mobile ── */
.isat-bottom-nav--5 .isat-bottom-nav__item {
    padding: 0.45rem 0.25rem;
    font-size: 0.625rem;
    min-width: 0;
    flex: 1 1 0;
    max-width: 20%;
}

.isat-bottom-nav--5 .isat-bottom-nav__item span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.isat-bottom-nav--5 .isat-bottom-nav__item i {
    font-size: 1.2rem;
}

.isat-bottom-nav--5 .isat-bottom-nav__item.active i,
.isat-bottom-nav--5 .isat-bottom-nav__item[aria-current="page"] i {
    width: 36px;
    height: 36px;
}

.projects-mobile-header {
    margin-bottom: 1.25rem;
}

.projects-mobile-header__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.projects-mobile-header__subtitle {
    font-size: 0.875rem;
    color: var(--cpm-neutral-light);
    margin: 0;
}

.projects-mobile-list,
.project-task-list,
.project-report-list,
.project-material-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-card {
    width: 100%;
    text-align: left;
    border: none;
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    padding: 1rem 1.125rem;
    box-shadow: var(--cpm-shadow-sm);
    font-family: var(--cpm-font);
    color: var(--cpm-neutral);
    cursor: pointer;
}

.project-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.project-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.project-card__badge {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: rgba(183, 206, 235, 0.45);
    color: #1E4D6B;
    text-transform: uppercase;
}

.project-card__row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--cpm-neutral-light);
    margin-bottom: 0.625rem;
}

.project-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
}

.project-card__days {
    color: #0D9488;
    font-weight: 600;
}

.project-card__progress,
.project-summary-card__progress {
    height: 6px;
    background: #E8EDF3;
    border-radius: 999px;
    overflow: hidden;
}

.project-card__progress-bar,
.project-summary-card__progress-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #7DD3C0, #5EEAD4);
    border-radius: 999px;
}

.projects-empty,
.project-panel-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--cpm-neutral-light);
}

.projects-empty i,
.project-panel-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.45;
}

.project-panel-empty__hint {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

/* Detalle proyecto sheet */
.project-detail-sheet {
    position: fixed;
    inset: 0;
    bottom: var(--cpm-bottom-nav-h);
    z-index: 280;
    background: var(--cpm-bg);
    transform: translateY(100%);
    transition: transform 0.32s ease, visibility 0.32s ease;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    pointer-events: none;
}

.project-detail-sheet.active {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    z-index: 450;
}

body.project-detail-open {
    overflow: hidden;
}

body.project-detail-open .isat-bottom-nav {
    z-index: 500;
}

.project-detail-sheet__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--cpm-surface);
    box-shadow: var(--cpm-shadow-sm);
    flex-shrink: 0;
}

.project-detail-sheet__back {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--cpm-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-detail-sheet__title {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    color: #1E4D6B;
}

.project-detail-sheet__notify {
    flex-shrink: 0;
}

.project-detail-sheet__body {
    flex: 1;
    overflow: auto;
    padding: 1rem 1.25rem 5rem;
}

.project-detail-loading {
    display: flex;
    justify-content: center;
    padding: 3rem;
}

.project-summary-card {
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    padding: 1.125rem;
    box-shadow: var(--cpm-shadow-sm);
    margin-bottom: 1rem;
}

.project-summary-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.project-summary-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.project-summary-card__badge {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(183, 206, 235, 0.5);
    color: #1E4D6B;
    white-space: nowrap;
}

.project-summary-card__location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--cpm-neutral-light);
    margin: 0 0 0.75rem;
}

.project-summary-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.project-summary-card__days {
    color: #0D9488;
    font-weight: 600;
}

.project-summary-card__dates {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--cpm-neutral-light);
    margin-top: 0.625rem;
}

.project-detail-tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.25rem 0 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.project-detail-tabs::-webkit-scrollbar {
    display: none;
}

.project-detail-tabs__btn {
    flex-shrink: 0;
    border: none;
    background: transparent;
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cpm-neutral-light);
    font-family: var(--cpm-font);
    cursor: pointer;
}

.project-detail-tabs__btn.active {
    background: var(--cpm-surface);
    color: var(--cpm-neutral);
    box-shadow: var(--cpm-shadow-sm);
}

.project-panel-toolbar {
    margin-bottom: 1rem;
}

.project-add-task-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 14px;
    background: #8ED1E9;
    color: #1E3A4F;
    font-family: var(--cpm-font);
    font-size: 0.9375rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(142, 209, 233, 0.45);
    cursor: pointer;
}

.project-add-task-btn:active {
    transform: scale(0.98);
}

.project-task-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    border: none;
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    box-shadow: var(--cpm-shadow-sm);
    text-align: left;
    font-family: var(--cpm-font);
    cursor: pointer;
}

.project-task-card--completada {
    opacity: 0.72;
}

.project-task-card--completada .project-task-card__title {
    text-decoration: line-through;
    color: var(--cpm-neutral-light);
}

.project-task-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--cpm-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E4D6B;
    flex-shrink: 0;
}

.project-task-card__body {
    flex: 1;
    min-width: 0;
}

.project-task-card__title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.project-task-card__sub {
    display: block;
    font-size: 0.75rem;
    color: var(--cpm-neutral-light);
}

.project-task-card--completada .project-task-card__sub {
    color: #0D9488;
    font-weight: 600;
}

.project-task-card__action {
    color: var(--cpm-neutral-light);
    font-size: 1.125rem;
}

.project-task-card--completada .project-task-card__action {
    color: #0D9488;
}

.project-report-card,
.project-material-card {
    background: var(--cpm-surface);
    border-radius: var(--cpm-radius);
    padding: 1rem;
    box-shadow: var(--cpm-shadow-sm);
}

.project-report-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.project-report-card__date {
    font-weight: 700;
}

.project-report-card__hours {
    font-size: 0.8125rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(183, 206, 235, 0.35);
}

.project-report-card__task,
.project-report-card__worker {
    font-size: 0.8125rem;
    color: var(--cpm-neutral-light);
    margin: 0.15rem 0 0;
}

.project-material-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-material-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--cpm-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-material-card__name {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
}

.project-material-card__qty {
    display: block;
    font-size: 0.75rem;
    color: var(--cpm-neutral-light);
}

.isat-fab--project {
    z-index: 460;
}

body.project-detail-open #isat-main-fab {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

body.project-detail-open #project-detail-fab {
    z-index: 460;
}

