:root {

    --primary: #e91e63;
}

body {

    background: #f8f9fa;
}

.yovoy-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at top left, rgba(46, 204, 113, .18), transparent 34%),
                linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(17, 24, 39, .92));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.yovoy-preloader.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.yovoy-preloader-card {
    width: min(92vw, 360px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    padding: 28px 24px 24px;
    text-align: center;
    color: #fff;
    background: rgba(255,255,255,.08);
    box-shadow: 0 24px 80px rgba(0,0,0,.38);
    backdrop-filter: blur(14px);
}

.yovoy-preloader-logo {
    width: 112px;
    height: auto;
    margin-bottom: 18px;
}

.yovoy-loader-ring {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: conic-gradient(from 90deg, #22c55e, #38bdf8, #ffffff, #22c55e);
    animation: yovoySpin .9s linear infinite;
}

.yovoy-loader-ring::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #101827;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.yovoy-preloader-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
}

.yovoy-preloader-text {
    margin: 6px 0 0;
    color: rgba(255,255,255,.76);
    font-size: .9rem;
    font-weight: 700;
}

.yovoy-loader-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.yovoy-loader-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: yovoyPulse .9s ease-in-out infinite;
}

.yovoy-loader-dots span:nth-child(2) {
    animation-delay: .14s;
}

.yovoy-loader-dots span:nth-child(3) {
    animation-delay: .28s;
}

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

@keyframes yovoyPulse {
    0%, 80%, 100% { transform: scale(.72); opacity: .45; }
    40% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .yovoy-loader-ring,
    .yovoy-loader-dots span {
        animation: none;
    }
}

.sidebar {

    background: linear-gradient(180deg, #2c3e50, #1a2533);

    color: white;

    min-height: 100vh;
}

.sidebar .nav-link {

    color: #ddd;

    border-radius: 8px;

    margin: 4px 0;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {

    background: rgba(255,255,255,0.15);

    color: white;
}

.card-dashboard {

    border: none;

    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-number {

    font-size: 2.4rem;

    font-weight: 700;
}

.producto-img {

    max-height: 60px;

    border-radius: 8px;

    object-fit: cover;
}

.top-mobile-bar {

    display: none;

    background: #2c3e50;

    color: white;

    padding: 12px 15px;

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    z-index: 1200;
}

.toast-container {

    z-index: 1300;
}

.modal-confirmacion {

    z-index: 1400;
}


#welcomeOverlay {

    position: fixed;

    inset: 0;

    background:
        radial-gradient(circle at 22% 18%, rgba(56,189,248,.22), transparent 28%),
        radial-gradient(circle at 78% 20%, rgba(34,197,94,.20), transparent 28%),
        rgba(15,23,42,.72);

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 99999;

    backdrop-filter: blur(10px);
}

#welcomeBox {

    position:relative;

    overflow:hidden;

    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,251,255,.96) 52%, rgba(236,253,245,.96));

    padding: 46px 54px;

    border:1px solid rgba(255,255,255,.74);

    border-radius: 28px;

    text-align: center;

    box-shadow: 0 34px 90px rgba(15,23,42,.30);

    animation: popIn .65s cubic-bezier(.2,.8,.2,1);

    max-width: 90%;

    width:min(560px, calc(100vw - 36px));
}

#welcomeBox::before{

    content:'';

    position:absolute;

    right:-70px;

    top:-80px;

    width:210px;

    height:210px;

    border-radius:999px;

    background:radial-gradient(circle, rgba(56,189,248,.30), transparent 66%);
}

#welcomeBox::after{

    content:'';

    position:absolute;

    left:-54px;

    bottom:-70px;

    width:180px;

    height:180px;

    border-radius:999px;

    background:radial-gradient(circle, rgba(34,197,94,.22), transparent 66%);
}

#welcomeBox > *{

    position:relative;

    z-index:1;
}

#welcomeBox h1 {

    font-size: 42px;

    font-weight: 900;

    margin-bottom: 15px;

    background:linear-gradient(135deg,#0f172a,#0ea5e9 58%,#22c55e);

    -webkit-background-clip:text;

    background-clip:text;

    color:transparent;
}

#welcomeBox p {

    font-size: 22px;

    color: #475569;

    font-weight:700;

    margin: 0;
}

.welcome-emoji {

    width:78px;

    height:78px;

    display:grid;

    place-items:center;

    margin:0 auto 20px;

    border-radius:24px;

    background:linear-gradient(135deg,#0f172a,#1e293b);

    color:#fff;

    box-shadow:0 18px 38px rgba(15,23,42,.24);

    font-size: 34px;

    animation: floatEmoji 2s infinite ease-in-out;
}

@keyframes popIn {

    from {

        transform: scale(.7);

        opacity: 0;
    }

    to {

        transform: scale(1);

        opacity: 1;
    }
}

@keyframes floatEmoji {

    0% {

        transform: translateY(0);
    }

    50% {

        transform: translateY(-10px);
    }

    100% {

        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    .mobile-dashboard {

        padding-top: 25px;
    }

    .stat-card {

        margin-top: 10px;
    }
}

@media (max-width: 992px) {
    .top-mobile-bar {

        display: flex !important;

        align-items: center;

        gap: 14px;

        height: 72px;

        padding: 0 15px;

        box-shadow: 0 4px 12px rgba(0,0,0,.12);
    }

    .top-mobile-bar .btn {

        padding: 0;

        color: white;
    }

    .mobile-brand {

        display: flex;

        align-items: center;

        gap: 10px;

        font-size: 28px;

        font-weight: 700;

        color: white;
    }

    .mobile-brand i {

        font-size: 32px;
    }

    .mobile-brand-logo {
        display:block;
        width:128px;
        height:auto;
        object-fit:contain;
    }

    .card-dashboard {

        margin-top: 14px;
    }

    .container-fluid {

        padding-top: 30px;
    }

    .sidebar {

        position: fixed;

        top: 0;

        bottom: 0;

        left: -280px;

        width: 280px;

        transition: all 0.3s ease;

        z-index: 1050;
    }

    .sidebar.show {

        left: 0;
    }
}
.sidebar a[href="inventario.php"]{
    color:#e2e8f0 !important;
    text-decoration:none !important;
}

.sidebar a[href="inventario.php"]:visited,
.sidebar a[href="inventario.php"]:hover,
.sidebar a[href="inventario.php"]:focus{
    color:#e2e8f0 !important;
    text-decoration:none !important;
}

.sidebar a[href="inventario.php"].active{
    color:#ffffff !important;
}

/* Sidebar homologado con CRM */
.sidebar{
    background:linear-gradient(180deg,#111827 0%,#0f172a 100%) !important;
    color:#ffffff !important;
    min-height:100vh;
    max-height:100vh;
    overflow-y:auto;
    overflow-x:hidden;
    border-right:1px solid rgba(255,255,255,.06);
    box-shadow:18px 0 40px rgba(15,23,42,.08);
    scrollbar-width:thin;
    scrollbar-color:rgba(148,163,184,.45) transparent;
}

.sidebar::-webkit-scrollbar{
    width:7px;
}

.sidebar::-webkit-scrollbar-track{
    background:transparent;
}

.sidebar::-webkit-scrollbar-thumb{
    background:rgba(148,163,184,.45);
    border-radius:999px;
}

.sidebar h4{
    color:#ffffff !important;
    font-size:24px;
    font-weight:900;
    letter-spacing:0;
}

.sidebar-logo-img{
    display:block;
    width:112px;
    max-width:100%;
    height:auto;
    object-fit:contain;
    flex:1 1 auto;
    min-width:0;
}

.sidebar-brand-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-bottom:18px;
    min-width:0;
}

.sidebar-mobile-close{
    display:none;
}

.sidebar .nav{
    gap:2px;
}

.sidebar .nav-link{
    display:flex;
    align-items:center;
    gap:10px;
    color:#e2e8f0 !important;
    padding:10px 13px;
    border-radius:14px;
    margin:0 0 5px;
    font-weight:600;
    font-size:15px;
    line-height:1.2;
    border:1px solid transparent;
    transition:background .2s ease,border-color .2s ease,transform .2s ease;
}

.sidebar .nav-link i{
    width:17px;
    min-width:17px;
    text-align:center;
}

.sidebar .nav-link:hover{
    background:rgba(255,255,255,.08) !important;
    border-color:rgba(255,255,255,.08);
    color:#ffffff !important;
    transform:translateX(2px);
}

.sidebar .nav-link.active{
    background:rgba(255,255,255,.14) !important;
    border-color:rgba(255,255,255,.12);
    color:#ffffff !important;
    box-shadow:inset 3px 0 0 #38bdf8;
}

.sidebar-live-card,
.sidebar-mobile-live-card{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:40px;
    margin:0 0 12px;
    padding:9px 12px;
    border-radius:14px;
    text-decoration:none;
    font-size:14px;
    font-weight:900;
    line-height:1;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.08);
    color:#e2e8f0;
    transform:none !important;
    transition:none !important;
}

.sidebar-live-card:hover,
.sidebar-mobile-live-card:hover{
    color:#fff;
    transform:none !important;
}

.sidebar-master-badge{
    align-items:center;
    background:linear-gradient(135deg,rgba(250,204,21,.18),rgba(34,197,94,.16));
    border:1px solid rgba(250,204,21,.34);
    border-radius:999px;
    box-shadow:0 10px 24px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.08);
    color:#fff;
    display:inline-flex;
    gap:8px;
    justify-content:center;
    margin:-6px 0 13px;
    max-width:190px;
    min-height:34px;
    padding:5px 11px 5px 6px;
    width:auto;
}

.sidebar-master-badge[hidden]{
    display:none !important;
}

.sidebar-master-medal{
    align-items:center;
    background:linear-gradient(135deg,#facc15,#22c55e);
    border:1px solid rgba(255,255,255,.20);
    border-radius:999px;
    color:#0f172a;
    display:inline-flex;
    flex:0 0 24px;
    font-size:13px;
    height:24px;
    justify-content:center;
    width:24px;
}

.sidebar-master-badge strong{
    color:#fff;
    display:block;
    font-size:12px;
    font-weight:950;
    line-height:1;
    white-space:nowrap;
}

.sidebar-live-dot{
    width:9px;
    height:9px;
    flex:0 0 9px;
    border-radius:999px;
    background:#f59e0b;
    box-shadow:0 0 0 4px rgba(245,158,11,.14);
}

.sidebar-whatsapp-live.is-live{
    color:#dcfce7;
    border-color:rgba(134,239,172,.42);
    background:linear-gradient(135deg,rgba(22,101,52,.72),rgba(21,128,61,.5));
}

.sidebar-whatsapp-live.is-live .sidebar-live-dot{
    background:#22c55e;
    box-shadow:0 0 0 4px rgba(34,197,94,.18);
}

.sidebar-whatsapp-live.is-offline{
    color:#ffffff;
    border-color:rgba(254,202,202,.45);
    background:linear-gradient(135deg,rgba(185,28,28,.88),rgba(127,29,29,.72));
}

.sidebar-whatsapp-live.is-offline .sidebar-live-dot{
    background:#fecaca;
    box-shadow:0 0 0 4px rgba(248,113,113,.22);
}

.sidebar-mobile-live-card{
    display:flex;
    flex:0 0 78px !important;
    width:78px !important;
    min-width:78px !important;
    max-width:78px !important;
    min-height:32px;
    height:32px;
    margin:0;
    padding:7px 9px;
    border-radius:999px;
    box-shadow:0 10px 22px rgba(15,23,42,.16);
    font-size:12px;
    white-space:nowrap;
    overflow:hidden;
}

.sidebar-mobile-live-card .sidebar-live-text,
.mobile-top-live-card .sidebar-live-text{
    overflow:hidden;
    text-overflow:clip;
    white-space:nowrap;
    min-width:28px;
    text-align:left;
}

.mobile-top-live-card{
    display:none;
}

.sidebar-group{
    list-style:none;
}

.sidebar-group-toggle{
    width:100%;
    border:1px solid transparent;
    background:transparent;
    text-align:left;
}

.sidebar-group-toggle span{
    flex:1;
}

.sidebar-group-chevron{
    margin-left:auto;
    transition:transform .18s ease;
}

.sidebar-group.is-open .sidebar-group-chevron{
    transform:rotate(180deg);
}

.sidebar-submenu{
    display:none;
    padding:2px 0 8px 14px;
    margin:0;
    list-style:none;
}

.sidebar-group.is-open .sidebar-submenu{
    display:block;
}

.sidebar-subitem .nav-link{
    min-height:36px;
    padding:8px 10px;
    margin-bottom:3px;
    font-size:13px;
    border-radius:11px;
    background:rgba(15,23,42,.12);
}

.sidebar-subitem .nav-link i{
    width:15px;
    min-width:15px;
    font-size:13px;
}

.sidebar .nav-link.text-danger{
    color:#ff4d5f !important;
}

.sidebar .nav-link.text-danger:hover{
    background:rgba(239,68,68,.12) !important;
    border-color:rgba(239,68,68,.18);
}

@media (min-width: 993px){
    .mobile-dashboard > .container-fluid > .row{
        align-items:flex-start;
    }

    .sidebar{
        position:sticky !important;
        top:0;
        height:100vh;
        min-height:100vh;
        max-height:100vh;
        align-self:flex-start;
        flex:0 0 260px;
        width:260px;
        max-width:260px;
        padding:22px 16px !important;
    }

    .sidebar .nav{
        display:flex;
        flex-direction:column;
        min-height:calc(100vh - 122px);
    }

    .main-content{
        flex:0 0 calc(100% - 260px);
        width:calc(100% - 260px);
        max-width:calc(100% - 260px);
    }
}

@media (max-width: 992px){
    .sidebar{
        height:100dvh;
        min-height:100dvh;
        max-height:100dvh;
        padding:58px 16px 18px !important;
        position:relative;
    }

    .sidebar-mobile-close{
        position:absolute;
        top:14px;
        right:14px;
        width:44px;
        height:44px;
        display:grid;
        place-items:center;
        border:1px solid rgba(255,255,255,.14);
        border-radius:14px;
        background:rgba(255,255,255,.08);
        color:#fff;
        font-size:19px;
        z-index:3;
        box-shadow:0 12px 28px rgba(0,0,0,.18);
    }

    .sidebar-mobile-close:active{
        transform:scale(.96);
    }

    .sidebar h4{
        font-size:22px;
    }

    .sidebar-logo-img{
        width:112px;
    }

    .sidebar-brand-row{
        margin-bottom:16px !important;
    }

    .sidebar .nav-link{
        padding:9px 12px;
        border-radius:13px;
        margin-bottom:4px;
        font-size:14px;
    }

    .sidebar-live-card{
        display:none;
    }

    .sidebar-mobile-live-card{
        position:static !important;
        z-index:auto !important;
    }

    .sidebar .mt-auto.pt-5{
        padding-top:14px !important;
    }
}

/* Capa premium de color */
.main-content{
    position:relative;
    overflow:hidden;
}

.main-content::before{
    content:'';
    position:absolute;
    right:22px;
    top:18px;
    width:280px;
    height:170px;
    border-radius:999px;
    background:radial-gradient(circle,rgba(56,189,248,.20),transparent 64%);
    pointer-events:none;
}

.main-content::after{
    content:'';
    position:absolute;
    right:220px;
    top:96px;
    width:180px;
    height:110px;
    border-radius:999px;
    background:radial-gradient(circle,rgba(34,197,94,.15),transparent 65%);
    pointer-events:none;
}

.main-content > *{
    position:relative;
}

.card-dashboard{
    border:none !important;
    border-radius:18px !important;
    box-shadow:0 18px 38px rgba(15,23,42,.12) !important;
    overflow:hidden;
    position:relative;
}

.card-dashboard::after{
    content:'';
    position:absolute;
    right:-38px;
    top:-48px;
    width:132px;
    height:132px;
    border-radius:999px;
    background:rgba(255,255,255,.22);
}

.card-dashboard .card-body{
    position:relative;
    z-index:1;
}

.main-content h2,
.main-content h5{
    color:#0f172a;
    font-weight:900;
    letter-spacing:0;
}

.main-content > h2:first-child,
.main-content .fw-bold:first-child{
    background:linear-gradient(135deg,#0f172a,#0ea5e9 58%,#22c55e);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.main-content .table{
    overflow:hidden;
    border-radius:16px !important;
    box-shadow:0 16px 34px rgba(15,23,42,.08) !important;
}

.main-content .table thead th{
    background:#f0f7ff;
    color:#0f172a !important;
    border-bottom:1px solid #dbeafe;
    font-size:13px;
    white-space:nowrap;
}

.main-content .table tbody tr:hover{
    background:#f8fbff;
}

.main-content .btn-primary,
.main-content .btn-primary:hover,
.main-content .btn-primary:focus{
    background:#0f172a !important;
    border-color:#0f172a !important;
    color:#fff !important;
}

.main-content .btn-success{
    border-radius:10px;
    font-weight:800;
}

.sidebar .nav-link.plan-disabled{
    align-items:flex-start;
    opacity:.86;
    cursor:not-allowed;
    background:rgba(255,255,255,.035);
}

.sidebar .nav-link.plan-disabled:hover{
    transform:none;
    background:rgba(255,255,255,.045) !important;
}

@media (max-width: 992px){
    .top-mobile-bar{
        gap:10px;
    }

    .top-mobile-bar .mobile-brand-logo,
    .mobile-topbar .mobile-brand-logo{
        width:112px;
        max-width:34vw;
        height:auto;
        object-fit:contain;
    }

    .mobile-top-live-card{
        display:flex;
        align-items:center;
        justify-content:center;
        gap:7px;
        flex:0 0 104px;
        width:104px !important;
        min-width:104px !important;
        min-height:34px;
        max-width:104px !important;
        margin-left:auto;
        padding:7px 10px;
        border-radius:999px;
        text-decoration:none;
        font-size:12px;
        font-weight:900;
        line-height:1;
        border:1px solid rgba(255,255,255,.12);
        background:rgba(255,255,255,.08);
        color:#e2e8f0;
        box-shadow:0 10px 22px rgba(15,23,42,.16);
        white-space:nowrap;
        overflow:hidden;
        transform:none !important;
        transition:none !important;
    }
}

@media (max-width: 992px){
    .sidebar-mobile-live-card{
        position:static !important;
        z-index:auto !important;
        display:flex !important;
    }
}

.sidebar .nav-link.yovoy-capacitacion-link,
.sidebar .side-link.yovoy-capacitacion-link{
    position:relative;
    background:rgba(34,197,94,.13) !important;
    border-color:rgba(134,239,172,.5) !important;
    color:#ffffff !important;
    box-shadow:0 0 0 2px rgba(34,197,94,.12), 0 12px 26px rgba(34,197,94,.11);
}

.sidebar .nav-link.yovoy-capacitacion-link::after,
.sidebar .side-link.yovoy-capacitacion-link::after{
    content:'';
    width:25px;
    height:25px;
    flex:0 0 25px;
    margin-left:auto;
    border-radius:999px;
    background:#dcfce7;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.1 12s3.7-7 9.9-7 9.9 7 9.9 7-3.7 7-9.9 7-9.9-7-9.9-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    background-position:center;
    background-repeat:no-repeat;
    background-size:15px 15px;
    border:1px solid rgba(22,101,52,.16);
    box-shadow:0 8px 18px rgba(34,197,94,.16);
}

.sidebar .nav-link.yovoy-capacitacion-link.yovoy-training-focus,
.sidebar .side-link.yovoy-capacitacion-link.yovoy-training-focus{
    background:rgba(34,197,94,.2) !important;
    border-color:rgba(134,239,172,.68) !important;
    box-shadow:0 0 0 3px rgba(34,197,94,.18), 0 16px 34px rgba(34,197,94,.18);
}

.yovoy-training-tip{
    position:fixed;
    z-index:3600;
    width:min(320px, calc(100vw - 28px));
    border:1px solid rgba(15,23,42,.12);
    border-radius:16px;
    background:#ffffff;
    color:#0f172a;
    box-shadow:0 22px 54px rgba(15,23,42,.24);
    padding:14px;
}

.yovoy-training-tip::before{
    content:'';
    position:absolute;
    left:-9px;
    top:24px;
    width:18px;
    height:18px;
    background:#ffffff;
    border-left:1px solid rgba(15,23,42,.12);
    border-bottom:1px solid rgba(15,23,42,.12);
    transform:rotate(45deg);
}

.yovoy-training-tip.is-mobile::before{
    left:28px;
    top:-9px;
    border-left:1px solid rgba(15,23,42,.12);
    border-bottom:0;
    border-top:1px solid rgba(15,23,42,.12);
}

.yovoy-training-tip strong{
    display:block;
    font-size:15px;
    font-weight:900;
    margin-bottom:4px;
}

.yovoy-training-tip p{
    margin:0;
    color:#475569;
    font-size:13px;
    line-height:1.35;
    font-weight:700;
}

.yovoy-training-actions{
    display:flex;
    gap:8px;
    margin-top:12px;
}

.yovoy-training-actions a,
.yovoy-training-actions button{
    border:0;
    border-radius:10px;
    font-size:12px;
    font-weight:900;
    padding:9px 11px;
}

.yovoy-training-actions a{
    background:#0f172a;
    color:#ffffff;
    text-decoration:none;
}

.yovoy-training-actions button{
    background:#e2e8f0;
    color:#0f172a;
}

@media(max-width:992px){
    .yovoy-training-tip{
        left:14px !important;
        right:14px;
        top:calc(76px + env(safe-area-inset-top, 0px)) !important;
        width:auto;
    }
}

.nav-text-wrap{
    display:grid;
    gap:2px;
    line-height:1.15;
}

.nav-lock-note{
    font-size:10px;
    color:#bae6fd;
    font-weight:800;
}

.nav-lock-badge{
    margin-left:6px;
    background:#fee2e2;
    color:#991b1b;
    border-radius:999px;
    padding:3px 7px;
    font-size:10px;
    font-weight:900;
    white-space:nowrap;
}

.plan-client-bar{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    margin:14px 0 18px;
}

.plan-client-card{
    background:rgba(255,255,255,.82);
    border:1px solid #e2e8f0;
    border-radius:14px;
    padding:11px 12px;
    box-shadow:0 10px 22px rgba(15,23,42,.045);
}

.plan-client-card h5{
    margin:0 0 4px;
    font-size:15px;
    line-height:1.15;
    font-weight:900;
    color:#0f172a;
}

.plan-client-card small{
    display:block;
    color:#64748b;
    font-size:11px;
    line-height:1.2;
    font-weight:800;
}

.plan-progress{
    height:6px;
    background:#eaf2fb;
    border-radius:999px;
    overflow:hidden;
    margin-top:9px;
}

.plan-progress span{
    display:block;
    height:100%;
    background:linear-gradient(90deg,#38bdf8,#22c55e);
    border-radius:inherit;
}

.plan-chip-row{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    margin-top:7px;
}

.plan-chip{
    display:inline-flex;
    align-items:center;
    gap:4px;
    border-radius:999px;
    background:#e0f2fe;
    color:#075985;
    padding:5px 7px;
    font-size:10px;
    line-height:1;
    font-weight:900;
}

.plan-chip.off{
    background:#fee2e2;
    color:#991b1b;
}

.plan-due-pill{
    width:max-content;
    max-width:calc(100vw - 360px);
    margin:0 auto 12px 0;
    display:flex;
    align-items:center;
    flex:0 0 auto;
    gap:8px;
    border:1px solid #dbe4ee;
    background:rgba(255,255,255,.86);
    color:#334155;
    border-radius:999px;
    padding:7px 10px;
    box-shadow:0 10px 24px rgba(15,23,42,.07);
    font-size:12px;
    font-weight:900;
    min-width:0;
}

.plan-due-pill i{
    color:#0ea5e9;
}

.plan-due-pill .system-name{
    color:#0f172a;
    border-left:1px solid rgba(148,163,184,.45);
    padding-left:8px;
}

.plan-due-pill.warning{
    border-color:#fed7aa;
    background:#fff7ed;
    color:#9a3412;
}

.plan-due-pill.warning i{
    color:#f97316;
}

.plan-due-pill.warning .system-name{
    color:#7c2d12;
}

.plan-due-pill.expired{
    border-color:#fecaca;
    background:#fef2f2;
    color:#991b1b;
}

.plan-due-pill.expired i{
    color:#ef4444;
}

.plan-due-pill.expired .system-name{
    color:#7f1d1d;
}

.plan-due-pill a{
    color:inherit;
    text-decoration:none;
    border-left:1px solid rgba(148,163,184,.45);
    padding-left:8px;
}

.top-utility-row{
    align-items:center;
    display:inline-flex;
    flex-wrap:nowrap;
    gap:8px;
    justify-content:flex-start;
    margin:0 0 12px;
    min-width:0;
    max-width:100%;
    width:auto;
}

.top-utility-row .plan-due-pill{
    margin:0;
}

.module-video-bar{
    align-items:center;
    display:flex;
    justify-content:flex-end;
    margin:0 0 12px;
    position:relative;
}

.module-video-btn{
    align-items:center;
    background:linear-gradient(135deg,#ecfeff,#dcfce7);
    border:1px solid rgba(14,165,233,.28);
    border-radius:999px;
    box-shadow:0 12px 28px rgba(14,165,233,.10);
    color:#075985;
    display:inline-flex;
    flex:0 0 auto;
    font-size:13px;
    font-weight:950;
    gap:7px;
    min-height:38px;
    padding:8px 13px;
    transition:.18s ease;
    white-space:nowrap;
}

.module-video-btn i{
    align-items:center;
    background:#0ea5e9;
    border-radius:999px;
    color:#fff;
    display:inline-flex;
    height:20px;
    justify-content:center;
    width:20px;
}

.module-video-btn:hover{
    border-color:rgba(34,197,94,.45);
    box-shadow:0 16px 34px rgba(34,197,94,.14);
    color:#14532d;
    transform:translateY(-1px);
}

.module-video-module-action{
    flex:0 0 auto;
    margin-left:auto;
}

.module-video-module-action .module-video-btn{
    background:linear-gradient(135deg,#0ea5e9,#22c55e);
    border-color:rgba(255,255,255,.35);
    box-shadow:0 14px 34px rgba(14,165,233,.24);
    color:#fff;
    min-height:40px;
    padding:9px 15px;
}

.module-video-module-action .module-video-btn i{
    background:rgba(255,255,255,.2);
    border:1px solid rgba(255,255,255,.24);
}

.module-video-module-action .module-video-btn:hover{
    border-color:rgba(255,255,255,.56);
    box-shadow:0 18px 42px rgba(34,197,94,.24);
    color:#fff;
}

.dashboard-reminder-banner .module-video-module-action{
    margin-left:0;
}

.dashboard-reminder-banner .module-video-module-action .module-video-btn{
    min-height:38px;
    padding:8px 13px;
}

.module-video-tip{
    align-items:center;
    background:linear-gradient(135deg,#dc2626,#b91c1c);
    border:1px solid rgba(254,202,202,.75);
    border-radius:16px;
    box-shadow:0 20px 48px rgba(185,28,28,.30);
    color:#fff;
    display:flex;
    font-size:15px;
    font-weight:950;
    gap:10px;
    line-height:1.18;
    max-width:min(380px, calc(100vw - 32px));
    padding:14px 14px 14px 16px;
    position:fixed;
    white-space:normal;
    z-index:3600;
    animation:moduleVideoTipDrop .28s ease-out both;
}

.module-video-tip[hidden]{
    display:none !important;
}

.module-video-tip::after{
    border-bottom:10px solid #dc2626;
    border-left:8px solid transparent;
    border-right:8px solid transparent;
    border-top:0;
    content:"";
    position:absolute;
    left:22px;
    top:-10px;
}

.module-video-tip button{
    align-items:center;
    background:rgba(255,255,255,.18);
    border:0;
    border-radius:999px;
    color:#fff;
    display:inline-flex;
    font-size:20px;
    font-weight:900;
    height:28px;
    justify-content:center;
    line-height:1;
    padding:0;
    width:28px;
}

.module-video-bar.is-tip-visible .module-video-btn{
    border-color:rgba(56,189,248,.72);
    box-shadow:0 0 0 3px rgba(56,189,248,.16),0 12px 28px rgba(14,165,233,.10);
}

@keyframes moduleVideoTipDrop{
    from{opacity:0;transform:translateY(-4px) scale(.96);}
    to{opacity:1;transform:translateY(0) scale(1);}
}

.qr-topbar .module-video-bar,
.hero .module-video-bar{
    margin:0;
    z-index:2;
}

.module-video-modal .modal-content{
    border:1px solid rgba(186,230,253,.78);
    border-radius:22px;
    box-shadow:0 28px 90px rgba(15,23,42,.24);
    overflow:hidden;
}

.module-video-modal .modal-header{
    align-items:flex-start;
    background:linear-gradient(135deg,#0f172a,#155e75);
    border:0;
    color:#fff;
    padding:18px 20px;
}

.module-video-modal .modal-title{
    color:#fff;
    font-size:24px;
    font-weight:950;
    margin:2px 0 0;
}

.module-video-modal .btn-close{
    filter:invert(1);
    opacity:.9;
}

.module-video-eyebrow{
    color:#a7f3d0;
    display:block;
    font-size:11px;
    font-weight:950;
    letter-spacing:.02em;
    text-transform:uppercase;
}

.module-video-modal .modal-body{
    padding:18px 20px 20px;
}

.module-video-modal .modal-body p{
    color:#475569;
    font-weight:800;
    margin:0 0 14px;
}

.module-video-frame{
    aspect-ratio:16/9;
    background:#0f172a;
    border-radius:16px;
    overflow:hidden;
}

.module-video-frame iframe{
    border:0;
    display:block;
    height:100%;
    width:100%;
}

.module-video-modal .modal-footer{
    border:0;
    gap:10px;
    justify-content:space-between;
    padding:0 20px 20px;
}

.module-video-all,
.module-video-done{
    align-items:center;
    border-radius:13px;
    display:inline-flex;
    font-weight:900;
    gap:8px;
    justify-content:center;
    min-height:42px;
    padding:10px 14px;
    text-decoration:none;
}

.module-video-all{
    background:#eff6ff;
    border:1px solid #bfdbfe;
    color:#075985;
}

.module-video-done{
    background:#0f172a;
    border:0;
    color:#fff;
}

.module-video-done.is-done{
    background:#16a34a;
}

.plan-upgrade-hero{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:center;
    background:
        radial-gradient(circle at 88% 35%, rgba(34,197,94,.20), transparent 28%),
        radial-gradient(circle at 12% 0%, rgba(56,189,248,.16), transparent 24%),
        #0f172a;
    color:#fff;
    border-radius:24px;
    padding:28px;
    margin-bottom:20px;
    box-shadow:0 22px 60px rgba(15,23,42,.18);
}

.plan-upgrade-hero h1,
.plan-upgrade-hero h2{
    color:#fff !important;
    margin:0 0 8px;
}

.plan-upgrade-hero p{
    margin:0;
    color:#cbd5e1;
    max-width:680px;
    font-weight:800;
}

.plan-upgrade-kicker,
.plan-upgrade-badge{
    display:inline-flex;
    width:max-content;
    border-radius:999px;
    padding:7px 11px;
    background:#e0f2fe;
    color:#075985;
    font-size:12px;
    font-weight:900;
    margin-bottom:10px;
}

.plan-upgrade-whatsapp{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    border-radius:18px;
    padding:16px 22px;
    background:#16a34a;
    color:#fff;
    text-decoration:none;
    font-weight:900;
    white-space:nowrap;
    border:1px solid rgba(255,255,255,.18);
    box-shadow:0 18px 40px rgba(22,163,74,.26);
    transition:.18s ease;
    min-width:230px;
    min-height:56px;
}

.plan-upgrade-whatsapp:hover{
    color:#fff;
    background:#15803d;
    transform:translateY(-2px);
    box-shadow:0 22px 52px rgba(22,163,74,.34);
}

.plan-upgrade-actions{
    align-items:center;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:flex-end;
}

.plan-upgrade-actions .module-video-module-action{
    margin-left:0;
}

.plan-upgrade-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:16px;
}

.plan-upgrade-card{
    display:flex;
    flex-direction:column;
    background:#fff;
    border:1px solid #dbe4ee;
    border-radius:22px;
    padding:20px;
    box-shadow:0 16px 36px rgba(15,23,42,.08);
    position:relative;
    overflow:hidden;
    min-height:320px;
}

.plan-upgrade-card:before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:#e0f2fe;
}

.plan-upgrade-card.current{
    border-color:#38bdf8;
    box-shadow:0 18px 42px rgba(56,189,248,.18);
}

.plan-upgrade-card.featured{
    border-color:#22c55e;
    box-shadow:0 22px 54px rgba(34,197,94,.14);
}

.plan-upgrade-card.featured:before{
    background:#22c55e;
}

.plan-recommended-ribbon{
    display:inline-flex;
    align-items:center;
    gap:7px;
    width:max-content;
    max-width:100%;
    margin:0 0 12px auto;
    border-radius:999px;
    padding:8px 12px;
    background:linear-gradient(135deg,#dcfce7,#bbf7d0);
    color:#14532d;
    border:1px solid rgba(34,197,94,.34);
    box-shadow:0 12px 28px rgba(34,197,94,.18);
    font-size:12px;
    font-weight:950;
    text-transform:uppercase;
}

.plan-upgrade-card h2,
.plan-upgrade-card h3{
    margin:0;
    color:#0f172a;
}

.plan-upgrade-card h2 small{
    color:#64748b;
    font-size:13px;
    margin-left:4px;
    font-weight:900;
}

.plan-upgrade-card p{
    color:#475569;
    font-weight:800;
    margin:8px 0;
}

.plan-price{
    font-size:26px;
    font-weight:900;
    color:#0f172a;
    margin:8px 0;
}

.plan-upgrade-card ul{
    margin:12px 0 18px;
    padding-left:18px;
    color:#475569;
    font-weight:800;
    display:grid;
    gap:7px;
    font-size:14px;
    line-height:1.34;
}

.plan-upgrade-card li{
    overflow-wrap:anywhere;
}

.plan-upgrade-pay{
    margin-top:auto;
}

.plan-upgrade-card > .plan-pay-button{
    margin-top:auto;
}

.plan-pay-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:48px;
    border:0;
    border-radius:15px;
    background:#0f172a;
    color:#fff;
    padding:13px 16px;
    font-weight:900;
    line-height:1.15;
    text-align:center;
    white-space:normal;
    text-decoration:none;
    box-shadow:0 14px 30px rgba(15,23,42,.16);
    transition:.18s ease;
}

.plan-pay-button:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 38px rgba(15,23,42,.22);
}

.plan-pay-button.featured{
    background:#16a34a;
    box-shadow:0 14px 30px rgba(22,163,74,.20);
}

.plan-pay-button.current{
    background:#334155;
}

.plan-upgrade-note{
    margin-top:14px;
    color:#64748b;
    font-size:12px;
    font-weight:800;
}

.plan-locked-card{
    background:#fff;
    border:1px solid #dbe4ee;
    border-radius:22px;
    padding:28px;
    box-shadow:0 18px 42px rgba(15,23,42,.08);
    text-align:center;
}

.plan-locked-card i{
    font-size:34px;
    color:#0ea5e9;
}

@media(max-width:900px){
    .plan-upgrade-hero{
        display:block;
    }

    .plan-upgrade-whatsapp{
        margin-top:16px;
        width:100%;
        justify-content:center;
    }

    .plan-client-bar,
    .plan-upgrade-grid{
        grid-template-columns:1fr;
    }
}

.dashboard-compact-table{
    table-layout:fixed;
    width:100%;
}

.dashboard-compact-table th,
.dashboard-compact-table td{
    vertical-align:middle;
    overflow-wrap:anywhere;
    word-break:break-word;
}

.dashboard-compact-table .badge,
.dashboard-compact-table .btn,
.dashboard-compact-table .form-select{
    max-width:100%;
}

.dashboard-pending-table th:nth-child(1),
.dashboard-pending-table td:nth-child(1){
    width:24%;
}

.dashboard-pending-table th:nth-child(2),
.dashboard-pending-table td:nth-child(2){
    width:20%;
}

.dashboard-pending-table th:nth-child(3),
.dashboard-pending-table td:nth-child(3){
    width:22%;
}

.dashboard-pending-table th:nth-child(4),
.dashboard-pending-table td:nth-child(4){
    width:20%;
}

.dashboard-pending-table th:nth-child(5),
.dashboard-pending-table td:nth-child(5){
    width:14%;
}

.dashboard-sales-table th:nth-child(1),
.dashboard-sales-table td:nth-child(1){
    width:27%;
}

.dashboard-sales-table th:nth-child(2),
.dashboard-sales-table td:nth-child(2){
    width:28%;
}

.dashboard-sales-table th:nth-child(3),
.dashboard-sales-table td:nth-child(3){
    width:25%;
}

.dashboard-sales-table th:nth-child(4),
.dashboard-sales-table td:nth-child(4){
    width:20%;
}

.dashboard-inactive-table th:nth-child(1),
.dashboard-inactive-table td:nth-child(1){
    width:22%;
}

.dashboard-inactive-table th:nth-child(2),
.dashboard-inactive-table td:nth-child(2){
    width:30%;
}

.dashboard-inactive-table th:nth-child(3),
.dashboard-inactive-table td:nth-child(3){
    width:25%;
}

.dashboard-inactive-table th:nth-child(4),
.dashboard-inactive-table td:nth-child(4){
    width:23%;
}

.dashboard-inactive-table .btn-whatsapp-compact{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    white-space:nowrap;
}

.mobile-scroll-table{
    width:100%;
}

.mobile-table-shell{
    width:100%;
}

.main-content .form-control,
.main-content .form-select{
    border-radius:10px;
    border-color:#dbe4ee;
    box-shadow:none !important;
}

.main-content .form-control:focus,
.main-content .form-select:focus{
    border-color:#93c5fd;
    box-shadow:0 0 0 4px rgba(37,99,235,.12) !important;
}

.dashboard-reminder-banner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
    padding:10px 14px;
    border-radius:15px;
    background:linear-gradient(135deg,#0f172a,#1e293b);
    color:#fff;
    box-shadow:0 12px 30px rgba(15,23,42,.14);
    cursor:pointer;
}

.dashboard-reminder-left{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.dashboard-bell{
    width:38px;
    height:38px;
    border-radius:13px;
    display:grid;
    place-items:center;
    flex:0 0 auto;
    background:rgba(56,189,248,.16);
    border:1px solid rgba(125,211,252,.28);
    color:#7dd3fc;
    font-size:19px;
}

.dashboard-reminder-photo{
    border:1px solid rgba(255,255,255,.24);
    border-radius:12px;
    flex:0 0 auto;
    height:42px;
    overflow:hidden;
    width:42px;
}

.dashboard-reminder-photo img{
    display:block;
    height:100%;
    object-fit:cover;
    width:100%;
}

.dashboard-reminder-title{
    display:block;
    font-weight:900;
    font-size:15px;
    line-height:1.1;
}

.dashboard-reminder-copy{
    display:block;
    color:#cbd5e1;
    font-size:12px;
    margin-top:2px;
}

.dashboard-reminder-action{
    border:1px solid rgba(255,255,255,.16);
    background:rgba(255,255,255,.08);
    color:#fff;
    border-radius:999px;
    padding:7px 10px;
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
    line-height:1;
}

.dashboard-reminder-action:hover{
    background:#fff;
    color:#0f172a;
}

.dashboard-reminder-action.is-active{
    background:#dcfce7;
    border-color:#86efac;
    color:#166534;
}

.dashboard-reminder-action.is-denied{
    background:#fee2e2;
    border-color:#fecaca;
    color:#991b1b;
}

.dashboard-readiness-card{
    background:
        radial-gradient(circle at 92% 8%, rgba(34,197,94,.24), transparent 28%),
        linear-gradient(135deg,#0f172a 0%,#142033 48%,#064e3b 100%);
    border:1px solid rgba(148,163,184,.26);
    border-radius:18px;
    box-shadow:0 24px 70px rgba(15,23,42,.16);
    color:#fff;
    display:grid;
    gap:14px;
    grid-template-columns:minmax(260px,1.1fr) auto minmax(260px,.9fr);
    margin:14px 0 18px;
    overflow:hidden;
    padding:16px;
    position:relative;
}

.dashboard-readiness-card::before{
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);
    content:"";
    height:1px;
    left:18px;
    position:absolute;
    right:18px;
    top:0;
}

.dashboard-readiness-main{
    align-items:center;
    display:flex;
    gap:13px;
    min-width:0;
}

.dashboard-readiness-light{
    background:#ef4444;
    border-radius:999px;
    box-shadow:0 0 0 8px rgba(239,68,68,.18),0 0 30px rgba(239,68,68,.62);
    flex:0 0 15px;
    height:15px;
    margin:0 16px 0 10px;
    width:15px;
}

.dashboard-readiness-card.is-yellow .dashboard-readiness-light{
    background:#f59e0b;
    box-shadow:0 0 0 8px rgba(245,158,11,.18),0 0 30px rgba(245,158,11,.62);
}

.dashboard-readiness-card.is-green .dashboard-readiness-light{
    background:#22c55e;
    box-shadow:0 0 0 8px rgba(34,197,94,.18),0 0 30px rgba(34,197,94,.62);
}

.dashboard-readiness-kicker{
    color:#a7f3d0;
    display:block;
    font-size:11px;
    font-weight:950;
    letter-spacing:0;
    line-height:1.1;
    margin-bottom:4px;
    text-transform:uppercase;
}

.dashboard-readiness-main h3{
    color:#fff;
    font-size:22px;
    font-weight:950;
    letter-spacing:0;
    line-height:1.06;
    margin:0;
}

.dashboard-readiness-main p{
    color:#cbd5e1;
    font-size:12px;
    font-weight:800;
    line-height:1.25;
    margin:5px 0 0;
}

.dashboard-readiness-award{
    align-items:center;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.16);
    border-radius:14px;
    display:flex;
    gap:10px;
    min-width:210px;
    padding:10px 12px;
}

.dashboard-readiness-award i{
    align-items:center;
    background:linear-gradient(135deg,#facc15,#22c55e);
    border-radius:12px;
    color:#0f172a;
    display:inline-flex;
    flex:0 0 34px;
    font-size:18px;
    height:34px;
    justify-content:center;
    width:34px;
}

.dashboard-readiness-award span{
    color:#cbd5e1;
    display:block;
    font-size:10px;
    font-weight:900;
    line-height:1.1;
    text-transform:uppercase;
}

.dashboard-readiness-award strong{
    color:#fff;
    display:block;
    font-size:13px;
    font-weight:950;
    line-height:1.15;
    margin-top:3px;
}

.dashboard-readiness-meter{
    min-width:0;
}

.dashboard-readiness-meter > div:first-child{
    align-items:center;
    display:flex;
    gap:12px;
    justify-content:space-between;
    margin-bottom:8px;
}

.dashboard-readiness-meter span,
.dashboard-readiness-meter strong{
    color:#e2e8f0;
    font-size:11px;
    font-weight:950;
    line-height:1.15;
}

.dashboard-readiness-meter strong{
    color:#a7f3d0;
    max-width:220px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.dashboard-readiness-track{
    background:rgba(15,23,42,.55);
    border:1px solid rgba(255,255,255,.08);
    border-radius:999px;
    height:10px;
    overflow:hidden;
}

.dashboard-readiness-track span{
    background:linear-gradient(90deg,#38bdf8,#22c55e,#facc15);
    border-radius:999px;
    display:block;
    height:100%;
    transition:width .3s ease;
    width:0;
}

.dashboard-readiness-actions{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    grid-column:1 / -1;
}

.dashboard-readiness-actions button{
    align-items:center;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
    border-radius:999px;
    color:#e2e8f0;
    display:inline-flex;
    font-size:12px;
    font-weight:900;
    gap:7px;
    line-height:1;
    min-height:32px;
    padding:7px 10px;
    transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}

.dashboard-readiness-actions button:hover{
    background:rgba(255,255,255,.14);
    border-color:rgba(167,243,208,.44);
    transform:translateY(-1px);
}

.dashboard-readiness-actions button.is-done{
    background:rgba(34,197,94,.16);
    border-color:rgba(74,222,128,.42);
    color:#dcfce7;
}

.dashboard-insights-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(220px,1fr));
    gap:16px;
}

.dashboard-insight-card{
    background:#fff;
    border:1px solid #dbe4ee;
    border-radius:18px;
    box-shadow:0 18px 38px rgba(15,23,42,.08);
    padding:17px;
    min-height:230px;
}

.dashboard-insight-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:15px;
}

.dashboard-insight-head span{
    color:#0f172a;
    font-weight:900;
    font-size:15px;
}

.dashboard-insight-head i{
    color:#0ea5e9;
}

.dashboard-insight-head strong{
    color:#0f172a;
    font-size:20px;
    white-space:nowrap;
}

.dashboard-sales-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.dashboard-sales-row{
    display:grid;
    grid-template-columns:54px 1fr 82px;
    align-items:center;
    gap:10px;
    padding:9px 10px;
    border:1px solid #dbeafe;
    border-radius:14px;
    background:linear-gradient(135deg,#f8fbff,#ffffff);
}

.dashboard-sales-date{
    color:#0f172a;
    font-size:12px;
    font-weight:900;
}

.dashboard-sales-meter{
    height:10px;
    border-radius:999px;
    background:#eaf2fb;
    overflow:hidden;
}

.dashboard-sales-meter span{
    display:block;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#38bdf8,#2563eb,#22c55e);
    box-shadow:0 0 18px rgba(37,99,235,.22);
}

.dashboard-sales-value{
    text-align:right;
}

.dashboard-sales-value strong{
    display:block;
    color:#0f172a;
    font-size:13px;
    font-weight:900;
}

.dashboard-sales-value small,
.dashboard-status-row span{
    color:#64748b;
    font-size:11px;
    font-weight:800;
}

.dashboard-status-list,
.dashboard-top-list{
    display:flex;
    flex-direction:column;
    gap:11px;
}

.dashboard-status-row{
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
}

.dashboard-status-row > div:first-child,
.dashboard-top-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.dashboard-status-row strong,
.dashboard-top-row span{
    color:#0f172a;
    font-weight:900;
}

.dashboard-status-meter{
    height:9px;
    border-radius:999px;
    background:#eff6ff;
    overflow:hidden;
}

.dashboard-status-meter span{
    display:block;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#22c55e,#0ea5e9);
}

.dashboard-status-meter-crm span{
    background:linear-gradient(90deg,#25d366,#16a34a);
}

.dashboard-top-row{
    padding:10px 12px;
    border:1px solid #dbeafe;
    border-radius:14px;
    background:#f8fbff;
}

.dashboard-top-row span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.dashboard-top-row strong{
    color:#16a34a;
    white-space:nowrap;
}

.dashboard-new-leads-card,
.dashboard-top-clients-card,
.dashboard-crm-pipeline-card{
    display:flex;
    flex-direction:column;
}

.dashboard-new-leads-list,
.dashboard-top-clients-card .dashboard-top-list{
    display:flex;
    flex-direction:column;
    gap:8px;
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
    padding-right:2px;
}

.dashboard-new-lead-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:9px 10px;
    border:1px solid #dbeafe;
    border-radius:14px;
    background:linear-gradient(135deg,#f8fbff,#ffffff);
    color:#0f172a;
    text-decoration:none;
}

.dashboard-new-lead-row:hover{
    border-color:#93c5fd;
    box-shadow:0 10px 24px rgba(14,165,233,.12);
    color:#0f172a;
}

.dashboard-new-lead-main{
    display:grid;
    gap:2px;
    min-width:0;
}

.dashboard-new-lead-main strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:13px;
    font-weight:900;
}

.dashboard-new-lead-main small,
.dashboard-new-lead-main em,
.dashboard-new-lead-date{
    color:#64748b;
    font-size:11px;
    font-weight:800;
}

.dashboard-new-lead-main em{
    color:#0369a1;
    font-style:normal;
}

.dashboard-new-lead-date{
    flex:0 0 auto;
    white-space:nowrap;
}

.dashboard-crm-pipeline-list{
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
    padding-right:2px;
}

.dashboard-lead-loader{
    position:fixed;
    inset:0;
    z-index:3000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(15,23,42,.32);
    backdrop-filter:blur(4px);
}

.dashboard-lead-loader.is-visible{
    display:flex;
}

.dashboard-lead-loader-card{
    width:min(360px,100%);
    border:1px solid rgba(219,234,254,.95);
    border-radius:18px;
    background:#fff;
    box-shadow:0 24px 70px rgba(15,23,42,.24);
    padding:22px;
    display:grid;
    justify-items:center;
    gap:8px;
    text-align:center;
}

.dashboard-lead-loader-spinner{
    width:38px;
    height:38px;
    border-radius:999px;
    border:4px solid #dbeafe;
    border-top-color:#22c55e;
    border-right-color:#38bdf8;
    animation:dashboardLeadSpin .8s linear infinite;
}

.dashboard-lead-loader-card strong{
    color:#0f172a;
    font-size:17px;
    font-weight:900;
}

.dashboard-lead-loader-card small{
    color:#64748b;
    font-size:12px;
    font-weight:800;
}

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

.dashboard-empty-text{
    color:#64748b;
    font-weight:700;
    margin:0;
}

.dashboard-finance-card{
    background:#fff;
    border:1px solid rgba(226,232,240,.95);
    border-radius:16px;
    padding:18px;
    box-shadow:0 18px 44px rgba(15,23,42,.08);
}

.dashboard-finance-grid{
    display:grid;
    grid-template-columns:minmax(280px,1.05fr) minmax(260px,.95fr);
    gap:16px;
    align-items:stretch;
}

.dashboard-expense-form{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.dashboard-expense-form label{
    display:block;
    margin-bottom:6px;
    color:#334155;
    font-size:12px;
    font-weight:900;
}

.dashboard-expense-form input,
.dashboard-expense-form textarea{
    width:100%;
    border:1px solid #dbe7f5;
    border-radius:12px;
    padding:10px 12px;
    color:#0f172a;
    font-weight:700;
    outline:none;
    background:#f8fafc;
}

.dashboard-expense-form input:focus,
.dashboard-expense-form textarea:focus{
    border-color:#38bdf8;
    box-shadow:0 0 0 4px rgba(56,189,248,.12);
    background:#fff;
}

.dashboard-expense-note{
    grid-column:1 / -1;
}

.dashboard-expense-form button{
    grid-column:1 / -1;
    border:0;
    border-radius:12px;
    padding:12px 16px;
    background:#0f172a;
    color:#fff;
    font-weight:900;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.dashboard-balance-panel{
    border:1px solid #dbe7f5;
    border-radius:14px;
    padding:14px;
    background:linear-gradient(135deg,#f8fafc,#fff);
}

.dashboard-balance-row{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:10px 0;
    border-bottom:1px solid #e2e8f0;
    color:#334155;
    font-weight:800;
}

.dashboard-balance-row strong{
    color:#0f172a;
}

.dashboard-balance-row.income strong,
.dashboard-balance-row.positive strong{
    color:#15803d;
}

.dashboard-balance-row.expense strong,
.dashboard-balance-row.negative strong{
    color:#dc2626;
}

.dashboard-balance-row.total{
    margin-top:4px;
    border-bottom:0;
    font-size:18px;
}

.dashboard-expense-categories{
    display:grid;
    gap:8px;
    margin-top:12px;
}

.dashboard-expense-categories div{
    display:flex;
    justify-content:space-between;
    gap:10px;
    border:1px solid #e2e8f0;
    border-radius:12px;
    padding:9px 10px;
    font-size:13px;
    font-weight:800;
    color:#475569;
}

.dashboard-expense-categories strong{
    color:#0f172a;
}

.dashboard-expense-table{
    margin-top:16px;
    overflow:auto;
}

.dashboard-section-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}

.dashboard-section-title h5{
    margin:0;
}

.dashboard-section-title span{
    background:#e0f2fe;
    color:#075985;
    border:1px solid #bae6fd;
    border-radius:999px;
    padding:6px 10px;
    font-weight:900;
    font-size:12px;
    white-space:nowrap;
}

.dashboard-section-title .module-video-module-action{
    margin-left:auto;
}

.dashboard-inactive-scroll{
    max-height:360px;
    overflow:auto;
    border-radius:16px;
    box-shadow:0 16px 34px rgba(15,23,42,.08);
    background:#fff;
    scrollbar-width:thin;
}

.dashboard-inactive-scroll .table{
    box-shadow:none !important;
}

.dashboard-inactive-scroll thead th{
    position:sticky;
    top:0;
    z-index:2;
}

.survey-premium-grid{
    display:grid;
    grid-template-columns:minmax(360px,.9fr) minmax(460px,1.1fr);
    gap:18px;
}

.survey-premium-card{
    background:#fff;
    border:1px solid #dbe4ee;
    border-radius:20px;
    box-shadow:0 18px 44px rgba(15,23,42,.08);
    padding:20px;
}

.survey-premium-hero{
    align-items:center;
    background:
        radial-gradient(circle at 88% 18%, rgba(56,189,248,.28), transparent 34%),
        linear-gradient(135deg,#0f172a,#155e75);
    color:#fff;
    border-radius:22px;
    display:flex;
    gap:16px;
    justify-content:space-between;
    padding:24px;
    box-shadow:0 20px 48px rgba(15,23,42,.18);
    margin-bottom:18px;
}

.survey-premium-hero h2{
    margin:0;
    font-size:32px;
    font-weight:900;
    color:#fff;
}

.survey-premium-hero p{
    margin:8px 0 0;
    color:#dbeafe;
    font-weight:700;
}

.survey-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 10px;
    border-radius:999px;
    background:#e0f2fe;
    color:#075985;
    font-weight:900;
    font-size:12px;
}

.survey-list-card{
    border:1px solid #e2e8f0;
    background:#f8fbff;
    border-radius:16px;
    padding:14px;
    margin-bottom:12px;
}

.survey-list-card b,
.survey-list-card small{
    display:block;
}

.survey-list-card small{
    color:#64748b;
    font-weight:700;
}

.survey-answer-detail-list{
    display:grid;
    gap:8px;
    margin-top:10px;
}

.survey-answer-detail{
    background:#fff;
    border:1px solid #dbeafe;
    border-radius:12px;
    display:grid;
    gap:4px;
    padding:9px 10px;
}

.survey-answer-question{
    color:#0f172a;
    font-size:12px;
    font-weight:900;
}

.survey-answer-rating{
    color:#0369a1;
    font-size:12px;
}

.survey-created-row{
    border:1px solid #dbe4ee;
    background:linear-gradient(135deg,#ffffff,#f8fbff);
    border-radius:18px;
    margin-bottom:12px;
    overflow:hidden;
    box-shadow:0 12px 28px rgba(15,23,42,.06);
}

.survey-created-head{
    align-items:stretch;
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px;
    padding:10px;
}

.survey-created-summary{
    width:100%;
    border:0;
    background:transparent;
    padding:4px;
    display:grid;
    grid-template-columns:1fr auto auto;
    gap:12px;
    align-items:center;
    text-align:left;
    cursor:pointer;
}

.survey-delete-inline{
    display:flex;
    margin:0;
}

.survey-delete-button{
    align-items:center;
    background:#fff1f2;
    border:1px solid #fecaca;
    border-radius:999px;
    color:#b91c1c;
    display:inline-flex;
    font-size:12px;
    font-weight:900;
    gap:8px;
    justify-content:center;
    min-width:118px;
    padding:9px 12px;
    white-space:nowrap;
}

/* Dashboard compacto */
.main-content .row.g-3{
    --bs-gutter-y:.65rem;
}

.card-dashboard{
    border-radius:14px !important;
    box-shadow:0 12px 26px rgba(15,23,42,.1) !important;
}

.card-dashboard::after{
    right:-34px;
    top:-48px;
    width:112px;
    height:112px;
}

.card-dashboard .card-body{
    min-height:118px;
    padding:16px 16px 14px !important;
}

.card-dashboard .card-body > i{
    margin-bottom:10px !important;
    font-size:2rem !important;
}

.card-dashboard h6{
    margin:0 0 8px;
    font-size:13px;
    line-height:1.1;
    font-weight:900;
}

.stat-number{
    margin:0;
    font-size:2rem !important;
    line-height:1;
}

.plan-client-bar{
    gap:8px;
    margin:10px 0 14px;
}

.plan-client-card{
    border-radius:12px;
    padding:9px 10px;
}

.plan-client-card h5{
    margin-bottom:3px;
    font-size:14px;
}

.plan-client-card small{
    font-size:10px;
}

.plan-chip-row{
    gap:4px;
    margin-top:6px;
}

.plan-chip{
    padding:4px 6px;
    font-size:9px;
}

.plan-progress{
    height:5px;
    margin-top:7px;
}

.dashboard-reminder-banner{
    margin-bottom:10px;
    padding:9px 12px;
    border-radius:13px;
}

.dashboard-bell{
    width:34px;
    height:34px;
    border-radius:11px;
    font-size:17px;
}

.dashboard-reminder-title{
    font-size:14px;
}

.dashboard-reminder-copy{
    font-size:11px;
}

.dashboard-insights-grid{
    gap:10px;
}

.dashboard-insight-card{
    min-height:150px;
    border-radius:14px;
    padding:12px;
    box-shadow:0 12px 26px rgba(15,23,42,.06);
}

.dashboard-insight-head{
    margin-bottom:10px;
}

.dashboard-insight-head span{
    font-size:13px;
}

.dashboard-insight-head strong{
    font-size:17px;
}

.dashboard-sales-list,
.dashboard-status-list,
.dashboard-top-list{
    gap:7px;
}

.dashboard-sales-row{
    grid-template-columns:48px 1fr 74px;
    gap:8px;
    padding:7px 8px;
    border-radius:11px;
}

.dashboard-sales-meter{
    height:8px;
}

.dashboard-status-row{
    gap:4px;
}

.dashboard-status-meter{
    height:7px;
}

.dashboard-top-row{
    padding:8px 9px;
    border-radius:11px;
}

.survey-delete-button:hover{
    background:#dc2626;
    border-color:#dc2626;
    color:#fff;
}

.survey-created-title{
    display:grid;
    gap:4px;
    min-width:0;
}

.survey-created-title b{
    font-weight:900;
    color:#0f172a;
}

.survey-created-title small{
    color:#64748b;
    font-weight:800;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.survey-created-meta{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:8px;
}

.survey-toggle-chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-width:118px;
    border:1px solid #bae6fd;
    background:linear-gradient(135deg,#e0f2fe,#ffffff);
    color:#075985;
    border-radius:999px;
    padding:9px 12px;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
    box-shadow:0 10px 22px rgba(14,116,144,.12);
}

.survey-toggle-chip i{
    transition:transform .18s ease;
}

.survey-created-row.is-open .survey-toggle-chip{
    background:linear-gradient(135deg,#0f172a,#155e75);
    border-color:#155e75;
    color:#fff;
}

.survey-created-row.is-open .survey-toggle-chip i{
    transform:rotate(180deg);
}

.survey-created-body{
    display:none;
    border-top:1px solid #e2e8f0;
    padding:14px;
}

.survey-created-row.is-open .survey-created-body{
    display:block;
}

.survey-premium-card:last-child{
    margin-bottom:110px;
}

.survey-created-body form:last-child{
    margin-bottom:24px;
}

.survey-question-line{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    margin-bottom:10px;
}

.survey-question-remove{
    width:46px;
    border:1px solid #fecaca;
    background:#fff1f2;
    color:#be123c;
    border-radius:14px;
    font-weight:900;
}

.survey-chart-wrap{
    display:grid;
    grid-template-columns:180px 1fr;
    gap:18px;
    align-items:center;
}

.survey-donut{
    --p1:0deg;
    --p2:0deg;
    --p3:0deg;
    --p4:0deg;
    width:170px;
    aspect-ratio:1;
    border-radius:50%;
    background:
        radial-gradient(circle at center, #fff 0 52%, transparent 53%),
        conic-gradient(
            #ef4444 0 var(--p1),
            #f97316 var(--p1) var(--p2),
            #facc15 var(--p2) var(--p3),
            #38bdf8 var(--p3) var(--p4),
            #22c55e var(--p4) 360deg
        );
    box-shadow:0 18px 40px rgba(15,23,42,.12);
    display:grid;
    place-items:center;
}

.survey-donut strong{
    font-size:28px;
    font-weight:900;
}

.survey-chart-legend{
    display:grid;
    gap:8px;
}

.survey-chart-legend span{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    border:1px solid #e2e8f0;
    background:#f8fbff;
    border-radius:13px;
    padding:9px 11px;
    font-weight:900;
    color:#334155;
}

.survey-chart-legend i{
    width:12px;
    height:12px;
    border-radius:50%;
    display:inline-block;
    margin-right:7px;
}

.survey-individual-result{
    display:grid;
    grid-template-columns:150px 1fr;
    gap:16px;
    align-items:center;
    border:1px solid #dbeafe;
    background:linear-gradient(135deg,#ffffff,#f0f9ff);
    border-radius:18px;
    padding:16px;
    margin-bottom:14px;
    box-shadow:0 16px 34px rgba(15,23,42,.07);
}

.survey-mini-donut{
    --p1:0deg;
    --p2:0deg;
    --p3:0deg;
    --p4:0deg;
    width:132px;
    aspect-ratio:1;
    border-radius:50%;
    background:
        radial-gradient(circle at center, #fff 0 54%, transparent 55%),
        conic-gradient(
            #ef4444 0 var(--p1),
            #f97316 var(--p1) var(--p2),
            #facc15 var(--p2) var(--p3),
            #38bdf8 var(--p3) var(--p4),
            #22c55e var(--p4) 360deg
        );
    display:grid;
    place-items:center;
    box-shadow:0 18px 36px rgba(15,23,42,.12);
}

.survey-mini-donut.is-empty{
    background:
        radial-gradient(circle at center, #fff 0 54%, transparent 55%),
        conic-gradient(#e2e8f0 0 360deg);
}

.survey-mini-donut strong{
    font-size:25px;
    font-weight:950;
    color:#0f172a;
}

.survey-individual-copy{
    display:grid;
    gap:6px;
    margin-bottom:10px;
}

.survey-individual-copy b{
    color:#0f172a;
    font-size:16px;
    font-weight:950;
}

.survey-individual-copy small{
    color:#64748b;
    font-weight:800;
}

.survey-rating-bars{
    display:grid;
    gap:8px;
}

.survey-rating-bars.compact{
    gap:6px;
    margin-top:8px;
}

.survey-rating-row{
    display:grid;
    grid-template-columns:88px 1fr 36px;
    gap:10px;
    align-items:center;
    color:#475569;
    font-size:12px;
    font-weight:900;
}

.survey-rating-meter{
    height:9px;
    border-radius:999px;
    background:#eaf2fb;
    overflow:hidden;
}

.survey-rating-meter span{
    display:block;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#38bdf8,#22c55e);
}

.survey-question-results{
    background:#f8fbff;
    border:1px solid #dbeafe;
    border-radius:16px;
    display:grid;
    gap:10px;
    margin:14px 0;
    padding:13px;
}

.survey-question-results > b{
    color:#0f172a;
    font-size:15px;
    font-weight:950;
}

.survey-question-result-card{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:14px;
    padding:12px;
}

.survey-question-result-head{
    align-items:flex-start;
    display:flex;
    gap:10px;
    justify-content:space-between;
}

.survey-question-result-head span{
    color:#0f172a;
    font-weight:900;
}

.survey-question-result-head strong{
    background:#e0f2fe;
    border-radius:999px;
    color:#075985;
    flex:0 0 auto;
    font-size:12px;
    padding:5px 9px;
}

.survey-question-result-card small{
    color:#64748b;
    display:block;
    font-weight:800;
    margin-top:4px;
}

.training-embed-hero{
    align-items:center;
    background:
        radial-gradient(circle at 86% 18%, rgba(34,197,94,.22), transparent 34%),
        linear-gradient(135deg,#0f172a,#155e75);
    border-radius:20px;
    box-shadow:0 20px 48px rgba(15,23,42,.18);
    color:#fff;
    display:flex;
    gap:18px;
    justify-content:space-between;
    margin-bottom:18px;
    padding:24px;
}

.training-embed-hero h2{
    color:#fff;
    font-size:30px;
    font-weight:950;
    margin:0;
}

.training-embed-hero p{
    color:#dbeafe;
    font-weight:750;
    margin:8px 0 0;
}

.training-master-prompt{
    align-items:flex-start;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.18);
    border-radius:16px;
    display:flex;
    flex:0 0 min(440px, 42%);
    flex-direction:column;
    gap:7px;
    padding:13px;
}

.training-master-prompt span,
.training-master-unlock span{
    color:#a7f3d0;
    font-size:11px;
    font-weight:950;
    line-height:1.1;
    text-transform:uppercase;
}

.training-master-prompt strong{
    color:#fff;
    font-size:14px;
    font-weight:950;
    line-height:1.22;
}

.training-complete-btn{
    align-items:center;
    background:linear-gradient(135deg,#facc15,#22c55e);
    border:1px solid rgba(255,255,255,.34);
    border-radius:999px;
    box-shadow:0 16px 34px rgba(34,197,94,.26);
    color:#0f172a;
    display:inline-flex;
    flex:0 0 auto;
    font-size:13px;
    font-weight:950;
    gap:8px;
    justify-content:center;
    min-height:44px;
    padding:11px 15px;
    white-space:nowrap;
}

.training-complete-btn.is-done{
    background:#dcfce7;
    border-color:#86efac;
    color:#166534;
}

.training-complete-btn-large{
    min-width:220px;
}

.training-master-unlock{
    align-items:center;
    background:
        radial-gradient(circle at 94% 10%, rgba(250,204,21,.22), transparent 28%),
        linear-gradient(135deg,#0f172a,#064e3b);
    border:1px solid rgba(148,163,184,.26);
    border-radius:20px;
    box-shadow:0 20px 48px rgba(15,23,42,.16);
    color:#fff;
    display:grid;
    gap:14px;
    grid-template-columns:auto 1fr auto;
    margin:18px 0 0;
    padding:18px;
}

.training-master-medal{
    align-items:center;
    background:linear-gradient(135deg,#facc15,#22c55e);
    border-radius:18px;
    color:#0f172a;
    display:inline-flex;
    font-size:26px;
    height:56px;
    justify-content:center;
    width:56px;
}

.training-master-unlock h3{
    color:#fff;
    font-size:22px;
    font-weight:950;
    line-height:1.08;
    margin:3px 0 5px;
}

.training-master-unlock p{
    color:#cbd5e1;
    font-size:13px;
    font-weight:800;
    line-height:1.35;
    margin:0;
}

.training-embed-card{
    background:#fff;
    border:1px solid #dbe4ee;
    border-radius:20px;
    box-shadow:0 18px 42px rgba(15,23,42,.08);
    min-height:calc(100vh - 230px);
    overflow:hidden;
}

.training-embed-card iframe{
    border:0;
    display:block;
    height:calc(100vh - 230px);
    min-height:680px;
    width:100%;
}

@media(max-width:1000px){
    .survey-premium-grid{
        grid-template-columns:1fr;
    }

    .survey-chart-wrap{
        grid-template-columns:1fr;
    }

    .survey-individual-result{
        grid-template-columns:1fr;
    }

    .survey-mini-donut{
        margin:auto;
    }

    .survey-created-summary{
        grid-template-columns:1fr;
    }

    .survey-created-head{
        grid-template-columns:1fr;
    }

    .survey-created-meta{
        justify-content:flex-start;
    }

    .survey-toggle-chip{
        width:100%;
    }

    .survey-delete-button{
        width:100%;
    }

    .assistant-quick-grid{
        grid-template-columns:1fr;
    }

    .training-embed-hero{
        align-items:flex-start;
        flex-direction:column;
        padding:18px;
    }

    .training-embed-hero h2{
        font-size:24px;
    }

    .training-embed-hero .btn{
        width:100%;
    }

    .training-embed-card,
    .training-embed-card iframe{
        min-height:720px;
        height:720px;
    }
}

@media (max-width: 992px){
    .top-mobile-bar{
        background:linear-gradient(180deg,#111827,#0f172a) !important;
        border-bottom:1px solid rgba(255,255,255,.08);
    }

    body,
    .main-content{
        background:#f1f5f9 !important;
    }

    .dashboard-reminder-banner{
        align-items:flex-start;
        flex-direction:column;
        border-radius:14px;
        margin-top:8px;
        padding:11px 12px;
    }

    .dashboard-reminder-banner .module-video-module-action,
    .dashboard-reminder-banner .module-video-module-action .module-video-btn{
        width:100%;
    }

    .module-video-module-action{
        margin-left:0;
    }

    .module-video-module-action .module-video-btn{
        justify-content:center;
    }

    .survey-premium-hero,
    .agenda-hero{
        align-items:flex-start;
        flex-direction:column;
    }

    .survey-premium-hero .module-video-module-action,
    .survey-premium-hero .module-video-module-action .module-video-btn,
    .agenda-hero-actions,
    .agenda-hero-actions .module-video-module-action,
    .agenda-hero-actions .module-video-btn,
    .plan-upgrade-actions,
    .plan-upgrade-actions .module-video-module-action,
    .plan-upgrade-actions .module-video-btn{
        width:100%;
    }

    .top-utility-row{
        align-items:center;
        flex-direction:row;
        flex-wrap:nowrap;
        gap:7px;
        overflow-x:auto;
        padding-bottom:2px;
    }

    .top-utility-row .plan-due-pill{
        max-width:calc(100vw - 122px);
    }

    .module-video-tip{
        border-radius:14px;
        white-space:normal;
        animation:moduleVideoTipDrop .28s ease-out both;
    }

    .module-video-tip::after{
        border-bottom:8px solid #dc2626;
        border-left:7px solid transparent;
        border-right:7px solid transparent;
        border-top:0;
        left:18px;
        top:-7px;
    }

    .dashboard-reminder-action{
        width:auto;
    }

    .dashboard-insights-grid{
        grid-template-columns:1fr;
        gap:10px;
    }

    .dashboard-insight-card{
        min-height:auto;
        padding:12px;
    }

    .dashboard-finance-grid,
    .dashboard-expense-form{
        grid-template-columns:1fr;
    }

    .dashboard-finance-card{
        padding:14px;
    }

    .dashboard-bars{
        height:140px;
        overflow-x:auto;
        padding-bottom:4px;
    }

    .dashboard-bar-item{
        flex:0 0 42px;
    }

    .dashboard-section-title{
        align-items:flex-start;
        flex-direction:column;
        gap:7px;
    }

    .dashboard-inactive-scroll{
        max-height:340px;
        overflow:auto;
    }

.dashboard-compact-table th,
.dashboard-compact-table td{
        font-size:12px;
        padding:10px 7px;
        overflow-wrap:anywhere;
        word-break:break-word;
    }

    .dashboard-pending-table .form-select{
        min-width:92px;
        max-width:92px;
        padding-left:7px;
        padding-right:22px;
        font-size:11px;
    }

    .dashboard-pending-table .btn-danger{
        width:34px;
        height:34px;
        padding:0 !important;
        border-radius:10px;
        font-size:0;
        position:relative;
    }

    .dashboard-pending-table .btn-danger::before{
        content:'x';
        font-size:20px;
        line-height:1;
    }

    .dashboard-sales-table .badge{
        display:inline-flex;
        max-width:72px;
        justify-content:center;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
        font-size:11px;
    }

    .dashboard-inactive-table .btn-whatsapp-compact{
        width:42px;
        height:40px;
        padding:0 !important;
        border-radius:12px;
        font-size:18px;
    }

    .dashboard-inactive-table .btn-whatsapp-compact .wa-label{
        display:none;
    }

    .mobile-table-shell{
        max-width:100%;
        overflow-x:auto;
        overflow-y:hidden;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:thin;
        border-radius:16px;
    }

    .mobile-scroll-table{
        display:table;
        max-width:none;
        overflow:visible;
        white-space:nowrap;
    }

    .mobile-scroll-table thead,
    .mobile-scroll-table tbody,
    .mobile-scroll-table tr{
        width:100%;
    }

    .mobile-scroll-table th,
    .mobile-scroll-table td{
        font-size:12px;
        padding:10px 8px;
        vertical-align:middle;
    }

    .mobile-scroll-table .btn{
        border-radius:10px;
        font-size:11px;
        line-height:1;
        margin:2px 0;
        padding:8px 9px;
        white-space:nowrap;
    }

    .mobile-clients-table{
        min-width:680px;
    }

    .mobile-products-table{
        min-width:720px;
    }

    .mobile-orders-table{
        min-width:980px;
    }

    .mobile-products-table .producto-img{
        width:44px;
        height:44px;
        object-fit:cover;
    }

    .mobile-orders-table td:nth-child(4){
        max-width:210px !important;
        white-space:normal;
    }

    .mobile-orders-table .form-select{
        min-width:120px;
        font-size:11px;
    }
}

.store-config-hero{
    align-items:center;
    background:linear-gradient(135deg,#0f172a 0%,#164e63 58%,#22c55e 100%);
    border-radius:18px;
    color:#fff;
    display:flex;
    justify-content:space-between;
    gap:18px;
    margin-bottom:18px;
    padding:22px 24px;
    box-shadow:0 18px 42px rgba(15,23,42,.16);
}

.store-config-hero h2{
    color:#fff;
    font-size:26px;
    font-weight:950;
    margin:0;
}

.store-config-hero p{
    color:rgba(255,255,255,.82);
    font-weight:700;
    margin:5px 0 0;
}

.store-config-card{
    background:linear-gradient(180deg,#ffffff,#f8fbff);
    border:1px solid #dbe4ee;
    border-radius:18px;
    box-shadow:0 14px 34px rgba(15,23,42,.08);
    padding-bottom:82px;
    overflow:visible;
    position:relative;
}

.store-config-savebar{
    align-items:center;
    display:flex;
    justify-content:flex-end;
    bottom:24px;
    padding:0;
    position:fixed;
    right:28px;
    z-index:2000;
}

.store-config-savebar.is-docked{
    bottom:18px;
    position:absolute;
    right:18px;
    z-index:10;
}

.store-config-savebtn{
    background:#dc2626;
    border:1px solid #b91c1c;
    border-radius:16px;
    box-shadow:0 16px 34px rgba(220,38,38,.24);
    color:#fff;
    font-size:15px;
    font-weight:950;
    min-height:52px;
    padding:0 24px;
}

.store-config-savebtn:hover{
    background:#b91c1c;
    color:#fff;
    transform:translateY(-1px);
}

.store-coupons-intro{
    margin:46px 0 16px;
}

.store-coupons-intro h3{
    color:#0f172a;
    font-size:24px;
    font-weight:950;
    margin:0;
}

.store-coupons-intro p{
    color:#64748b;
    font-weight:750;
    margin:6px 0 0;
}

.store-config-section{
    border-bottom:1px solid #e2e8f0;
    padding:20px;
}

.store-config-section:last-child{
    border-bottom:0;
}

.store-config-section-title{
    align-items:center;
    color:#0f172a;
    display:flex;
    font-size:17px;
    font-weight:950;
    gap:10px;
    margin-bottom:14px;
}

.store-config-preview{
    align-items:center;
    background:#fff;
    border:1px solid #dbe4ee;
    border-radius:14px;
    display:flex;
    justify-content:center;
    min-height:112px;
    overflow:hidden;
    padding:12px;
}

.store-config-preview.logo-preview img{
    max-height:86px;
    max-width:230px;
    object-fit:contain;
}

.store-config-preview.banner-preview img{
    height:150px;
    object-fit:cover;
    width:100%;
}

.store-config-hint{
    color:#64748b;
    display:block;
    font-size:12px;
    font-weight:700;
    margin-top:7px;
}

.store-module-accordion{
    display:grid;
    gap:12px;
}

.store-module-accordion .accordion-item{
    border:1px solid #dbe4ee;
    border-radius:14px;
    overflow:hidden;
}

.store-module-accordion .accordion-button{
    background:#f8fbff;
    color:#0f172a;
    font-size:16px;
    font-weight:950;
    letter-spacing:0;
    min-height:54px;
}

.store-module-accordion .accordion-button:not(.collapsed){
    background:#ecfdf5;
    box-shadow:none;
    color:#0f5132;
}

.store-module-accordion .accordion-button:focus{
    box-shadow:0 0 0 3px rgba(34,197,94,.18);
}

.store-config-toggle{
    align-items:center;
    background:#f8fafc;
    border:1px solid #dbe4ee;
    border-radius:12px;
    display:flex;
    font-weight:900;
    gap:10px;
    min-height:48px;
    padding:12px 14px;
}

.store-config-toggle .form-check-input{
    flex:0 0 auto;
    margin:0;
}

.stripe-help-card{
    background:#f8fbff;
    border:1px solid #bfdbfe;
    border-radius:18px;
    box-shadow:0 14px 32px rgba(15,23,42,.06);
    padding:16px;
}

.stripe-help-head{
    align-items:center;
    display:flex;
    gap:14px;
    justify-content:space-between;
}

.stripe-help-head strong{
    color:#0f172a;
    display:block;
    font-size:18px;
    font-weight:950;
}

.stripe-help-head span{
    color:#475569;
    display:block;
    font-size:13px;
    font-weight:750;
    margin-top:4px;
}

.stripe-help-button{
    align-items:center;
    background:#635bff;
    border:1px solid #5148e8;
    border-radius:14px;
    color:#fff;
    display:inline-flex;
    flex:0 0 auto;
    font-weight:950;
    gap:8px;
    padding:11px 16px;
}

.stripe-help-button:hover{
    background:#5148e8;
    color:#fff;
}

.stripe-help-steps{
    color:#334155;
    display:grid;
    gap:8px;
    font-size:13px;
    font-weight:760;
    line-height:1.35;
    margin:14px 0 0;
    padding-left:20px;
}

.stripe-help-steps code{
    background:#e0e7ff;
    border-radius:7px;
    color:#312e81;
    font-size:12px;
    padding:2px 6px;
}

.stripe-help-note{
    align-items:center;
    background:#ecfdf5;
    border:1px solid #bbf7d0;
    border-radius:13px;
    color:#166534;
    display:flex;
    gap:8px;
    font-size:13px;
    font-weight:850;
    margin-top:14px;
    padding:10px 12px;
}

.store-color-input{
    height:48px;
    padding:6px;
}

@media(max-width:768px){

    .store-config-hero{
        align-items:flex-start;
        flex-direction:column;
        padding:18px;
    }

    .store-config-hero h2{
        font-size:22px;
    }

    .store-config-savebar{
        bottom:14px;
        left:14px;
        right:14px;
        justify-content:stretch;
        padding:0;
    }

    .store-config-savebtn{
        width:100%;
    }

    .stripe-help-head{
        align-items:stretch;
        flex-direction:column;
    }

    .stripe-help-button{
        justify-content:center;
        width:100%;
    }
}
.login-user-page{
    min-height:100vh;
    overflow:hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(56,189,248,.22), transparent 26%),
        radial-gradient(circle at 78% 18%, rgba(34,197,94,.18), transparent 24%),
        linear-gradient(180deg,#f8fafc 0%,#eef6fb 100%);
}

.login-user-page .mobile-dashboard,
.login-user-page .mobile-dashboard > .container-fluid,
.login-user-page .mobile-dashboard > .container-fluid > .row{
    min-height:100vh;
}

.login-user-page .mobile-dashboard,
.login-user-page .mobile-dashboard > .container-fluid,
.login-user-page .main-content{
    padding:0 !important;
}

.login-user-page .mobile-dashboard > .container-fluid > .row{
    margin:0;
}

.login-user-page .main-content{
    height:100vh;
    left:0;
    max-width:none !important;
    flex:0 0 100vw !important;
    position:fixed;
    top:0;
    width:100vw !important;
    z-index:1;
}

.user-login-shell{
    align-items:center;
    display:flex;
    justify-content:center;
    height:100vh;
    overflow:hidden;
    padding:24px;
    position:fixed;
    inset:0;
    width:100%;
}

.login-bubble{
    border-radius:999px;
    filter:blur(28px);
    opacity:.82;
    pointer-events:none;
    position:absolute;
    transform:translateZ(0);
}

.bubble-one{
    background:rgba(56,189,248,.42);
    height:260px;
    left:8%;
    top:12%;
    width:260px;
}

.bubble-two{
    background:rgba(34,197,94,.30);
    height:210px;
    right:18%;
    top:10%;
    width:210px;
}

.bubble-three{
    background:rgba(249,115,22,.18);
    bottom:9%;
    height:240px;
    right:8%;
    width:240px;
}

.user-login-card{
    background:rgba(255,255,255,.82);
    border:1px solid rgba(255,255,255,.82);
    border-radius:28px;
    box-shadow:0 30px 90px rgba(15,23,42,.16);
    max-width:500px;
    padding:42px clamp(24px,4vw,48px);
    position:relative;
    text-align:center;
    width:min(500px,100%);
    z-index:2;
    backdrop-filter:blur(18px);
}

.user-login-logo{
    align-items:center;
    background:#0f172a;
    border-radius:22px;
    display:flex;
    justify-content:center;
    margin:0 auto 24px;
    min-height:86px;
    padding:18px 26px;
    width:210px;
}

.user-login-logo img{
    display:block;
    max-width:155px;
    width:100%;
}

.user-login-card h1{
    color:#0f172a;
    font-size:clamp(27px,3vw,34px);
    font-weight:950;
    letter-spacing:0;
    line-height:1.08;
    margin:0 0 8px;
}

.user-login-card p{
    color:#64748b;
    font-weight:800;
    margin:0 0 24px;
}

.user-login-form{
    display:grid;
    gap:14px;
    text-align:left;
}

.user-login-form .form-control{
    border:1px solid #d7e3ee;
    border-radius:14px;
    box-shadow:0 1px 0 rgba(15,23,42,.02);
    min-height:48px;
    padding:11px 14px;
}

.user-login-form .form-control:focus{
    border-color:#38bdf8;
    box-shadow:0 0 0 4px rgba(56,189,248,.14);
}

.user-password-toggle{
    align-items:center;
    background:#f8fafc;
    border:1px solid #dbe4ee;
    border-radius:10px;
    color:#0f172a;
    display:flex;
    height:34px;
    justify-content:center;
    position:absolute;
    right:8px;
    top:7px;
    width:38px;
    z-index:10;
}

.user-captcha-box{
    text-align:center;
}

.user-captcha-box label{
    color:#334155;
    display:block;
    font-weight:900;
    margin-bottom:8px;
}

.user-login-button{
    background:#0f172a;
    border:0;
    border-radius:14px;
    color:#fff;
    font-weight:950;
    min-height:50px;
    width:100%;
}

.user-login-button:hover{
    background:#111827;
    color:#fff;
    transform:translateY(-1px);
}

.user-login-alert{
    border-radius:14px;
    font-weight:850;
    text-align:left;
}

@media(max-width:640px){
    .user-login-card{
        border-radius:24px;
        padding:30px 20px;
    }

    .user-login-logo{
        width:180px;
    }
}

@media (max-width: 992px){
    body.app-user{
        padding-top:calc(70px + env(safe-area-inset-top, 0px)) !important;
    }

    .top-mobile-bar{
        position:fixed !important;
        top:0;
        left:0;
        right:0;
        height:calc(64px + env(safe-area-inset-top, 0px));
        padding:env(safe-area-inset-top, 0px) 14px 0;
        display:flex !important;
        align-items:center;
        gap:12px;
        z-index:2400;
        background:linear-gradient(180deg,#111827,#0f172a) !important;
        border-bottom:1px solid rgba(255,255,255,.08);
        box-shadow:0 14px 34px rgba(15,23,42,.22);
    }

    #menu-toggle{
        width:44px;
        height:44px;
        display:grid;
        place-items:center;
        flex:0 0 auto;
        padding:0 !important;
        border:1px solid rgba(255,255,255,.16);
        border-radius:14px;
        background:rgba(255,255,255,.08);
        color:#fff !important;
    }

    .mobile-refresh-btn{
        width:40px;
        height:40px;
        display:grid;
        place-items:center;
        flex:0 0 auto;
        margin-left:0;
        padding:0;
        border:1px solid rgba(255,255,255,.16);
        border-radius:14px;
        background:rgba(255,255,255,.08);
        color:#fff !important;
        font-size:20px;
        line-height:1;
        box-shadow:0 10px 22px rgba(15,23,42,.16);
    }

    .mobile-refresh-btn:active{
        transform:scale(.96);
    }

    .top-mobile-bar .mobile-brand-logo{
        display:block;
        width:108px;
        max-width:30vw;
        max-height:38px;
        object-fit:contain;
    }

    .mobile-top-live-card{
        margin-left:auto;
        flex-basis:96px;
        width:96px !important;
        min-width:96px !important;
        max-width:96px !important;
    }

    .sidebar{
        position:fixed !important;
        top:0;
        bottom:0;
        left:0 !important;
        width:min(310px,86vw);
        height:100dvh;
        min-height:100dvh;
        max-height:100dvh;
        padding-top:58px !important;
        transform:translateX(-105%);
        transition:transform .22s ease;
        z-index:2500;
        overflow:auto;
    }

    .sidebar.show{
        transform:translateX(0);
    }

    .main-content{
        padding-top:16px !important;
    }
}

@media (max-width: 390px){
    .top-mobile-bar{
        gap:9px;
        padding-left:10px;
        padding-right:10px;
    }

    .top-mobile-bar .mobile-brand-logo{
        width:94px;
        max-width:28vw;
    }

    .mobile-refresh-btn{
        width:38px;
        height:38px;
        border-radius:13px;
    }

    .mobile-top-live-card{
        flex-basis:88px;
        width:88px !important;
        min-width:88px !important;
        max-width:88px !important;
        padding-left:8px;
        padding-right:8px;
    }
}

@media (max-width: 992px){
    body.app-user{
        padding-top:calc(62px + env(safe-area-inset-top, 0px)) !important;
    }

    body.app-user .mobile-dashboard{
        padding-top:0 !important;
    }

    body.app-user .mobile-dashboard > .container-fluid{
        padding-top:0 !important;
    }

    body.app-user .main-content{
        padding-top:8px !important;
    }
}

/* Agenda por giro: reservas hotel y citas medicas */
.agenda-page{
    display:grid;
    gap:14px;
    color:#0f172a;
}

.agenda-hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    padding:18px;
    border-radius:18px;
    color:#fff;
    box-shadow:0 22px 55px rgba(15,23,42,.16);
}

.agenda-hotel .agenda-hero{
    background:linear-gradient(135deg,#0f172a,#155e75 58%,#0f766e);
}

.agenda-medical .agenda-hero{
    background:linear-gradient(135deg,#0f172a,#1d4ed8 55%,#059669);
}

.agenda-kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:8px;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:#dbeafe;
}

.agenda-hero h2{
    margin:0;
    font-size:30px;
    font-weight:950;
    color:#fff;
}

.agenda-hero p{
    max-width:780px;
    margin:6px 0 0;
    color:#e0f2fe;
    font-weight:750;
}

.agenda-primary{
    display:inline-flex;
    align-items:center;
    gap:8px;
    flex:0 0 auto;
    border-radius:14px;
    padding:11px 14px;
    background:#fff;
    color:#0f172a;
    font-weight:950;
    text-decoration:none;
}

.agenda-hero-actions{
    align-items:center;
    display:flex;
    flex:0 0 auto;
    flex-wrap:wrap;
    gap:10px;
    justify-content:flex-end;
}

.agenda-hero-actions .module-video-module-action{
    margin-left:0;
}

.agenda-metrics{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
}

.agenda-metrics div{
    padding:14px;
    border:1px solid #dbe4ee;
    border-radius:16px;
    background:linear-gradient(180deg,#fff,#f8fbff);
    box-shadow:0 12px 28px rgba(15,23,42,.06);
}

.agenda-metrics strong{
    display:block;
    font-size:24px;
    line-height:1;
}

.agenda-metrics span{
    display:block;
    margin-top:7px;
    color:#64748b;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
}

.agenda-guide{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.agenda-guide div{
    padding:12px 14px;
    border:1px solid #dbe4ee;
    border-radius:16px;
    background:#ffffff;
    box-shadow:0 12px 28px rgba(15,23,42,.05);
}

.agenda-guide b{
    display:flex;
    align-items:center;
    gap:7px;
    margin-bottom:6px;
    color:#0f172a;
    font-size:13px;
    font-weight:950;
}

.agenda-guide span{
    display:block;
    color:#64748b;
    font-size:12px;
    font-weight:800;
    line-height:1.35;
}

.agenda-layout{
    display:grid;
    grid-template-columns:minmax(320px,420px) minmax(0,1fr);
    gap:14px;
    align-items:start;
}

.hotel-gallery-section{
    background:#fff;
    border:1px solid #dbe4ee;
    border-radius:18px;
    box-shadow:0 16px 40px rgba(15,23,42,.07);
    margin-bottom:16px;
    overflow:hidden;
}

.hotel-gallery-layout{
    display:grid;
    grid-template-columns:minmax(320px,410px) minmax(0,1fr);
    gap:14px;
    padding:14px;
}

.hotel-room-form{
    box-shadow:none;
}

.hotel-active-check{
    align-items:center;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:12px;
    display:flex !important;
    flex-direction:row;
    gap:10px !important;
    padding:10px 12px;
}

.hotel-active-check input{
    width:auto;
}

.public-module-config-fields{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.hotel-room-list{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:12px;
}

.hotel-room-card{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:16px;
    display:grid;
    overflow:hidden;
}

.hotel-room-gallery{
    aspect-ratio:16/9;
    background:#f8fafc;
    display:grid;
    gap:3px;
    grid-template-columns:repeat(2,1fr);
    overflow:hidden;
}

.hotel-room-gallery img{
    height:100%;
    object-fit:cover;
    width:100%;
}

.hotel-room-gallery img:first-child:nth-last-child(1){
    grid-column:1/-1;
}

.hotel-room-empty-photo{
    align-items:center;
    color:#94a3b8;
    display:flex;
    flex-direction:column;
    font-weight:900;
    gap:6px;
    grid-column:1/-1;
    justify-content:center;
}

.hotel-room-empty-photo i{
    font-size:28px;
}

.hotel-room-body{
    display:flex;
    gap:10px;
    justify-content:space-between;
    padding:12px;
}

.hotel-room-body h4{
    color:#0f172a;
    font-size:16px;
    font-weight:950;
    margin:0;
}

.hotel-room-body p,
.hotel-room-body small{
    color:#64748b;
    display:block;
    font-size:12px;
    font-weight:800;
    line-height:1.35;
    margin:4px 0 0;
}

.hotel-room-price{
    flex:0 0 auto;
    text-align:right;
}

.hotel-room-price strong{
    color:#0f172a;
    display:block;
    font-weight:950;
}

.hotel-room-price span{
    background:#dcfce7;
    border-radius:999px;
    color:#166534;
    display:inline-flex;
    font-size:11px;
    font-weight:950;
    margin-top:5px;
    padding:4px 8px;
}

.hotel-room-amenities{
    border-top:1px solid #e2e8f0;
    color:#475569;
    font-size:12px;
    font-weight:800;
    padding:10px 12px;
}

.hotel-room-actions{
    align-items:center;
    border-top:1px solid #e2e8f0;
    display:flex;
    gap:8px;
    justify-content:flex-end;
    padding:10px 12px;
}

.agenda-form-card,
.agenda-list-card{
    border:1px solid #dbe4ee;
    border-radius:18px;
    background:#fff;
    box-shadow:0 16px 40px rgba(15,23,42,.07);
    overflow:hidden;
}

.agenda-card-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding:14px 16px;
    border-bottom:1px solid #e2e8f0;
    background:#f8fbff;
}

.agenda-card-head h3{
    margin:0;
    font-size:18px;
    font-weight:950;
}

.agenda-card-head small{
    color:#64748b;
    font-weight:800;
}

.agenda-count{
    min-width:34px;
    height:34px;
    display:grid;
    place-items:center;
    padding:0 9px;
    border-radius:999px;
    background:#e0f2fe;
    color:#075985;
    font-weight:950;
}

.agenda-fields{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    padding:14px;
}

.agenda-fields label{
    display:grid;
    gap:5px;
    color:#334155;
    font-size:12px;
    font-weight:950;
}

.agenda-fields .full{
    grid-column:1/-1;
}

.agenda-save{
    width:calc(100% - 28px);
    margin:0 14px 14px;
    border:0;
    border-radius:14px;
    padding:12px 14px;
    background:#0f172a;
    color:#fff;
    font-weight:950;
}

.agenda-list{
    display:grid;
    gap:10px;
    padding:14px;
}

.agenda-empty{
    padding:18px;
    border-radius:14px;
    background:#f8fafc;
    color:#64748b;
    font-weight:850;
    text-align:center;
}

.agenda-item{
    display:grid;
    grid-template-columns:68px minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    padding:12px;
    border:1px solid #e2e8f0;
    border-radius:16px;
    background:#fff;
}

.agenda-date{
    min-height:62px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:#ecfeff;
    color:#155e75;
    font-weight:950;
}

.agenda-date.medical{
    background:#eff6ff;
    color:#1d4ed8;
}

.agenda-date strong{
    font-size:20px;
    line-height:1;
}

.agenda-date span{
    font-size:12px;
    text-transform:uppercase;
}

.agenda-info{
    min-width:0;
}

.agenda-info h4{
    margin:0;
    font-size:16px;
    font-weight:950;
}

.agenda-info p,
.agenda-info small{
    display:block;
    margin:4px 0 0;
    color:#64748b;
    font-weight:800;
}

.agenda-actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:7px;
}

.agenda-inline-form{
    margin:0;
}

.agenda-badge{
    display:inline-flex;
    align-items:center;
    min-height:31px;
    border-radius:999px;
    padding:7px 10px;
    font-size:12px;
    font-weight:950;
}

.agenda-badge.warn{background:#fef3c7;color:#92400e}
.agenda-badge.info{background:#dbeafe;color:#1d4ed8}
.agenda-badge.ok{background:#dcfce7;color:#166534}
.agenda-badge.danger{background:#fee2e2;color:#991b1b}
.agenda-badge.stay{background:#ccfbf1;color:#0f766e}
.agenda-badge.muted{background:#e2e8f0;color:#475569}

@media (max-width: 1100px){
    .agenda-layout,
    .hotel-gallery-layout,
    .agenda-metrics,
    .agenda-guide{
        grid-template-columns:1fr;
    }
}

@media (max-width: 760px){
    .agenda-hero{
        display:grid;
        padding:15px;
    }

    .agenda-hero h2{
        font-size:24px;
    }

    .agenda-primary{
        justify-content:center;
    }

    .agenda-fields,
    .public-module-config-fields,
    .agenda-item{
        grid-template-columns:1fr;
    }

    .agenda-actions{
        justify-content:flex-start;
    }
}

@media (max-width: 1200px){
    .dashboard-readiness-card{
        grid-template-columns:1fr;
    }

    .dashboard-readiness-award{
        width:100%;
    }
}

@media (max-width: 768px){
    .dashboard-readiness-card{
        border-radius:15px;
        gap:12px;
        margin:10px 0 14px;
        padding:13px;
    }

    .dashboard-readiness-main h3{
        font-size:19px;
    }

    .dashboard-readiness-meter > div:first-child{
        align-items:flex-start;
        flex-direction:column;
        gap:4px;
    }

    .dashboard-readiness-meter strong{
        max-width:100%;
    }

    .dashboard-readiness-actions button{
        flex:1 1 calc(50% - 8px);
        justify-content:flex-start;
        min-width:142px;
    }

    .training-master-prompt{
        flex:1 1 100%;
        width:100%;
    }

    .training-master-unlock{
        grid-template-columns:1fr;
        padding:15px;
    }

    .training-complete-btn-large{
        width:100%;
    }
}

.yovoy-business-modal .modal-content > form{
    display:flex;
    flex-direction:column;
    max-height:inherit;
    min-height:0;
}

@media (max-width: 768px){
    .yovoy-business-modal{
        padding:0!important;
        z-index:1085;
    }

    .yovoy-business-modal .modal-dialog{
        margin:calc(92px + env(safe-area-inset-top, 0px)) auto calc(12px + env(safe-area-inset-bottom, 0px));
        max-width:calc(100vw - 16px);
        width:calc(100vw - 16px);
    }

    .yovoy-business-modal .modal-content{
        border-radius:18px;
        max-height:calc(100dvh - 112px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        overflow:hidden;
    }

    .yovoy-business-modal .modal-header{
        background:#fff;
        flex:0 0 auto;
        min-height:58px;
        padding:14px 16px;
        position:relative;
        z-index:2;
    }

    .yovoy-business-modal .modal-title{
        font-size:20px;
        font-weight:950;
        line-height:1.15;
    }

    .yovoy-business-modal .modal-body{
        -webkit-overflow-scrolling:touch;
        flex:1 1 auto;
        min-height:0;
        overflow-y:auto;
        padding:16px;
    }

    .yovoy-business-modal .modal-footer{
        background:#fff;
        display:flex;
        flex:0 0 auto;
        flex-wrap:nowrap;
        gap:10px;
        padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .yovoy-business-modal .modal-footer .btn{
        flex:1 1 0;
        min-height:44px;
        white-space:nowrap;
    }
}

/* Ajuste final dashboard movil: evita cortes y desbordes en tarjetas */
@media (max-width: 768px){
    body.app-user .mobile-dashboard{
        overflow-x:hidden;
    }

    body.app-user .mobile-dashboard,
    body.app-user .mobile-dashboard *{
        box-sizing:border-box;
    }

    body.app-user .main-content{
        min-width:0;
        overflow-x:hidden;
        padding-left:12px !important;
        padding-right:12px !important;
    }

    body.app-user .top-utility-row{
        max-width:100%;
        overflow-x:auto;
    }

    body.app-user .top-utility-row .plan-due-pill{
        min-width:0;
        max-width:100%;
        white-space:normal;
    }

    body.app-user .dashboard-reminder-banner,
    body.app-user .dashboard-readiness-card{
        max-width:100%;
        min-width:0;
        overflow:hidden;
    }

    body.app-user .dashboard-reminder-left{
        max-width:100%;
        min-width:0;
    }

    body.app-user .dashboard-reminder-left > span:last-child{
        min-width:0;
    }

    body.app-user .dashboard-reminder-title,
    body.app-user .dashboard-reminder-copy{
        max-width:100%;
        overflow-wrap:anywhere;
        white-space:normal;
    }

    body.app-user .dashboard-readiness-main,
    body.app-user .dashboard-readiness-meter,
    body.app-user .dashboard-readiness-actions{
        min-width:0;
        max-width:100%;
    }

    body.app-user .dashboard-readiness-main{
        align-items:flex-start;
        gap:10px;
    }

    body.app-user .dashboard-readiness-main strong,
    body.app-user .dashboard-readiness-main span,
    body.app-user .dashboard-readiness-meter strong,
    body.app-user .dashboard-readiness-meter span{
        max-width:100%;
        overflow-wrap:anywhere;
        white-space:normal;
    }

    body.app-user .dashboard-readiness-award{
        flex:0 0 auto;
    }

    body.app-user .dashboard-readiness-actions{
        display:grid;
        grid-template-columns:repeat(2, minmax(0,1fr));
        gap:8px;
    }

    body.app-user .dashboard-readiness-actions button{
        justify-content:center;
        min-width:0;
        width:100%;
        white-space:normal;
        overflow-wrap:anywhere;
    }

    body.app-user .main-content > .row.g-3{
        --bs-gutter-x:.7rem;
        --bs-gutter-y:.7rem;
    }

    body.app-user .main-content > .row.g-3 > [class*="col-"]{
        flex:0 0 50%;
        max-width:50%;
        min-width:0;
    }

    body.app-user .card-dashboard{
        border-radius:14px !important;
        height:100%;
        min-width:0;
        overflow:hidden;
    }

    body.app-user .card-dashboard .card-body{
        display:flex;
        flex-direction:column;
        justify-content:center;
        min-height:118px;
        min-width:0;
        padding:13px 11px !important;
    }

    body.app-user .card-dashboard .card-body > i{
        font-size:1.55rem !important;
        margin-bottom:8px !important;
    }

    body.app-user .card-dashboard h6{
        font-size:clamp(10px, 2.7vw, 12px);
        line-height:1.12;
        margin:0 0 7px;
        max-width:100%;
        overflow-wrap:anywhere;
    }

    body.app-user .stat-number{
        display:block;
        font-size:clamp(1.45rem, 7.2vw, 2rem) !important;
        line-height:.98;
        max-width:100%;
        min-width:0;
        overflow-wrap:anywhere;
        word-break:break-word;
    }

    body.app-user .plan-client-bar{
        display:grid;
        grid-template-columns:1fr;
        gap:9px;
    }

    body.app-user .plan-client-card{
        min-width:0;
        overflow:hidden;
        padding:11px;
    }

    body.app-user .plan-client-card h5,
    body.app-user .plan-client-card small,
    body.app-user .plan-chip{
        max-width:100%;
        overflow-wrap:anywhere;
    }

    body.app-user .plan-chip-row{
        gap:5px;
    }

    body.app-user .plan-chip{
        line-height:1.15;
        white-space:normal;
    }

    body.app-user .dashboard-insights-grid{
        grid-template-columns:1fr !important;
        gap:12px;
        min-width:0;
    }

    body.app-user .dashboard-insight-card{
        min-height:auto;
        min-width:0;
        overflow:hidden;
        padding:14px;
    }

    body.app-user .dashboard-insight-head{
        align-items:flex-start;
        gap:8px;
    }

    body.app-user .dashboard-insight-head span{
        min-width:0;
        overflow-wrap:anywhere;
    }

    body.app-user .dashboard-insight-head strong{
        flex:0 0 auto;
        font-size:clamp(14px, 4.6vw, 18px);
        max-width:46%;
        overflow-wrap:anywhere;
        text-align:right;
        white-space:normal;
    }

    body.app-user .dashboard-sales-row{
        grid-template-columns:42px minmax(0,1fr) minmax(64px,auto);
        gap:7px;
        min-width:0;
        padding:8px;
    }

    body.app-user .dashboard-sales-value{
        min-width:0;
    }

    body.app-user .dashboard-sales-value strong,
    body.app-user .dashboard-sales-value small{
        max-width:100%;
        overflow-wrap:anywhere;
        white-space:normal;
    }

    body.app-user .dashboard-status-row > div:first-child,
    body.app-user .dashboard-top-row{
        align-items:flex-start;
        min-width:0;
    }

    body.app-user .dashboard-status-row span,
    body.app-user .dashboard-status-row strong,
    body.app-user .dashboard-top-row span,
    body.app-user .dashboard-top-row strong{
        min-width:0;
        overflow-wrap:anywhere;
        white-space:normal;
    }

    body.app-user .dashboard-status-meter{
        min-width:0;
    }
}

@media (max-width: 390px){
    body.app-user .main-content > .row.g-3 > [class*="col-"]{
        flex-basis:100%;
        max-width:100%;
    }
}

/* Capacitacion: pantalla mas limpia y avance compacto */
.training-embed-card{
    min-height:calc(100vh - 150px);
}

.training-embed-card iframe{
    height:calc(100vh - 150px);
}

.training-master-unlock{
    border-radius:16px;
    gap:8px;
    grid-template-columns:30px minmax(0,1fr) auto;
    margin:10px 0 90px;
    padding:9px 12px;
    position:relative;
    z-index:1;
}

.training-master-medal{
    border-radius:10px;
    font-size:15px;
    height:30px;
    width:30px;
}

.training-master-unlock span{
    font-size:9px;
}

.training-master-unlock h3{
    font-size:14px;
    line-height:1.1;
    margin:1px 0 0;
}

.training-master-unlock p{
    display:none;
}

.training-complete-btn-large{
    min-height:32px;
    min-width:0;
    padding:7px 11px;
    font-size:12px;
}

@media (max-width: 768px){
    .training-embed-card{
        min-height:calc(100vh - 96px);
    }

    .training-embed-card iframe{
        height:calc(100vh - 96px);
    }

    .training-master-unlock{
        align-items:center;
        grid-template-columns:26px minmax(0,1fr) auto;
        margin:8px 0 112px;
        padding:8px 9px;
    }

    .training-master-medal{
        border-radius:9px;
        font-size:13px;
        height:26px;
        width:26px;
    }

    .training-master-unlock span{
        display:none;
    }

    .training-master-unlock h3{
        font-size:12px;
        line-height:1.12;
    }

    .training-master-unlock p{
        display:none;
    }

    .training-complete-btn-large{
        grid-column:auto;
        min-height:30px;
        padding:6px 9px;
        width:auto;
        white-space:nowrap;
    }
}

@media (max-width: 430px){
    .training-master-unlock{
        grid-template-columns:24px minmax(0,1fr);
    }

    .training-complete-btn-large{
        grid-column:1 / -1;
        width:100%;
    }
}

/* Gamificacion desactivada: ocultar insignias del usuario. */
.sidebar-master-badge{display:none!important}

