/**
 * Vista Partes — estilo iSATManager
 */

.partes-mobile-view {
    padding: 0 1rem 1rem;
}

.partes-mobile-header {
    margin-bottom: 1rem;
}

.partes-mobile-header__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #004a7c;
    margin: 0 0 0.25rem;
}

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

.partes-search {
    margin-bottom: 1rem;
}

.partes-search__wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #eef1f4;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    margin: 0;
}

.partes-search__wrap i {
    color: #94a3b8;
    font-size: 1rem;
}

.partes-search__input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.9375rem;
    outline: none;
    color: #1e293b;
}

.partes-search__input::placeholder {
    color: #94a3b8;
}

.partes-filters {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.partes-filters::-webkit-scrollbar {
    display: none;
}

.partes-filters__btn {
    flex-shrink: 0;
    border: none;
    background: #fff;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    box-shadow: var(--cpm-shadow-sm);
}

.partes-filters__btn.active {
    background: #dbeafe;
    color: #004a7c;
}

.partes-quick-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    border: none;
    text-align: left;
    padding: 1.125rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #e8f7ff 0%, #f0fdfa 100%);
    box-shadow: var(--cpm-shadow-sm);
}

.partes-quick-card__text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.partes-quick-card__text strong {
    font-size: 1rem;
    color: #004a7c;
}

.partes-quick-card__text span {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.35;
}

.partes-quick-card__action {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: #00607a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 96, 122, 0.25);
}

.partes-quick-card__action i {
    font-size: 1.35rem;
}

.partes-recent__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.partes-recent__title {
    font-size: 1rem;
    font-weight: 700;
    color: #004a7c;
    margin: 0;
}

.partes-recent__link {
    border: none;
    background: none;
    color: #0d9488;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0;
}

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

.partes-list.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.partes-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    border: none;
    text-align: left;
    background: #fff;
    border-radius: 1.125rem;
    padding: 0.875rem 1rem;
    box-shadow: var(--cpm-shadow-sm);
}

.partes-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
    color: #fff;
}

.partes-card__icon--teal { background: #0d9488; }
.partes-card__icon--amber { background: #d97706; }
.partes-card__icon--blue { background: #2563eb; }
.partes-card__icon--rose { background: #e11d48; }

.partes-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.partes-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partes-card__meta {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partes-card__badge {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.partes-card__badge--draft {
    background: #ccfbf1;
    color: #0f766e;
}

.partes-card__badge--sent {
    background: #f1f5f9;
    color: #64748b;
}

.partes-card__chevron {
    color: #cbd5e1;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.partes-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
    padding: 2rem 1rem;
    margin: 0;
}

.cp-selected-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 999px;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.partes-desktop-view .partes-list {
    max-width: 720px;
}
