/* ===== RESTAURANTE V7: PANEL COMERCIAL MODERNO ===== */
#s-home-rest{background:#f6f8f7;}
#s-home-rest .hdr{
  background:linear-gradient(145deg,#123b27 0%,var(--verde2) 48%,var(--verde) 100%);
  padding:14px 16px 12px;border-radius:0 0 26px 26px;
  box-shadow:0 10px 28px rgba(17,74,47,.16);position:relative;overflow:hidden;
}
#s-home-rest .hdr:before{content:"";position:absolute;width:170px;height:170px;border-radius:50%;right:-72px;top:-86px;background:rgba(255,255,255,.08);}
#s-home-rest .hdr:after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;left:-56px;bottom:-70px;background:rgba(255,209,102,.08);}
#s-home-rest .hdr-row,#s-home-rest .rest-kpi-grid,#s-home-rest .rest-top-tabs{position:relative;z-index:2;}
#s-home-rest .rest-brand-block{min-width:0;display:flex;align-items:center;gap:10px;}
#s-home-rest .rest-brand-copy{min-width:0;}
#s-home-rest .rest-dashboard-kicker{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.14em;color:rgba(255,255,255,.62);margin-bottom:3px;}
#s-home-rest #rest-hdr-sub{margin:0;color:#fff;font-size:12px;font-weight:850;white-space:normal;overflow:visible;max-width:260px;line-height:1.35;}
#s-home-rest #rest-avatar-hdr{width:42px!important;height:42px!important;border-radius:14px!important;background:rgba(255,255,255,.14)!important;border:1px solid rgba(255,255,255,.24)!important;font-size:17px!important;box-shadow:0 7px 18px rgba(0,0,0,.12);}
#s-home-rest .top-notif-btn{width:42px;height:42px;border-radius:14px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);color:#fff;}
#s-home-rest .rest-kpi-grid{gap:8px;margin-top:14px;}
#s-home-rest .rest-kpi{background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.16);border-radius:16px;padding:10px 8px 9px;text-align:left;backdrop-filter:blur(10px);}
#s-home-rest .rest-kpi b{font-size:16px;line-height:1.05;color:#fff;}
#s-home-rest .rest-kpi span{margin-top:5px;font-size:8px;color:rgba(255,255,255,.65);}
#s-home-rest .rest-top-tabs{display:flex;gap:7px;margin-top:11px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;}
#s-home-rest .rest-top-tabs::-webkit-scrollbar{display:none;}
#s-home-rest .rest-top-tabs .admin-tab{flex:0 0 auto;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.10);color:rgba(255,255,255,.76);border-radius:999px;padding:8px 11px;font-size:9px;font-weight:900;box-shadow:none;display:flex;align-items:center;gap:6px;}
#s-home-rest .rest-top-tabs .admin-tab i{font-size:10px;}
#s-home-rest .rest-top-tabs .admin-tab.on{background:#fff;color:var(--verde2);border-color:#fff;}
#s-home-rest>.content{padding-top:14px;}
#s-home-rest #rest-aprobacion-box{border-radius:16px!important;padding:12px 13px!important;margin-bottom:12px!important;box-shadow:0 4px 14px rgba(112,91,22,.05);}
#s-home-rest .rest-status-card{border-radius:18px;padding:13px;box-shadow:0 5px 18px rgba(26,49,38,.06);border:1px solid rgba(23,72,46,.08);}
#s-home-rest .rest-status-icon{width:40px;height:40px;border-radius:13px;font-size:16px;}
#s-home-rest .pedido-card{border-radius:18px!important;padding:14px!important;margin-bottom:11px!important;box-shadow:0 5px 18px rgba(20,36,28,.055)!important;}
#s-home-rest .rest-order-top{margin-bottom:8px;}
#s-home-rest .rest-client-chip{border-radius:13px;background:#f8faf9;}
#s-home-rest .rest-money-box{border-radius:13px;background:#f7faf8;}
#s-home-rest .rest-money-box b{color:var(--verde2);}
#s-home-rest .rest-action-row .btn{min-height:38px;border-radius:12px;box-shadow:none;}
#s-home-rest .menu-top-actions{gap:8px;}
#s-home-rest .menu-top-actions .btn{border-radius:13px;}
#s-home-rest .rest-menu-card{border-radius:18px;padding:11px;align-items:center;box-shadow:0 4px 15px rgba(20,36,28,.05);}
#s-home-rest .rest-menu-cover{width:74px;height:74px;min-width:74px;border-radius:15px;overflow:hidden;background:#f1f5f3;}
#s-home-rest .rest-menu-cover img{width:100%;height:100%;object-fit:cover;}
#s-home-rest .rest-menu-actions{gap:5px;}
#s-home-rest .rest-mini-btn{width:32px;height:32px;border-radius:11px;}
#s-home-rest .rest-section-title{font-size:9px;letter-spacing:.09em;margin:5px 1px 10px;}
#s-home-rest #btn-agregar-plato{border-radius:14px;min-height:44px;box-shadow:0 5px 16px rgba(32,138,80,.14);}
#s-home-rest #rest-panel-info .pro-card,#s-home-rest #rest-panel-historial .pro-card,#s-home-rest #rest-panel-resenas .pro-card{border-radius:18px;box-shadow:0 4px 16px rgba(20,36,28,.05);}
#s-home-rest .bnav{border-top:1px solid rgba(15,25,35,.06);box-shadow:0 -8px 28px rgba(15,25,35,.07);}
#s-home-rest .bnav .ni.on{background:var(--verde3);color:var(--verde2);border-radius:14px;}

/* ===== RESTAURANTE V8: EXPERIENCIA MOBILE-FIRST ===== */
@media(max-width:759px){
  #s-home-rest{overflow-x:hidden;}
  #s-home-rest .hdr{padding:10px 12px 9px;border-radius:0 0 20px 20px;}
  #s-home-rest .hdr-row{min-height:38px;}
  #s-home-rest .rest-dashboard-kicker{font-size:8px;margin-bottom:1px;}
  #s-home-rest #rest-hdr-sub{font-size:14px;max-width:190px;}
  #s-home-rest #rest-avatar-hdr,
  #s-home-rest .top-notif-btn{width:38px!important;height:38px!important;border-radius:12px!important;}

  #s-home-rest .rest-kpi-grid{gap:5px;margin-top:8px;}
  #s-home-rest .rest-kpi{min-width:0;padding:7px 6px 6px;border-radius:11px;}
  #s-home-rest .rest-kpi b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  #s-home-rest .rest-kpi span{font-size:7px;margin-top:3px;letter-spacing:.035em;}

  /* La barra inferior ya contiene Pedidos, Menú e Historial. Arriba dejamos
     únicamente las opciones secundarias para no repetir la navegación. */
  #s-home-rest .rest-top-tabs{margin-top:7px;gap:6px;padding:0;}
  #s-home-rest #rest-tab-pedidos,
  #s-home-rest #rest-tab-menu,
  #s-home-rest #rest-tab-historial{display:none!important;}
  #s-home-rest .rest-top-tabs .admin-tab{padding:6px 9px;min-height:30px;font-size:8px;}

  #s-home-rest>.content{padding:10px 10px calc(92px + env(safe-area-inset-bottom));}
  #s-home-rest #rest-aprobacion-box{padding:9px 10px!important;margin-bottom:9px!important;font-size:10.5px!important;line-height:1.35;}
  #s-home-rest .rest-status-card{padding:10px;margin-bottom:9px;border-radius:14px;gap:8px;}
  #s-home-rest .rest-status-left{gap:8px;}
  #s-home-rest .rest-status-icon{width:34px;height:34px;border-radius:10px;font-size:14px;}
  #s-home-rest .rest-status-card .pro-title{font-size:12px;}
  #s-home-rest .rest-status-card .pro-text{font-size:10px;}
  #s-home-rest .rest-status-card>.btn{min-height:38px;padding:7px 10px;font-size:10px;}

  #s-home-rest .pedido-card{padding:11px!important;margin-bottom:9px!important;border-radius:15px!important;}
  #s-home-rest .rest-order-top{align-items:center;margin-bottom:6px;}
  #s-home-rest .ped-id{font-size:9px;}
  #s-home-rest .ped-resto{font-size:13px;}
  #s-home-rest .rest-client-chip{padding:7px 8px;margin-top:7px;}
  #s-home-rest .rest-client-chip>div:first-child{width:30px!important;height:30px!important;font-size:15px!important;border-radius:9px!important;}
  #s-home-rest .rest-client-chip div[style*="font-size:13px"]{font-size:12px!important;}
  #s-home-rest .rest-client-chip div[style*="font-size:11px"]{font-size:10px!important;}
  #s-home-rest .rest-client-chip+div{padding:8px 9px!important;margin-top:7px!important;}
  #s-home-rest .ped-items{font-size:11px;line-height:1.45;}
  #s-home-rest .rest-money-row{gap:6px;margin-top:7px;}
  #s-home-rest .rest-money-box{padding:7px 8px;border-radius:10px;}
  #s-home-rest .rest-money-box small{font-size:7px;}
  #s-home-rest .rest-money-box b{font-size:13px;}
  /* El neto ya aparece justo arriba en dólares y bolívares. */
  #s-home-rest .rest-money-row+div[style*="background:var(--gris)"]{display:none;}
  #s-home-rest .rest-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
  #s-home-rest .rest-action-row .btn{width:100%;min-height:44px;padding:9px 8px;font-size:11px;}
  #s-home-rest .rest-action-row .btn:only-child{grid-column:1/-1;}
  #s-home-rest .cod-recogida-box{padding:11px!important;}

  #s-home-rest .menu-top-actions{gap:6px;margin-bottom:8px;}
  #s-home-rest .menu-top-actions .btn{min-height:42px;padding:8px;font-size:10px;}
  #s-home-rest .rest-menu-card{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:9px;border-radius:14px;margin-bottom:8px;}
  #s-home-rest .rest-menu-cover{width:58px;height:58px;min-width:58px;border-radius:12px;}
  #s-home-rest .rest-menu-card .dname{font-size:13px!important;}
  #s-home-rest .rest-menu-card .ddesc{font-size:10px!important;line-height:1.35!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  #s-home-rest .rest-menu-details{gap:4px;margin-top:5px;}
  #s-home-rest .menu-chip,#s-home-rest .offer-chip{font-size:8px;padding:3px 6px;}
  #s-home-rest .rest-menu-actions{width:100%;flex-direction:row;gap:6px;padding-top:7px;border-top:1px solid var(--gris2);}
  #s-home-rest .rest-mini-btn{flex:1;width:auto;height:40px;border-radius:10px;font-size:14px;}
  #s-home-rest #btn-agregar-plato{min-height:46px;margin-top:8px!important;}

  #s-home-rest .bnav{padding:5px 4px calc(8px + env(safe-area-inset-bottom));}
  #s-home-rest .bnav .ni{min-width:0;padding:6px 2px;font-size:8px;}
  #s-home-rest .bnav .ni svg{width:19px;height:19px;margin-bottom:3px;}
  #s-home-rest .bnav .ni.on{border-radius:11px;}
}
@media(max-width:380px){
  #s-home-rest #rest-hdr-sub{max-width:155px;}
  #s-home-rest .rest-kpi{padding:9px 7px;}
  #s-home-rest .rest-kpi b{font-size:14px;}
  #s-home-rest .rest-menu-cover{width:64px;height:64px;min-width:64px;}
}


