:root{--bg:#0b1020;--panel:#121a2e;--panel2:#18223a;--line:#263454;--text:#edf2ff;--muted:#94a3bd;--accent:#38d39f;--accent2:#2fb787;--danger:#ff6b6b;--warning:#ffc857;--info:#58a6ff;--radius:15px}*{box-sizing:border-box}body{margin:0;background:#080d19;color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif;font-size:14px}.app-shell{display:flex;min-height:100vh}.sidebar{width:245px;background:#0d1426;border-right:1px solid var(--line);padding:18px 14px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;overflow:auto}.brand{display:flex;gap:11px;align-items:center;padding:4px 5px 20px}.brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--accent),#238eec);display:grid;place-items:center;font-weight:900;color:#06120d}.brand strong{display:block;font-size:16px}.brand small,.sidebar-user small{display:block;color:var(--muted);margin-top:3px}.sidebar nav{display:grid;gap:3px}.sidebar nav a{color:#bec9df;text-decoration:none;padding:10px 11px;border-radius:10px;display:flex;align-items:center;gap:11px}.sidebar nav a span{width:20px;text-align:center}.sidebar nav a:hover,.sidebar nav a.active{background:#17213a;color:white}.sidebar nav a.active{box-shadow:inset 3px 0 var(--accent)}.sidebar-user{margin-top:auto;padding:14px 8px 5px;border-top:1px solid var(--line)}.sidebar-user a{color:#ff9191;display:inline-block;margin-top:8px;text-decoration:none}.main{margin-left:245px;width:calc(100% - 245px)}.topbar{height:85px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 25px;background:rgba(12,18,33,.94);position:sticky;top:0;z-index:10}.topbar h1{margin:0;font-size:22px}.topbar p{margin:4px 0 0;color:var(--muted)}.top-actions{display:flex;gap:9px}.content{padding:24px}.grid{display:grid;gap:16px}.grid.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.two{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:repeat(3,1fr)}.card{background:linear-gradient(180deg,#131c31,#10182a);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:0 10px 30px rgba(0,0,0,.12)}.kpi small{color:var(--muted);text-transform:uppercase;font-size:11px;letter-spacing:.08em}.kpi strong{display:block;font-size:25px;margin-top:8px}.kpi em{font-style:normal;font-size:12px;color:var(--accent)}.section-title{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px}.section-title h2{font-size:17px;margin:0}.btn{border:0;border-radius:9px;padding:10px 14px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-weight:700;color:white;background:#293653}.btn.primary{background:var(--accent);color:#062018}.btn.danger{background:#7f2d3d}.btn.warning{background:#765c21}.btn.info{background:#255b91}.btn.ghost{background:transparent;border:1px solid var(--line)}.btn.small{padding:6px 9px;font-size:12px}.toolbar{display:flex;gap:9px;flex-wrap:wrap;align-items:end;margin-bottom:14px}.field{display:grid;gap:6px}.field label{color:#c8d2e6;font-size:12px;font-weight:700}.input,select,textarea{width:100%;background:#0c1426;border:1px solid #2a3857;color:white;border-radius:9px;padding:10px 11px;outline:none}.input:focus,select:focus,textarea:focus{border-color:var(--accent)}textarea{min-height:90px;resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.form-grid .span2{grid-column:span 2}.form-grid .span4{grid-column:span 4}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}.table{width:100%;border-collapse:collapse;min-width:850px}.table th{background:#18233c;color:#aebbd3;text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.05em;padding:12px;position:sticky;top:0}.table td{padding:11px 12px;border-top:1px solid #23304b;vertical-align:middle}.table tbody tr:hover{background:#162038}.right{text-align:right!important}.center{text-align:center!important}.badge{display:inline-block;border-radius:20px;padding:5px 8px;background:#263553;font-size:11px}.badge.ok{background:#174b3c;color:#84f0c6}.badge.warn{background:#614b1c;color:#ffe69b}.badge.bad{background:#612b38;color:#ffb1bd}.alert{padding:12px 14px;border-radius:10px;margin-bottom:14px}.alert.success{background:#153f35;border:1px solid #25725e}.alert.error{background:#4d2430;border:1px solid #8f3b50}.alert.warning{background:#50411f;border:1px solid #876e2c}.muted{color:var(--muted)}.value-positive{color:#62e6b6}.value-negative{color:#ff8797}.actions{display:flex;gap:5px;white-space:nowrap}.chart-bars{height:220px;display:flex;align-items:end;gap:8px;padding-top:18px}.chart-bar{flex:1;min-width:18px;background:linear-gradient(180deg,#43e0ad,#1d8f6c);border-radius:7px 7px 0 0;position:relative}.chart-bar span{position:absolute;bottom:-22px;left:50%;transform:translateX(-50%);font-size:10px;color:var(--muted)}.chart-bar b{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:10px}.empty{padding:30px;text-align:center;color:var(--muted)}.modal{position:fixed;inset:0;background:rgba(0,0,0,.72);display:none;align-items:center;justify-content:center;z-index:50}.modal.open{display:flex}.modal-box{width:min(780px,94vw);max-height:90vh;overflow:auto;background:#10192c;border:1px solid var(--line);border-radius:16px;padding:20px}.modal-head{display:flex;justify-content:space-between;align-items:center}.close{font-size:24px;background:none;border:0;color:white;cursor:pointer}.status-dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:6px}.status-dot.green{background:var(--accent)}.status-dot.red{background:var(--danger)}@media(max-width:1100px){.grid.cards{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.sidebar{width:74px;padding:13px 8px}.brand>div:last-child,.sidebar nav a:not(.active){font-size:0}.sidebar nav a{justify-content:center}.sidebar nav a span{font-size:18px}.sidebar-user strong,.sidebar-user small{display:none}.main{margin-left:74px;width:calc(100% - 74px)}.topbar{padding:0 14px}.top-actions .ghost{display:none}.content{padding:14px}.grid.cards,.grid.two,.grid.three,.form-grid{grid-template-columns:1fr}.form-grid .span2,.form-grid .span4{grid-column:auto}}
/* PDV */.pdv-layout{display:grid;grid-template-columns:1.5fr .9fr;gap:16px}.pdv-search{display:flex;gap:8px}.pdv-search .input{font-size:18px;padding:14px}.search-results{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px;max-height:290px;overflow:auto}.product-tile{background:#17223b;border:1px solid #263654;border-radius:10px;padding:11px;cursor:pointer}.product-tile:hover{border-color:var(--accent)}.product-tile strong{display:block}.product-tile small{color:var(--muted)}.cart-list{max-height:400px;overflow:auto}.cart-row{display:grid;grid-template-columns:1fr 70px 95px 35px;gap:7px;align-items:center;padding:9px 0;border-bottom:1px solid #25314b}.qty{display:flex}.qty button{background:#293754;border:0;color:white;width:24px}.qty input{width:38px;text-align:center;border:0;background:#111a2d;color:white}.total-box{background:#0c1425;border:1px solid var(--line);border-radius:13px;padding:16px;margin-top:14px}.total-line{display:flex;justify-content:space-between;margin:8px 0}.total-main{font-size:26px;font-weight:900;color:var(--accent)}@media(max-width:980px){.pdv-layout{grid-template-columns:1fr}.search-results{grid-template-columns:repeat(2,1fr)}}
/* print */@media print{.sidebar,.topbar,.no-print{display:none!important}.main{margin:0;width:100%}.content{padding:0}.card{border:0;box-shadow:none;background:white;color:black}.table th{color:black;background:#eee}.table td{border-color:#ddd}}

/* ==========================================================
   GS_MERCADO_FASE10C_PDV_VISUAL
   ========================================================== */

.pdv10-shell{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.pdv10-contextbar{
    display:grid;
    grid-template-columns:1.2fr 1.2fr 1fr auto;
    gap:10px;
    align-items:center;
    background:#10192c;
    border:1px solid var(--line);
    border-radius:14px;
    padding:12px 16px;
}

.pdv10-contextbar>div{
    min-width:0;
}

.pdv10-contextbar strong{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.pdv10-context-label,
.pdv10-eyebrow{
    display:block;
    font-size:10px;
    font-weight:800;
    letter-spacing:.09em;
    color:var(--muted);
    margin-bottom:3px;
}

.pdv10-context-status{
    display:flex;
    align-items:center;
    gap:7px;
    font-weight:800;
}

.pdv10-context-status a{
    color:var(--warning);
}

.pdv10-open-dot,
.pdv10-closed-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    display:inline-block;
}

.pdv10-open-dot{
    background:var(--accent);
    box-shadow:0 0 12px rgba(56,211,159,.65);
}

.pdv10-closed-dot{
    background:var(--danger);
}

.pdv10-tabsbar{
    display:flex;
    gap:10px;
    align-items:stretch;
}

.pdv10-tabs{
    flex:1;
    display:flex;
    gap:7px;
    overflow-x:auto;
    min-width:0;
    padding-bottom:2px;
}

.pdv10-tab{
    flex:0 0 auto;
    min-width:142px;
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:space-between;
    background:#111a2d;
    border:1px solid #263654;
    border-radius:11px;
    padding:9px 8px 9px 12px;
    cursor:pointer;
    transition:.15s;
}

.pdv10-tab:hover{
    border-color:#4d6084;
}

.pdv10-tab.active{
    background:#17372f;
    border-color:var(--accent);
    box-shadow:0 0 0 1px rgba(56,211,159,.12);
}

.pdv10-tab strong,
.pdv10-tab small{
    display:block;
}

.pdv10-tab small{
    color:var(--muted);
    margin-top:2px;
}

.pdv10-tab button{
    border:0;
    width:25px;
    height:25px;
    border-radius:7px;
    cursor:pointer;
    background:rgba(255,107,107,.11);
    color:#ff96a0;
    font-size:17px;
}

.pdv10-new-sale{
    flex:0 0 auto;
    min-width:145px;
}

.pdv10-toolbar{
    display:flex;
    align-items:center;
    gap:10px;
}

.pdv10-searchbox{
    flex:1;
    min-width:0;
    position:relative;
    display:flex;
    gap:8px;
}

.pdv10-searchbox .input{
    flex:1;
    padding:15px 14px 15px 45px;
    font-size:18px;
    font-weight:600;
}

.pdv10-search-icon{
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    z-index:2;
    font-size:24px;
    color:var(--accent);
}

.pdv10-save-status{
    flex:0 0 100px;
    text-align:center;
    font-size:12px;
    color:var(--muted);
}

.pdv10-save-status.saved{
    color:var(--accent);
}

.pdv10-save-status.saving{
    color:var(--warning);
}

.pdv10-save-status.error{
    color:var(--danger);
}

.pdv10-search-results{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:8px;
}

.pdv10-search-empty{
    grid-column:1/-1;
    background:#121a2e;
    border:1px solid var(--line);
    border-radius:12px;
    padding:18px;
    text-align:center;
    color:var(--muted);
}

.pdv10-product-tile{
    appearance:none;
    text-align:left;
    color:var(--text);
    background:#121a2e;
    border:1px solid #263654;
    border-radius:12px;
    padding:8px;
    cursor:pointer;
    min-width:0;
}

.pdv10-product-tile:hover{
    border-color:var(--accent);
    transform:translateY(-1px);
}

.pdv10-product-image,
.pdv10-no-image{
    width:100%;
    height:90px;
    border-radius:9px;
    object-fit:contain;
    background:#0c1425;
    margin-bottom:7px;
}

.pdv10-no-image{
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
}

.pdv10-product-tile strong{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.pdv10-product-tile small,
.pdv10-product-tile span{
    display:block;
    margin-top:3px;
    color:var(--muted);
    font-size:11px;
}

.pdv10-product-tile b{
    display:block;
    font-size:17px;
    color:var(--accent);
    margin-top:7px;
}

.pdv10-main{
    display:grid;
    grid-template-columns:minmax(0,1.65fr) minmax(310px,.65fr);
    gap:12px;
    min-height:570px;
}

.pdv10-items-panel,
.pdv10-summary-panel{
    background:#10192c;
    border:1px solid var(--line);
    border-radius:15px;
}

.pdv10-items-panel{
    display:flex;
    flex-direction:column;
    min-width:0;
    overflow:hidden;
}

.pdv10-panel-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:15px 17px;
    border-bottom:1px solid var(--line);
}

.pdv10-panel-head h2{
    margin:0;
}

.pdv10-panel-actions{
    display:flex;
    gap:6px;
}

.pdv10-cart{
    flex:1;
    overflow:auto;
    padding:0 14px 14px;
}

.pdv10-empty-cart{
    min-height:390px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:var(--muted);
}

.pdv10-empty-cart>div{
    font-size:60px;
    opacity:.65;
    margin-bottom:10px;
}

.pdv10-empty-cart strong{
    font-size:20px;
    color:var(--text);
    margin-bottom:5px;
}

.pdv10-cart-row{
    display:grid;
    grid-template-columns:minmax(240px,1fr) 145px 105px 115px 32px;
    gap:10px;
    align-items:center;
    min-height:84px;
    padding:10px 2px;
    border-bottom:1px solid #222f4a;
}

.pdv10-cart-product{
    display:grid;
    grid-template-columns:62px minmax(0,1fr);
    gap:10px;
    align-items:center;
    min-width:0;
}

.pdv10-cart-image,
.pdv10-cart-product .pdv10-no-image{
    width:62px;
    height:62px;
    margin:0;
    object-fit:contain;
    border-radius:9px;
    background:#0c1425;
}

.pdv10-cart-product strong{
    display:block;
    font-size:15px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.pdv10-cart-product small{
    color:var(--muted);
    display:block;
    margin-top:4px;
}

.pdv10-promo{
    display:inline-block;
    font-size:11px;
    color:var(--accent);
    margin-top:4px;
}

.pdv10-cart-qty{
    display:grid;
    grid-template-columns:34px 1fr 34px;
    align-items:center;
    border:1px solid #30405e;
    border-radius:9px;
    overflow:hidden;
}

.pdv10-cart-qty button{
    height:38px;
    border:0;
    background:#21304b;
    color:white;
    cursor:pointer;
    font-size:18px;
}

.pdv10-cart-qty input{
    width:100%;
    height:38px;
    border:0;
    border-left:1px solid #30405e;
    border-right:1px solid #30405e;
    background:#0e1728;
    color:white;
    text-align:center;
    outline:none;
}

.pdv10-cart-price small,
.pdv10-cart-total small{
    display:block;
    font-size:9px;
    color:var(--muted);
    margin-bottom:3px;
}

.pdv10-cart-price strong{
    font-size:14px;
}

.pdv10-cart-total strong{
    font-size:16px;
    color:var(--accent);
}

.pdv10-remove-item{
    border:0;
    border-radius:8px;
    height:32px;
    cursor:pointer;
    color:#ff96a0;
    background:rgba(255,107,107,.1);
    font-size:18px;
}

.pdv10-summary-panel{
    padding:14px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.pdv10-current-product{
    min-height:125px;
    display:grid;
    grid-template-columns:110px minmax(0,1fr);
    gap:12px;
    align-items:center;
    background:#0c1425;
    border:1px solid #25344f;
    border-radius:13px;
    padding:10px;
}

.pdv10-current-image,
.pdv10-current-product>.pdv10-no-image,
.pdv10-product-placeholder{
    width:110px;
    height:105px;
    border-radius:10px;
    object-fit:contain;
    background:#111d32;
}

.pdv10-product-placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:43px;
}

.pdv10-current-copy{
    min-width:0;
}

.pdv10-current-copy strong{
    display:block;
    font-size:17px;
    overflow:hidden;
    text-overflow:ellipsis;
}

.pdv10-current-copy small{
    display:block;
    color:var(--muted);
    margin-top:5px;
}

.pdv10-current-copy b{
    display:block;
    margin-top:9px;
    font-size:23px;
    color:var(--accent);
}

.pdv10-field label{
    display:block;
    margin-bottom:5px;
    color:var(--muted);
    font-size:11px;
    font-weight:700;
}

.pdv10-field select,
.pdv10-field .input{
    width:100%;
}

.pdv10-total-box{
    background:#0b1323;
    border:1px solid #263654;
    border-radius:13px;
    padding:13px;
}

.pdv10-total-line{
    display:flex;
    justify-content:space-between;
    padding:5px 0;
}

.pdv10-grand-total{
    border-top:1px solid #293752;
    margin-top:8px;
    padding-top:12px;
    display:flex;
    justify-content:space-between;
    align-items:end;
}

.pdv10-grand-total span{
    font-size:13px;
    font-weight:800;
}

.pdv10-grand-total strong{
    font-size:34px;
    color:var(--accent);
    line-height:1;
}

.pdv10-cash-alert{
    margin:0;
}

.pdv10-finish{
    width:100%;
    min-height:60px;
    font-size:17px;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
}

.pdv10-finish span{
    background:rgba(0,0,0,.18);
    border-radius:6px;
    padding:4px 7px;
    font-size:11px;
}

.pdv10-finish:disabled{
    opacity:.45;
    cursor:not-allowed;
}

.pdv10-shortcuts{
    display:flex;
    justify-content:space-between;
    gap:5px;
    color:var(--muted);
    font-size:10px;
}

.pdv10-shortcuts span{
    white-space:nowrap;
}

.pdv10-shortcuts kbd{
    color:var(--text);
    background:#202d46;
    border:1px solid #344664;
    border-radius:5px;
    padding:2px 4px;
}

.pdv10-payment-modal{
    width:min(850px,95vw);
}

.pdv10-payments{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin:14px 0 10px;
}

.pdv10-payment-row{
    display:grid;
    grid-template-columns:minmax(180px,1fr) 180px 110px 40px;
    gap:8px;
    align-items:end;
    padding:10px;
    border:1px solid #263654;
    border-radius:10px;
    background:#0c1425;
}

.pdv10-payment-row .field{
    margin:0;
}

.pdv10-remove-payment{
    height:39px;
}

.pdv10-due-date{
    margin-top:13px;
}

.pdv10-payment-summary{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:9px;
    margin-top:14px;
}

.pdv10-payment-summary>div{
    background:#0c1425;
    border:1px solid #263654;
    border-radius:10px;
    padding:12px;
}

.pdv10-payment-summary small{
    display:block;
    color:var(--muted);
    font-size:10px;
}

.pdv10-payment-summary strong{
    display:block;
    font-size:22px;
    margin-top:4px;
}

.pdv10-payment-summary>div:last-child strong{
    color:var(--accent);
}

.pdv10-payment-actions{
    margin-top:15px;
}

@media(max-width:1350px){

    .pdv10-search-results{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }

    .pdv10-cart-row{
        grid-template-columns:minmax(220px,1fr) 130px 90px 100px 32px;
    }
}

@media(max-width:1100px){

    .pdv10-contextbar{
        grid-template-columns:1fr 1fr;
    }

    .pdv10-main{
        grid-template-columns:1fr;
    }

    .pdv10-summary-panel{
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .pdv10-current-product,
    .pdv10-total-box,
    .pdv10-finish,
    .pdv10-shortcuts,
    .pdv10-cash-alert{
        grid-column:1/-1;
    }

    .pdv10-search-results{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media(max-width:760px){

    .pdv10-tabsbar{
        flex-direction:column;
    }

    .pdv10-new-sale{
        width:100%;
    }

    .pdv10-toolbar{
        flex-direction:column;
        align-items:stretch;
    }

    .pdv10-save-status{
        text-align:right;
    }

    .pdv10-search-results{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .pdv10-panel-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .pdv10-cart-row{
        grid-template-columns:1fr 32px;
        gap:8px;
    }

    .pdv10-cart-product,
    .pdv10-cart-qty,
    .pdv10-cart-price,
    .pdv10-cart-total{
        grid-column:1/2;
    }

    .pdv10-remove-item{
        grid-column:2/3;
        grid-row:1/2;
    }

    .pdv10-summary-panel{
        grid-template-columns:1fr;
    }

    .pdv10-current-product,
    .pdv10-total-box,
    .pdv10-finish,
    .pdv10-shortcuts,
    .pdv10-cash-alert{
        grid-column:auto;
    }

    .pdv10-payment-row{
        grid-template-columns:1fr;
    }

    .pdv10-payment-summary{
        grid-template-columns:1fr;
    }
}
