/* ========================================
   PORTAL DO CLIENTE - Estilo Minimalista
   ======================================== */

/* ========================================
   TELA DE ACESSO (Portal Access Screen)
   ======================================== */

.dps-client-portal-access-page {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 20px;
}

.dps-portal-access {
    width: 100%;
}

.dps-portal-access__card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.dps-portal-access__logo {
    font-size: 48px;
    text-align: center;
    margin-bottom: 24px;
}

.dps-portal-access__title {
    font-size: 24px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.3;
}

.dps-portal-access__description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 24px;
}

.dps-portal-access__error {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 24px;
}

.dps-portal-access__error p {
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
    margin: 0;
}

.dps-portal-access__button {
    display: block;
    width: 100%;
    background-color: #0ea5e9;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dps-portal-access__button:hover {
    background-color: #0284c7;
    color: #ffffff;
}

.dps-portal-access__button:active {
    background-color: #0369a1;
}

.dps-portal-access__button--disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.dps-portal-access__button--disabled:hover {
    background-color: #e5e7eb;
}

.dps-portal-access__note {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

.dps-portal-access__note--error {
    color: #dc2626;
}

/* ========================================
   PORTAL PRINCIPAL
   ======================================== */

.dps-client-portal {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Título principal H1 */
.dps-portal-title {
    margin: 0 0 1.5rem 0;
    font-size: 24px;
    font-weight: 600;
    color: #374151;
}

/* ========================================
   NAVEGAÇÃO POR TABS
   ======================================== */

.dps-portal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    margin-bottom: 0;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    list-style: none;
}

.dps-portal-tabs__item {
    flex: 1;
    min-width: 0;
}

.dps-portal-tabs__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dps-portal-tabs__link:hover {
    background: rgba(14, 165, 233, 0.05);
    color: #0ea5e9;
}

.dps-portal-tabs__link.is-active {
    background: #fff;
    color: #0ea5e9;
    border-bottom-color: #0ea5e9;
    font-weight: 600;
}

.dps-portal-tabs__icon {
    font-size: 18px;
    line-height: 1;
}

.dps-portal-tabs__text {
    display: inline;
}

/* Container de conteúdo das tabs */
.dps-portal-tab-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 24px;
}

/* Painéis individuais */
.dps-portal-tab-panel {
    display: none;
}

.dps-portal-tab-panel.is-active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Navegação interna (fallback/scroll) */
.dps-portal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.dps-portal-nav__link {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dps-portal-nav__link:hover {
    background: #0ea5e9;
    color: #fff;
    border-color: #0ea5e9;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* ========================================
   WIDGET DE CHAT
   ======================================== */

.dps-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Botão flutuante do chat */
.dps-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 24px;
}

.dps-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.dps-chat-toggle__icon {
    transition: transform 0.3s ease;
}

.dps-chat-toggle.is-open .dps-chat-toggle__icon {
    transform: rotate(45deg);
}

/* Badge de mensagens não lidas */
.dps-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #ef4444;
    color: #fff;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.dps-chat-badge:empty {
    display: none;
}

/* Janela do chat */
.dps-chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 480px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.dps-chat-window.is-open {
    display: flex;
    animation: slideUp 0.3s ease;
}

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

/* Header do chat */
.dps-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
}

.dps-chat-header__info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dps-chat-header__avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.dps-chat-header__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.dps-chat-header__status {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dps-chat-header__status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

.dps-chat-header__close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.dps-chat-header__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Área de mensagens */
.dps-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dps-chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.dps-chat-message--client {
    background: #0ea5e9;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.dps-chat-message--admin {
    background: #fff;
    color: #374151;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid #e5e7eb;
}

.dps-chat-message__time {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.7;
}

.dps-chat-message--client .dps-chat-message__time {
    text-align: right;
}

/* Estado vazio do chat */
.dps-chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: #6b7280;
}

.dps-chat-empty__icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.dps-chat-empty__text {
    font-size: 14px;
}

/* Input de mensagem */
.dps-chat-input {
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.dps-chat-input__form {
    display: flex;
    gap: 8px;
}

.dps-chat-input__field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.dps-chat-input__field:focus {
    border-color: #0ea5e9;
}

.dps-chat-input__field::placeholder {
    color: #9ca3af;
}

.dps-chat-input__send {
    width: 44px;
    height: 44px;
    background: #0ea5e9;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.dps-chat-input__send:hover {
    background: #0284c7;
}

.dps-chat-input__send:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* Loading spinner no chat */
.dps-chat-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dps-chat-loading__spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Seções do portal */
.dps-portal-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 20px;
}

.dps-portal-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #374151;
}

.dps-portal-section h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

/* Feedback visual - Notices */
.dps-portal-notice {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    border-radius: 4px;
    background: #fff;
}

.dps-portal-notice--success {
    border-left-color: #10b981;
    background: #d1fae5;
    color: #047857;
}

.dps-portal-notice--error {
    border-left-color: #ef4444;
    background: #fee2e2;
    color: #991b1b;
}

.dps-portal-notice--info {
    border-left-color: #0ea5e9;
    background: #e0f2fe;
    color: #075985;
}

/* Alerts */
.dps-alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    border-radius: 4px;
    background: #fff;
}

.dps-alert__content {
    font-weight: 500;
}

.dps-alert--warning {
    border-left-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
}

.dps-alert--success {
    border-left-color: #10b981;
    background: #d1fae5;
    color: #047857;
}

/* Card de próximo agendamento */
.dps-appointment-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.dps-appointment-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 1rem;
    background: #0ea5e9;
    color: #fff;
    border-radius: 4px;
}

.dps-appointment-card__day {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.dps-appointment-card__month {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}

.dps-appointment-card__details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dps-appointment-card__time,
.dps-appointment-card__pet,
.dps-appointment-card__services {
    font-size: 16px;
    color: #374151;
}

.dps-appointment-card__status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e5e7eb;
    color: #374151;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    align-self: flex-start;
}

.dps-appointment-card__action {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #0ea5e9;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start;
}

.dps-appointment-card__action:hover {
    background: #0284c7;
}

/* Estado vazio */
.dps-empty-state {
    text-align: center;
    padding: 2rem;
}

.dps-empty-state__icon {
    font-size: 64px;
    margin-bottom: 1rem;
}

.dps-empty-state__message {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.dps-empty-state__action {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #10b981;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.dps-empty-state__action:hover {
    background: #059669;
}

/* Tabelas */
.dps-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.dps-table th,
.dps-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.dps-table thead {
    background: #f9fafb;
}

.dps-table th {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dps-table td {
    color: #374151;
}

/* Botão de pagamento */
.dps-btn-pay {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #fff !important;
}

.dps-btn-pay:hover {
    background: #059669 !important;
    border-color: #059669 !important;
}

/* Fieldsets */
.dps-fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 1.5rem;
}

.dps-fieldset__legend {
    font-weight: 600;
    color: #374151;
    font-size: 16px;
    padding: 0 8px;
}

/* Formulários */
.dps-portal-form input[type="text"],
.dps-portal-form input[type="email"],
.dps-portal-form input[type="tel"],
.dps-portal-form input[type="date"],
.dps-portal-form select,
.dps-portal-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 16px;
}

.dps-portal-form input:focus,
.dps-portal-form select:focus,
.dps-portal-form textarea:focus {
    outline: none;
    border-color: #0ea5e9;
}

.dps-submit-btn {
    position: relative;
}

.dps-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dps-submit-btn.is-loading::after {
    content: "...";
    animation: loading 1s infinite;
}

@keyframes loading {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Grid responsivo para formulários */
.dps-form-row {
    display: grid;
    gap: 16px;
    margin-bottom: 12px;
}

.dps-form-row--2col {
    grid-template-columns: 1fr 1fr;
}

.dps-form-row--3col {
    grid-template-columns: 1fr 1fr 1fr;
}

.dps-form-col {
    margin: 0;
}

/* Upload de arquivo estilizado */
.dps-file-upload {
    margin-bottom: 12px;
}

.dps-file-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.dps-file-upload__label {
    display: inline-block;
    padding: 10px 20px;
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dps-file-upload__label:hover {
    border-color: #0ea5e9;
    background: #eff6ff;
}

.dps-file-upload__text {
    display: inline-block;
}

.dps-file-upload__preview {
    margin-top: 12px;
    max-width: 200px;
}

.dps-file-upload__preview img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* Galeria de fotos */
.dps-portal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.dps-portal-photo-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.75rem;
    text-align: center;
}

.dps-share-whatsapp {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #10b981;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.dps-share-whatsapp:hover {
    background: #059669;
}

/* Centro de mensagens */
.dps-portal-messages {
    display: grid;
    gap: 1rem;
}

.dps-portal-messages__list {
    display: grid;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.dps-portal-message {
    border-left: 4px solid transparent;
    background: #f9fafb;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
}

.dps-portal-message--admin {
    border-left-color: #0ea5e9;
}

.dps-portal-message--client {
    border-left-color: #10b981;
}

.dps-portal-message__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.dps-portal-message__status {
    font-weight: 600;
}

.dps-portal-messages__form textarea {
    width: 100%;
    min-height: 120px;
}

.dps-portal-messages__form button.button {
    margin-top: 0.75rem;
}

/* ========================================
   RESPONSIVIDADE MOBILE
   ======================================== */

/* Tabelas responsivas em mobile */
@media (max-width: 640px) {
    /* Tabs em mobile - scroll horizontal */
    .dps-portal-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .dps-portal-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .dps-portal-tabs__item {
        flex: 0 0 auto;
    }
    
    .dps-portal-tabs__link {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .dps-portal-tabs__text {
        display: none;
    }
    
    .dps-portal-tabs__icon {
        font-size: 20px;
    }
    
    .dps-portal-tab-content {
        padding: 16px;
        border-radius: 0 0 4px 4px;
    }
    
    /* Chat widget em mobile */
    .dps-chat-window {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 60px);
        max-height: none;
        border-radius: 16px 16px 0 0;
    }
    
    .dps-chat-toggle {
        width: 54px;
        height: 54px;
        bottom: 16px;
        right: 16px;
    }
    
    /* Navegação sticky em mobile para acesso rápido */
    .dps-portal-nav {
        position: sticky;
        top: 0;
        z-index: 100;
        flex-direction: column;
        background: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        margin-left: -16px;
        margin-right: -16px;
        margin-top: -20px;
        margin-bottom: 20px;
        padding: 12px 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .dps-portal-nav__link {
        text-align: center;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Container do portal ajustado para navegação sticky */
    .dps-client-portal {
        padding-top: 0;
    }
    
    /* Grid forms em mobile - 1 coluna */
    .dps-form-row--2col,
    .dps-form-row--3col {
        grid-template-columns: 1fr;
    }
    
    /* Botões 100% largura em mobile */
    .dps-submit-btn {
        width: 100%;
    }
    
    /* Card de agendamento em mobile */
    .dps-appointment-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .dps-appointment-card__date {
        width: 100%;
        max-width: 120px;
    }
    
    .dps-appointment-card__details {
        align-items: center;
    }
    
    /* Tabelas viram cards */
    .dps-table thead {
        display: none;
    }
    
    .dps-table tr {
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
    }
    
    .dps-table td {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 0.5rem;
        border: none;
        padding: 0.5rem 0;
        text-align: left;
    }
    
    .dps-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #374151;
        font-size: 13px; /* Mínimo 13px para acessibilidade mobile */
        letter-spacing: 0.03em;
    }
    
    /* Botão de pagamento em mobile */
    .dps-table td form {
        grid-column: 1 / -1;
        display: block !important;
        margin-top: 0.5rem;
    }
    
    .dps-table td button {
        width: 100%;
    }
    
    /* Galeria em mobile - limitar altura */
    .dps-portal-gallery-grid {
        grid-template-columns: 1fr;
        max-height: 400px;
        overflow-y: auto;
        padding-right: 8px;
    }
    
    /* Scrollbar estilizado para galeria */
    .dps-portal-gallery-grid::-webkit-scrollbar {
        width: 6px;
    }
    
    .dps-portal-gallery-grid::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 3px;
    }
    
    .dps-portal-gallery-grid::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 3px;
    }
    
    .dps-portal-gallery-grid::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }
    
    /* Seções do portal com mais espaço */
    .dps-portal-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .dps-portal-section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    /* Centro de mensagens mais compacto */
    .dps-portal-messages__list {
        max-height: 300px;
    }
}

@media (min-width: 768px) {
    .dps-client-portal {
        grid-template-columns: repeat(2, 1fr);
    }

    .dps-portal-section {
        grid-column: span 2;
    }

    .dps-portal-section.dps-portal-next,
    .dps-portal-section.dps-portal-finances {
        grid-column: span 1;
    }
}

.dps-client-logins {
    display: grid;
    gap: 1.25rem;
}

.dps-client-logins__title {
    margin: 0;
    font-size: 1.6rem;
    color: #1e293b;
}

.dps-client-logins__feedback {
    display: grid;
    gap: 0.75rem;
}

.dps-client-logins__notice {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.dps-client-logins__notice--success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #34d399;
}

.dps-client-logins__notice--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.dps-client-logins__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.95rem;
    color: #475569;
}

.dps-client-logins__summary-item strong {
    color: #111827;
}

.dps-client-logins__filters {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.dps-client-logins__field {
    display: grid;
    gap: 0.25rem;
}

.dps-client-logins__label {
    font-weight: 600;
    color: #334155;
}

.dps-client-logins__filters input[type="search"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5f5;
    border-radius: 6px;
    font-size: 1rem;
}

.dps-client-logins__field--checkbox {
    align-items: center;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
}

.dps-client-logins__field--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.dps-client-logins__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dps-client-logins__table-wrapper {
    overflow-x: auto;
}

.dps-client-logins__table {
    width: 100%;
    border-collapse: collapse;
}

.dps-client-logins__table th,
.dps-client-logins__table td {
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.dps-client-logins__table thead {
    background: #f1f5f9;
}

.dps-client-logins__cell-id {
    font-weight: 700;
    color: #0f172a;
}

.dps-client-logins__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dps-client-logins__badge--active {
    background: #dcfce7;
    color: #166534;
}

.dps-client-logins__badge--inactive {
    background: #f1f5f9;
    color: #475569;
}

.dps-client-logins__code {
    display: inline-block;
    margin: 0.4rem 0 0;
    padding: 0.2rem 0.5rem;
    background: #0f172a;
    color: #f8fafc;
    border-radius: 4px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.95rem;
}

.dps-client-logins__hint {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.8rem;
}

.dps-client-logins__actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.dps-client-logins__action {
    white-space: nowrap;
}

.dps-client-logins__empty {
    margin: 0;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px dashed #cbd5f5;
    border-radius: 8px;
    color: #475569;
    text-align: center;
    font-weight: 500;
}

.dps-client-logins--restricted {
    padding: 1.5rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    text-align: center;
}

@media (max-width: 782px) {
    .dps-client-logins__table thead {
        display: none;
    }

    .dps-client-logins__table tr {
        display: block;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        background: #fff;
    }

    .dps-client-logins__table td {
        display: grid;
        grid-template-columns: 140px 1fr;
        gap: 0.35rem;
        border: none;
        padding: 0.35rem 0;
    }

    .dps-client-logins__table td::before {
        content: attr(data-title);
        font-weight: 600;
        color: #1f2937;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }

    .dps-client-logins__actions-cell {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.5rem;
    }
    
    /* Tela de acesso em mobile */
    .dps-portal-access__card {
        padding: 24px;
    }
    
    .dps-portal-access__title {
        font-size: 20px;
    }
    
    .dps-portal-access__description {
        font-size: 14px;
    }
    
    .dps-portal-access__button {
        font-size: 15px;
        padding: 12px 16px;
    }
}
