/* ===========================================
   CUSTOM STYLES - Price Control
   =========================================== */

/* ===========================================
   SIDEBAR
   =========================================== */

/* Override estilos de la plantilla original */
.sidebar-left,
body.sticky-header .sidebar-left {
    display: none !important;
}

body, body.sticky-header {
    background: #f5f7fa !important;
    padding-left: 0 !important;
}

body.sticky-header .body-content {
    margin-left: 0 !important;
}

section {
    position: relative;
}

/* Quitar bordes laterales de la plantilla en mobile */
@media (max-width: 991px) {
    .pc-main-content .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ===========================================
   HEADER
   =========================================== */

.pc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.pc-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-header-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-header-toggle {
    font-size: 1.4rem;
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

@media (min-width: 992px) {
    .pc-header-toggle {
        display: none;
    }
}

.pc-header-toggle:hover {
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
}

.pc-header-back {
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.pc-header-back:hover {
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
}

.pc-header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pc-header-time {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #f5f7fa;
    padding: 6px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.pc-header-notification {
    position: relative;
}

.pc-header-notification > a {
    font-size: 1.3rem;
    color: #555;
    position: relative;
}

.pc-header-notification .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    font-size: 0.65rem;
    padding: 2px 5px;
}

.pc-notif-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
}

.pc-notif-dropdown {
    width: 320px;
    padding: 0 !important;
    overflow: hidden;
}

.pc-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.pc-notif-header-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.pc-notif-header-count {
    background: #4a7cff;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    padding: 0 6px;
}

.pc-notif-list {
    max-height: 300px;
    overflow-y: auto;
}

.pc-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f8f8f8;
}

.pc-notif-item:hover {
    background: #f5f7fa;
    text-decoration: none;
}

.pc-notif-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(74, 124, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pc-notif-item-icon i {
    font-size: 14px;
    color: #4a7cff;
}

.pc-notif-item-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pc-notif-item-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-notif-item-time {
    font-size: 11px;
    color: #999;
}

.pc-notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 16px;
    color: #bbb;
}

.pc-notif-empty i {
    font-size: 28px;
}

.pc-notif-empty span {
    font-size: 13px;
}

.pc-notif-footer {
    display: block;
    text-align: center;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #4a7cff;
    border-top: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background 0.2s ease;
}

.pc-notif-footer:hover {
    background: #f5f7fa;
    text-decoration: none;
    color: #3a6ae0;
}

@media (max-width: 768px) {
    .pc-notif-dropdown {
        width: 280px;
        right: -10px !important;
    }
}

.pc-header-profile > a img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Ocultar el header-section viejo de la plantilla */
.header-section {
    display: none !important;
}

/* Dropdown animado */
.pc-header-profile .dropdown-menu,
.pc-header-notification .dropdown-menu {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: block !important;
    pointer-events: none;
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 8px 0;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: translateY(-10px) !important;
}

.pc-header-profile .dropdown-menu.show,
.pc-header-notification .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0) !important;
    pointer-events: all;
}

.pc-header-profile .dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.pc-header-profile .dropdown-item:hover {
    background: #f5f7fa;
}

.pc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #1a1a2e;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pc-sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.pc-sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    padding: 10px;
}

.pc-sidebar-logo-icon {
    width: auto;
    max-width: 24px;
    height: auto;
    display: block;
    object-fit: contain;
}

.pc-sidebar-logo-full {
    width: 100%;
    height: auto;
    display: none;
    object-fit: contain;
}

.pc-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pc-sidebar-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    white-space: nowrap;
}

.pc-sidebar-user-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-overflow: ellipsis;
    overflow: hidden;
}

.pc-sidebar-user-role {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    text-transform: capitalize;
}

.pc-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0;
}

.pc-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.pc-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

.pc-sidebar-nav .side-navigation {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pc-sidebar-nav .navigation-title {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 20px 5px;
    margin: 0;
    font-weight: 600;
}

.pc-sidebar-nav .side-navigation > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.pc-sidebar-nav .side-navigation > li > a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-left-color: #4a7cff;
}

.pc-sidebar-nav .side-navigation > li > a i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.pc-sidebar-nav .side-navigation > li > a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-sidebar-nav .child-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background: rgba(0,0,0,0.15);
}

.pc-sidebar-nav .menu-list.active > ul.child-list {
    display: block;
}

.pc-sidebar-nav .child-list li a {
    display: block;
    padding: 8px 20px 8px 56px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s ease;
}

.pc-sidebar-nav .child-list li a:hover {
    color: #fff;
}

.pc-sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.pc-sidebar-user {
    position: relative;
}

.pc-sidebar-user-arrow {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.pc-sidebar-user-arrow.open {
    transform: rotate(180deg);
}

.pc-sidebar-user-menu {
    margin-top: 10px;
    padding: 6px 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
}

.pc-sidebar-user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.pc-sidebar-user-menu-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
}

.pc-sidebar-user-menu-item i {
    font-size: 18px;
}

.pc-sidebar-user-menu-logout {
    color: #e74c3c;
}

.pc-sidebar-user-menu-logout:hover {
    color: #ff6b6b;
}

/* Backdrop */
.pc-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pc-sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Main content */
.pc-main-content {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.pc-no-scroll {
    overflow: hidden;
}

/* Quitar bordes/sombras de la plantilla original en el contenido */
.pc-main-content .header-section {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ---- DESKTOP ---- */
@media (min-width: 992px) {
    .pc-sidebar {
        width: 70px;
        transform: translateX(0);
    }

    .pc-sidebar:hover {
        width: 260px;
    }

    .pc-sidebar:hover .pc-sidebar-user-info,
    .pc-sidebar:hover .pc-sidebar-nav .side-navigation > li > a span,
    .pc-sidebar:hover .navigation-title {
        opacity: 1;
        visibility: visible;
    }

    .pc-sidebar:hover .pc-sidebar-logo-icon {
        display: none;
    }

    .pc-sidebar:hover .pc-sidebar-logo-full {
        display: block;
    }

    .pc-sidebar .pc-sidebar-user-info,
    .pc-sidebar .pc-sidebar-nav .side-navigation > li > a span,
    .pc-sidebar .navigation-title {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .pc-sidebar .pc-sidebar-user-arrow {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .pc-sidebar:hover .pc-sidebar-user-arrow {
        opacity: 0.6;
        visibility: visible;
    }

    .pc-sidebar .pc-sidebar-user-menu {
        display: none !important;
    }

    .pc-sidebar:hover .pc-sidebar-user-menu.pc-user-menu-open {
        display: block !important;
    }

    .pc-sidebar:not(:hover) .pc-sidebar-nav .child-list {
        display: none !important;
    }

    .pc-sidebar:hover .pc-sidebar-nav .menu-list.active > ul.child-list {
        display: block !important;
    }

    .pc-main-content {
        margin-left: 70px;
    }

    .pc-sidebar-backdrop {
        display: none;
    }
}

/* ---- MOBILE ---- */
@media (max-width: 991px) {
    .pc-sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .pc-sidebar.open {
        transform: translateX(0);
    }

    .pc-sidebar .pc-sidebar-logo-icon {
        display: none;
    }

    .pc-sidebar .pc-sidebar-logo-full {
        display: block;
    }

    .pc-main-content {
        margin-left: 0;
    }
}

/* ===========================================
   TASKS / PROGRAMACIONES
   =========================================== */

.pc-tasks-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
}

.pc-tasks-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.pc-tasks-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.pc-tasks-tabs {
    display: flex;
    gap: 0;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pc-tasks-tabs::-webkit-scrollbar {
    display: none;
}

.pc-tasks-tab {
    padding: 7px 16px;
    font-size: 0.82rem;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
}

.pc-tasks-tab.active {
    background: #fff;
    color: #1a1a2e;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pc-tasks-tab:hover {
    color: #1a1a2e;
    text-decoration: none;
}

@media (max-width: 991px) {
    .pc-tasks-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pc-tasks-tabs {
        width: 100%;
        flex-shrink: 0;
    }

    .pc-tasks-count {
        display: none;
    }
}

.pc-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pc-task-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.15s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media (max-width: 768px) {
    .pc-task-item {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 8px;
    }
}

.pc-task-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-color: #d0d0d0;
    background: #fafafa;
}

.pc-task-item:active {
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border-color: #c8d4ff;
    background: #f4f7ff;
}

.pc-task-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding-top: 2px;
}

.pc-task-toggle {
    color: #ccc;
    font-size: 0.7rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pc-task-toggle i {
    transition: transform 0.3s ease;
}

.pc-task-status {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ddd;
    flex-shrink: 0;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.pc-task-status.completed {
    border-color: #4a7cff;
    background: #4a7cff;
}

.pc-task-status.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
}

.pc-task-item-content {
    flex: 1;
    min-width: 0;
}

.pc-task-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pc-task-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pc-task-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.pc-task-item-stats {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pc-progress-circle {
    flex-shrink: 0;
}

.pc-task-item-stats-text {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
}

.pc-task-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pc-task-item-desc {
    font-size: 0.82rem;
    color: #888;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-task-item-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: #aaa;
    margin: 2px 0 0;
}

.pc-task-item-meta i {
    margin-right: 4px;
}

.pc-task-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.pc-task-badge-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.pc-task-badge-overdue {
    background: #fce4ec;
    color: #c62828;
}

@media (max-width: 991px) {
    .pc-tasks-container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Task collapse */
.pc-task-collapse {
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.35s ease, opacity 0.3s ease;
}

.pc-task-item.open .pc-task-collapse {
    opacity: 1;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.pc-task-item.open .pc-task-toggle i {
    transform: rotate(90deg);
}

.pc-task-detail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pc-task-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.pc-task-detail-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pc-task-detail-check {
    color: #ccc;
    font-size: 1rem;
}

.pc-task-detail-check.completed {
    color: #4a7cff;
}

.pc-task-detail-name {
    font-size: 0.85rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-task-detail-count {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
    white-space: nowrap;
}

.pc-task-detail-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.pc-task-progress {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.pc-task-progress-bar {
    height: 100%;
    background: #4a7cff;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.pc-task-progress-text {
    font-size: 0.75rem;
    color: #999;
}

.pc-task-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #4a7cff;
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.pc-task-action-btn:hover {
    background: #3360d4;
    color: #fff;
    text-decoration: none;
}

.pc-task-action-btn-outline {
    background: transparent;
    color: #4a7cff;
    border: 1px solid #4a7cff;
}

.pc-task-action-btn-outline:hover {
    background: #4a7cff;
    color: #fff;
}

.pc-task-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.pc-task-empty {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0;
}

.pc-task-collapse-loading {
    font-size: 0.85rem;
    color: #999;
    padding: 10px 0;
}

.pc-task-collapse-loading i {
    margin-right: 6px;
}

.pc-tasks-load-more {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: #999;
}

.pc-tasks-load-more i {
    margin-right: 6px;
}

/* FAB - Floating Action Button */
.pc-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #4a7cff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 16px rgba(74, 124, 255, 0.4);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1020;
}

.pc-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(74, 124, 255, 0.5);
    color: #fff;
    text-decoration: none;
}

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

.pc-fab-secondary {
    bottom: 90px;
    background: #1a1a2e;
    box-shadow: 0 4px 16px rgba(26, 26, 46, 0.4);
}

.pc-fab-secondary:hover {
    box-shadow: 0 6px 24px rgba(26, 26, 46, 0.5);
}

.pc-tasks-count {
    font-size: 0.8rem;
    color: #999;
}

/* Depositos search */
.pc-depositos-search {
    display: flex;
    gap: 12px;
    flex: 1;
    align-items: center;
    width: 100%;
}

.pc-tasks-count-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 6px;
}

.pc-search-input-group {
    position: relative;
    flex: 1;
    max-width: 250px;
}

.pc-search-input-group.pc-search-input-full {
    max-width: 100%;
    flex: 1;
}

.pc-search-input {
    width: 100%;
    padding: 14px 50px 14px 40px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    font-size: 16px;
    background: #f9f9f9;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pc-search-input-group i {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    color: #aaa;
    font-size: 1rem;
}

.pc-search-input:focus {
    outline: none;
    border-color: #4a7cff;
    background: #fff;
}

.pc-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #4a7cff;
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.pc-search-btn i {
    color: #fff !important;
}

.pc-search-btn:hover {
    background: #3360d4;
}

.pc-deposito-usado {
    opacity: 0.6;
}

.pc-highlight {
    background: #fff3cd;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
    display: inline;
}

.pc-task-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pc-task-item-title-text {
    display: inline;
}

.pc-deposito-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
}

/* Pre-add layout */
.pc-preadd-layout {
    display: flex;
    gap: 24px;
    padding: 20px;
}

.pc-preadd-sidebar {
    display: none;
}

.pc-preadd-main {
    flex: 1;
    min-width: 0;
}

.pc-preadd-sidebar-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    padding: 20px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pc-preadd-sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.pc-preadd-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.pc-preadd-sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f8f8;
    gap: 10px;
}

.pc-preadd-sidebar-lugar {
    font-size: 0.8rem;
    color: #555;
}

.pc-preadd-sidebar-count {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
}

.pc-preadd-sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #e8e8e8;
    font-size: 0.85rem;
    color: #1a1a2e;
}

/* Botón editar en sidebar del depósito */
.pc-sidebar-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #eef2ff;
    color: #2e61f2;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #c7d4fc;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.pc-sidebar-edit-btn:hover {
    background: #2e61f2;
    color: #fff;
    text-decoration: none;
}

/* Edición inline por campo en sidebar del depósito */
.pc-dep-field-row {
    align-items: center;
}
.pc-dep-field-right {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.pc-dep-field-val {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 110px;
}
#dep-val-observacion {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    max-width: 100%;
}
.pc-dep-edit-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: none;
    background: transparent;
    color: #bbb;
    cursor: pointer;
    font-size: 0.72rem;
    padding: 0;
    transition: background 0.15s, color 0.15s;
    opacity: 0;
}
.pc-dep-field-row:hover .pc-dep-edit-icon {
    opacity: 1;
}
.pc-dep-edit-icon:hover {
    background: #eef2ff;
    color: #2e61f2;
}

.pc-preadd-main .pc-tasks-filters {
    flex-direction: column;
    align-items: stretch;
}

@media (min-width: 992px) {
    .pc-preadd-sidebar {
        display: block;
        width: 280px;
        flex-shrink: 0;
    }

    .pc-detail-sidebar {
        width: 320px;
    }
}

@media (max-width: 991px) {
    .pc-preadd-layout {
        padding: 0;
    }
}

/* ===========================================
   REGISTRO ADD
   =========================================== */

.pc-registro-info-mobile {
    margin-bottom: 20px;
}

.pc-registro-section {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .pc-registro-section {
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 10px;
        padding: 12px;
        margin-bottom: 10px;
    }

    label,
    .pc-modal-field-label,
    .pc-form-label,
    .control-label,
    .pc-registro-section-title {
        font-size: 16px !important;
    }
}

.pc-registro-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.pc-registro-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.pc-registro-section-header .pc-registro-section-title {
    margin: 0;
}

.pc-detail-log-btn {
    font-size: 0.78rem;
    color: #4a7cff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.pc-detail-log-btn:hover {
    background: #eef2ff;
    text-decoration: none;
    color: #3360d4;
}

.pc-detail-grid-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 992px) {
    .pc-detail-grid-row {
        flex-direction: row;
    }

    .pc-detail-grid-row > .pc-registro-section {
        flex: 1;
    }
}

.pc-registro-section-desc {
    font-size: 0.82rem;
    color: #888;
    margin: 0 0 16px;
}

.pc-registro-audio-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pc-registro-recording {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 10px;
}

.pc-recording-dot {
    animation: pcBlink 1s infinite;
    font-size: 0.6rem;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes pcBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.pc-registro-prices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pc-registro-price-item {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.pc-registro-price-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.pc-registro-price-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.pc-registro-price-input {
    margin-top: 8px;
    border-radius: 8px !important;
    border: 1px solid #e8e8e8 !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
}

.pc-registro-price-input:focus {
    border-color: #4a7cff !important;
    box-shadow: none !important;
}

.pc-registro-textarea {
    border-radius: 8px !important;
    border: 1px solid #e8e8e8 !important;
    padding: 12px 14px !important;
    font-size: 0.9rem !important;
    min-height: 100px;
    resize: vertical;
}

.pc-registro-textarea:focus {
    border-color: #4a7cff !important;
    box-shadow: none !important;
}

.pc-registro-submit {
    padding: 20px 0;
}

.pc-registro-submit-desktop {
    display: block;
}

.pc-bottom-nav {
    display: none;
}

@media (max-width: 991px) {
    .pc-registro-submit-desktop {
        display: none;
    }

    .pc-bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 16px;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
        z-index: 1030;
    }

    .pc-bottom-nav .pc-registro-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .pc-preadd-main .pc-tasks-container {
        padding-bottom: 100px;
    }

    .pc-preadd-main .pc-tasks-container .pc-registro-section:last-of-type {
        margin-bottom: 20px;
    }

    .pc-preadd-layout {
        padding-bottom: 80px;
    }
}

.pc-registro-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
    border-radius: 10px;
}

.pc-registro-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (min-width: 992px) {
    .pc-registro-info-mobile {
        display: none;
    }
}

/* Registro views */
.pc-registro-view-audio {
    margin-top: 12px;
}

.pc-registro-view-audio audio {
    width: 100%;
    height: 36px;
    border-radius: 8px;
}

/* Registro detail */
.pc-detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pc-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f8f8;
}

.pc-detail-row:last-child {
    border-bottom: none;
}

.pc-detail-label {
    font-size: 0.85rem;
    color: #888;
}

.pc-detail-label i {
    margin-right: 6px;
    width: 16px;
    text-align: center;
}

.pc-detail-value {
    font-size: 0.9rem;
    color: #1a1a2e;
    font-weight: 500;
    text-align: right;
}

.pc-detail-prices {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pc-detail-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.pc-detail-price-item:last-child {
    border-bottom: none;
}

.pc-detail-price-name {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.pc-detail-price-value {
    font-size: 0.9rem;
    color: #1a1a2e;
    font-weight: 700;
}

.pc-detail-observaciones {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.pc-detail-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.pc-detail-photo-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 30%;
}

.pc-detail-photo-label {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
}

.pc-detail-photo-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Modal custom */
.pc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 12px;
}

.pc-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pc-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.pc-modal-header {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.pc-modal-body {
    padding: 12px 16px;
    overflow-y: auto;
}

.pc-modal-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
    .pc-modal {
        width: 100%;
        max-width: none;
        border-radius: 12px;
        max-height: 85vh;
    }
}

.pc-modal-overlay.active .pc-modal {
    transform: translateY(0);
}

.pc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.pc-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.pc-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.pc-modal-body {
    overflow-y: auto;
    flex: 1;
}

.pc-modal-field {
    margin-bottom: 14px;
}

.pc-modal-field-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
    display: block;
}

.pc-modal-price-input {
    border-radius: 8px !important;
    border: 1px solid #e8e8e8 !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
}

.pc-modal-price-input:focus {
    border-color: #4a7cff !important;
    box-shadow: none !important;
}

.pc-modal-select-input {
    border-radius: 8px !important;
    border: 1px solid #e8e8e8 !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
}

.pc-modal-select-input:focus {
    border-color: #4a7cff !important;
    box-shadow: none !important;
}

/* Switch toggle */
.pc-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.pc-switch input {
    display: none;
}

.pc-switch-slider {
    width: 48px;
    height: 26px;
    background: #ddd;
    border-radius: 13px;
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.pc-switch-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.pc-switch input:checked + .pc-switch-slider {
    background: #4a7cff;
}

.pc-switch input:checked + .pc-switch-slider::after {
    transform: translateX(22px);
}

.pc-switch-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

/* Photo upload custom */
.pc-photo-uploads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.pc-photo-upload-item {
    position: relative;
}

.pc-photo-upload-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.pc-photo-upload-label {
    display: block;
    cursor: pointer;
    margin: 0;
}

.pc-photo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 140px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: #fafafa;
    transition: border-color 0.2s ease, background 0.2s ease;
    overflow: hidden;
    position: relative;
}

.pc-photo-upload-placeholder:hover {
    border-color: #4a7cff;
    background: #f0f4ff;
}

.pc-photo-upload-placeholder i {
    font-size: 1.8rem;
    color: #bbb;
}

.pc-photo-upload-placeholder span {
    font-size: 0.78rem;
    color: #999;
    text-align: center;
    padding: 0 8px;
}

.pc-photo-upload-placeholder.has-image {
    border-style: solid;
    border-color: #4a7cff;
    padding: 0;
}

.pc-photo-upload-placeholder.has-image i,
.pc-photo-upload-placeholder.has-image span {
    display: none;
}

.pc-photo-upload-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Archivos adjuntos lista */
.pc-archivos-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pc-archivo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
}

.pc-archivo-item-icon {
    font-size: 1.4rem;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.pc-archivo-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pc-archivo-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-archivo-item-tipo {
    font-size: 0.72rem;
    color: #999;
    text-transform: capitalize;
}

.pc-archivo-item-remove {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.pc-archivo-item-remove:hover {
    background: #fdeaea;
}

/* Archivos adjuntos en vista detalle */
.pc-archivos-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.pc-archivo-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.pc-archivo-detail-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pc-archivo-detail-img:hover {
    opacity: 0.85;
}

.pc-archivo-detail-name {
    font-size: 0.72rem;
    color: #666;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-archivo-detail-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    border: 1px solid;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    min-height: 120px;
    transition: opacity 0.2s;
}

.pc-archivo-detail-file:hover {
    opacity: 0.8;
}

.pc-archivo-detail-file span {
    font-size: 0.72rem;
    font-weight: 600;
    word-break: break-all;
    line-height: 1.3;
}

.pc-archivo-copy-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e0e0e0;
    color: #666;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}

.pc-archivo-copy-btn:hover {
    background: #fff;
    color: #4a7cff;
    border-color: #4a7cff;
}

/* Select2 / Tom Select dentro de nuestras secciones */
.pc-registro-section .ts-wrapper,
.pc-modal-field .ts-wrapper {
    width: 100% !important;
}

/* Ocultar el select original cuando Tom Select lo envuelve */
.ts-wrapper + select,
select.tomselected {
    display: none !important;
}

.ts-wrapper.single .ts-control {
    height: 52px !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 10px !important;
    padding: 0 16px !important;
    background: #fafafa !important;
    font-size: 15px !important;
    color: #333 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
}

.ts-wrapper {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.ts-wrapper.single .ts-control:focus,
.ts-wrapper.single.focus .ts-control {
    border-color: #4a7cff !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(74, 124, 255, 0.1) !important;
}

.ts-wrapper.single .ts-control .item {
    font-size: 15px !important;
    color: #333 !important;
    line-height: 52px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: calc(100% - 30px) !important;
}

.ts-wrapper.single .ts-control > input {
    font-size: 15px !important;
    padding: 0 !important;
}

.ts-wrapper.single .ts-control > input::placeholder {
    font-size: 15px !important;
    color: #999 !important;
}

.ts-dropdown {
    border: 1px solid #e8e8e8 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    margin-top: 4px !important;
}

.ts-dropdown .ts-dropdown-content .option {
    padding: 12px 16px !important;
    font-size: 14px !important;
}

.ts-dropdown .ts-dropdown-content .option.active {
    background: #4a7cff !important;
    color: #fff !important;
}

.ts-dropdown .ts-dropdown-content .no-results {
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: #888 !important;
}

/* Mantener compatibilidad con select2 existente */
.select2-container {
    width: 100% !important;
}

.pc-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .pc-registro-info-mobile {
        display: block;
    }

    .pc-registro-info-mobile .pc-tasks-title {
        margin-top: 30px;
    }
}

@media (max-width: 991px) {
    .pc-depositos-search {
        flex-direction: column;
        width: 100%;
    }

    .pc-search-input-group,
    .pc-search-input-group.pc-search-input-full {
        max-width: 100% !important;
        width: 100% !important;
    }

    .pc-tasks-count-row {
        display: none;
    }

    .pc-preadd-main .pc-tasks-container {
        padding: 0 10px;
    }

    .pc-preadd-main .pc-tasks-title {
        margin-top: 30px;
    }

    .pc-deposito-card-desktop {
        display: none;
    }
}

/* ===========================================
   DASHBOARD
   =========================================== */

.pc-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.pc-dashboard-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.2s ease;
}

.pc-dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.pc-dashboard-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pc-dashboard-icon-blue {
    background: #eef2ff;
    color: #4a7cff;
}

.pc-dashboard-icon-green {
    background: #e8f5e9;
    color: #2e7d32;
}

.pc-dashboard-icon-purple {
    background: #f3e5f5;
    color: #7b1fa2;
}

.pc-dashboard-icon-orange {
    background: #fff3e0;
    color: #e65100;
}

.pc-dashboard-icon-red {
    background: #fce4ec;
    color: #c62828;
}

.pc-dashboard-icon-navy {
    background: #e8eaf6;
    color: #283593;
}

.pc-dashboard-icon-teal {
    background: #e0f2f1;
    color: #00695c;
}

/* ===========================================
   ADMIN DASHBOARD — Encuestador inactivo
   =========================================== */

.pc-encuestador-inactive {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fce4ec;
    color: #c62828;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Tipos de alerta */
.pc-alert-type-1 {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.pc-alert-type-3 {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.pc-alert-type-4 {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
}

.pc-dashboard-card-info {
    display: flex;
    flex-direction: column;
}

.pc-dashboard-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.pc-dashboard-card-label {
    font-size: 0.8rem;
    color: #888;
}

.pc-dashboard-section {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.pc-dashboard-shortcuts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.pc-dashboard-shortcut {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.pc-dashboard-shortcut:hover {
    background: #eef2ff;
    color: #4a7cff;
    text-decoration: none;
}

.pc-dashboard-shortcut i {
    font-size: 1rem;
    color: #4a7cff;
}

/* ===========================================
   TOAST NOTIFICATIONS - Login
   =========================================== */

#pc-toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.pc-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    animation: pcToastIn 0.4s ease-out both;
    pointer-events: all;
    border-left: 4px solid;
}

.pc-toast.pc-toast-error {
    border-left-color: #e74c3c;
}

.pc-toast.pc-toast-success {
    border-left-color: #27ae60;
}

.pc-toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #fff;
}

.pc-toast-error .pc-toast-icon {
    background: #e74c3c;
}

.pc-toast-success .pc-toast-icon {
    background: #27ae60;
}

.pc-toast-message {
    font-size: 0.88rem;
    color: #333;
    line-height: 1.4;
    flex: 1;
}

.pc-toast-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.pc-toast-close:hover {
    color: #555;
}

.pc-toast.pc-toast-hide {
    animation: pcToastOut 0.3s ease-in both;
}

@keyframes pcToastIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pcToastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ===========================================
   LOGIN - Mobile First
   =========================================== */

.pc-login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pc-login-header {
    background: url('../assets/img/background-general.jpg') center center / cover no-repeat;
    padding: 60px 30px 80px;
    position: relative;
    flex-shrink: 0;
}

.pc-login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 50, 150, 0.4);
}

.pc-login-header-content {
    position: relative;
    z-index: 1;
}

.pc-login-header-content h1 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pc-login-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 12px;
}

.pc-login-logo-lg {
    max-width: 320px;
}

.pc-login-welcome {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 10px;
}

.pc-login-welcome-desktop {
    display: none;
}

.pc-login-header-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.pc-login-body {
    background: #fff;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 2;
    padding: 35px 25px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-login-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: pcSlideUp 0.6s ease-out both;
}

@keyframes pcSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pc-login-header-desktop {
    display: none;
}

.pc-login-header-mobile {
    display: block;
}

.pc-login-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.pc-login-description {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 25px;
    line-height: 1.5;
}

.pc-login-input-group {
    position: relative;
    margin-bottom: 20px;
}

.pc-login-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
}

.pc-login-input-group input {
    width: 100%;
    padding: 14px 45px 14px 45px;
    border: none;
    border-bottom: 1.5px solid #e0e0e0;
    border-radius: 0;
    font-size: 0.95rem;
    color: #333;
    background: transparent;
    transition: border-color 0.3s ease;
}

.pc-login-input-group input:focus {
    outline: none;
    border-bottom-color: #4a7cff;
    box-shadow: none;
}

.pc-login-input-group input::placeholder {
    color: #aaa;
}

.pc-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    margin-top: 5px;
}

.pc-login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
}

.pc-login-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4a7cff;
}

.pc-login-forgot {
    font-size: 0.85rem;
    color: #4a7cff;
    text-decoration: none;
    font-weight: 500;
}

.pc-login-forgot:hover {
    color: #3360d4;
    text-decoration: underline;
}

.pc-login-toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 1rem;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
}

.pc-login-toggle-pass:focus,
.pc-login-toggle-pass:active {
    outline: none;
    box-shadow: none;
    border: none;
}

.pc-login-toggle-pass:hover {
    color: #4a7cff;
}

.pc-login-btn {
    width: 100%;
    padding: 14px;
    background: #4a7cff;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

.pc-login-btn:hover {
    background: #3360d4;
}

.pc-login-btn:active {
    transform: scale(0.98);
}

.pc-login-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 30px;
    font-size: 0.9rem;
    color: #777;
}

.pc-login-footer a {
    color: #4a7cff;
    font-weight: 600;
    text-decoration: none;
}

.pc-login-footer a:hover {
    text-decoration: underline;
}

/* Desktop: centrar el formulario como card */
@media (min-width: 768px) {
    .pc-login-wrapper {
        justify-content: center;
        align-items: center;
        background: url('../assets/img/background-general.jpg') center center / cover no-repeat;
    }

    .pc-login-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(5, 10, 40, 0.75);
    }

    .pc-login-header-mobile {
        display: none;
    }

    .pc-login-header-desktop {
        display: block;
        background: none;
        padding: 0 0 20px;
        text-align: center;
    }

    .pc-login-header-desktop::before {
        display: none;
    }

    .pc-login-header-desktop .pc-login-header-content p {
        color: #666;
    }

    .pc-login-card {
        border-radius: 16px;
        max-width: 420px;
        width: 100%;
        padding: 40px 35px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        position: relative;
        z-index: 2;
        background: #fff;
        flex: unset;
    }

    .pc-login-body {
        border-radius: 0;
        max-width: none;
        margin-top: 0;
        padding: 0;
        box-shadow: none;
        flex: unset;
        background: transparent;
    }

    .pc-login-body h2 {
        text-align: center;
    }

    .pc-login-btn {
        margin-top: 10px;
    }
}

/* ---- FORMS (pc-form) ---- */
.pc-form-card {
    max-width: 100%;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pc-form-group {
    margin-bottom: 20px;
}

.pc-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}

.pc-form-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
}

.pc-form-input:focus {
    border-color: #4a7cff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 124, 255, 0.1);
}

.pc-form-actions {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
}

.pc-form-submit-btn {
    width: auto;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .pc-form-actions {
        display: none;
    }

    .pc-form-card {
        padding: 20px;
        border: none;
        box-shadow: none;
        background: transparent;
    }
}

/* Form row (2 columns) */
.pc-form-row {
    display: flex;
    gap: 16px;
}

.pc-form-half {
    flex: 1;
}

.pc-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

@media (max-width: 768px) {
    .pc-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ---- MODAL DE CONFIRMACIÓN ---- */
.pc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pc-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pc-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pc-modal-overlay.active .pc-modal {
    transform: scale(1) translateY(0);
}

.pc-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(74, 124, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.pc-modal-icon i {
    font-size: 24px;
    color: #4a7cff;
}

.pc-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.pc-modal-text {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

.pc-modal-actions {
    display: flex;
    gap: 12px;
}

.pc-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.pc-modal-btn:active {
    transform: scale(0.97);
}

.pc-modal-btn-cancel {
    background: #f0f0f0;
    color: #555;
}

.pc-modal-btn-cancel:hover {
    background: #e5e5e5;
}

.pc-modal-btn-confirm {
    background: #4a7cff;
    color: #fff;
}

.pc-modal-btn-confirm:hover {
    background: #3a6ae0;
}

/* ---- USER CARDS LIST ---- */
.pc-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 2px;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.pc-user-card:hover {
    background: #f8faff;
    box-shadow: 0 4px 12px rgba(74, 124, 255, 0.08);
    text-decoration: none;
    transform: translateY(-1px);
}

.pc-user-card:active {
    transform: translateY(0);
}

.pc-user-card-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pc-user-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pc-user-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-user-card-meta {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-user-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.pc-user-card-role {
    font-size: 11px;
    font-weight: 500;
    color: #4a7cff;
    background: rgba(74, 124, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
}

.pc-user-card-status {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
}

.pc-user-card-status-active {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.08);
}

.pc-user-card-status-inactive {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

/* Pagination */
.pc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 0;
}

.pc-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f5f7fa;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.pc-pagination-btn:hover {
    background: #e8ecf2;
    text-decoration: none;
}

.pc-pagination-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pc-pagination-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.pc-pagination-info {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Search form */
.pc-search-form {
    width: 100%;
}

/* Header with button */
.pc-tasks-header {
    display: none;
}

@media (max-width: 768px) {
    .pc-user-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .pc-user-card-avatar img {
        width: 38px;
        height: 38px;
    }

    .pc-user-card-name {
        font-size: 13px;
    }

    .pc-user-card-meta:last-child {
        display: none;
    }
}

/* ---- PWA Install Banner ---- */
.pc-pwa-install {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 9998;
    animation: pcSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 1px solid #f0f0f0;
}

@keyframes pcSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pc-pwa-install-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-pwa-install-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.pc-pwa-install-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pc-pwa-install-text strong {
    font-size: 14px;
    color: #333;
}

.pc-pwa-install-text span {
    font-size: 12px;
    color: #888;
}

.pc-pwa-install-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pc-pwa-install-dismiss {
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 12px;
}

.pc-pwa-install-btn {
    background: #4a7cff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pc-pwa-install-btn:hover {
    background: #3a6ae0;
}

@media (max-width: 768px) {
    .pc-pwa-install {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .pc-pwa-install-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ---- Photo Selection Modal ---- */
.pc-modal-photo {
    max-width: 480px;
    padding: 20px !important;
}

.pc-photo-modal-body {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 20px 0 10px !important;
}

@media (max-width: 768px) {
    .pc-photo-modal-body {
        flex-direction: column;
        align-items: center;
    }
    .pc-photo-option {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        padding: 16px 20px;
    }
}

@media (min-width: 769px) {
    #btnTakePhoto {
        display: none !important;
    }
}

.pc-photo-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 28px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.pc-photo-option:hover {
    background: #f0f5ff;
    border-color: #4a7cff;
}

.pc-photo-option:active {
    transform: scale(0.96);
}

.pc-photo-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(74, 124, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-photo-option-icon i {
    font-size: 20px;
    color: #4a7cff;
}

.pc-photo-option span {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.pc-photo-upload-placeholder {
    cursor: pointer;
}

/* ---- Price Edit Row (Modal) ---- */
.pc-modal-body-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding: 12px 16px !important;
}

.pc-price-edit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.pc-price-edit-row:last-child {
    border-bottom: none;
}

.pc-price-edit-label {
    font-size: 13px;
    color: #555;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 12px;
}

.pc-price-edit-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pc-price-edit-input {
    width: 100px;
    padding: 8px 10px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    text-align: right;
    background: #f9f9f9;
    color: #333;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pc-price-edit-input:disabled {
    background: #f5f5f5;
    color: #999;
    border-color: transparent;
}

.pc-price-edit-input:not(:disabled) {
    border-color: #4a7cff;
    background: #fff;
}

.pc-price-edit-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    font-size: 13px;
}

.pc-price-edit-btn:hover {
    background: #e8e8e8;
}

.pc-price-edit-btn-save {
    background: #4a7cff;
    color: #fff;
}

.pc-price-edit-btn-save:hover {
    background: #3a6ae0;
}

@media (max-width: 768px) {
    .pc-price-edit-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 0;
    }
    .pc-price-edit-label {
        width: 100%;
        padding-right: 0;
        white-space: normal;
        font-weight: 600;
        font-size: 13px;
    }
    .pc-price-edit-input-wrap {
        width: 100%;
    }
    .pc-price-edit-input {
        flex: 1;
        width: 100%;
    }
}

/* ---- USER DETAIL VIEW ---- */
.pc-user-detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.pc-user-detail-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.pc-user-detail-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
}

.pc-user-detail-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.pc-user-detail-edit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(74, 124, 255, 0.1);
    color: #4a7cff;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.pc-user-detail-edit-icon:hover {
    background: rgba(74, 124, 255, 0.2);
    color: #3a6ae0;
}

.pc-user-detail-role {
    margin-bottom: 8px;
}

.pc-user-detail-status {
    margin-bottom: 4px;
}

.pc-user-detail-info {
    padding: 0 4px;
}

.pc-user-detail-row {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.pc-user-detail-row:last-child {
    border-bottom: none;
}

.pc-user-detail-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    margin-bottom: 4px;
}

.pc-user-detail-label i {
    width: 18px;
    text-align: center;
    margin-right: 6px;
    color: #4a7cff;
}

.pc-user-detail-value {
    font-size: 15px;
    color: #1a1a2e;
    font-weight: 500;
    padding-left: 24px;
}

@media (max-width: 768px) {
    .pc-user-detail-avatar img {
        width: 64px;
        height: 64px;
    }

    .pc-user-detail-name {
        font-size: 16px;
    }

    .pc-user-detail-value {
        font-size: 14px;
    }
}

/* ===========================================
   DEPOSITOS CARDS
   =========================================== */

.pc-deposito-card {
    display: flex;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.pc-deposito-card:hover {
    box-shadow: 0 4px 16px rgba(74, 124, 255, 0.1);
    border-color: #4a7cff;
    transform: translateY(-1px);
    color: inherit;
}

.pc-deposito-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 124, 255, 0.08);
}

.pc-deposito-card .pc-task-item-meta {
    margin-top: 6px;
}

.pc-deposito-card .pc-task-item-desc i {
    margin-right: 6px;
    color: #4a7cff;
    font-size: 0.8rem;
}

/* ===========================================
   DEPOSITOS FILTERS
   =========================================== */

.pc-depositos-filters-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    flex-wrap: wrap;
}

.pc-filter-item {
    flex: 0 1 auto;
    min-width: 140px;
    max-width: 220px;
}

.pc-filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.85rem;
    background: #f9f9f9;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pc-filter-select:focus {
    outline: none;
    border-color: #4a7cff;
    background-color: #fff;
}

.pc-filter-item .ts-wrapper {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 0.85rem;
}

.pc-filter-item .ts-wrapper .ts-control {
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 8px;
}

.pc-filter-item .ts-wrapper.focus .ts-control {
    box-shadow: none;
}

.pc-filter-item .ts-wrapper.focus {
    border-color: #4a7cff;
    background: #fff;
}

.pc-filter-switch {
    display: flex;
    align-items: center;
    min-width: 140px;
    max-width: 220px;
    flex: 0 1 auto;
}

.pc-switch-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #f9f9f9;
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.pc-switch-label:hover {
    border-color: #ccc;
}

.pc-switch-text {
    font-size: 15px;
    color: #555;
    white-space: nowrap;
}

.pc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.pc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.pc-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s ease;
}

.pc-switch-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border-radius: 50%;
    transition: left 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.pc-switch input:checked + .pc-switch-slider {
    background-color: #4a7cff;
}

.pc-switch input:checked + .pc-switch-slider::before {
    left: 23px;
}

@media (max-width: 768px) {
    .pc-depositos-filters-row {
        display: none;
    }

    .pc-filter-item {
        max-width: 100%;
    }

    .pc-filter-switch {
        flex: 1;
    }

    .pc-switch-label {
        width: 100%;
        justify-content: space-between;
    }
}

/* ===========================================
   INFINITE SCROLL
   =========================================== */

.pc-infinite-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    font-size: 0.85rem;
    color: #888;
}

.pc-infinite-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e8e8e8;
    border-top-color: #4a7cff;
    border-radius: 50%;
    animation: pcSpin 0.7s linear infinite;
}

@keyframes pcSpin {
    to { transform: rotate(360deg); }
}

.pc-infinite-end {
    text-align: center;
    padding: 20px;
    font-size: 0.82rem;
    color: #aaa;
}

/* ===========================================
   FILTER CLEAR BUTTON
   =========================================== */

.pc-filter-clear {
    min-width: auto;
    max-width: none;
    flex: 0 0 auto;
}

.pc-filter-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #f9f9f9;
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pc-filter-clear-btn:hover {
    border-color: #e74c3c;
    background: #fef2f2;
    color: #c0392b;
    text-decoration: none;
}


/* ===========================================
   HEADER - MOBILE LARGER
   =========================================== */

@media (max-width: 991px) {
    /* Header más alto */
    .pc-header {
        padding: 14px 16px;
        min-height: 64px;
    }

    /* Título más grande */
    .pc-header-title {
        font-size: 18px;
    }

    /* Botón hamburguesa / back más grande */
    .pc-header-toggle,
    .pc-header-back {
        font-size: 1.7rem;
        padding: 8px 12px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Ícono de notificaciones más grande */
    .pc-header-notification > a {
        font-size: 1.6rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Badge de notificaciones reposicionado */
    .pc-notif-badge {
        top: -4px;
        right: -6px;
        min-width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 11px;
    }

    /* Avatar del perfil más grande */
    .pc-header-profile > a img {
        width: 40px;
        height: 40px;
    }

    /* Más espacio entre elementos del lado derecho */
    .pc-header-right {
        gap: 14px;
    }

    /* Reloj más grande si está visible */
    .pc-header-time {
        font-size: 14px;
        padding: 8px 14px;
    }

    /* Botones de acción en el header (headerActions) */
    .pc-header-actions .btn,
    .pc-header-actions a.btn,
    .pc-header-actions button {
        font-size: 15px;
        padding: 10px 16px;
        min-height: 44px;
    }

    /* Dropdown del perfil: items más grandes y fáciles de tocar */
    .pc-header-profile .dropdown-item {
        padding: 14px 20px;
        font-size: 15px;
    }

    /* Dropdown de notificaciones: ancho ajustado */
    .pc-notif-dropdown {
        width: 300px;
    }

    .pc-notif-item {
        padding: 14px 16px;
    }

    .pc-notif-item-text {
        font-size: 14px;
    }

    .pc-notif-item-time {
        font-size: 12px;
    }

    .pc-notif-header-title {
        font-size: 15px;
    }

    .pc-notif-footer {
        font-size: 14px;
        padding: 14px 16px;
    }
}


/* ===========================================
   SIDEBAR - MOBILE LARGER ITEMS
   =========================================== */

@media (max-width: 991px) {
    /* Links principales del nav ligeramente más altos */
    .pc-sidebar-nav .side-navigation > li > a {
        padding: 12px 20px;
        font-size: 0.92rem;
    }

    .pc-sidebar-nav .side-navigation > li > a i {
        font-size: 1.25rem;
        width: 26px;
    }

    /* Sub-items (child-list) */
    .pc-sidebar-nav .child-list li a {
        padding: 10px 20px 10px 60px;
        font-size: 0.86rem;
    }

    /* Menú de usuario en el footer */
    .pc-sidebar-user-menu-item {
        padding: 12px 16px;
        font-size: 14px;
    }

    .pc-sidebar-user-menu-item i {
        font-size: 18px;
    }
}


/* ===========================================
   MODAL VENTA - SWITCH ROWS
   =========================================== */

.pc-venta-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 12px;
}

.pc-venta-switch-row:last-child {
    border-bottom: none;
}

.pc-venta-switch-label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    flex: 1;
    min-width: 0;
}

.pc-venta-switch-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pc-venta-switch-status {
    font-size: 0.82rem;
    font-weight: 600;
    color: #888;
    min-width: 22px;
    text-align: right;
}

.pc-venta-switch-saving,
.pc-venta-switch-ok,
.pc-venta-switch-err {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

/* ===========================================
   DEPOSITOS - FILTROS (override)
   =========================================== */

/* Ajustes adicionales sobre el bloque existente */
.pc-depositos-filters-row {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 4px;
}

.pc-filter-item {
    flex: 0 0 auto;
    min-width: unset;
    max-width: unset;
}

.pc-filter-switch {
    min-width: unset;
    max-width: unset;
    flex: 0 0 auto;
}

/* Switch label: pill compacto de altura fija */
.pc-switch-label {
    height: 52px;
    padding: 0 12px;
    gap: 8px;
    justify-content: flex-start;
    font-size: 0.82rem;
    white-space: nowrap;
    user-select: none;
    overflow: visible;
}

/* Resaltar label cuando el switch está activo */
.pc-switch-label:has(input:checked) {
    border-color: #4a7cff;
    background: #eef2ff;
    color: #4a7cff;
}

/* Botón limpiar filtros */
.pc-filter-clear {
    flex: 0 0 auto;
    min-width: unset;
    max-width: unset;
    margin-left: auto;
}

.pc-filter-clear-btn {
    height: 52px;
    padding: 0 14px;
    font-size: 0.82rem;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .pc-depositos-filters-row {
        display: flex;
        gap: 6px;
    }

    .pc-filter-item,
    .pc-filter-switch {
        flex: 0 0 auto;
    }

    .pc-filter-clear {
        margin-left: 0;
        width: 100%;
    }

    .pc-filter-clear-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Leaflet z-index fix: evita que los mapas queden por encima de los modales ── */
/* Leaflet pone sus capas internas con z-index alto; forzamos el contenedor
   a crear un stacking context aislado con z-index bajo cuando hay un modal activo */
body.modal-open .leaflet-container,
body.modal-open .leaflet-pane,
body.modal-open .leaflet-top,
body.modal-open .leaflet-bottom {
    z-index: 0 !important;
}

/* El mapa DENTRO del modal sí debe verse — lo revertimos por selector específico */
.pc-modal-overlay.active .leaflet-container,
.pc-modal-overlay.active .leaflet-pane,
.pc-modal-overlay.active .leaflet-top,
.pc-modal-overlay.active .leaflet-bottom {
    z-index: revert !important;
}
