.login-container {
    width: 100%;
    height: 600px;
    /* AJUSTA este alto según tu contenedor */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    overflow: hidden;
    position: relative;
}

.login-bg {
    width: 100%;
    height: 100%;
    background: url('/views/assets/images/default/bg_login.webp') left center/65% no-repeat, #f7f7f7;
    display: flex;
    align-items: center;
    position: relative;
}

.login-cards-row {
    display: flex;
    align-items: stretch;
    /* Esto iguala la altura */
    gap: 40px;
    /* Espacio entre cards */
    position: absolute;
    left: 40%;
    /* Mueve ambos cards horizontalmente */
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.login-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.10);
    padding: 32px 28px 28px 28px;
    min-width: 320px;
    max-width: 360px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    /* Hace que ambos crezcan igual en altura */
    transition: box-shadow 0.3s;
    position: static;
    /* <- Muy importante: NO absoluto */
    height: auto;
}

.login-card-client,
.login-card-register {
    /* Todos estos quedan vacíos o solo para estilos menores. Quitar cualquier position/left/top/transform */
}

/* Títulos y textos */
.login-card h3 {
    margin-top: 0;
    color: #982d91;
}

.login-card label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    color: #222;
    font-weight: 600;
}

.login-card input {
    width: 100%;
    padding: 9px 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

.login-card button {
    margin-top: 14px;
    width: 100%;
    padding: 10px 0;
    background: #2dc7a9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1em;
}

.login-card a {
    display: block;
    margin-top: 12px;
    text-align: right;
    color: #2dc7a9;
    font-size: 0.9em;
    text-decoration: none;
}

.login-card-register ul {
    margin: 18px 0 20px 0;
    padding-left: 22px;
    color: #22b07d;
    font-size: 1em;
}

.login-card-register .btn-register {
    background: #982d91;
    color: #fff;
}

/* Responsivo */
@media (max-width: 1100px) {
    .login-bg {
        background-size: 100% auto;
    }

    .login-cards-row {
        left: 5%;
        gap: 16px;
    }
}

@media (max-width: 900px) {

    .login-bg,
    .login-container {
        min-height: 900px;
        height: auto;
    }

    .login-cards-row {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: column;
        gap: 30px;
        width: 100%;
        align-items: center;
        justify-content: center;
        margin: 30px 0;
    }

    .login-card {
        width: 90%;
        max-width: 370px;
        margin: 0 auto;
    }
}

/* ============ REGISTRO ===============================================*/
.register-bg {
    background: #fff;
    min-height: 100vh;
    width: 100vw;
    padding-top: 20px;
    padding-bottom: 20px;
}

.register-form-section {
    width: 100%;
}

.register-form {
    background: #f7f7f7;
    border-radius: 2px;
    max-width: 900px;
    min-width: 320px;
    box-shadow: 0 1px 8px rgba(80, 0, 120, 0.04);
}

.register-title h2 {
    color: #982d91;
}

.register-btn-servia {
    background: #00ADBB;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    border: none;
    border-radius: 2.5px;
    padding: 13px 45px;
    margin: 18px 0 0 0;
    cursor: pointer;
    transition: box-shadow 0.17s, background 0.14s;
    box-shadow: 0 4px 14px 0 rgba(32, 209, 179, 0.08);
}

.register-btn-servia:hover {
    background: #13b197;
}

.register-btn-servia.disabled,
.register-btn-servia:disabled {
    background: #ccc !important;
    color: #fff !important;
    cursor: not-allowed !important;
    border: none !important;
    opacity: 0.85;
}

@media (max-width: 992px) {
    .register-form {
        max-width: 99vw;
    }
}

/* ============ PERFIL ===============================================*/
.user-profile-section {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.profile-cards-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
}

.profile-card {
    background: #fff;
    border: 2.2px solid #dedede;
    border-radius: 12px;
    box-shadow: 0 1px 5px 0 rgba(60, 80, 180, 0.05);
    padding: 26px 30px 24px 24px;
    min-width: 350px;
    max-width: 400px;
    min-height: 110px;
    flex: 1 1 340px;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    position: relative;
}

.profile-card:hover,
.profile-card:focus-within {
    border-color: #00ADBB;
    box-shadow: 0 4px 18px 0 rgba(37, 99, 235, 0.12);
    z-index: 1;
}

.profile-card-icon {
    margin-right: 18px;
    min-width: 46px;
    display: flex;
    align-items: flex-start;
    height: 46px;
}

.profile-card-content h2 {
    font-size: 1.34rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
    margin-top: 3px;
    letter-spacing: -0.01em;
}

.profile-card-content p {
    font-size: 1.04rem;
    color: #38587c;
    margin-bottom: 0;
}

.profile-card {
    position: relative;
    overflow: hidden;
}

.profile-card-link {
    /* Hace toda la tarjeta clickeable, sin estilos visibles */
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    text-indent: -999em;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
}

@media (max-width: 900px) {
    .profile-cards-row {
        flex-direction: column;
        gap: 1.3rem;
        align-items: stretch;
    }

    .profile-card {
        min-width: 100%;
        max-width: 100%;
    }
}

/* ============ PEDIDOS ===============================================*/

/* Cabecera principal */
.bootstrap-table .fixed-table-container thead th {
    background-color: #00ADBB;
    color: white;
    border-color: #0095a1;
    font-weight: 600;
}

/* Detalle expandido */
.detail-view-container {
    background-color: #eaeaea;
    padding: 15px;
    border-left: 4px solid #00ADBB;
}

/* Cabecera del detalle */
.detail-view-container table thead th {
    background-color: #76BC21;
    color: white;
    font-weight: 500;
}

/* Imagen del producto */
.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #ddd;
    background-color: white;
    padding: 2px;
}

/* Acciones */
.table-action {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
    text-decoration: none;
    cursor: pointer;
    margin: 0 2px;
    color: white;
    border: none;
    transition: all 0.2s;
}

.table-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-edit {
    background-color: #007bff;
}

.action-delete {
    background-color: #dc3545;
}

.action-view {
    background-color: #17a2b8;
}

.action-return {
    background-color: #ffc107;
    color: #212529;
}

/* Ícono de expandir */
.detail-expand {
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.detail-expand:hover {
    transform: scale(1.2);
}

/* Efecto hover filas */
.bootstrap-table .table tbody tr:hover {
    background-color: rgba(0, 173, 187, 0.05);
}

/* ============ MIS PEDIDOS ===============================================*/

.pedido-servia-order-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
}

.pedido-servia-order-header {
    background-color: #f0f2f2;
    padding: 12px 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.pedido-servia-header-col {
    text-transform: uppercase;
    color: #565959;
    font-size: 11px;
    margin-bottom: 5px;
}

.pedido-servia-header-value {
    color: #0F1111;
    font-size: 14px;
}

.pedido-servia-header-value a {
    color: #007185;
    text-decoration: none;
}

.pedido-servia-header-value a:hover {
    color: #C7511F;
    text-decoration: underline;
}

.pedido-servia-header-right a {
    font-size: 14px;
}

/* Se mantiene el selector original para compatibilidad con Bootstrap */
.dropdown-toggle::after {
    display: none;
}

.dropdown-toggle .material-icons {
    font-size: 20px;
    vertical-align: middle;
    color: #565959;
}

.pedido-servia-product-item {
    padding: 20px;
    border-top: 1px solid #ddd;
}

.pedido-servia-product-item:first-child {
    border-top: none;
}

.pedido-servia-delivery-status {
    font-size: 18px;
    font-weight: 700;
    color: #067D62;
}

.pedido-servia-delivery-details {
    color: #0F1111;
    font-size: 14px;
    margin-bottom: 15px;
}

.pedido-servia-product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.pedido-servia-product-title {
    color: #007185;
    font-size: 14px;
    font-weight: 400;
}

.pedido-servia-product-title:hover {
    color: #C7511F;
    text-decoration: underline;
}

.pedido-servia-product-return-window {
    font-size: 12px;
    color: #565959;
}

.pedido-servia-product-price {
    color: #B12704;
    font-size: 16px;
    font-weight: 400;
}

.pedido-servia-btn-buy-again {
    background-color: #FFD814;
    border-color: #FCD200;
    border-radius: 8px;
    font-size: 13px;
    padding: 4px 12px;
    color: #0F1111;
}

.pedido-servia-btn-action {
    background-color: #fff;
    border: 1px solid #D5D9D9;
    border-radius: 8px;
    box-shadow: 0 2px 5px 0 rgba(213, 217, 217, .5);
    color: #0F1111;
    width: 100%;
    text-align: center;
    font-size: 13px;
    margin-bottom: 8px;
    padding: 6px 0;
    text-decoration: none;
    /* Asegurar que no haya subrayado */
}

.pedido-servia-btn-action:hover {
    text-decoration: none;
    /* Mantener sin subrayado en hover */
}

/* --- Estilos para botón activo con prefijo --- */
.btn-order.pedido-servia-btn-active {
    background-color: #76BC21;
    color: #ffffff;
    border-color: #6dae1f;
}

.btn-order.pedido-servia-btn-active:hover {
    background-color: #00ADBB;
    color: #ffffff;
    border-color: #009ca6;
}

.pedido-servia-btn-action:last-child {
    margin-bottom: 0;
}

.pedido-servia-action-buttons {
    /* Clase contenedora para botones, sin estilos propios pero útil para seleccionar */
}

/* Media Query para responsividad en pantallas pequeñas */
@media (max-width: 991px) {
    .pedido-servia-action-buttons {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .pedido-servia-order-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pedido-servia-header-right {
        align-self: flex-start;
        margin-top: 10px;
    }
}

/* ============ MIS DIRECCIONES ===============================================*/
/* Tarjeta base */
.addr-card {
    position: relative;
    border: 1px solid #ececec;
    border-radius: 6px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
}

.addr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

/* Principal */
.addr-card--principal {
    border-color: #00ADBB;
    box-shadow: 0 6px 20px rgba(0, 173, 187, .18);
}

/* Encabezados y textos */
.addr-type {
    font-size: .8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: .25rem;
}

.addr-main-badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    color: #007d87;
    background: rgba(0, 173, 187, .12);
    border: 1px solid #00ADBB;
    border-radius: 999px;
    padding: 2px 10px;
    margin-bottom: .5rem;
}

.addr-street {
    font-weight: 600;
    color: #333;
    margin-bottom: .25rem;
}

.addr-cityprov {
    color: #666;
    font-size: .9rem;
}

/* Footer acciones */
.addr-set-main {
    font-size: .86rem;
    color: #00ADBB;
    text-decoration: underline;
}

.addr-set-main:hover {
    color: #008a96;
    text-decoration: none;
}

.addr-set-main.disabled {
    pointer-events: none;
    opacity: .6;
}

/* Botón eliminar (esquina superior derecha) */
.addr-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.addr-delete {
    border: none;
    background: #f8f9fa;
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    cursor: pointer;
}

.addr-delete:hover {
    background: #fff0f0;
    color: #c82333;
    /* tono danger */
    box-shadow: 0 4px 10px rgba(200, 35, 51, .15);
}

/* Ajustes responsive y separación consistente */
.addr-card .card-body {
    padding: 14px 14px 8px;
}

.addr-card .card-footer {
    padding: 10px 14px;
    border-top: 1px solid #f0f0f0;
}

.btn-add-address {
    background-color: #00ADBB;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
    display: inline-block;
}

.btn-add-address:hover {
    background-color: #76BC21;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-add-address:active {
    transform: translateY(0);
}

/* Grid: 4 por fila en lg, centrado con la row */
@media (max-width: 991.98px) {
    .addr-card {
        font-size: 0.94rem;
    }
}

@media (max-width: 575.98px) {
    .addr-card {
        font-size: 0.93rem;
    }
}