/* ═══════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════ */

body.login-page {
    min-height: 100vh;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow: hidden;
}

body.login-page::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(245,101,34,0.05) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(49,130,206,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes bgPulse {
    from { transform: scale(1) rotate(0deg); }
    to   { transform: scale(1.05) rotate(3deg); }
}

.login-card-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 0 16px;
    animation: slideUp 0.55s cubic-bezier(0.23,1,0.32,1) both;
}

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

.login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 36px 36px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.login-logo {
    width: 80px; height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(245,101,34,0.45));
    margin-bottom: 10px;
}

.login-title {
    color: #1a365d;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.login-subtitle {
    color: #64748b;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0;
}

.login-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 24px 0;
}

.login-card .form-group label {
    color: #374151;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.input-icon-wrapper { position: relative; }

.input-icon-wrapper .bi {
    position: absolute;
    left: 13px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s;
}

.input-icon-wrapper input {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    border-radius: 10px;
    padding: 11px 42px;
    font-size: 0.95rem;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.input-icon-wrapper input::placeholder { color: #94a3b8; }

.input-icon-wrapper input:focus {
    background: #fff;
    border-color: #f56522;
    box-shadow: 0 0 0 3px rgba(245,101,34,0.15);
    outline: none;
    color: #1e293b;
}

.input-icon-wrapper input:focus + .bi,
.input-icon-wrapper input:focus ~ .bi-person,
.input-icon-wrapper input:focus ~ .bi-lock { color: #f56522; }

.toggle-password {
    position: absolute;
    right: 13px;
    top: 50%;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
    z-index: 2;
    user-select: none;
    pointer-events: auto;
}
.toggle-password:hover { color: #1a365d; }

#error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    font-size: 0.87rem;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shake 0.35s ease;
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    60%      { transform: translateX(6px); }
}

.btn-login {
    background: linear-gradient(135deg, #f56522 0%, #d4511b 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px;
    width: 100%;
    letter-spacing: 0.5px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(245,101,34,0.35);
    cursor: pointer;
}
.btn-login:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(245,101,34,0.5);
}
.btn-login:active:not(:disabled) { transform: translateY(0); }
.btn-login:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-login .spinner-border {
    width: 1rem; height: 1rem;
    border-width: 2px;
    margin-right: 6px;
    vertical-align: middle;
}

.login-footer {
    color: #94a3b8;
    font-size: 0.75rem;
    text-align: center;
    margin-top: 24px;
}

/* ═══════════════════════════════════════════════════
   MODAL PWA – BOTTOM SHEET
   ═══════════════════════════════════════════════════ */

#pwa-install-modal .modal-dialog {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    margin: 0;
    max-width: 100%;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.23,1,0.32,1);
}
#pwa-install-modal.show .modal-dialog { transform: translateY(0); }

#pwa-install-modal .modal-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px 24px 0 0;
    color: #1e293b;
    padding: 8px 0 env(safe-area-inset-bottom, 12px);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
}

.pwa-sheet-handle {
    width: 40px; height: 4px;
    background: rgba(0,0,0,0.12);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.pwa-sheet-body { padding: 4px 28px 24px; }

.pwa-app-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.pwa-app-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 4px 16px rgba(245,101,34,0.4);
}

.pwa-app-name { font-size: 1.15rem; font-weight: 700; margin: 0; color: #1a365d; }
.pwa-app-url  { font-size: 0.78rem; color: #64748b; margin: 0; }

.pwa-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pwa-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #374151;
}
.pwa-features li .bi { font-size: 1.1rem; color: #f56522; flex-shrink: 0; }

.pwa-btn-install {
    width: 100%;
    background: linear-gradient(135deg, #f56522 0%, #d4511b 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 13px;
    box-shadow: 0 4px 20px rgba(245,101,34,0.4);
    transition: opacity 0.2s, transform 0.15s;
    cursor: pointer;
}
.pwa-btn-install:hover { opacity: 0.9; transform: translateY(-1px); }

.pwa-btn-cancel {
    width: 100%;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.88rem;
    padding: 11px;
    margin-top: 8px;
    cursor: pointer;
    transition: color 0.2s;
}
.pwa-btn-cancel:hover { color: #1a365d; }

/* iOS install instructions */
.ios-steps { display: none; }
body.is-ios .ios-steps { display: block; }
body.is-ios .android-only { display: none; }

.ios-steps-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ios-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.ios-step-num {
    min-width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(245,101,34,0.2);
    border: 1px solid rgba(245,101,34,0.5);
    color: #f56522;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.ios-step-text { font-size: 0.87rem; color: #374151; line-height: 1.45; }
.ios-step-text strong { color: #1a365d; }

.ios-share-icon {
    display: inline-block;
    width: 18px; height: 18px;
    vertical-align: middle;
    margin: 0 2px;
    background: rgba(26,54,93,0.1);
    border-radius: 4px;
    padding: 2px;
}

.pwa-ios-note {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 16px;
}

.navbar {
    justify-content: space-around;
}

.navbar-brand .bi {
    font-size: 1.5em;
}

.navbar-brand .small {
    display: block;
    font-size: 0.5em;
}

.list-group-item {
    font-size: 1.25em;
    padding: 15px 20px;
}

.container h2 {
    margin-bottom: 30px;
}

.chart-container {
    margin-bottom: 30px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #fff;
}

.chart-container h3 {
    text-align: center;
    margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════
   DASHCLIENTES – CUSTOM UI
   ═══════════════════════════════════════════════════ */

/* Variables */
:root {
    --dc-primary:    #f56522;
    --dc-primary-dk: #d4511b;
    --dc-bg:         #f7fafc;
    --dc-header-h:   58px;
    --dc-footer-h:   60px;
    --dc-radius:     10px;
    --dc-shadow:     0 2px 12px rgba(0,0,0,0.08);
}

/* Reset / base */
body.dc-page {
    background: var(--dc-bg);
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 0.92rem;
    padding-top: var(--dc-header-h);
    padding-bottom: var(--dc-footer-h);
}

/*  Header  */
.dc-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--dc-header-h);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
}

.dc-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.dc-header-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
}

.dc-header-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1a365d;
    letter-spacing: 0.5px;
}

.dc-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dc-username {
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    display: none;
}
@media (min-width: 480px) { .dc-username { display: block; } }

.dc-user-dropdown { position: relative; }

.dc-user-btn {
    background: none;
    border: none;
    color: #444;
    font-size: 1.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}
.dc-user-btn:hover { background: #f0f0f0; }

.dc-chevron {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.dc-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: var(--dc-radius);
    box-shadow: var(--dc-shadow);
    min-width: 140px;
    z-index: 1100;
    overflow: hidden;
}
.dc-dropdown-menu.dc-dropdown-open { display: block; }

.dc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.88rem;
    transition: background 0.15s;
}
.dc-dropdown-item:hover { background: #f5f5f5; color: var(--dc-primary); }

/*  Main  */
.dc-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 12px 18px;
}

/*  Controls bar  */
.dc-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: var(--dc-radius);
    box-shadow: var(--dc-shadow);
    padding: 12px 16px;
    margin-bottom: 14px;
}

.dc-search-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.dc-search-icon {
    position: absolute;
    left: 11px; top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.9rem;
    pointer-events: none;
}

.dc-search {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px 8px 32px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}
.dc-search:focus {
    border-color: var(--dc-primary);
    box-shadow: 0 0 0 3px rgba(245,101,34,0.12);
    background: #fff;
}

.dc-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dc-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.88rem;
    background: #fafafa;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}
.dc-select:focus { border-color: var(--dc-primary); }

.dc-btn-new {
    background: linear-gradient(135deg, var(--dc-primary) 0%, var(--dc-primary-dk) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 3px 12px rgba(245,101,34,0.3);
}
.dc-btn-new:hover { opacity: 0.9; transform: translateY(-1px); }

/*  Table  */
.dc-table-wrap {
    background: #fff;
    border-radius: var(--dc-radius);
    box-shadow: var(--dc-shadow);
    overflow-x: auto;
}

.dc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 380px;
}

.dc-table thead th {
    background: #f8f8fa;
    color: #666;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 12px 14px;
    white-space: nowrap;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.dc-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid #f2f2f2;
    color: #333;
    vertical-align: middle;
}

.dc-table tbody tr:last-child td { border-bottom: none; }
.dc-table tbody tr:hover { background: #f7fafc; }

.dc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: #f0f0f0;
    border: 2px solid #eee;
}

.dc-password-cell { color: #aaa; letter-spacing: 2px; }

.dc-empty {
    text-align: center;
    padding: 40px !important;
    color: #aaa;
    font-size: 0.95rem;
}

/* Responsive hidden columns */
@media (max-width: 575px) {
    .dc-hide-sm { display: none !important; }
}
@media (max-width: 767px) {
    .dc-hide-md { display: none !important; }
}

/*  Actions  */
.dc-actions { white-space: nowrap; text-align: center; }

.dc-action-btn {
    border: none;
    border-radius: 7px;
    padding: 5px 9px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    margin: 0 2px;
}
.dc-action-btn:hover { opacity: 0.83; transform: translateY(-1px); }

.view-btn   { background: #eff6ff; color: #2563eb; }
.edit-btn   { background: #fef9c3; color: #b45309; }
.delete-btn { background: #fee2e2; color: #dc2626; }

/*  Pagination  */
.dc-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 4px;
}

.dc-page-info {
    font-size: 0.82rem;
    color: #888;
}

.dc-page-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.dc-page-btn {
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #555;
    border-radius: 6px;
    padding: 5px 11px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    min-width: 34px;
}
.dc-page-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #ccc;
}
.dc-page-btn.active {
    background: var(--dc-primary);
    color: #fff;
    border-color: var(--dc-primary);
    font-weight: 700;
}
.dc-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/*  Footer  */
.dc-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--dc-footer-h);
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.dc-footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #888;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 10px;
    transition: color 0.15s, background 0.15s;
}
.dc-footer-btn i { font-size: 1.3rem; }
.dc-footer-btn:hover, .dc-footer-btn:active {
    color: var(--dc-primary);
    background: rgba(245,101,34,0.06);
}

/*  Modals  */
.dc-modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.dc-modal-header {
    background: linear-gradient(135deg, var(--dc-primary) 0%, var(--dc-primary-dk) 100%);
    color: #fff;
    border-bottom: none;
    padding: 16px 20px;
}
.dc-modal-header .modal-title { font-weight: 700; font-size: 1rem; }
.dc-modal-header-danger {
    background: linear-gradient(135deg, #dc2626 0%, #9b1c1c 100%);
}

.dc-modal-body { padding: 20px; }

.dc-detail-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 12px;
    background: #f0f0f0;
    border: 2px solid #eee;
    padding: 4px;
}

.dc-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 400px) {
    .dc-detail-grid { grid-template-columns: 1fr; }
}

.dc-detail-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #f8f8fa;
    border-radius: 8px;
    padding: 10px 12px;
}

.dc-detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
}
.dc-detail-label i { margin-right: 4px; color: var(--dc-primary); }

.dc-detail-value {
    font-size: 0.92rem;
    color: #222;
    font-weight: 500;
    word-break: break-all;
}

/* ═══════════════════════════════════════════════════
   DASHCLIENTES – LISTADO (blue theme)
   ═══════════════════════════════════════════════════ */

/* Blue theme CSS variables (unique names — no conflict with existing vars) */
:root {
    --primary-color:   #2563eb;
    --secondary-color: #1d4ed8;
    --dark-color:      #1e293b;
    --gray-color:      #94a3b8;
    --danger-color:    #ef4444;
    --info-color:      #3b82f6;
    --border-color:    #e2e8f0;
    --shadow:          rgba(0,0,0,0.1);
}

body.dc-list-page {
    margin: 0;
    background-color: #f7fafc;
    color: var(--dark-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Header */
.dc-list-page .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dc-list-page .logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dc-list-page .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
}

.dc-list-page .logo-text {
    font-weight: 700;
    font-size: 18px;
    color: #1a365d;
}

.dc-list-page .user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dc-list-page .user-name {
    font-size: 14px;
    font-weight: 500;
}

/* CSS-hover dropdown (custom, not Bootstrap component) */
.dc-list-page .dropdown {
    position: relative;
    display: inline-block;
}

.dc-list-page .dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: var(--dark-color);
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.dc-list-page .dropdown-btn:hover { background: #f7fafc; }

.dc-list-page .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px var(--shadow);
    z-index: 200;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.dc-list-page .dropdown-content a {
    color: var(--dark-color);
    padding: 11px 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.dc-list-page .dropdown-content a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.dc-list-page .dropdown:hover .dropdown-content { display: block; }

/* Main content */
.dc-list-page .main-content {
    padding: 20px;
    padding-bottom: 90px;
}

.dc-list-page .page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    flex-shrink: 0;
}

/* Controls bar */
.dc-list-page .controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 5px var(--shadow);
}

/* Active filter info bar */
.dc-list-page .filter-info-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 12px;
    color: #1d4ed8;
    margin-bottom: 20px;
}
.dc-list-page .filter-info-sep { color: #93c5fd; }

.dc-list-page .controls-right {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.dc-list-page .show-records {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.dc-list-page .records-select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.dc-list-page .search-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dc-list-page .search-label { font-size: 14px; white-space: nowrap; }

.dc-list-page .search-input {
    padding: 7px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.dc-list-page .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.dc-list-page .add-gym-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: background-color 0.2s;
}
.dc-list-page .add-gym-btn:hover { background-color: var(--secondary-color); }

/* Table */
.dc-list-page .table-container {
    overflow-x: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow);
    margin-bottom: 20px;
}

.dc-list-page .table-container table {
    width: 100%;
    border-collapse: collapse;
}

.dc-list-page .table-container thead {
    background-color: #f7fafc;
}

.dc-list-page .table-container th,
.dc-list-page .table-container td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.dc-list-page .table-container tbody tr:last-child td { border-bottom: none; }

.dc-list-page .table-container th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #475569;
    white-space: nowrap;
}

.dc-list-page .table-container tbody tr:hover { background-color: #f7fafc; }

.dc-list-page .gym-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    background-color: #f0f4ff;
    border: 2px solid var(--border-color);
    vertical-align: middle;
}

.dc-list-page .password-dots { letter-spacing: 3px; color: var(--gray-color); }

/* Action buttons */
.dc-list-page .action-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.dc-list-page .btn-action {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: opacity 0.2s, transform 0.15s;
}
.dc-list-page .btn-action:hover { opacity: 0.85; transform: scale(1.06); }

.dc-list-page .btn-view      { background-color: #e2e8f0; color: var(--dark-color); }
.dc-list-page .btn-edit      { background-color: #dbeafe; color: var(--info-color); }
.dc-list-page .btn-delete    { background-color: #fee2e2; color: var(--danger-color); }
.dc-list-page .btn-whatsapp          { background-color: #dcfce7; color: #15803d; }
.dc-list-page .btn-whatsapp.whatsapp-special { background-color: #e0e7ff; color: #4f46e5; border: 2px solid #4f46e5; }
.dc-list-page .btn-filter { margin-left: 0.75rem; }
.dc-list-page .btn-filter.active { color: #ffffff; }
.dc-list-page .btn-whatsapp.restricted { background-color: #f97316; color: #ffffff; }
.dc-list-page .btn-whatsapp.restricted i { color: #ffffff; }
.dc-list-page .btn-whatsapp:disabled { background-color: #f1f5f9; color: #94a3b8; cursor: not-allowed; opacity: 0.55; transform: none !important; }

/* Responsive hidden columns */
@media (max-width: 767px) { .dc-list-page .col-hide-md { display: none !important; } }
@media (max-width: 479px) { .dc-list-page .col-hide-sm { display: none !important; } }

@media (max-width: 768px) {
    .dc-list-page .header { flex-direction: column; gap: 10px; padding: 10px 15px; }
    .dc-list-page .logo-text { font-size: 16px; }
    .dc-list-page .user-menu { width: 100%; justify-content: space-between; }
    .dc-list-page .controls { flex-direction: column; align-items: stretch; }
    .dc-list-page .controls-right { flex-direction: column; }
    .dc-list-page .search-input { width: 100%; }
    .dc-list-page .add-gym-btn { width: 100%; justify-content: center; }
    .dc-list-page .page-title { font-size: 18px; text-align: center; }
    .dc-list-page .table-container th,
    .dc-list-page .table-container td { padding: 9px 7px; font-size: 12px; }
}

/* Pagination */
.dc-list-page .pagination-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow);
    margin-bottom: 20px;
}

.dc-list-page .pagination-info {
    font-size: 13px;
    color: var(--gray-color);
}

.dc-list-page .pagination-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.dc-list-page .page-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    color: var(--dark-color);
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
    min-width: 34px;
}
.dc-list-page .page-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.dc-list-page .page-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 700;
}
.dc-list-page .page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Footer */
.dc-list-page .footer {
    display: flex;
    justify-content: space-around;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 -2px 5px var(--shadow);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 10px);
}

.dc-list-page .footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-color);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background-color 0.2s, color 0.2s;
}
.dc-list-page .footer-btn i { font-size: 20px; }
.dc-list-page .footer-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Detail modal (custom, independent of Bootstrap) */
.dc-list-page .detail-modal {
    display: none;
    position: fixed;
    z-index: 1055;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
    padding: 20px;
}

.dc-list-page .detail-modal-content {
    background-color: #fff;
    margin: 8% auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    max-width: 480px;
    overflow: hidden;
}

.dc-list-page .detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}

.dc-list-page .detail-modal-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.dc-list-page .close-detail-modal {
    color: rgba(255,255,255,0.75);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.dc-list-page .close-detail-modal:hover { color: #fff; }

.dc-list-page .detail-modal-body { padding: 20px 24px; }

/* Hero: logo + nombre centrado */
.dc-list-page .detail-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 18px;
}
.dc-list-page .detail-hero-logo {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: contain;
    background: #f0f4ff;
    border: 2px solid var(--border-color);
    padding: 6px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.10);
}
.dc-list-page .detail-hero-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: 0.3px;
}

.dc-list-page .detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
@media (max-width: 420px) { .dc-list-page .detail-grid { grid-template-columns: 1fr; } }

.dc-list-page .detail-field {
    background: #f7fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 12px;
    text-align: center;
}

.dc-list-page .detail-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 4px;
    display: block;
}

.dc-list-page .detail-value {
    font-size: 13px;
    color: var(--dark-color);
    font-weight: 500;
    word-break: break-all;
}

/* Caja de datos de acceso */
.dc-list-page .detail-access-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    overflow: hidden;
}
.dc-list-page .detail-access-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 14px;
}
.dc-list-page .detail-access-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dc-list-page .detail-access-line {
    font-size: 13px;
    color: #1e40af;
    font-family: 'Courier New', Courier, monospace;
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dc-list-page .detail-access-line i {
    color: #3b82f6;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

/* Footer del modal de detalle */
.dc-list-page .detail-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f7fafc;
    display: flex;
    justify-content: center;
}
.dc-list-page .btn-share-detail {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    transition: opacity 0.2s, transform 0.15s;
}
.dc-list-page .btn-share-detail:hover  { opacity: 0.9; transform: translateY(-1px); }
.dc-list-page .btn-share-detail:active { transform: translateY(0); }

/* Bootstrap CRUD modal style overrides */
.dc-list-page .crud-modal-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border-bottom: none;
    padding: 16px 20px;
}
.dc-list-page .crud-modal-header-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff;
    border-bottom: none;
    padding: 16px 20px;
}
.dc-list-page .crud-modal-header .modal-title,
.dc-list-page .crud-modal-header-danger .modal-title { font-weight: 700; font-size: 1rem; }
.dc-list-page #addNewRecordModal .modal-content,
.dc-list-page #deleteConfirmModal .modal-content { border-radius: 12px; overflow: hidden; }

/* ═══════════════════════════════════════════════════
   DASHCLIENTES – CRUD MODAL FORM IMPROVEMENTS
   ═══════════════════════════════════════════════════ */

.dc-list-page .modal-header-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.dc-list-page .crud-modal-subtitle {
    font-size: 11px;
    opacity: 0.75;
    line-height: 1;
    margin-top: 3px;
}

/* Form sections */
.dc-list-page .form-section {
    border-bottom: 1px solid #f0f4f8;
}

.dc-list-page .form-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #2563eb;
    background: #f8faff;
    border-bottom: 1px solid #e8edf5;
}

.dc-list-page .form-section-header i { font-size: 12px; }

.dc-list-page .form-section-body { padding: 16px 20px; }

/* Logo upload area */
.dc-list-page .logo-upload-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dc-list-page .logo-thumb-box {
    width: 64px;
    height: 64px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    overflow: hidden;
    flex-shrink: 0;
}

.dc-list-page .logo-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dc-list-page .logo-placeholder-icon {
    color: #cbd5e1;
    font-size: 22px;
}

/* Toggle cards for switches */
.dc-list-page .toggle-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fafbfc;
    transition: border-color 0.2s, background 0.2s;
    height: 100%;
}

.dc-list-page .toggle-card:hover {
    border-color: #2563eb;
    background: #f0f6ff;
}

.dc-list-page .toggle-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.dc-list-page .toggle-icon-whatsapp { background: #dcfce7; color: #16a34a; }
.dc-list-page .toggle-icon-gym      { background: #dbeafe; color: #2563eb; }

.dc-list-page .toggle-card-info { flex: 1; min-width: 0; }

.dc-list-page .toggle-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

.dc-list-page .toggle-card-desc {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.dc-list-page .toggle-card .form-check.form-switch { padding-left: 0; margin: 0; }
.dc-list-page .toggle-card .form-check-input[type="checkbox"] {
    float: none;
    margin-left: 0;
    cursor: pointer;
}

/* Modal form footer (action buttons bar) */
.dc-list-page .modal-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
}

.dc-list-page .btn-modal-cancel {
    padding: 8px 20px;
    font-size: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s;
}

.dc-list-page .btn-modal-cancel:hover {
    background: #f7fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.dc-list-page .btn-modal-save {
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
    transition: box-shadow 0.2s, transform 0.15s;
}

.dc-list-page .btn-modal-save:hover {
    box-shadow: 0 4px 14px rgba(37,99,235,0.4);
    transform: translateY(-1px);
    color: #fff;
}

/* Scoped form controls inside add/edit modal */
.dc-list-page #addNewRecordModal .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.dc-list-page #addNewRecordModal .form-control,
.dc-list-page #addNewRecordModal .form-select {
    font-size: 13px;
    border-color: #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dc-list-page #addNewRecordModal .form-control:focus,
.dc-list-page #addNewRecordModal .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* Fix input-group alignment inside modal */
.dc-list-page #addNewRecordModal .input-group {
    align-items: stretch;
}
.dc-list-page #addNewRecordModal .input-group .btn.toggle-password {
    align-self: stretch;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #e2e8f0;
    color: #64748b;
    padding: 0 12px;
    background: #fff;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.dc-list-page #addNewRecordModal .input-group .btn.toggle-password:hover {
    background: #f7fafc;
    color: #2563eb;
    border-color: #2563eb;
}
