/* =====================================================================
   Bloque D (maqueta Design/Customer/maqueta): cuenta, atención al cliente, facturación, facturas, notificaciones,
   manuales y las pantallas web de documentos, envío de partes, modelo, webhooks y API. Solo lo que no está en el kit
   de poli.css. Se carga después de poli.css.
   ===================================================================== */

/* ---------- Cuenta / Atención al cliente (.account, .card h2, .right) ---------- */
.poli-acc-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--poli-text);
}

.poli-acc-right {
    display: flex;
    justify-content: flex-end;
}

.poli-acc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.poli-acc-form .poli-field,
.poli-account .poli-field {
    margin-bottom: 0;
}

.poli-acc-form .poli-bar {
    margin-top: 0;
}

.poli-acc-small {
    font-size: 13px;
}

/* Botones de Atención al cliente: todos del mismo ancho (360 px), centrados en su tarjeta; en el móvil, a todo el ancho. */
.poli-btn.poli-acc-full.mud-button-root {
    display: flex;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: none;
}

.poli-support-schedule {
    color: #9E9E9E;
    font-size: 14px;
}

.poli-support-privacy {
    color: #757575;
    font-size: 14px;
}

.poli-support-privacy a {
    color: inherit;
    font-weight: 400;
    text-decoration: underline;
}

/* ---------- Facturas (.invoices / .invoice) ---------- */
.poli-invoices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poli-invoice {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
}

.poli-invoice-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.poli-invoice-text > b {
    font-size: 18px;
}

.poli-invoice-text small {
    color: #757575;
}

.poli-invoice-amount {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

/* ---------- Notificaciones (.notifs) ---------- */
.poli-notifs-actions {
    margin-bottom: 8px;
}

.poli-notifs {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #E0E0E0;
}

.poli-notifs > li {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #E0E0E0;
}

.poli-notifs > li.poli-notifs-unread {
    background-color: #EEEEEE;
}

.poli-notifs-open {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: none;
    border: none;
    font: inherit;
    color: var(--poli-text);
    text-align: left;
    cursor: pointer;
}

.poli-notifs-open > .mud-icon-root {
    font-size: 36px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.poli-notifs-title {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 1.1rem;
}

.poli-notifs-unread .poli-notifs-title {
    font-weight: 700;
}

.poli-notifs-when {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
    white-space: nowrap;
}

.poli-notifs-unread .poli-notifs-when > span {
    font-weight: 700;
}

.poli-notifs-when small {
    color: #757575;
}

.poli-notifs-del.mud-icon-button {
    color: #757575;
    margin-right: 8px;
}

/* Detalle (.notif-body): enlaces azules en negrita. */
.poli-notif-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.poli-notif-title p {
    margin: 0;
}

.poli-notif-date {
    display: block;
    margin-bottom: 16px;
}

.poli-notif-body {
    padding: 10px 0;
    font-size: 1.1rem;
}

.poli-notif-body a {
    color: #1E6FD9;
    font-weight: 700;
}

.poli-acc-detail p {
    line-height: 1.5;
    margin: 0 0 12px;
}

.poli-acc-detail .poli-notice a {
    color: #1E6FD9;
}

.poli-acc-grow {
    flex: 1;
    min-width: 0;
}

.poli-acc-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.poli-acc-group .poli-field {
    margin-bottom: 0;
}

.poli-acc-endpoint {
    padding: 16px 0 4px;
    border-bottom: 1px solid #EEEEEE;
}

.poli-acc-endpoint-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.poli-acc-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0 0 12px;
}

.poli-acc-grid .mud-table-cell {
    word-break: break-word;
}

.poli-acc-page .poli-bar .poli-muted {
    align-self: center;
}

@media (max-width: 599.98px) {
    .poli-acc-page {
        margin-left: 0;
    }

    .poli-invoice {
        padding: 12px;
    }

    .poli-notifs-open {
        padding: 12px;
    }
}

@media (max-width: 799.98px) {
    .poli-btn.poli-acc-full.mud-button-root {
        max-width: none;
        margin-left: 0;
    }
}
