html, body {
    font-family: 'Craw Modern', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: auto; /* Allow vertical scroll */
}

/* Boat card meta badges (size / pax) */
.boat-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.boat-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

/* Add Boat Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-dialog-custom {
    background: linear-gradient(180deg, rgba(36,58,70,0.98) 0%, rgba(0,88,116,0.95) 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-dialog-custom .card-header {
    background: linear-gradient(90deg, rgba(36,58,70,0.95), rgba(0,88,116,0.95));
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
}

.modal-dialog-custom .form-label {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.25rem;
}

.modal-dialog-custom .form-control,
.modal-dialog-custom .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.modal-dialog-custom .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.modal-dialog-custom .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--amarillo);
    color: #ffffff;
}

/* Wider variant for the Request Tour modal */
.request-tour-dialog {
    max-width: 620px;
}

/* Whole-day button / badge inside the dark modal */
.modal-dialog-custom .btn-whole-day {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.35);
}

    .modal-dialog-custom .btn-whole-day:hover {
        color: var(--amarillo);
        border-color: var(--amarillo);
        background: rgba(220, 168, 0, 0.15);
    }

    .modal-dialog-custom .btn-whole-day.active {
        color: var(--amarillo);
        border-color: var(--amarillo);
        background: rgba(220, 168, 0, 0.15);
    }

.modal-dialog-custom .whole-day-badge {
    color: var(--amarillo);
    background: rgba(220, 168, 0, 0.12);
    border-color: rgba(220, 168, 0, 0.45);
}

.request-boat-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    border-left: 3px solid var(--amarillo);
}

.boat-summary-name {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.boat-summary-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.tour-request-success p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

/* Main layout adjustments */
.main-bg {
    position: fixed;
    inset: 0;
    background-image: url('/_content/MarinaCharters.App.Shared/images/landing-background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;   
}

/* Ensure content area is scrollable */
.content {
    padding-top: 1.1rem;
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
}

/* Main content wrapper should allow scrolling */
#app {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* For pages with containers */
.reports-container,
.customers-container,
.calendar-container,
.bookings-grid {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom Fonts */

@font-face {
    font-family: 'Craw Modern';
    src: url('/_content/MarinaCharters.App.Shared/fonts/OPTICrawModern.otf');
    src: url('/_content/MarinaCharters.App.Shared/fonts/OPTICrawModern.otf') format('embedded-opentype'), 
         url('/_content/MarinaCharters.App.Shared/fonts/OPTICrawModern.otf') format('truetype'), 
         url('/_content/MarinaCharters.App.Shared/fonts/OPTICrawModern.otf') format('otf');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* General CSS */

/* Brand color variables */
:root {
    --azul-oscuro: #243A46; /* Azul Oscuro */
    --amarillo: #DCA85b; /* Amarillo */
    --azul-claro: #005874; /* Azul Claro */
    --blanco-marina: #fefefe; /* Blanco Brillante */
}

.page-title {
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--blanco-marina);
}

/* Default CSS (Template Created)*/

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI26My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NCA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNFAwLjM4MyA5OUMyMzcuOTYzIDk5IDIyNiA5Ny4wNjUxIDIyNiA5NC42NzQ4IDIyNiA5NC4zNzk5IDIyNi4wMzEgOVAuMDg4NiAyMzYuMDg5IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
 /* END OF DEFAULT CSS*/

/* Landing Page Styles */

/* Landing Page Styles - UPDATE THIS SECTION */

.landing-layout {
    background-image: url('/_content/MarinaCharters.App.Shared/images/landing-background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    gap: 1.5rem;
}

.landing-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    order: 1;
}

.landing-logo {
    width: 368px;
    max-width: 100%;
    display: block;
    margin-bottom: 70px;
}

.landing-marina {
    color: #ffffff;
    font-size: 5rem;
    letter-spacing: 1rem;
    position: absolute !important;
    bottom: 35%;
    margin: 0;
    order: 2;
    text-align: center;
}

.landing-charters {
    font-family: "Arial";
    font-weight: 100;
    font-size: 3.5rem;
    color: #ffffff;
    letter-spacing: 0.5rem;
    position: absolute !important;
    bottom: 30%;
    margin: 0;
    order: 3;
    text-align: center;
}



/* Responsive adjustments */
@media (max-width: 900px) {
    .landing-container {
        gap: 1.5rem;
        padding: 1rem;
    }

    .landing-marina {
        font-size: clamp(1.85rem, 6vw, 3rem);
    }

    .landing-charters {
        font-size: clamp(1.25rem, 5.5vw, 2.5rem);
    }

    .landing-logo {
        width: 90%;
        max-width: 500px;
    }
}

@media (min-width: 1600px) {
    .landing-marina {
        font-size: 4rem;
    }

    .landing-charters {
        font-size: 3.5rem;
    }

    .landing-logo {
        width: 1000px;
    }
}

@media (min-width: 2560px) {
    .landing-marina {
        font-size: 6rem;
    }

    .landing-charters {
        font-size: 5rem;
    }

    .landing-logo {
        width: 1200px;
    }
}

@media (min-width: 3840px) {
    .landing-marina {
        font-size: 8rem;
    }

    .landing-charters {
        font-size: 7rem;
    }

    .landing-logo {
        width: 1500px;
    }
}

/* MAUI CSS*/
.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }


    .landing-layout {
        background-image: url('/_content/MarinaCharters.App.Shared/images/landing-background.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        height: 100vh;
    }

    .landing-container {
        display: flex;
        justify-content: center;
        position: relative;
        height: 85%;
        left: 5%;
    }


    .landing-marina {
        color: #ffffff;
        position: absolute;
        bottom: 47%;
        left: 35%;
        font-size: 5rem;
    }

    .landing-charters {
        color: #ffffff;
        position: absolute;
        bottom: 25%;
        left: 32%;
        font-size: 6.5rem;
    }

    .landing-logo {
        width: 850px;
        bottom: 10px;
    }

    .landing-logo-container {
        position: absolute;
        bottom: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}


    /* ===== MAUI / Mobile adjustments ===== */

    /* Fallbacks for environments that don't support -webkit-touch-callout */
    .landing-layout {
        background-image: url('/_content/MarinaCharters.App.Shared/images/landing-background.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100vh;
    }

    /* Respect safe-area insets on supported platforms, with fallbacks */
    .landing-layout,
    .landing-logo-container {
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* Responsive / small-screen styles */
    @media (max-width: 900px) {
        .landing-layout {
            /* subtract safe area top/bottom so 100vh doesn't overflow under notches */
            height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
            padding-left: max(env(safe-area-inset-left, 12px), 8px);
            padding-right: max(env(safe-area-inset-right, 12px), 8px);
            background-position: center top;
        }

        .landing-container {
            left: 0;
            height: 75%;
        }

        .landing-marina {
            font-size: clamp(1.85rem, 6vw, 3rem);
            left: 15%;
            bottom: 40%;
        }

        .landing-charters {
            font-size: clamp(1.25rem, 5.5vw, 2.5rem);
            left: 17%;
            bottom: 36%;
        }

        .landing-logo {
            width: 120vw;
            max-width: 500px;
            position: relative;
            bottom: 25%;
        }

        .landing-logo-container {
            bottom: env(safe-area-inset-bottom, 0px);
            padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
        }

        /* Optional: hide heavy background on very small devices to reduce memory */
        .landing-layout[style*="background-image"] {
            background-attachment: scroll;
            background-size: cover;
        }
    }

    /* Platform-specific hooks (set by JS or host) */
    .maui-ios .landing-layout {
        /* iOS-specific tweaks */
    }

    .maui-android .landing-layout {
        /* Android-specific tweaks */
    }

/* ===== High-resolution / 2K & 4K adjustments =====*/


@media (min-width: 1600px) {
    /* larger desktops (WQHD and up) */
    :root {
        --landing-marina-size: 7.5rem;
        --landing-charters-size: 5rem;
        --landing-logo-width: 400px;
        --landing-left-offset: 33%;
    }

    .landing-container {
        display: block;
        left: 6%;
        height: 69%;
        bottom: 15%;
    }

    .landing-marina {
        font-size: var(--landing-marina-size);
        left: var(--landing-left-offset);
        bottom: 56%;
    }

    .landing-charters {
        font-size: var(--landing-charters-size);
        left: calc(var(--landing-left-offset) + 7%);
        bottom: 52%;
    }

    .landing-logo {
        width: var(--landing-logo-width);
        max-width: none;
    }
}

@media (min-width: 2560px) {
    /* 2K / QHD wide screens */
    :root {
        --landing-marina-size: 8rem;
        --landing-charters-size: 10rem;
        --landing-logo-width: 1400px;
        --landing-left-offset: 38%;
    }

    .landing-container {
        left: 7%;
        height: 88%;
    }

    .landing-marina {
        font-size: var(--landing-marina-size);
        left: var(--landing-left-offset);
        bottom: 50%;
    }

    .landing-charters {
        font-size: var(--landing-charters-size);
        left: calc(var(--landing-left-offset) - 3%);
        bottom: 30%;
    }

    .landing-logo {
        width: var(--landing-logo-width);
        max-width: none;
    }
}

@media (min-width: 3840px) {
    /* 4K and ultra-wide */
    :root {
        --landing-marina-size: 10rem;
        --landing-charters-size: 12rem;
        --landing-logo-width: 1800px;
        --landing-left-offset: 40%;
    }

    .landing-container {
        left: 9%;
        height: 90%;
    }

    .landing-marina {
        font-size: var(--landing-marina-size);
        left: var(--landing-left-offset);
        bottom: 52%;
    }

    .landing-charters {
        font-size: var(--landing-charters-size);
        left: calc(var(--landing-left-offset) - 4%);
        bottom: 32%;
    }

    .landing-logo {
        width: var(--landing-logo-width);
        max-width: none;
    }
}

/* Prevent extremely large images from overflowing the layout on very big screens */
@media (min-width: 2560px) {
    .landing-logo-container {
        max-width: 90%;
        overflow: visible;
        display: flex;
        justify-content: center;
    }
}

/* Prevent layout overflow while preserving safe-area behavior */
.landing-layout {
    background-image: url('/_content/MarinaCharters.App.Shared/images/landing-background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;    
    max-height: 100vh; /* never exceed viewport height */
    overflow-x: hidden; /* avoid horizontal scrollbars */
    overflow-y: auto; /* allow internal vertical scroll if needed */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on mobile */
    box-sizing: border-box;
}

/* Ensure supported safe-area handling keeps container within viewport */
@supports (-webkit-touch-callout: none) {
    .landing-layout {
        background-image: url('/_content/MarinaCharters.App.Shared/images/landing-background.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        min-height: 100vh;
        height: auto;
        max-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
}

/* Small screens: subtract safe area to avoid vertical overflow under notches */
@media (max-width: 900px) {
    .landing-layout {
        height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
    }
}

/* Login page / card styling */
.login-container {
    min-height: calc(100vh - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.login-container .card {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(36,58,70,0.98) 0%, rgba(0,88,116,0.95) 100%);
    color: #ffffff;
}

/* Header using brand yellow for emphasis */
.login-container .card-header {
    background: linear-gradient(90deg, rgba(36,58,70,0.95), rgba(0,88,116,0.95));
    padding: 1.25rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.login-container .card-header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--amarillo);
    letter-spacing: 0.6px;
}

/* Body spacing and subtle translucent surface */
.login-container .card-body {
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

/* Controls */
.login-container .btn-primary {
    background-color: var(--azul-claro);
    border-color: var(--azul-claro);
    color: #ffffff;
    font-weight: 600;
    box-shadow: none;
    transition: filter .12s ease;
}

.login-container .btn-primary:hover,
.login-container .btn-primary:focus {
    filter: brightness(0.95);
}

.login-container .btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--amarillo);
    font-weight: 600;
}

.login-container .btn-secondary:hover,
.login-container .btn-secondary:focus {
    background-color: rgba(255,255,255,0.03);
}

/* Inputs - translucent, rounded */
.login-container .form-control {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: none;
}

.login-container .form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.login-container label {
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Reduce vertical whitespace that can create blank gaps */
.login-container .card,
.login-container .card-body,
.login-container .card-header {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Small screens adjustments */
@media (max-width: 480px) {
    .login-container {
        padding: 0.75rem;
    }

    .login-container .card {
        max-width: 100%;
        border-radius: 8px;
    }

    .login-container .card-header h1 {
        font-size: 1.25rem;
    }
}

/* Accessible focus outlines */
.login-container .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 160, 188, 0.18);
    border-color: var(--azul-claro);
}

/* Forgot Password link */
.forgot-password-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.15s ease;
    margin-bottom: 0.5rem;
    display: inline-block;
}

    .forgot-password-link:hover,
    .forgot-password-link:focus {
        color: var(--amarillo);
        text-decoration: underline;
    }

/* Forgot Password modal — mirrors the login card exactly */

/* Size matches the login card */
.forgot-password-modal .modal-dialog {
    max-width: 420px;
}

/* Card shell */
.forgot-password-modal .modal-content {
    background: linear-gradient(180deg, rgba(36,58,70,0.98) 0%, rgba(0,88,116,0.95) 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    color: #fff;
    overflow: hidden;
}

/* Header — same gradient as the login card header */
.forgot-password-modal .modal-header {
    background: linear-gradient(90deg, rgba(36,58,70,0.95), rgba(0,88,116,0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem;
    text-align: center;
    justify-content: center;
    position: relative;
}

/* Pull the ✕ out of flow so the title stays perfectly centred */
.forgot-password-modal .modal-header .btn-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.forgot-password-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--amarillo);
    letter-spacing: 0.6px;
    margin: 0;
}

/* Body — subtle translucent surface matching the login card body */
.forgot-password-modal .modal-body {
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.forgot-password-modal .modal-body p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Footer — continues the dark gradient; no light-grey strip */
.forgot-password-modal .modal-footer {
    background: linear-gradient(180deg, rgba(36,58,70,0.92), rgba(0,88,116,0.90));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.85rem 1.25rem;
}

/* Inputs — identical to .login-container .form-control */
.forgot-password-modal .form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: none;
}

.forgot-password-modal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.forgot-password-modal .form-control:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--azul-claro);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(92, 160, 188, 0.18);
    outline: none;
}

/* Labels — identical to .login-container label */
.forgot-password-modal label {
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Primary button — matches .login-container .btn-primary */
.forgot-password-modal .btn-primary {
    background-color: var(--azul-claro);
    border-color: var(--azul-claro);
    color: #fff;
    font-weight: 600;
    box-shadow: none;
    transition: filter 0.12s ease;
}

.forgot-password-modal .btn-primary:hover,
.forgot-password-modal .btn-primary:focus {
    filter: brightness(0.95);
}

/* Secondary button — matches .login-container .btn-secondary */
.forgot-password-modal .btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--amarillo);
    font-weight: 600;
}

.forgot-password-modal .btn-secondary:hover,
.forgot-password-modal .btn-secondary:focus {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--amarillo);
}

/* Alerts — dark-friendly variants instead of Bootstrap's light defaults */
.forgot-password-modal .alert-danger {
    background: rgba(220, 53, 69, 0.18);
    border: 1px solid rgba(220, 53, 69, 0.35);
    border-radius: 8px;
    color: #f08080;
    font-size: 0.88rem;
}

.forgot-password-modal .alert-success {
    background: rgba(40, 167, 69, 0.18);
    border: 1px solid rgba(40, 167, 69, 0.35);
    border-radius: 8px;
    color: #6ddf8c;
    font-size: 0.88rem;
}

/* -- NAV: auto-hideable menu (brand colors) -- */
:root {
    --azul-oscuro: #243A46;
    --amarillo: #DCA85b;
    --azul-claro: #005874;
}

.menu-slider {
    position: absolute;
    z-index: 1050;
    width:234px;
    height:75px;
    border-radius: 0 0 15px 0;
}

    .menu-slider .menu-slider-container {
        margin:0;
    }

        .menu-slider .menu-slider-container img {
            position:absolute;
            width: 100px;
            top: 0;
            left: 10%;
        }


/* Wrapper to manage slide behavior */
.nav-scrollable-wrapper {
    position: fixed;
    left: 0;
    top: 66px; /* below top-row */
    bottom: 0;
    width: 234px;
    max-width: 80%;
    z-index: 1050;
    transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 260ms;
    transform: translateX(0);
    box-shadow: 4px 0 18px rgba(0,0,0,0.12);
    will-change: transform;
}

    /* Collapsed state: slide out to the left */
    .nav-scrollable-wrapper.collapsed {
        transform: translateX(-100%); /* leaves a small tab visible */
        box-shadow: none;
    }

/* Inner nav surface */
.nav-scrollable {
    height: 100%;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--azul-oscuro), var(--azul-claro));
    color: #fff;
    padding-top: 12px;
}

/* Nav link layout */
.nav-link {
    color: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    transition: background .12s, color .12s;
}

    .nav-link:hover, .nav-link.active {
        background: rgba(255,255,255,0.05);
        color: var(--amarillo);
    }

.nav-label {
    font-weight: 600;
}

/* Pin/toggle buttons in header */
.nav-pin-btn, .nav-toggle-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 6px 8px;
    border-radius: 6px;
}

    .nav-pin-btn:hover, .nav-toggle-btn:hover {
        background: rgba(255,255,255,0.03);
        color: var(--amarillo);
    }

/* Welcome badge in the top bar */
.user-welcome-badge {
    position: absolute;
    right: 2%;
    margin-top: 20px;
    z-index: 1000;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.25rem 0.7rem;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    letter-spacing: 0.01em;
}

/* Friendly compact mode for narrow screens: always expanded and full width */
@media (max-width: 900px) {
    .nav-scrollable-wrapper {
        position: relative;
        width: 100%;
        transform: translateX(0) !important;
        top: 0;
        height: auto;
        box-shadow: none;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1100;
    }
}

/* Accessibility focus */
.nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220,168,91,0.18);
}

/* Submenu CSS */

.nav-link-expandable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.submenu-icon {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-link-expandable.expanded .submenu-icon {
    transform: rotate(180deg);
}

.submenu {
    display: flex;
    flex-direction: column;
    padding-left: 1.5rem;
    margin-top: 0.25rem;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.submenu-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem;
    border-left: 2px solid rgba(255,255,255,0.1);
    margin-left: 0.5rem;
}

    .submenu-link:hover {
        background: rgba(255,255,255,0.08);
        border-left-color: var(--amarillo);
    }

    .submenu-link.active {
        background: rgba(255,255,255,0.1);
        border-left-color: var(--amarillo);
    }

/* Home Page CSS */

:root {
    --azul-oscuro: #243A46;
    --amarillo: #DCA85b;
    --azul-claro: #005874;
}

/* WhatsApp Connection Prompt */

.connection-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.connection-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

    .connection-icon i {
        font-size: 2.5rem;
        color: #fff;
    }

.connection-prompt h4 {
    margin: 0 0 1rem 0;
    color: var(--azul-oscuro);
    font-size: 1.5rem;
}

.connection-prompt p {
    margin: 0 0 2rem 0;
    color: #666;
    max-width: 400px;
    line-height: 1.6;
}

.btn-connect-whatsapp {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform .2s ease, box-shadow .2s ease;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
}

    .btn-connect-whatsapp:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
        background: linear-gradient(135deg, #128C7E, #25D366);
    }

    .btn-connect-whatsapp i {
        font-size: 1.5rem;
    }

.messages-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(37, 211, 102, 0.05);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--azul-oscuro);
    font-size: 0.9rem;
}

    .connection-status i {
        font-size: 0.5rem;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Loading and Error States */

.loading-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: #666;
}

    .loading-state i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: var(--azul-claro);
    }

    .loading-state p,
    .error-state p {
        margin: 0 0 1rem 0;
        font-size: 0.95rem;
        text-align: center;
    }

.error-state {
    color: #dc3545;
}

    .error-state i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

/* Home Page Dashboard - NEW DESIGN */

.home-dashboard {
    padding: 1rem;
    max-width: 1600px;
    margin: 50px 0 0 0;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

/* Messages Card */
.messages-card,
.trips-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: calc(100vh - 150px);
}

.messages-list,
.trips-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 250px);
}

/* Message Item */
.message-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0,88,116,0.03), rgba(0,88,116,0.01));
    border-radius: 8px;
    border-left: 4px solid var(--azul-claro);
    cursor: pointer;
    transition: all .2s ease;
}

    .message-item:hover {
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        background: linear-gradient(180deg, rgba(0,88,116,0.06), rgba(0,88,116,0.03));
    }

    .message-item.whatsapp-message {
        border-left-color: #25D366;
    }

    .message-item.email-message {
        border-left-color: #EA4335;
    }

.message-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,88,116,0.08);
    font-size: 1.5rem;
    color: var(--azul-claro);
}

.whatsapp-message .message-icon {
    background: rgba(37,211,102,0.1);
    color: #25D366;
}

.email-message .message-icon {
    background: rgba(234,67,53,0.1);
    color: #EA4335;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.message-sender {
    font-weight: 700;
    color: var(--azul-oscuro);
    font-size: 1rem;
}

.message-time {
    font-size: 0.8rem;
    color: #999;
}

.message-subject {
    font-weight: 600;
    color: var(--azul-oscuro);
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.message-preview {
    color: #666;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.5rem;
}

.message-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0,88,116,0.08);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--azul-claro);
}

.whatsapp-message .message-source-badge {
    background: rgba(37,211,102,0.1);
    color: #25D366;
}

.email-message .message-source-badge {
    background: rgba(234,67,53,0.1);
    color: #EA4335;
}

/* Trip Item */
.trip-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0,88,116,0.03), rgba(0,88,116,0.01));
    border-radius: 8px;
    border-left: 4px solid var(--azul-claro);
    cursor: pointer;
    transition: all .2s ease;
}

    .trip-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.1);
        background: linear-gradient(180deg, rgba(0,88,116,0.06), rgba(0,88,116,0.03));
    }

    .trip-item.status-pending {
        border-left-color: var(--amarillo);
    }

    .trip-item.status-confirmed {
        border-left-color: #28a745;
    }

.trip-date-badge {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.trip-day {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.trip-month {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trip-details {
    flex: 1;
    min-width: 0;
}

.trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.trip-boat-name {
    font-weight: 700;
    color: var(--azul-oscuro);
    font-size: 1.1rem;
}

.trip-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

    .trip-status-badge.status-confirmed {
        background: rgba(40,167,69,0.15);
        color: #28a745;
    }

    .trip-status-badge.status-pending {
        background: rgba(220,168,91,0.15);
        color: var(--amarillo);
    }

.trip-time,
.trip-customer,
.trip-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: #555;
}

    .trip-time i,
    .trip-customer i,
    .trip-type i {
        color: var(--azul-claro);
        width: 16px;
    }

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: #999;
}

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.3;
    }

    .empty-state p {
        margin: 0;
        font-size: 1rem;
    }

/* Responsive */
@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .messages-card,
    .trips-card {
        min-height: auto;
    }

    .messages-list,
    .trips-list {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .message-item,
    .trip-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .message-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .trip-date-badge {
        width: 56px;
        height: 56px;
    }

    .trip-day {
        font-size: 1.5rem;
    }
}

/* Tour Details Page CSS */

.tour-details-page {
    min-height: 100vh;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.tour-details-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.loading-overlay {
    text-align: center;
    color: white;
    padding: 3rem;
}

    .loading-overlay i {
        margin-bottom: 1rem;
        color: white;
    }

    .loading-overlay p {
        font-size: 1.2rem;
        margin-top: 1rem;
    }

.error-message {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

    .error-message i {
        color: #e53e3e;
        margin-bottom: 1rem;
    }

    .error-message h2 {
        color: #2d3748;
        margin: 1rem 0;
    }

    .error-message p {
        color: #718096;
        margin-bottom: 2rem;
    }

.paper-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-back {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
    font-size: 1.2rem;
}

    .btn-back:hover {
        background: rgba(102, 126, 234, 0.2);
        transform: scale(1.1);
    }

.tour-header {
    text-align: center;
    padding: 1rem 0 2rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    margin-bottom: 2rem;
}

.guest-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

    .guest-name i {
        font-size: 3rem;
        color: #667eea;
    }

    .guest-name h1 {
        font-size: 2rem;
        font-weight: 700;
        color: #2d3748;
        margin: 0;
    }

.tour-status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-confirmed {
    background: #c6f6d5;
    color: #22543d;
}

.status-pending {
    background: #feebc8;
    color: #7c2d12;
}

.status-cancelled {
    background: #fed7d7;
    color: #742a2a;
}

.tour-details-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-section {
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 0.75rem;
    border-left: 4px solid #667eea;
}

    .detail-section h2 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #2d3748;
        margin: 0 0 1rem 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .detail-section h2 i {
            color: #667eea;
        }

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

    .detail-item:last-child {
        border-bottom: none;
    }

.detail-label {
    font-weight: 600;
    color: #4a5568;
}

.detail-value {
    color: #2d3748;
    text-align: right;
}

    .detail-value.highlight {
        font-size: 1.25rem;
        font-weight: 700;
        color: #667eea;
        text-align: left;
    }

.status-inline {
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(102, 126, 234, 0.2);
    display: flex;
    justify-content: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #667eea;
    color: white;
}

    .btn-primary:hover {
        background: #5568d3;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .tour-details-page {
        padding: 1rem 0.5rem;
    }

    .paper-card {
        padding: 2rem 1.5rem;
    }

    .guest-name h1 {
        font-size: 1.5rem;
    }

    .detail-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .detail-value {
        text-align: left;
    }

    .btn-back {
        top: 1rem;
        left: 1rem;
    }
}

/* Boats Page CSS */

.boat-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    overflow: hidden;    
}

.carousel-viewport {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 360ms cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}

.boat-card {
    width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: transparent;    
}

/* Image as full-card cover */
.boat-image-cover {
    position: relative;
    width: 100%;
    height: 550px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;    
}

/* Boat name on top of image */
.boat-name-overlay {
    position: absolute;
    left: 16px;
    top: 12px;
    z-index: 4;
    background: linear-gradient(90deg, rgba(36,58,70,0.85), rgba(0,88,116,0.65));
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
}

    .boat-name-overlay h4 {
        margin: 0;
        font-size: 1.1rem;
    }

/* translucent info panel overlay (bottom) */
.boat-info-overlay {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 4;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    background: rgba(8,12,14,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 12px;
    border-radius: 10px;
    color: #fff;
}

    .boat-info-overlay h5 {
        margin: 0 0 8px 0;
        color: var(--amarillo);
    }

.boat-trips {
    flex: 1 1 60%;
    max-height: 180px;
    overflow: auto;
}

    .boat-trips ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .boat-trips li {
        display: flex;
        gap: 0.75rem;
        align-items: flex-start;
        padding: 6px;
        border-radius: 6px;        
    }

.trip-time {
    min-width: 110px;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.85rem;
}

.trip-title {
    font-size: 0.92rem;
    color: #fff;
}

.boat-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    justify-content: center;
}

    .boat-actions .btn {
        min-width: 120px;
    }

/* Arrows closer to image card (overlay) */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(36,58,70,0.86);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
    transition: background .12s ease, transform .12s ease;
    z-index: 6;
}

    .carousel-arrow.left {
        left: calc(50% - 520px); /* place close to image left edge for max-width 980px */
    }

    .carousel-arrow.right {
        right: calc(50% - 520px);
    }

/* Fallback spacing if viewport is narrow */
@media (max-width: 980px) {
    .carousel-arrow.left {
        left: 8px;
    }

    .carousel-arrow.right {
        right: 8px;
    }

    .boat-image-cover {
        height: 360px;
    }

    .boat-info-overlay {
        flex-direction: column;
        align-items: stretch;
    }

    .boat-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .boat-image-cover {
        height: 320px;
    }

    .boat-name-overlay {
        left: 8px;
        top: 8px;
        padding: 6px 8px;
    }

    .boat-info-overlay {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 8px;
    }
}

.boat-image-preview {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Boat Details page layout */
.boat-details-card {
    background: linear-gradient(180deg, rgba(36,58,70,0.98) 0%, rgba(0,88,116,0.95) 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    margin-top: 70px;
    margin-bottom: 50px;
}

.boat-details-card .card-header {
    background: linear-gradient(90deg, rgba(36,58,70,0.95), rgba(0,88,116,0.95));
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
    border-radius: 12px 12px 0 0;
}

.boat-details-card .form-label {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.25rem;
}

.boat-details-card .form-control,
.boat-details-card .form-check-input {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #ffffff;
}

.boat-details-card .form-control:disabled {
    background-color: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    cursor: default;
}

.boat-details-card .form-control:focus {
    background-color: rgba(255,255,255,0.15);
    border-color: var(--amarillo);
    color: #ffffff;
}

.boat-detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.boat-image-panel {
    display: flex;
    flex-direction: column;
}

.boat-meta-panel {
    min-width: 0;
}

/* Info badges shown in view mode */
.boat-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.detail-badge.badge-functional {
    background: rgba(40,167,69,0.25);
    color: #6ddf8c;
}

.detail-badge.badge-inactive {
    background: rgba(220,53,69,0.25);
    color: #f08080;
}

@media (max-width: 768px) {
    .boat-detail-grid {
        grid-template-columns: 1fr;
    }

    .boat-image-preview {
        max-height: 220px;
    }
}

/* Boat Details — location map button & map section */
.btn-map-pin {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
}

    .btn-map-pin:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--amarillo);
        border-color: var(--amarillo);
    }

.boat-map-section {
    border-radius: 10px;
    overflow: hidden;
}

    .boat-map-section .map-container {
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

.boat-map-placeholder {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    .boat-map-placeholder:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: var(--amarillo);
        color: var(--amarillo);
    }

.boat-map-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.boat-map-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    overflow: hidden;
}

    .boat-map-text span {
        font-size: 0.9rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .boat-map-text small {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.5);
    }

    .boat-map-placeholder:hover .boat-map-text small {
        color: var(--amarillo);
    }

/* Small screens: stack image above trips and hide large image width */
@media (max-width: 900px) {
    .boat-card-body {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .boat-image {
        flex: 0 0 auto;
    }

        .boat-image img {
            width: 100%;
            max-width: 100%;
            height: auto;
        }

    .carousel-viewport {
        max-width: 100%;
        padding: 0 8px;
    }
}

/* keep existing vars in global css; local rules below assume them available */

.boat-image-cover {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    background-color: #000; /* fallback if image missing */
    display: block;
}

    /* new: image fills the cover area exactly */
    .boat-image-cover .boat-image-full {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        -o-object-fit: cover;
    }

/* keep overlays above image */
.boat-name-overlay,
.boat-info-overlay {
    position: absolute;
    z-index: 4;
}

.boat-name-overlay {
    left: 16px;
    top: 12px;
    background: linear-gradient(90deg, rgba(36,58,70,0.85), rgba(0,88,116,0.65));
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
}

.boat-info-overlay {
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    background: rgba(8,12,14,0.55);
    backdrop-filter: blur(6px);
    padding: 12px;
    border-radius: 10px;
    color: #fff;
}

/* responsive adjustments kept as before */
@media (max-width: 980px) {
    .boat-image-cover {
        height: 360px;
    }

    .boat-info-overlay {
        flex-direction: column;
        align-items: stretch;
    }

    .boat-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .boat-image-cover {
        height: 320px;
    }

    .boat-name-overlay {
        left: 8px;
        top: 8px;
        padding: 6px 8px;
    }

    .boat-info-overlay {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 8px;
    }
}

/* Rentals Page CSS */

:root {
    --azul-oscuro: #243A46;
    --amarillo: #DCA85b;
    --azul-claro: #005874;
}

/* Rentals Page CSS */

.rentals-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Action Buttons */
.rentals-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.btn-action {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .btn-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

/* Main Card */
.rentals-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Tabs */
.rentals-tabs {
    display: flex;
    border-bottom: 2px solid rgba(0,88,116,0.1);
    background: linear-gradient(180deg, rgba(0,88,116,0.03), transparent);
}

.tab-button {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: #666;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}

    .tab-button i {
        font-size: 1.25rem;
    }

    .tab-button:hover {
        background: rgba(0,88,116,0.05);
        color: var(--azul-claro);
    }

    .tab-button.active {
        color: var(--azul-claro);
        background: rgba(0,88,116,0.08);
    }

        .tab-button.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--azul-claro);
        }

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: var(--azul-claro);
    color: #fff;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.tab-button.active .tab-count {
    background: var(--amarillo);
    color: var(--azul-oscuro);
}

/* Content */
.rentals-content {
    padding: 1.5rem;
}

.trips-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Trip Card */
.trip-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(0,88,116,0.03), rgba(0,88,116,0.01));
    border-radius: 10px;
    border-left: 4px solid var(--azul-claro);
    transition: all .2s ease;
}

    .trip-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.1);
        background: linear-gradient(180deg, rgba(0,88,116,0.06), rgba(0,88,116,0.03));
    }

    .trip-card.previous-trip {
        opacity: 0.85;
        border-left-color: #999;
    }

.trip-date-badge {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

    .trip-date-badge.past {
        background: linear-gradient(135deg, #6c757d, #5a6268);
    }

.trip-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.trip-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trip-info {
    flex: 1;
    min-width: 0;
}

.trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.trip-boat-name {
    margin: 0;
    font-size: 1.25rem;
    color: var(--azul-oscuro);
    font-weight: 700;
}

.badge-success {
    background: rgba(40,167,69,0.15);
    color: #28a745;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-secondary {
    background: rgba(108,117,125,0.15);
    color: #6c757d;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.trip-details-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.trip-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

    .trip-detail i {
        color: var(--azul-claro);
        width: 16px;
    }

.trip-customer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00e5ff;
    font-size: 0.9rem;
    font-weight: 600;
}

    .trip-customer i {
        color: var(--azul-claro);
        width: 16px;
    }

.trip-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

/* Pending Requests Modal */
.modal-pending {
    max-width: min(1600px, 95vw) !important;
}

.pending-requests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pending-request-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(220,168,91,0.08), rgba(220,168,91,0.03));
    border-radius: 8px;
    border-left: 4px solid var(--amarillo);
    transition: all .2s ease;
}

    .pending-request-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        transform: translateX(4px);
    }

.request-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(220,168,91,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amarillo);
    font-size: 1.5rem;
}

.request-info {
    flex: 1;
    min-width: 0;
}

.request-customer {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--azul-oscuro);
}

.request-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.35rem;
}

.request-detail {

}

/* =====================================================
   Roles Page
   ===================================================== */

.roles-dashboard {
    padding: 1rem 1.5rem;
    max-width: 960px;
    margin: 50px auto 0;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Role Card */
.role-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(36, 58, 70, 0.12);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: left;
    width: 100%;
}

    .role-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
        border-color: var(--azul-claro);
    }

    .role-card:focus-visible {
        outline: 2px solid var(--azul-claro);
        outline-offset: 2px;
    }

.role-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.role-card-body {
    flex: 1;
    min-width: 0;
}

    .role-card-body .role-name {
        margin: 0 0 0.2rem;
        font-size: 1rem;
        font-weight: 600;
        color: var(--azul-oscuro);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .role-card-body .role-user-count {
        font-size: 0.8rem;
        color: #6c757d;
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

.role-card-arrow {
    color: #adb5bd;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.role-card:hover .role-card-arrow {
    color: var(--azul-claro);
}

/* Wider modal for roles */
.modal-lg {
    max-width: 680px;
}

/* Role modal sections */
.role-section-label {
    color: var(--azul-oscuro);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.role-section-divider {
    border-color: rgba(0, 0, 0, 0.08);
    margin: 0 0 1.25rem;
}

/* Users list inside modal */
.role-users-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.role-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    gap: 0.75rem;
}

.role-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.role-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.role-user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.role-user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--azul-oscuro);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-user-email {
    font-size: 0.78rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .roles-grid {
        grid-template-columns: 1fr;
    }

    .modal-lg {
        max-width: 95%;
    }
}

/* =====================================================
   Users Page (redesigned)
   ===================================================== */

.users-dashboard {
    padding: 1rem 1.5rem;
    max-width: 960px;
    margin: 50px auto 0;
}

/* Summary card */
.users-summary-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.users-summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 3rem;
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-claro) 100%);
    border: none;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(36, 58, 70, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

    .users-summary-card::before {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        pointer-events: none;
    }

    .users-summary-card::after {
        content: '';
        position: absolute;
        bottom: -40px;
        left: -40px;
        width: 140px;
        height: 140px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.04);
        pointer-events: none;
    }

    .users-summary-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 55px rgba(36, 58, 70, 0.5);
    }

    .users-summary-card:focus-visible {
        outline: 2px solid var(--amarillo);
        outline-offset: 3px;
    }

.users-summary-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.users-summary-count {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
}

.users-summary-label {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.78rem;
}

.users-summary-cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: var(--amarillo);
    font-weight: 600;
}

/* List view */
.users-list-view {
    margin-top: 1.5rem;
}

.users-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.users-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-breadcrumb-back {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--azul-oscuro);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

    .btn-breadcrumb-back:hover {
        background: var(--azul-claro);
    }

.breadcrumb-separator {
    color: #adb5bd;
}

.breadcrumb-current {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--azul-oscuro);
    font-size: 0.95rem;
}

.users-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 0.5rem;
    background: var(--azul-claro);
    color: #fff;
    border-radius: 11px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Propagation animation */
@keyframes userRowReveal {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    background: #fff;
    border: 1px solid rgba(36, 58, 70, 0.1);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-align: left;
    width: 100%;
    opacity: 0;
    animation: userRowReveal 0.3s ease forwards;
    animation-delay: calc(var(--stagger-index, 0) * 50ms);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

    .user-list-item:hover {
        border-color: var(--azul-claro);
        box-shadow: 0 4px 14px rgba(0, 88, 116, 0.13);
        transform: translateX(4px);
    }

    .user-list-item:focus-visible {
        outline: 2px solid var(--azul-claro);
        outline-offset: 2px;
    }

.user-list-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.user-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.user-list-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--azul-oscuro);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-list-email {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-list-meta {
    flex-shrink: 0;
}

.user-list-date {
    font-size: 0.78rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.user-list-arrow {
    color: #adb5bd;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.user-list-item:hover .user-list-arrow {
    color: var(--azul-claro);
}

/* Detail modal - profile header */
.user-detail-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
}

.user-detail-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(36, 58, 70, 0.28);
}

.user-detail-identity {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

    .user-detail-identity h4 {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--azul-oscuro);
    }

.badge-confirmed {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.badge-unconfirmed {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 193, 7, 0.12);
    color: #b38600;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

/* Meta info strip */
.user-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(36, 58, 70, 0.04);
    border-radius: 8px;
}

/* =====================================================
   Rentals Page — Tour List & Detail Modal
   ===================================================== */

/* Tour list items */
.tour-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tour-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid rgba(36, 58, 70, 0.1);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

    .tour-list-item:hover {
        border-color: var(--azul-claro);
        box-shadow: 0 4px 14px rgba(0, 88, 116, 0.12);
        transform: translateX(4px);
    }

    .tour-list-item:focus-visible {
        outline: 2px solid var(--azul-claro);
        outline-offset: 2px;
    }

/* Date badge on each row */
.tour-list-date-badge {
    flex-shrink: 0;
    width: 54px;
    min-height: 58px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: 0 3px 8px rgba(0, 88, 116, 0.2);
}

    .tour-list-date-badge.past {
        background: linear-gradient(135deg, #6c757d, #868e96);
        box-shadow: 0 3px 8px rgba(108, 117, 125, 0.2);
    }

.tldb-day {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.tldb-month {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
}

.tldb-year {
    font-size: 0.6rem;
    opacity: 0.65;
}

/* Body text */
.tour-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tour-list-customer {
    font-size: 1rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tour-list-sub {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tour-list-dot {
    opacity: 0.4;
}

/* Right side: status + pax */
.tour-list-side {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.tour-pax-count {
    font-size: 0.75rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Arrow */
.tour-list-arrow {
    flex-shrink: 0;
    color: #adb5bd;
    font-size: 0.8rem;
    transition: color 0.15s ease;
}

.tour-list-item:hover .tour-list-arrow {
    color: var(--azul-claro);
}

/* Status pills */
.tour-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

    .tour-status-pill.status-confirmed {
        background: rgba(40, 167, 69, 0.12);
        color: #1e7e34;
    }

    .tour-status-pill.status-pending {
        background: rgba(220, 168, 91, 0.18);
        color: #8a6000;
    }

    .tour-status-pill.status-completed {
        background: rgba(108, 117, 125, 0.12);
        color: #495057;
    }

    .tour-status-pill.status-cancelled {
        background: rgba(220, 53, 69, 0.1);
        color: #b02a37;
    }

/* Tour detail modal — info grid */
.tour-detail-status {
    display: flex;
    align-items: center;
}

.tour-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.tour-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tdi-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.tdi-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .tdi-content label {
        font-size: 0.7rem;
        font-weight: 600;
        color: #adb5bd;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.1rem;
    }

    .tdi-content span {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--azul-oscuro);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* Map section */
.map-section {
    margin-top: 0.5rem;
}

.map-section-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--azul-oscuro);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    line-height: 0;
}

/* Map placeholder shown when no API key is configured */
.map-placeholder {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(36, 58, 70, 0.05), rgba(0, 88, 116, 0.05));
    border: 1px dashed rgba(0, 88, 116, 0.3);
    border-radius: 10px;
    text-decoration: none;
    color: var(--azul-oscuro);
    transition: background 0.15s ease, border-color 0.15s ease;
}

    .map-placeholder:hover {
        background: linear-gradient(135deg, rgba(36, 58, 70, 0.09), rgba(0, 88, 116, 0.09));
        border-color: var(--azul-claro);
        color: var(--azul-claro);
    }

.map-placeholder-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.map-placeholder-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

    .map-placeholder-text span {
        font-weight: 600;
        font-size: 0.95rem;
    }

    .map-placeholder-text small {
        font-size: 0.78rem;
        color: var(--azul-claro);
    }

@media (max-width: 640px) {
    .tour-detail-grid {
        grid-template-columns: 1fr;
    }

    .tour-list-side {
        display: none;
    }
}

.user-meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #555;
}

    .user-meta-item i {
        color: var(--azul-claro);
        width: 16px;
        flex-shrink: 0;
    }

.user-roles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.user-role-badge {
    padding: 0.15rem 0.55rem;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    color: #fff;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* 2-column field grid */
.user-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

/* Inline delete confirmation */
.delete-confirm-inline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    color: #dc3545;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .users-summary-card {
        min-width: 200px;
        padding: 2rem;
    }

    .users-summary-count {
        font-size: 3.5rem;
    }

    .user-list-meta {
        display: none;
    }

    .user-fields-grid {
        grid-template-columns: 1fr;
    }

    .user-detail-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .user-detail-identity {
        align-items: center;
    }
}

    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

    .request-detail i {
        color: var(--azul-claro);
    }

.request-trip-type {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

.request-actions-col {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .rentals-actions {
        flex-direction: column;
    }

    .rentals-tabs {
        flex-direction: column;
    }

    .tab-button.active::after {
        left: 0;
        bottom: 0;
        right: auto;
        width: 3px;
        height: 100%;
    }

    .trip-card {
        flex-direction: column;
    }

    .trip-actions {
        flex-direction: row;
    }

    .pending-request-card {
        flex-direction: column;
        text-align: center;
    }

    .request-details {
        justify-content: center;
    }

    .request-actions-col {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* Customers Page CSS */

:root {
    --azul-oscuro: #243A46;
    --dorado-claro: #FFC000;
    --verde-claro: #7CFC00;
}

/* Customer search box */
.customer-search-box {
    position: relative;
    flex: 1;
    max-width: 340px;
}

.btn-clear-search {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    padding: 0 4px;
    line-height: 1;
}

/* Initials avatar — replaces img inside .customer-avatar */
.customer-avatar-initials {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    border-color: rgba(255,255,255,0.1);
}

.customer-initials {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    user-select: none;
}

/* Type badge */
.customer-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    vertical-align: middle;
}

.badge-courtesy {
    background: rgba(255,193,7,0.18);
    color: #b38600;
}

/* Guest expand panel */
.customer-guests-panel {
    margin: 0 0 0.75rem 0;
    padding: 0.85rem 1.1rem;
    background: rgba(0, 88, 116, 0.06);
    border: 1px solid rgba(0, 88, 116, 0.15);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.guests-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.guests-panel-title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--azul-oscuro);
    font-size: 0.9rem;
}

.guests-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.4rem;
    background: var(--azul-claro);
    color: #fff;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}

.guests-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.guest-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    color: var(--azul-oscuro);
    font-size: 0.88rem;
}

    .guest-item i {
        color: var(--azul-claro);
        margin-top: 2px;
        flex-shrink: 0;
    }

.guest-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.guest-name {
    font-weight: 600;
    color: var(--azul-oscuro);
}

.guest-description {
    font-size: 0.78rem;
    color: #6c757d;
}

.guests-empty {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    margin: 0;
    padding: 0.25rem 0;
}
.customers-container {
    padding: 1rem;
    margin-top: 1rem;
}

.customers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.customer-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    border: 3px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform .12s ease, box-shadow .12s ease;
}

    .customer-row:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    }

    /* Border colors based on customer type */
    .customer-row.individual {
        border-color: var(--verde-claro); /* Blue for non-corporate */
    }

    .customer-row.corporate {
        border-color: var(--dorado-claro); /* Gold for corporate */
    }

.customer-avatar {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,88,116,0.04);
}

    .customer-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.customer-info-left {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.customer-name {
    margin: 0;
    font-size: 1.1rem;
    color: var(--azul-oscuro);
    font-weight: 700;
}

.customer-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.customer-info-right {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.customer-email,
.customer-since {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.customer-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .customer-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .customer-avatar {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
    }

    .customer-info-left,
    .customer-info-right {
        flex: 1 1 100%;
    }

    .customer-actions {
        flex: 1 1 100%;
        justify-content: flex-end;
    }
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-top: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.page-info {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--azul-oscuro);
}

.page-buttons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .page-buttons .btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

@media (max-width: 900px) {
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .page-info {
        justify-content: center;
    }

    .page-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ─────────────────────────────────────────────────────
   Customers Carousel — Card Slide Effect
   ───────────────────────────────────────────────────── */

.customers-carousel-page {
    padding: 0.5rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 80vh;
}

.carousel-toolbar {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.carousel-counter {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.counter-sep {
    opacity: 0.45;
    margin: 0 2px;
}

/* ── Stage: arrows + cards row ── */
.carousel-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    position: relative;
    gap: 0.75rem;
}

.carousel-nav-btn {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    z-index: 10;
}

    .carousel-nav-btn:hover:not(:disabled) {
        background: rgba(255,255,255,0.25);
        transform: scale(1.1);
    }

    .carousel-nav-btn:disabled {
        opacity: 0.2;
        cursor: not-allowed;
    }

/* ── Cards row: prev | active | next ── */
.carousel-cards-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0;
    overflow: visible;
    padding: 1.25rem 0;
}

/* ── Card base ── */
.ccard {
    border-radius: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.28);
}

    .ccard::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -30%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

/* ── Active (center) card ── */
.ccard-active {
    width: 440px;
    min-height: 460px;
    z-index: 3;
    flex-shrink: 0;
}

/* ── Side cards ── */
.ccard-side {
    width: 220px;
    min-height: 300px;
    opacity: 0.45;
    transform: scale(0.82);
    cursor: pointer;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1.25rem;
    text-align: center;
    margin: 0 -10px;
    filter: brightness(0.75);
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

    .ccard-side:hover {
        opacity: 0.65;
        transform: scale(0.86);
        filter: brightness(0.85);
    }

.ccard-spacer {
    width: 220px;
    flex-shrink: 0;
}

/* ── Side card content ── */
.ccard-side-initials {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.ccard-side-name {
    font-size: 0.95rem;
    font-weight: 700;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.ccard-type-chip {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(255,255,255,0.2);
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
}

/* ── Active card inner ── */
.ccard-active-inner {
    padding: 1.5rem;
}

.ccard-header {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 0.25rem;
}

.ccard-initials-ring {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 3px solid rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.ccard-title-block {
    flex: 1;
    min-width: 0;
}

.ccard-name {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    word-break: break-word;
}

.ccard-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ccard-type-badge {
    display: inline-block;
    padding: 0.12rem 0.55rem;
    background: rgba(255,255,255,0.22);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ccard-courtesy-badge {
    display: inline-block;
    padding: 0.12rem 0.55rem;
    background: rgba(255,193,7,0.3);
    color: #ffe59a;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ccard-divider {
    border-color: rgba(255,255,255,0.18);
    margin: 0.85rem 0;
}

/* ── Info rows ── */
.ccard-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ccard-info-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    opacity: 0.92;
}

    .ccard-info-row i {
        width: 16px;
        text-align: center;
        opacity: 0.7;
    }

/* ── Finance strip ── */
.ccard-finance-row {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.ccard-finance-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.55rem 0.25rem;
}

.ccard-finance-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.65;
    font-weight: 600;
}

.ccard-finance-value {
    font-size: 0.92rem;
    font-weight: 700;
    margin-top: 0.15rem;
}

/* ── Action buttons ── */
.ccard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ccard-btn-edit,
.ccard-btn-guests,
.ccard-btn-guests-active {
    flex: 1 1 auto;
    min-width: 90px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.ccard-btn-edit {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

    .ccard-btn-edit:hover {
        background: rgba(255,255,255,0.25);
        color: #fff;
    }

.ccard-btn-guests {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.85);
}

    .ccard-btn-guests:hover {
        background: rgba(255,255,255,0.2);
        color: #fff;
    }

.ccard-btn-guests-active {
    background: rgba(255,255,255,0.28);
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
}

.ccard-guest-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: rgba(255,255,255,0.3);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 4px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ── Guests panel inside active card ── */
.ccard-guests-panel {
    margin-top: 1rem;
    background: rgba(0,0,0,0.18);
    border-radius: 12px;
    padding: 0.85rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.ccard-guests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    opacity: 0.9;
}

.ccard-btn-add-guest {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 6px;
    padding: 0.18rem 0.55rem;
}

    .ccard-btn-add-guest:hover {
        background: rgba(255,255,255,0.25);
        color: #fff;
    }

.ccard-guests-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ccard-guest-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
}

.ccard-guest-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.ccard-guest-desc {
    font-size: 0.75rem;
    opacity: 0.65;
    margin-top: 0.1rem;
}

.ccard-guests-empty {
    font-size: 0.82rem;
    opacity: 0.55;
    text-align: center;
    margin: 0.5rem 0;
}

/* ─────────────────────────────────────────────
   Card Type Color Themes
   ───────────────────────────────────────────── */

/* Hotel = Green */
.ccard.type-hotel {
    background: linear-gradient(145deg, #1a5e2d 0%, #27804a 50%, #30965a 100%);
    box-shadow: 0 10px 40px rgba(30,94,45,0.35);
}

/* Travel Agency = Golden */
.ccard.type-travel-agency {
    background: linear-gradient(145deg, #7a5a10 0%, #b08628 50%, #c9a227 100%);
    box-shadow: 0 10px 40px rgba(176,134,40,0.35);
}

/* Direct Customer = #005874 */
.ccard.type-direct {
    background: linear-gradient(145deg, #003d52 0%, #005874 50%, #00709a 100%);
    box-shadow: 0 10px 40px rgba(0,88,116,0.35);
}

/* Individual Agent (Other) = Light Red */
.ccard.type-other {
    background: linear-gradient(145deg, #a12d2d 0%, #c94444 50%, #d96060 100%);
    box-shadow: 0 10px 40px rgba(201,68,68,0.35);
}

/* ── Dot navigation ── */
.carousel-dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.28);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

    .carousel-dot.dot-active {
        background: #fff;
        width: 24px;
        border-radius: 4px;
    }

    .carousel-dot:hover:not(.dot-active) {
        background: rgba(255,255,255,0.55);
    }

/* ── Responsive ── */
@media (max-width: 960px) {
    .ccard-side {
        display: none;
    }

    .ccard-spacer {
        display: none;
    }

    .ccard-active {
        width: min(440px, 92vw);
        min-height: 420px;
    }

    .carousel-cards-row {
        gap: 0;
    }
}

@media (max-width: 480px) {
    .ccard-active {
        width: 96vw;
        min-height: 380px;
    }

    .ccard-active-inner {
        padding: 1.1rem;
    }

    .carousel-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .ccard-initials-ring {
        width: 58px;
        height: 58px;
        font-size: 1.3rem;
    }

    .ccard-name {
        font-size: 1.05rem;
    }
}

/* Add Customer Modal */

.btn-addCustomer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--azul-claro);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s ease, box-shadow .12s ease;
    z-index: 1100;
}

/* Modal Container - Main */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Show modal with flexbox centering */
.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

    .modal-backdrop.show {
        display: block;
    }

/* Modal Dialog - Container inside modal */
.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 0;
    max-height: 90vh;
    overflow-y: auto;
    pointer-events: auto;
}

/* Modal Content - Flex column for header/body/footer */
.modal-content {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-height: 90vh;
}

/* Modal Header */
.modal-header {
    padding: 1.25rem;
    background: linear-gradient(90deg, var(--azul-oscuro), var(--azul-claro));
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Close Button */
.btn-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background .12s ease;
    flex-shrink: 0;
}

    .btn-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

/* Modal Body - Scrollable content */
.modal-body {
    padding: 1.5rem;
    flex: 1 1 auto;
    overflow-y: auto;
}

/* Modal Footer */
.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
    background-color: #f8f9fa;
}

/* Responsive modal */
@media (max-width: 640px) {
    .modal-dialog {
        width: 95%;
        max-height: 95vh;
    }

    .modal-content {
        max-height: 95vh;
    }
}

/* =====================================================
   Location Picker — booking modal map toggle
   ===================================================== */

.location-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.7rem;
    background: transparent;
    border: 1px solid var(--azul-claro);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

    .btn-map-toggle:hover,
    .btn-map-toggle.active {
        background: var(--azul-claro);
        color: #fff;
    }

.location-picker-container {
    margin-top: 0.6rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 88, 116, 0.25);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.location-picker-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.45rem 0.85rem;
    background: rgba(0, 88, 116, 0.07);
    border-bottom: 1px solid rgba(0, 88, 116, 0.12);
    font-size: 0.78rem;
    color: #ffffff;
    font-style: italic;
}

.location-picker-map {
    width: 100%;
    height: 300px;
    display: block;
}

/* =====================================================
   Whole-Day toggle — booking modal
   ===================================================== */

.btn-whole-day {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    background: transparent;
    border: 1.5px solid #adb5bd;
    border-radius: 8px;
    color: #6c757d;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    .btn-whole-day:hover {
        border-color: var(--amarillo);
        color: #7a5800;
        background: rgba(255, 193, 7, 0.08);
    }

    .btn-whole-day.active {
        background: rgba(255, 193, 7, 0.15);
        border-color: #e0a800;
        color: #7a5800;
    }

.whole-day-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(224, 168, 0, 0.35);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #7a5800;
    width: 100%;
}

.tour-whole-day-text {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #7a5800;
    font-weight: 500;
}

/* =====================================================
   Calendar Page
   ===================================================== */

/* Container */
.calendar-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 0.5rem 3rem;
}

/* ── Header ─────────────────────────────────────────── */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.date-search-section {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.search-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.date-input {
    width: 165px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.85rem;
}

    .date-input:focus {
        background: rgba(255, 255, 255, 0.15);
        border-color: var(--amarillo);
        color: #fff;
        box-shadow: none;
    }

    .date-input::-webkit-calendar-picker-indicator {
        filter: invert(1);
        opacity: 0.6;
    }

.btn-go,
.btn-today {
    font-size: 0.82rem;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
}

/* ── View toggle ─────────────────────────────────────── */
.view-toggle {
    display: flex;
    background: rgba(36, 58, 70, 0.82);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-view {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

    .btn-view:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .btn-view.active {
        background: var(--azul-claro);
        color: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }

/* ── Navigation bar ───────────────────────────────────── */
.calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(36, 58, 70, 0.82);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-title {
    flex: 1;
    text-align: center;
}

    .calendar-title h4 {
        margin: 0;
        color: #fff;
        font-size: 1rem;
        font-weight: 600;
    }

.btn-nav {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

    .btn-nav:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--amarillo);
    }

/* ── Day column (shared by day & week views) ─────────── */
.day-view {
    background: rgba(36, 58, 70, 0.72);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.day-column {
    background: rgba(36, 58, 70, 0.65);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 0;
}

    .day-column.today {
        background: rgba(0, 88, 116, 0.55);
        border-color: rgba(0, 88, 116, 0.7);
    }

.day-header {
    padding: 0.45rem 0.6rem;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.day-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.today .day-date {
    color: var(--amarillo);
}

.day-events {
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 80px;
}

/* ── Event card (day & week) ─────────────────────────── */
.event-card {
    padding: 0.4rem 0.55rem;
    border-radius: 5px;
    cursor: pointer;
    border-left: 3px solid var(--azul-claro);
    background: rgba(0, 88, 116, 0.55);
    transition: background 0.12s ease, transform 0.1s ease;
    font-size: 0.78rem;
    color: #fff;
    display: block;
    width: 100%;
    text-align: left;
}

    .event-card:hover {
        background: rgba(0, 88, 116, 0.8);
        transform: translateX(2px);
    }

    .event-card.past {
        opacity: 0.65;
        border-left-color: #6c757d;
        background: rgba(60, 70, 80, 0.55);
    }

    .event-card.current {
        border-left-color: var(--amarillo);
        background: rgba(180, 120, 30, 0.5);
    }

    .event-card.upcoming {
        border-left-color: #28a745;
        background: rgba(20, 90, 50, 0.5);
    }

.event-customer {
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.82rem;
}

.event-pax {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1px;
}

.event-time {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 1px;
}

.event-boat {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-events {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
    text-align: center;
    padding: 0.75rem 0;
    font-style: italic;
}

/* ── Month view ───────────────────────────────────────── */
.month-view {
    background: rgba(36, 58, 70, 0.72);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.month-day-header {
    text-align: center;
    padding: 0.5rem 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.month-day {
    min-height: 88px;
    padding: 0.3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.12s ease;
    overflow: hidden;
    position: relative;
}

    .month-day:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .month-day.today {
        background: rgba(0, 88, 116, 0.5);
    }

        .month-day.today .month-day-number {
            background: var(--amarillo);
            color: var(--azul-oscuro);
            border-radius: 50%;
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
        }

    .month-day.other-month {
        opacity: 0.3;
    }

.month-day-number {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-day-trips {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.month-trip-item {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.64rem;
    cursor: pointer;
    background: rgba(0, 88, 116, 0.75);
    color: #fff;
    border-left: 2px solid var(--azul-claro);
    overflow: hidden;
    white-space: nowrap;
    transition: background 0.1s ease;
}

    .month-trip-item:hover {
        background: rgba(0, 88, 116, 0.95);
    }

    .month-trip-item.past {
        background: rgba(80, 90, 100, 0.7);
        border-left-color: #6c757d;
        opacity: 0.8;
    }

    .month-trip-item.current {
        background: rgba(180, 120, 30, 0.75);
        border-left-color: var(--amarillo);
    }

    .month-trip-item.upcoming {
        background: rgba(7, 159, 64, 0.7);
        border-left-color: #28a745;
    }

.trip-customer {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trip-pax {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    padding: 0 3px;
    font-size: 0.58rem;
    font-weight: 700;
}

.month-trip-more {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    padding: 1px 0;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
    .calendar-header {
        flex-direction: column;
        align-items: stretch;
    }

    .view-toggle {
        justify-content: center;
    }

    .week-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .month-day {
        min-height: 64px;
    }

    .btn-view span {
        display: none;
    }
}

@media (max-width: 600px) {
    .week-grid {
        grid-template-columns: 1fr;
    }

    .month-day {
        min-height: 48px;
    }

    .month-day-header {
        font-size: 0.62rem;
        padding: 0.35rem 0.1rem;
    }
}

/* =====================================================
   Create-Tour Modal — Customer Selector
   ===================================================== */

.selected-customer-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #eaf5fb;
    border: 1px solid #9fd3e8;
    border-radius: 8px;
    gap: 0.5rem;
}

.selected-customer-info {
    display: flex;
    align-items: center;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.15rem;
}

.customer-search-container {
    position: relative;
}

.customer-search-input-wrap {
    position: relative;
}

.customer-search-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 1;
}

.customer-search-input {
    padding-left: 2rem !important;
}

.customer-dropdown {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    position: relative;
}

.customer-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.45rem 0.75rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.1s ease;
    gap: 0.5rem;
}

    .customer-dropdown-item:hover {
        background: #e8f4fd;
    }

    .customer-dropdown-item:last-child {
        border-bottom: none;
    }

.customer-item-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #1a1a2e;
}

.customer-item-phone {
    font-size: 0.78rem;
    color: #6c757d;
    white-space: nowrap;
}

.customer-dropdown-more {
    padding: 0.4rem 0.75rem;
    font-size: 0.74rem;
    color: #6c757d;
    font-style: italic;
    text-align: center;
    background: #f8f9fa;
}

.customer-dropdown-empty {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    background: #f8f9fa;
}

.btn-add-customer {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    background: transparent;
    border: 1.5px dashed var(--azul-claro);
    border-radius: 6px;
    color: var(--azul-claro);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

    .btn-add-customer:hover {
        background: rgba(0, 88, 116, 0.08);
        color: var(--azul-oscuro);
    }

/* Inline add-customer panel */
.add-customer-panel {
    border: 1px solid rgba(0, 88, 116, 0.25);
    border-radius: 8px;
    overflow: hidden;
}

.add-customer-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.85rem;
    background: var(--azul-claro);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.add-customer-panel-body {
    padding: 0.75rem;
    background: rgba(0, 88, 116, 0.03);
}

    .add-customer-panel-body .form-label {
        font-size: 0.82rem;
        color: #444;
        margin-bottom: 0.2rem;
    }

/* Tour submission success screen */
.tour-create-success {
    text-align: center;
    padding: 2rem 1rem;
}

    .tour-create-success h5 {
        color: #1a1a2e;
        font-size: 1.15rem;
    }

    .tour-create-success p {
        color: #444;
        font-size: 0.95rem;
    }

.pending-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #fff8e1;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #856404;
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: left;
}

/* =====================================================
   Reports Page
   ===================================================== */

/* Month navigator (Tours by Boat card) */
.month-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.month-display {
    flex: 1;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--azul-oscuro);
    min-width: 130px;
    white-space: nowrap;
}

/* Stats bar */
.sales-stats-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1 1 180px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
    background: #fff;
    border: 1px solid rgba(36, 58, 70, 0.12);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 88, 116, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-claro);
    font-size: 1.1rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Charts grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

/* Individual chart card */
.report-card {
    background: #fff;
    border: 1px solid rgba(36, 58, 70, 0.12);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.report-card .card-header {
    padding: 0.85rem 1.1rem;
    background: linear-gradient(90deg, rgba(0,88,116,0.05), rgba(0,88,116,0.02));
    border-bottom: 1px solid rgba(36, 58, 70, 0.1);
}

.report-card .card-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--azul-oscuro);
}

.report-card .card-body {
    padding: 1rem;
    flex: 1;
}

/* Full-width search card */
.search-card {
    margin-bottom: 1.25rem;
}

/* Chart container: SVG left, legend right */
.chart-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.pie-chart {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.bar-chart {
    flex: 1;
    min-width: 0;
    max-height: 160px;
}

.pie-slice,
.bar {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

    .pie-slice:hover,
    .bar:hover {
        opacity: 0.82;
    }

/* Legend */
.chart-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
    overflow-y: auto;
    max-height: 200px;
}

.legend-item {
    display: grid;
    grid-template-columns: 12px 1fr auto auto;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-label {
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legend-value {
    color: var(--azul-oscuro);
    font-weight: 600;
    white-space: nowrap;
}

.legend-count {
    color: #6c757d;
    font-size: 0.72rem;
    white-space: nowrap;
}

    .legend-count::before { content: "("; }
    .legend-count::after  { content: ")"; }

/* Summary row below chart */
.chart-summary {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(36, 58, 70, 0.08);
}

.summary-item {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.summary-label {
    color: #6c757d;
}

.summary-value {
    font-weight: 700;
    color: var(--azul-oscuro);
}

/* Search section */
.search-section {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.search-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-controls .form-group {
    min-width: 160px;
}

.search-results {
    flex: 1;
    min-width: 280px;
}

.results-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--azul-oscuro);
    margin-bottom: 0.5rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.7rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.82rem;
}

.result-date {
    white-space: nowrap;
    color: #6c757d;
    flex-shrink: 0;
}

.result-details {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.result-label { color: #6c757d; }

.result-value {
    color: var(--azul-oscuro);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-amount {
    font-weight: 700;
    color: var(--azul-claro);
    margin-left: auto;
    white-space: nowrap;
}

.search-actions {
    margin-top: 0.75rem;
}

.no-data {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.88rem;
}

.general-settings-dashboard {
    padding: 1rem 1.5rem;
    max-width: 780px;
    margin: 50px auto 0;
}

.settings-section-card {
    background: #fff;
    border: 1px solid rgba(36, 58, 70, 0.12);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.settings-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg, rgba(0,88,116,0.06), rgba(0,88,116,0.02));
    border-bottom: 1px solid rgba(36, 58, 70, 0.1);
}

.settings-section-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 88, 116, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-claro);
    font-size: 1.2rem;
}

.settings-section-body {
    padding: 1.25rem;
}

/* =====================================================
   Notifications Settings Page
   ===================================================== */

.notifications-dashboard {
    padding: 1rem 1.5rem;
    max-width: 780px;
    margin: 50px auto 0;
}

/* Provider selection grid */
.provider-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 540px) {
    .provider-grid { grid-template-columns: 1fr; }
}

.provider-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
    position: relative;
    width: 100%;
}

    .provider-card:hover {
        border-color: var(--azul-claro);
        background: rgba(0, 88, 116, 0.04);
        transform: translateY(-1px);
    }

    .provider-card.active {
        border-color: var(--azul-claro);
        background: rgba(0, 88, 116, 0.07);
        box-shadow: 0 0 0 3px rgba(0, 88, 116, 0.1);
    }

.provider-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.provider-icon-azure   { background: rgba(0, 120, 215, 0.12); color: #0078d4; }
.provider-icon-sendgrid { background: rgba(0, 148, 255, 0.12); color: #099dff; }

.provider-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.provider-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--azul-oscuro);
}

.provider-desc {
    font-size: 0.76rem;
    color: #6c757d;
}

.provider-check {
    position: absolute;
    top: 0.6rem;
    right: 0.75rem;
    color: var(--azul-claro);
    font-size: 0.95rem;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-flex;
    width: 50px;
    height: 27px;
    cursor: pointer;
    flex-shrink: 0;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

.toggle-slider {
    position: absolute;
    inset: 0;
    background-color: #ced4da;
    border-radius: 27px;
    transition: background-color 0.22s ease;
}

    .toggle-slider::before {
        position: absolute;
        content: "";
        height: 21px;
        width: 21px;
        left: 3px;
        bottom: 3px;
        background-color: #fff;
        border-radius: 50%;
        transition: transform 0.22s ease;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }

.toggle-switch input:checked + .toggle-slider              { background-color: var(--azul-claro); }
.toggle-switch input:checked + .toggle-slider::before      { transform: translateX(23px); }
.toggle-switch input:focus-visible + .toggle-slider        { outline: 2px solid var(--azul-claro); outline-offset: 2px; }

/* Toggle list */
.toggle-list {
    display: flex;
    flex-direction: column;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(36, 58, 70, 0.07);
}

    .toggle-row:last-child { border-bottom: none; }

.toggle-row-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    min-width: 0;
    padding-right: 1rem;
}

.toggle-row-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 88, 116, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-claro);
    font-size: 0.88rem;
}

.toggle-row-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--azul-oscuro);
    line-height: 1.2;
}

.toggle-row-desc {
    font-size: 0.76rem;
    color: #6c757d;
    margin-top: 0.1rem;
}

.sheets-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.config-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.65rem 0.85rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.config-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.config-value {
    font-size: 0.85rem;
    font-family: monospace;
    word-break: break-all;
}

.config-value-set {
    color: var(--azul-oscuro);
}

.config-value-placeholder {
    color: #dc3545;
    font-style: italic;
}

.config-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #856404;
}

.btn-import {
    min-width: 220px;
}

.import-confirm-box {
    padding: 1rem;
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #721c24;
}

/* =====================================================
   Report Details Page
   ===================================================== */

.report-details-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* Header row: month nav + stats left, export right */
.details-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(36, 58, 70, 0.12);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.details-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.details-stats {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 0.85rem;
    background: #f8f9fa;
    border: 1px solid rgba(36, 58, 70, 0.1);
    border-radius: 8px;
    min-width: 80px;
}

.stat-pill-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    line-height: 1.2;
}

.stat-pill-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}

.details-export-btn {
    align-self: center;
    white-space: nowrap;
}

/* Table */
.records-table-container {
    background: #fff;
    border: 1px solid rgba(36, 58, 70, 0.12);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.records-table {
    margin-bottom: 0;
}

    .records-table thead th {
        background: linear-gradient(90deg, rgba(0,88,116,0.07), rgba(0,88,116,0.03));
        color: var(--azul-oscuro);
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-bottom: 2px solid rgba(36, 58, 70, 0.12);
        padding: 0.65rem 0.85rem;
        white-space: nowrap;
    }

    .records-table tbody td {
        padding: 0.65rem 0.85rem;
        vertical-align: middle;
        font-size: 0.88rem;
    }

    .records-table tfoot td {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
        border-top: 2px solid rgba(36, 58, 70, 0.12);
    }

    .records-table tbody tr:hover td {
        background: rgba(0, 88, 116, 0.03);
    }

/* =====================================================
   Create Report / Sale Form
   ===================================================== */

.create-report-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.5rem;

    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

/* Paper-page form cards */
.report-form-card {
    background: var(--blanco-marina, #fefefe);
    border: 1px solid rgba(220, 168, 91, 0.18);
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 1px 0   rgba(255, 255, 255, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 6px 16px rgba(0, 0, 0, 0.07);
}

.report-form-card .card-header {
    padding: 0.72rem 1rem;
    background: rgba(36, 58, 70, 0.04);
    border-bottom: 1px solid rgba(36, 58, 70, 0.08);
}

.report-form-card .card-body {
    padding: 1rem;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--azul-oscuro);
}

/* Customer info pill */
.customer-info-pill {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #6c757d;
    padding: 0.4rem 0.7rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid rgba(36, 58, 70, 0.08);
}

/* Pending tours grid */
.pending-tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.65rem;
}

.tour-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: #f8f9fa;
    border: 2px solid rgba(36, 58, 70, 0.1);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.15s ease;
    position: relative;
}

    .tour-card:hover {
        border-color: var(--azul-claro);
        background: rgba(0, 88, 116, 0.04);
    }

    .tour-card.selected {
        border-color: var(--azul-claro);
        background: rgba(0, 88, 116, 0.07);
        box-shadow: 0 0 0 3px rgba(0, 88, 116, 0.12);
    }

.tour-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 38px;
    padding: 0.25rem 0;
    background: rgba(0, 88, 116, 0.1);
    border-radius: 7px;
}

.tour-card-day {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    line-height: 1.1;
}

.tour-card-month {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--azul-claro);
    letter-spacing: 0.04em;
}

.tour-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.tour-card-type {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--azul-oscuro);
}

.tour-card-customer,
.tour-card-meta {
    font-size: 0.76rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tour-card-check {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    color: var(--azul-claro);
    font-size: 1rem;
}

/* Inline new-tour form */
.new-tour-form {
    padding: 1rem;
    background: rgba(0, 88, 116, 0.04);
    border: 1px dashed rgba(0, 88, 116, 0.3);
    border-radius: 10px;
}

.new-tour-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--azul-oscuro);
    margin-bottom: 0.25rem;
}

/* Financial totals */
.sale-total-display {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(90deg, rgba(0,88,116,0.06), rgba(0,88,116,0.03));
    border-radius: 8px;
    border: 1px solid rgba(0, 88, 116, 0.12);
}

.sale-total-label {
    font-size: 0.82rem;
    color: #6c757d;
    font-weight: 500;
}

.sale-total-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--azul-oscuro);
}

/* Sale status selector */
.status-selector {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.status-btn {
    display: flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

    .status-btn:hover { opacity: 0.85; }

.status-btn.status-pending.active  { background: #e9ecef; color: #495057; border-color: #adb5bd; }
.status-btn.status-billed.active   { background: #fff3cd; color: #856404; border-color: #ffc107; }
.status-btn.status-complete.active { background: #d1e7dd; color: #0f5132; border-color: #198754; }

/* Form actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding-top: 0.5rem;
}

/* =====================================================

   ===================================================== */

.reports-single-container {
    padding: 1rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Selector and list cards */
.report-selector-card,
.report-list-card,
.report-detail-card {
    background: #fff;
    border: 1px solid rgba(36, 58, 70, 0.12);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.report-selector-card .card-header,
.report-list-card .card-header,
.report-detail-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem;
    background: linear-gradient(90deg, rgba(0,88,116,0.06), rgba(0,88,116,0.02));
    border-bottom: 1px solid rgba(36, 58, 70, 0.1);
}

.report-selector-card .card-header h4,
.report-list-card .card-header h4,
.report-detail-card .card-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--azul-oscuro);
}

.report-selector-card .card-body,
.report-list-card .card-body,
.report-detail-card .card-body {
    padding: 1.1rem;
}

/* Report type buttons */
.report-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.85rem;
}

.report-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.1rem 0.75rem;
    background: #f8f9fa;
    border: 2px solid rgba(36, 58, 70, 0.1);
    border-radius: 12px;
    color: var(--azul-oscuro);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
}

    .report-type-btn:hover {
        border-color: var(--azul-claro);
        background: rgba(0, 88, 116, 0.05);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 88, 116, 0.12);
    }

    .report-type-btn.active {
        border-color: var(--azul-claro);
        background: rgba(0, 88, 116, 0.08);
        color: var(--azul-claro);
        box-shadow: 0 2px 8px rgba(0, 88, 116, 0.15);
    }

/* Entity list (salesman / boat / customer items) */
.entity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.entity-item-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    background: #f8f9fa;
    border: 1px solid rgba(36, 58, 70, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

    .entity-item-btn:hover {
        border-color: var(--azul-claro);
        background: rgba(0, 88, 116, 0.04);
        transform: translateX(3px);
    }

.entity-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(0, 88, 116, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-claro);
    font-size: 1rem;
}

.entity-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.entity-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--azul-oscuro);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entity-sub {
    font-size: 0.78rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entity-arrow {
    flex-shrink: 0;
    color: #adb5bd;
    font-size: 0.75rem;
}

/* Detail stats row */
.detail-stats-row {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.detail-stat {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.85rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid rgba(36, 58, 70, 0.08);
}

.detail-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    line-height: 1.2;
}

.detail-stat-label {
    font-size: 0.72rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.15rem;
}

