/* Restaurant only. Shared administration screens retain their original styles. */
/* Navigation and permissions are scoped to the selected Restaurant business. */
body.restaurant-mode #nav-creditos,body.restaurant-mode #nav-separe,body.restaurant-mode #nav-remisiones,body.restaurant-mode [data-mobile-view="creditos"],body.restaurant-mode [data-mobile-view="separe"],body.restaurant-mode [data-mobile-view="remisiones"],body.restaurant-mode #view-ventas .grid:has(>button[onclick="openModal('modal-credit-sale')"]),body.restaurant-mode .r-shared-permissions,body.restaurant-mode .r-shared-description,body.restaurant-mode #ad-role-help{display:none!important}
.r-role-guide,.r-role-summary{border:1px solid #d8ece9;background:#f2fbf9;border-radius:12px;padding:14px;margin:14px 0;color:#285367}.r-role-guide h3{font-size:14px;font-weight:800;margin-bottom:9px}.r-role-guide p,.r-role-summary p{font-size:12px;line-height:1.65;margin-top:7px}.r-setup-actions{display:flex;flex-wrap:wrap;gap:9px}.r-dialog.r-more-dialog{max-width:540px}.r-more-dialog header{position:sticky;top:0;background:#fff;z-index:1}.r-more-links button{min-height:48px}.r-page,.r-page>*{min-width:0}.r-page input,.r-page select,.r-page textarea{max-width:100%;box-sizing:border-box}
body.restaurant-mode nav#r-mobile-nav{grid-template-columns:repeat(var(--r-nav-count,5),minmax(0,1fr))}
.r-role-guide{display:none}body.restaurant-mode .r-role-guide{display:block}
@media(max-width:767px){body.restaurant-mode main>.flex-1.overflow-auto{bottom:calc(66px + env(safe-area-inset-bottom))!important}body.restaurant-mode #view-restaurant .r-setup-actions{display:grid;width:100%;gap:8px}.r-dialog.r-more-dialog{max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));width:calc(100% - 24px);padding:16px}.r-role-summary{margin:8px 0 12px;padding:11px}.r-more-links button{font-size:13px;padding:13px 8px}.r-heading-actions{width:100%}.r-heading-actions>*{min-width:0!important}}
@media(min-width:768px) and (max-width:1100px){body.restaurant-mode .r-orders-layout{grid-template-columns:minmax(0,1fr)}body.restaurant-mode .r-kitchen-board{grid-template-columns:repeat(2,minmax(0,1fr))}body.restaurant-mode .r-kitchen-column{min-width:0}body.restaurant-mode .r-heading{align-items:flex-start;flex-wrap:wrap}body.restaurant-mode .r-heading-actions{flex:1;justify-content:flex-end}body.restaurant-mode .r-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
#r-sidebar-nav,#r-mobile-nav{display:none}body.restaurant-mode{--r-ink:#0c2443;--r-muted:#62758f;--r-teal:#00a899;--r-blue:#149ef2;--r-border:#dce7f0}body.restaurant-mode #sidebar{background:linear-gradient(160deg,#102d42,#092139);border:0}body.restaurant-mode #sidebar nav>#r-sidebar-nav{display:block}body.restaurant-mode #sidebar nav>#nav-dashboard,body.restaurant-mode #sidebar nav>#nav-ventas,body.restaurant-mode #sidebar nav>#nav-inventario,body.restaurant-mode #sidebar nav>#nav-clientes,body.restaurant-mode #sidebar nav>#nav-facturacion{display:none!important}#r-sidebar-nav p{padding:16px 12px 8px;color:#95b4c9;font-size:10px;letter-spacing:.08em;font-weight:800}#r-sidebar-nav button{display:flex;align-items:center;gap:13px;width:100%;padding:12px 14px;border-radius:9px;color:#d7e4ed;font-size:13px;text-align:left;margin:2px 0}#r-sidebar-nav button.active{background:linear-gradient(90deg,#006678,#005363);box-shadow:inset 3px 0 #1bdfd0;color:white}#r-sidebar-nav button i{width:18px;text-align:center}body.restaurant-mode #sidebar .ad-nav-label{display:none}body.restaurant-operating main{background:#f0f6fa}body.restaurant-operating #desktop-header{box-shadow:none;border-bottom:1px solid #e2ebf2}#view-restaurant{color:var(--r-ink)}.r-page{max-width:1580px;margin:0 auto;padding:24px 26px 30px;min-height:100%;font-size:13px}.r-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}.r-heading h1{font-size:27px;line-height:1.2;font-weight:900;letter-spacing:-.6px;margin:0 0 5px}.r-heading p{color:var(--r-muted);margin:0;font-size:14px}.r-heading-actions{display:flex;gap:8px;flex-wrap:wrap}.r-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 14px;min-height:39px;background:linear-gradient(100deg,#00ac9a,#009c9e);border:1px solid transparent;color:#fff;font-weight:800;font-size:12px;border-radius:8px;cursor:pointer;line-height:1.2;transition:background .15s,box-shadow .15s;box-sizing:border-box}.r-button:hover{box-shadow:0 3px 9px #009b9a25;background:#008f92}.r-button.secondary{background:white;border-color:#dce6f0;color:#165d8c;box-shadow:none}.r-button:disabled{opacity:.5;cursor:default}.r-button:focus-visible,.r-page button:focus-visible{outline:2px solid #138bc9;outline-offset:3px}.r-page button{font-family:inherit}.r-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.r-metric{min-width:0;border:1px solid var(--r-border);background:#fff;border-radius:11px;display:flex;align-items:center;gap:12px;padding:18px 16px;box-shadow:0 3px 15px #233c551f}.r-metric-icon{display:flex;align-items:center;justify-content:center;border-radius:50%;width:46px;height:46px;flex-shrink:0;font-size:23px}.r-metric-icon.teal{background:#e0faf5;color:#00ad9e}.r-metric-icon.blue{background:#e4f3ff;color:#169afa}.r-metric-icon.red{background:#fff0f3;color:#ff5268}.r-metric-icon.amber{background:#fff6e3;color:#ed9c00}.r-metric-icon.pink{background:#ffedf6;color:#e45ca8}.r-metric small{font-size:11px;color:var(--r-muted);font-weight:700;display:block;line-height:1.3}.r-metric strong{font-size:23px;font-weight:900;line-height:1.5;letter-spacing:-.6px;display:block;white-space:nowrap}.r-metric p{font-size:10px;color:#7c8fa6;margin:0}.r-card{background:#fff;border:1px solid var(--r-border);border-radius:11px;padding:18px;min-width:0;box-shadow:0 3px 16px #20445e08}.r-card h2{font-size:15px;font-weight:900;margin:0 0 15px}.r-card-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.r-card-title h2{margin:0}.r-card-title>.r-button{min-height:24px;padding:2px 0;border:0;color:#0794cb;font-size:11px;background:none}.r-card-title>span{font-size:11px;color:#7a8aa0}.r-home-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:16px}.r-home-grid>.r-live-orders{grid-column:2;grid-row:1}.r-home-grid>.r-card:nth-child(3){grid-column:1}.r-tabs{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;margin:0 0 15px;padding:2px 0 3px}.r-tabs button{padding:7px 12px;border:1px solid #e4edf4;background:#fafcfe;color:#526780;border-radius:6px;font-size:11px;white-space:nowrap;min-height:32px}.r-tabs button.active{background:linear-gradient(90deg,#00af98,#009da6);color:white;border-color:transparent;font-weight:800}.r-tabs small{font-size:10px}.r-tables{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.r-table{position:relative;min-width:0;min-height:130px;border:1px solid #c9eee8;background:linear-gradient(#f2fffb,#e5faf3);border-radius:10px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;padding:12px 5px;color:#087e6a}.r-table.occupied{background:linear-gradient(#fff4f4,#ffebeb);border-color:#ffcaca;color:#e8555d}.r-table.reserved{background:linear-gradient(#edf9ff,#e2f1ff);border-color:#bfdfff;color:#199aef}.r-table .r-table-icon{font-size:29px;margin-bottom:2px}.r-table strong{color:#14324a;font-size:13px;font-weight:900}.r-table small{font-size:10px;color:#607d87}.r-table>span:last-of-type{font-size:11px;font-weight:800}.r-table.selected{outline:2px solid #089eaa;outline-offset:2px}.r-floor-plan{padding:22px 18px;background-color:#f0f3ef;background-image:linear-gradient(90deg,#c8cec31a 1px,transparent 1px),linear-gradient(#c8cec31a 1px,transparent 1px);background-size:30px 30px;border:1px solid #d5dfdc;border-radius:8px;gap:24px}.r-floor-plan .r-table{box-shadow:0 4px 0 #cfd8ce;min-height:115px;border:2px solid #afdbcb;isolation:isolate}.r-floor-plan .r-table:before,.r-floor-plan .r-table:after{content:'';position:absolute;top:38%;height:30%;width:8px;border-radius:4px;background:#aed7ca;z-index:-1}.r-floor-plan .r-table:before{left:-10px}.r-floor-plan .r-table:after{right:-10px}.r-floor-plan .r-table.occupied{border-color:#f19c9e}.r-floor-plan .r-table.occupied:before,.r-floor-plan .r-table.occupied:after{background:#efa4a2}.r-floor-plan .r-table.reserved{border-color:#a8d5f6}.r-floor-plan .r-table.reserved:before,.r-floor-plan .r-table.reserved:after{background:#aad6f8}.r-floor-plan .r-table.round{border-radius:45%}.r-floor-plan .r-table-icon{display:none}.r-table-layout,.r-delivery-layout,.r-billing-layout,.r-inventory-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:18px}.r-detail dl{display:grid;grid-template-columns:1fr 1fr;gap:20px 10px;font-size:12px;margin:24px 0}.r-detail dt{color:#7890a5}.r-detail dt i{width:19px}.r-detail dd{margin:0;text-align:right;font-weight:800}.r-detail .r-button{width:100%;margin:4px 0}.r-action-stack{display:grid;gap:8px;margin-top:15px}.r-two-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.r-badge{display:inline-flex;align-items:center;gap:4px;border-radius:20px;padding:4px 8px;font-size:10px;font-weight:800;white-space:nowrap;background:#edf2f7;color:#5c718b}.r-badge:before{content:'';width:5px;height:5px;border:1px solid currentColor;border-radius:50%}.r-badge.pending{background:#fff0ce;color:#c58900}.r-badge.preparing,.r-badge.on_way{background:#e2f2ff;color:#078ee9}.r-badge.ready,.r-badge.delivered,.r-badge.paid{background:#dffbf0;color:#00a47c}.r-badge.served{background:#e7edf7;color:#6580a5}.r-badge.cancelled{background:#ffe9ee;color:#ed4662}.r-orders-layout{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.6fr);gap:16px}.r-order-card{display:block;width:100%;text-align:left;background:#fff;border:1px solid #e3ebf3;border-left:3px solid #ed7180;border-radius:8px;padding:12px;margin:9px 0;color:var(--r-ink)}.r-order-card.preparing{border-left-color:#22b6ed}.r-order-card.ready,.r-order-card.served{border-left-color:#00b590}.r-order-card.selected{background:#f0fbfe;border-color:#7bd1df}.r-order-card>div{display:flex;align-items:center;gap:7px}.r-order-card>div strong{font-size:12px;font-weight:900}.r-order-card i{color:#09ad9f;margin-right:5px}.r-order-table{font-size:10px;color:#627b94;background:#edf3f9;border-radius:4px;padding:3px 5px}.r-age{color:#ee5f6e;background:#fff0f1;font-size:9px;padding:3px 5px;border-radius:4px;margin-left:auto;white-space:nowrap}.r-order-card ul{padding:8px 0 8px 20px;font-size:11px;line-height:1.7;list-style:none;margin:0}.r-order-card li small{display:block;color:#9c6c43}.r-order-card footer{display:flex;align-items:center;justify-content:space-between;font-size:12px}.r-order-card>p{font-size:11px;color:#7890a5;margin:5px 0}.r-live-orders .r-order-card{border:0;border-bottom:1px solid #edf2f6;border-radius:0;margin:0;padding:11px 0}.r-live-orders .r-order-card:last-child{border:0}.r-live-orders .r-order-card ul{padding-top:4px;padding-bottom:5px}.r-ranked{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #edf2f7;font-size:12px}.r-ranked>span{background:#eef5fa;border-radius:50%;width:22px;height:22px;display:grid;place-items:center;font-weight:800}.r-ranked b{margin-left:auto;color:#03a892}.r-ranked strong{font-weight:700}.r-thumbnail{width:44px;height:44px;border-radius:6px;overflow:hidden;flex-shrink:0;background:#f5f8fa;display:grid;place-items:center}.r-thumbnail img{width:100%;height:100%;object-fit:cover}.r-chart{height:190px;display:grid;grid-template-columns:repeat(7,1fr);gap:16px;align-items:end;padding:20px 9px 0;background:repeating-linear-gradient(to top,#e8f0f7 0,#e8f0f7 1px,transparent 1px,transparent 42px)}.r-chart>div{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px;min-width:0}.r-chart i{display:block;background:linear-gradient(0deg,#79dedb,#18c8ce);width:100%;max-width:44px;border-radius:3px 3px 0 0;min-height:3px}.r-chart small{font-size:10px;color:#7b8aa3;background:white;padding:3px;width:100%;text-align:center}.r-chart-value{font-size:8px;color:#7291a5;white-space:nowrap}.r-total{display:flex;justify-content:space-between;gap:10px;padding:16px 0;border-top:1px solid #e6eef5;margin-top:12px;font-size:17px;font-weight:900}.r-total strong:last-child{color:#0a3c56}.r-detail-line{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #edf2f7;font-size:12px}.r-detail-line>div:not(.r-thumbnail){flex:1}.r-detail-line p,.r-detail-line small{margin:3px 0;color:#7e90a3;font-size:11px;display:block}.r-detail-line>b{font-size:11px}.r-muted{color:var(--r-muted);font-size:12px}.r-info{border:1px solid #d9eaf0;background:#f0f8fb;color:#57778e;border-radius:8px;padding:11px 13px;font-size:11px;line-height:1.6;margin:12px 0}.r-empty{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:36px 18px;min-height:160px;color:#8194a6;gap:10px}.r-empty>i{font-size:30px;color:#b4d5da}.r-empty strong{font-size:14px;color:#49697d}.r-empty p{font-size:12px;line-height:1.6;max-width:290px;margin:0}.r-composer-invite{min-height:300px}.r-composer-invite h2{font-size:20px;color:#1b4d60;margin:8px 0}.r-composer-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:16px}.r-channel{display:flex;gap:7px;margin:14px 0}.r-channel .r-button{flex:1;font-size:11px;padding:9px 7px}.r-menu-categories{display:flex;gap:5px;overflow-x:auto;margin:16px 0}.r-menu-categories button{font-size:10px;color:#62778b;border:1px solid #e2eaf2;background:#f7fafd;padding:6px 10px;border-radius:20px;white-space:nowrap}.r-menu-categories button.active{background:#00ac9b;color:#fff;border-color:transparent}.r-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.r-menu-item{text-align:left;border:1px solid #e5edf4;border-radius:8px;overflow:hidden;background:#fff;padding:0 0 10px;min-width:0}.r-menu-item img{width:100%;height:110px;object-fit:cover}.r-menu-item strong{font-size:11px;font-weight:800;display:block;padding:8px 9px 4px;min-height:39px;line-height:1.3}.r-menu-item>span{font-size:12px;font-weight:900;padding:0 9px;display:flex;justify-content:space-between}.r-menu-item>span i{color:#00b59c;font-size:17px}.r-food-emoji{font-size:38px;display:block;text-align:center;padding:12px}.r-page label,.r-dialog label{display:block;font-size:11px;font-weight:700;color:#45637b;margin:9px 0}.r-page input:not([type=checkbox]),.r-page select,.r-dialog input:not([type=checkbox]),.r-dialog select,.r-dialog textarea{display:block;width:100%;background:#fff;border:1px solid #dce6ef;border-radius:7px;color:#1b3d56;font-family:inherit;font-size:12px;padding:9px 11px;min-width:0;box-sizing:border-box;outline:none;min-height:37px}.r-page input:focus,.r-page select:focus,.r-dialog input:focus,.r-dialog textarea:focus{border-color:#11a5af;box-shadow:0 0 0 3px #10b3a811}.r-page .r-search{background:#fafcfe!important;margin-bottom:12px;font-size:12px}.r-card-title>.r-search{max-width:280px;margin:0}.r-cart-lines{max-height:510px;overflow:auto;margin:15px 0}.r-cart-line{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:8px;align-items:center;padding:13px 0;border-bottom:1px solid #e7edf4;font-size:11px}.r-cart-line small{display:block;color:#627b91;font-size:10px;margin-top:4px}.r-qty{display:flex;gap:7px;align-items:center}.r-qty .r-button{min-height:24px;width:25px;padding:2px;background:#f3f8fc;border-radius:50%;font-size:14px}.r-item-note,.r-extras{grid-column:2/-1;margin:0!important}.r-item-note{display:flex!important;align-items:center;gap:5px}.r-item-note input{padding:5px 7px!important;min-height:27px!important;border:0!important;background:#f7fafc!important;font-size:10px!important}.r-extras label{font-size:10px;display:flex;gap:4px;align-items:center;margin:4px 0}.r-save-state{font-size:10px;color:#159f8e;padding:5px 0}.r-cart>.r-two-actions .r-button{font-size:11px;padding:10px 8px}.r-kitchen-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;align-items:start}.r-kitchen-column{background:#f2f5fa;border:1px solid #e0e8ef;border-radius:9px;padding:11px;min-width:0;min-height:380px}.r-kitchen-column.pending{background:#fff1f2;border-color:#f8dce0}.r-kitchen-column.preparing{background:#eaf8ff;border-color:#d8eefb}.r-kitchen-column.ready{background:#e7fbf4;border-color:#ccefe3}.r-kitchen-column h2{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:900;padding:4px 0 9px;margin:0}.r-kitchen-column h2>span{margin-left:auto;color:#74889c}.r-kitchen-column h2 i{color:#00a595}.r-kitchen-column.pending h2 i{color:#f55e72}.r-kitchen-column.preparing h2 i{color:#1799ed}.r-kitchen-ticket{background:white;border:1px solid #e4ecf2;border-radius:7px;padding:11px;margin-top:8px;box-shadow:0 2px 5px #33516c05}.r-kitchen-ticket>header{display:flex;align-items:center;gap:6px;font-size:11px}.r-kitchen-ticket>header strong{font-weight:900}.r-kitchen-ticket>header>span{font-size:9px;color:#6a7b91}.r-kitchen-line{padding-top:10px;margin-top:8px;border-top:1px solid #eff3f7}.r-kitchen-line>strong{display:block;font-size:11px;font-weight:700;line-height:1.5}.r-kitchen-line>small{display:block;font-size:9px;color:#8493a3}.r-kitchen-line p{font-size:10px;margin:4px 0}.r-kitchen-line .r-button{font-size:9px;padding:8px 4px;min-height:28px;width:100%;margin-top:8px;border-radius:5px}.r-kitchen-note{color:#9b6b26;background:#fff4dc;border-radius:4px;padding:4px}.r-delivery-row{display:flex;align-items:flex-start;gap:11px;width:100%;text-align:left;padding:17px 0;border-bottom:1px solid #edf2f7;background:white;font-size:12px}.r-delivery-row>div{flex:1;min-width:0}.r-delivery-row p{font-size:11px;color:#7b8da2;margin:5px 0}.r-delivery-row small{font-size:10px;color:#8c9bac;margin-left:8px}.r-delivery-row>b{white-space:nowrap;font-size:12px}.r-delivery-icon{color:#ffae00;font-size:26px}.r-delivery-icon.on_way{color:#0ba0f6}.r-delivery-icon.delivered{color:#00b58f}.r-delivery-steps{display:flex;justify-content:space-between;gap:3px;margin:22px 0}.r-delivery-steps>span{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:18px;color:#c6d3df;flex:1}.r-delivery-steps small{font-size:8px;white-space:nowrap}.r-delivery-steps .done{color:#00ab9b}.r-contact{font-size:12px;color:#00a496;text-decoration:none}.r-data-table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}.r-data-table th{text-align:left;background:#f0f6fb;color:#5b7690;font-weight:700;padding:11px 9px;font-size:10px}.r-data-table td{padding:12px 9px;border-bottom:1px solid #edf2f8}.r-data-table td strong{font-weight:700}.r-table-scroll{overflow-x:auto}.r-ingredient-emoji{font-size:23px;vertical-align:middle;margin-right:10px}.r-red{color:#f05e6e}.r-green{color:#00a686}.r-movement{display:flex;gap:9px;align-items:flex-start;font-size:11px;padding:13px 0;border-bottom:1px solid #edf2f7}.r-movement>span{color:#00a795;background:#e6faf4;padding:7px;border-radius:5px}.r-movement>div{flex:1;min-width:0}.r-movement strong{font-size:10px;display:block}.r-movement p{font-size:10px;margin:3px 0;color:#7b8ea4}.r-movement small{font-size:9px;color:#99a5b3}.r-movement>b{white-space:nowrap}.r-inventory-mobile,.r-customers-mobile{display:none}.r-avatar{display:inline-grid;place-items:center;border-radius:50%;height:30px;width:30px;background:linear-gradient(140deg,#bceae5,#d0e6fb);color:#087e89;font-weight:900;margin-right:9px}.r-sale-row{display:flex;gap:14px;align-items:center;width:100%;text-align:left;padding:14px 0;border-bottom:1px solid #e7eef5;font-size:12px}.r-sale-row>div{flex:1;min-width:0}.r-sale-row>div strong{font-size:11px}.r-sale-row p{font-size:11px;margin:5px 0;color:#597890}.r-sale-row small{font-size:9px;color:#8396a9}.r-source{font-size:10px;color:#8295a6;padding:18px 2px}.r-source i{color:#0aaa9e;margin-right:5px}.r-dev-label{font-size:9px;color:#7d8ea1;margin-bottom:10px;letter-spacing:.03em}.r-sync-banner,.r-recovery,.r-welcome{border:1px solid #f2d8a8;background:#fffaec;padding:14px;border-radius:9px;margin-bottom:15px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px}.r-sync-banner>div,.r-welcome>div{flex:1}.r-sync-banner p,.r-welcome p{font-size:11px;margin:5px 0}.r-welcome{border-color:#b9e6df;background:linear-gradient(100deg,#e2faf4,#f7fcff)}.r-welcome h2{font-size:18px;font-weight:900;color:#0a6c6f;margin:0}.r-dialog{width:min(620px,calc(100vw - 24px));max-height:90dvh;overflow-y:auto;box-sizing:border-box;border:1px solid #dce8ef;border-radius:16px;padding:22px;color:#153b53;box-shadow:0 20px 80px #0e334533;font-family:Nunito,Segoe UI,sans-serif}.r-dialog::backdrop{background:#102d485f;backdrop-filter:blur(4px)}.r-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:14px}.r-dialog h2{font-size:20px;font-weight:900;margin:0}.r-dialog header>button{font-size:25px;color:#72899d;min-width:36px;min-height:36px;border-radius:7px;background:#f1f6fa;border:1px solid #dce7ef}.r-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.r-dialog [data-error]{color:#e15863;font-size:12px;line-height:1.6}.r-dialog-body>p{font-size:12px;color:#6b8296;line-height:1.6}.r-dialog .r-check{display:flex;align-items:center;gap:8px;min-height:30px}.r-dialog h3{font-size:14px;font-weight:900;margin-top:20px}.r-dialog input[type=checkbox]{accent-color:#00a89e}.r-dialog [name=delta]{min:initial}.r-menu-admin-list button{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #e6eef4;font-size:12px;width:100%;text-align:left}.r-menu-admin-list{margin-bottom:15px}.r-more-links{display:grid;gap:3px}.r-more-links button{display:flex;align-items:center;gap:12px;padding:12px;color:#365a72;font-size:13px;text-align:left;border-bottom:1px solid #edf2f7}.r-more-links button i:first-child{color:#00a899;width:22px}.r-more-links button i:last-child{margin-left:auto;font-size:10px}
@media(min-width:1600px){.r-page{padding:30px 38px}.r-home-grid{grid-template-columns:minmax(0,1.8fr) minmax(340px,1fr)}.r-table{min-height:145px}.r-menu-item img{height:145px}}
@media(min-width:768px) and (max-width:1100px){.r-page{padding:20px 16px}.r-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.r-home-grid,.r-table-layout,.r-delivery-layout,.r-billing-layout,.r-inventory-layout{grid-template-columns:minmax(0,1fr)}.r-home-grid>.r-live-orders{grid-column:auto;grid-row:auto}.r-home-grid>.r-card:nth-child(3){grid-column:auto}.r-kitchen-board{grid-template-columns:repeat(2,minmax(0,1fr))}.r-orders-layout{grid-template-columns:280px minmax(0,1fr)}.r-composer-layout{grid-template-columns:minmax(0,1fr)}.r-cart-lines{max-height:none}}
@media(max-width:767px){body.restaurant-mode #mobile-topbar{background:linear-gradient(110deg,#0d2c43,#0b263b);border:0;color:white}body.restaurant-mode #mobile-topbar .mobile-brand-name,body.restaurant-mode #mobile-topbar .mobile-brand{color:white}body.restaurant-mode #mobile-bottom-nav{display:none!important}body.restaurant-mode #r-mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:65;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(66px + env(safe-area-inset-bottom));padding:5px 6px env(safe-area-inset-bottom);background:#fff;border-top:1px solid #e0e9f0;box-sizing:border-box}#r-mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:10px;color:#647b93;font-size:9px;font-weight:700}#r-mobile-nav i{font-size:19px}#r-mobile-nav button.active{color:#00a79c;background:#edfbf8}body.restaurant-operating main{background:#f7fbfd}#view-restaurant{height:auto!important;min-height:100%;overflow:visible}.r-page{padding:17px 13px 24px;font-size:12px}.r-heading{display:block;margin-bottom:16px}.r-heading h1{font-size:23px;letter-spacing:-.5px}.r-heading p{font-size:12px;line-height:1.5;margin-top:5px}.r-heading-actions{margin-top:13px}.r-heading-actions>.r-button{flex:1}.r-button{font-size:11px;padding:10px 12px;min-height:40px}.r-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:14px}.r-metric{padding:12px 9px;gap:8px;border-radius:9px;box-shadow:0 2px 8px #21496306}.r-metric-icon{width:32px;height:32px;font-size:17px}.r-metric small{font-size:9px}.r-metric strong{font-size:17px;letter-spacing:-.6px}.r-metric p{font-size:8px}.r-card{border-radius:10px;padding:13px}.r-card h2{font-size:14px}.r-home-grid,.r-table-layout,.r-delivery-layout,.r-billing-layout,.r-inventory-layout,.r-orders-layout,.r-composer-layout{display:flex;flex-direction:column;gap:12px}.r-home-grid>.r-live-orders{order:1}.r-home-grid>.r-card:nth-child(3){order:2}.r-home-grid>.r-card:nth-child(4){order:3}.r-tables{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.r-table{min-height:102px;padding:8px 3px;gap:4px}.r-table .r-table-icon{font-size:23px}.r-table strong{font-size:11px}.r-table small{font-size:9px}.r-table>span:last-of-type{font-size:10px}.r-tabs{gap:5px;margin-bottom:12px}.r-tabs button{font-size:10px;padding:7px 9px;min-height:34px}.r-floor-plan{padding:16px 14px;gap:18px}.r-floor-plan .r-table{min-height:100px}.r-order-card{padding:12px 10px}.r-order-card>div strong{font-size:12px}.r-order-card ul{font-size:12px;line-height:1.7;padding-left:3px}.r-order-card footer{font-size:12px}.r-age{font-size:10px}.r-card-title>.r-button{font-size:10px}.r-detail dl{gap:16px;font-size:12px}.r-chart{height:180px;gap:12px;padding-left:0;padding-right:0}.r-chart-value{font-size:7px}.r-ranked{font-size:11px}.r-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.r-menu-item img{height:110px}.r-menu-item strong{font-size:12px;min-height:38px}.r-menu-item>span{font-size:12px}.r-cart-lines{max-height:none}.r-cart-line{font-size:12px}.r-qty .r-button{width:29px;min-height:29px}.r-composer-layout>.r-cart{border-top:3px solid #13baa8}.r-kitchen-board{display:block}.r-kitchen-column{min-height:0;padding:10px;margin-bottom:12px}.r-kitchen-column h2{font-size:13px}.r-kitchen-ticket{padding:12px;margin-top:9px}.r-kitchen-ticket header{font-size:13px}.r-kitchen-ticket header>span{font-size:11px}.r-kitchen-line>strong{font-size:12px}.r-kitchen-line>small{font-size:10px}.r-kitchen-line .r-button{font-size:11px;min-height:37px}.r-delivery-row{font-size:11px;gap:8px}.r-delivery-icon{font-size:23px}.r-delivery-row>b{font-size:11px}.r-delivery-row small{display:block;margin:5px 0 0}.r-inventory-layout .r-table-scroll,.r-page:has(.r-customers-mobile) .r-table-scroll{display:none}.r-inventory-mobile,.r-customers-mobile{display:block}.r-inventory-mobile article{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #e8eef5}.r-inventory-mobile article>span{font-size:29px}.r-inventory-mobile article>div{flex:1}.r-inventory-mobile strong{font-size:12px}.r-inventory-mobile p{font-size:11px;color:#06a393;margin:4px 0}.r-inventory-mobile .r-badge{font-size:9px;padding:4px 6px}.r-card-title:has(.r-search){display:block}.r-card-title>.r-search{margin-top:12px;max-width:none}.r-customers-mobile>button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:14px 0;border-bottom:1px solid #e9eff5;font-size:11px}.r-customers-mobile>button>div{flex:1}.r-customers-mobile small{display:block;margin-top:5px;color:#8194a6}.r-customers-mobile strong{font-size:12px}.r-customers-mobile i{color:#8ca1b4}.r-sale-row{font-size:11px;gap:8px}.r-sale-row>div strong{font-size:10px;overflow-wrap:anywhere}.r-sale-row .r-badge{font-size:9px}.r-source{font-size:9px;line-height:1.6;padding-top:15px}.r-dev-label{font-size:8px;margin-bottom:9px}.r-welcome h2{font-size:17px}.r-welcome>.r-button{width:100%}.r-dialog{padding:17px;max-height:88dvh}.r-dialog h2{font-size:18px}.r-dialog label{font-size:12px}.r-dialog input:not([type=checkbox]),.r-dialog select,.r-dialog textarea{font-size:16px;min-height:43px}.r-dialog footer>.r-button{flex:1}.r-page input:not([type=checkbox]),.r-page select{font-size:16px}.r-extras label{font-size:11px}.r-menu-categories button{font-size:11px}.r-info{font-size:11px}.r-two-actions{gap:7px}}
@media(prefers-reduced-motion:reduce){.r-page *{transition:none!important;animation:none!important}}

body.restaurant-operating #ui-brand-name{display:none!important}body.restaurant-operating #desktop-header #ad-context{min-width:0;flex:1}body.restaurant-operating #desktop-header>div:first-child{min-width:0;flex:1}body.restaurant-operating #desktop-header #ad-company-switch{max-width:210px}body.restaurant-operating #desktop-header #ad-branch-switch{max-width:205px}body.restaurant-operating main>.flex-1{padding:0}.r-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin:20px 0;color:#6a8297;font-size:12px}.r-table{min-height:105px}.r-table-icon{font-size:23px}#view-restaurant [hidden]{display:none!important}

.r-page{width:100%;box-sizing:border-box}body.restaurant-operating #desktop-header #ad-context{flex:0 1 auto;gap:12px}body.restaurant-operating #desktop-header #ad-company-switch{width:180px!important;min-width:0!important;max-width:180px!important}body.restaurant-operating #desktop-header #ad-branch-switch{width:165px!important;min-width:0!important;max-width:165px!important}body.restaurant-operating #network-badge{display:none!important}body.restaurant-operating #ad-health{display:inline-flex!important;font-size:10px;white-space:nowrap}body.restaurant-operating #desktop-header>div:last-child{flex-shrink:0;gap:16px}#r-mobile-nav button[hidden],#r-sidebar-nav button[hidden]{display:none!important}

.restaurant-operating .view-section.active{opacity:1;animation:none;transform:none}.r-heading-actions select{width:auto;min-width:180px}.r-heading-actions{align-items:center}@media(max-width:767px){.r-kitchen-column:not(:has(.r-kitchen-ticket)){display:none}.r-button{min-height:42px}.r-heading-actions select{width:100%}}

.r-mobile-launch{display:none}@media(max-width:767px){.r-mobile-launch{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:0 0 17px}.r-mobile-launch .r-button{grid-column:span 2;min-height:75px;display:flex;flex-direction:column;gap:9px;border:1px solid #dce7ef;background:linear-gradient(140deg,#fff,#f1fafb);box-shadow:0 2px 4px #193b5010;color:#084e66;padding:10px 4px;font-size:11px}.r-mobile-launch .r-button i{font-size:21px;color:#00a08e}.r-mobile-launch [data-quick=tables],.r-mobile-launch [data-quick=orders]{grid-column:span 3;min-height:48px;flex-direction:row;font-size:13px}.r-mobile-launch [data-quick=tables]{background:linear-gradient(100deg,#00aa9a,#008d8b);color:#fff}.r-mobile-launch [data-quick=tables] i{color:#fff}.r-mobile-launch [data-quick=orders] i,.r-mobile-launch [data-quick=kitchen] i{color:#ee5876}.r-mobile-launch [data-quick=delivery] i{color:#129bf0}.r-mobile-launch [data-quick=billing] i{color:#9854e8}#view-restaurant[data-restaurant-view=home] .r-heading>div:first-child{display:none}#view-restaurant[data-restaurant-view=home] .r-heading{margin-bottom:12px}#view-restaurant[data-restaurant-view=home] .r-heading-actions{display:none}#view-restaurant[data-restaurant-view=home] .r-metrics{display:none}.r-home-grid>.r-live-orders{order:-1}#view-restaurant[data-restaurant-view=home] .r-live-orders .r-order-card{padding:14px}#view-restaurant[data-restaurant-view=home] .r-live-orders:after{content:'Los pedidos y cambios se confirman en SQL.';display:block;color:#8197a7;font-size:10px;margin-top:12px}}

@media(min-width:768px) and (max-width:1100px){body.restaurant-operating #desktop-header{display:grid;grid-template-columns:1fr;gap:8px;height:auto;min-height:104px;padding:10px 16px}body.restaurant-operating #desktop-header>div:first-child,body.restaurant-operating #desktop-header>div:last-child{grid-column:1;width:100%;min-width:0}body.restaurant-operating #desktop-header>div:last-child{justify-content:space-between}body.restaurant-operating #desktop-header #ad-context{flex:1;max-width:100%}}@media(max-width:359px){body.restaurant-mode #mobile-storage-status>span{display:none}body.restaurant-mode #mobile-storage-status{flex:none;min-width:36px;width:36px;height:36px;padding:8px;justify-content:center}body.restaurant-mode .mobile-brand-copy small{max-width:100%;overflow:hidden;text-overflow:ellipsis}}

/* Seguimiento por estados de Restaurante. */
.r-delivery-status{display:flex;align-items:center;gap:13px;padding:18px;background:#edf9f7;border:1px solid #d0eee8;border-radius:12px;margin:12px 0 18px}.r-delivery-status>span{display:grid;place-items:center;width:45px;height:45px;flex-shrink:0;border-radius:12px;background:white;color:#009c91;font-size:24px}.r-delivery-status small{display:block;color:#627e90;font-size:12px}.r-delivery-status strong{display:block;color:#123b51;font-size:20px;margin-top:3px}.r-delivery-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;list-style:none;margin:20px 0;padding:0}.r-delivery-progress li{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:9px;text-align:center;padding:12px 3px;color:#667f91;border:1px solid #e0e8ef;border-radius:9px;background:#f7fafc;min-width:0}.r-delivery-progress li>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e7edf2;font-size:16px}.r-delivery-progress li strong{font-size:10px;line-height:1.4;overflow-wrap:anywhere}.r-delivery-progress li.current{color:#007f77;background:#e8faf4;border-color:#65caba}.r-delivery-progress li.current>span,.r-delivery-progress li.done>span{color:white;background:#00a492}.r-delivery-progress li.done{color:#087e74}.r-delivery-cancelled{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid #f0bcc5;border-radius:10px;background:#fff1f3;color:#a73049;margin:16px 0}.r-delivery-cancelled>i{font-size:25px}.r-delivery-cancelled strong{font-size:15px}.r-delivery-cancelled p{font-size:12px;line-height:1.5;margin:6px 0 0}.r-delivery-icon.cancelled{color:#d74c65}.r-delivery-icon.ready{color:#00a492}@media(max-width:767px){.r-delivery-progress{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.r-delivery-progress li{padding:13px 8px}.r-delivery-progress li strong{font-size:12px}.r-delivery-status strong{font-size:21px}}

@media(max-width:767px){.r-page:has(.r-delivery-layout)>.r-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:6px}.r-page:has(.r-delivery-layout)>.r-tabs button{white-space:normal;min-height:44px;font-size:10px;padding:7px 5px}}
/* Inventario y carta exclusivos de Restaurante. */
#view-restaurant .r-inventory-navigation{display:flex;gap:10px;margin:0 0 18px;flex-wrap:wrap}#view-restaurant .r-inventory-aside{display:flex;flex-direction:column;gap:18px;min-width:0}#view-restaurant .r-inventory-search{width:100%;max-width:none;box-sizing:border-box;margin:8px 0 16px}#view-restaurant .r-ingredient-cell{display:flex;align-items:center;gap:9px;min-width:0}#view-restaurant .r-ingredient-cell>div{min-width:0}#view-restaurant .r-ingredient-cell strong{white-space:normal;overflow-wrap:anywhere}#view-restaurant .r-ingredient-cell small{display:block;font-size:9px;line-height:1.5;color:#7890a2;margin-top:4px;white-space:normal;overflow-wrap:anywhere}#view-restaurant .r-ingredient-cell .r-thumbnail{width:39px;height:39px;flex-shrink:0;display:grid;place-items:center;border-radius:8px;overflow:hidden;background:#f3f8fa}#view-restaurant .r-ingredient-cell .r-thumbnail img{width:100%;height:100%;object-fit:cover}#view-restaurant .r-ingredient-cell .r-food-emoji{font-size:27px}#view-restaurant .r-data-table td .r-button{padding:8px;min-width:36px}#view-restaurant .r-ingredient-summary small{display:block;color:#7b90a3;font-size:10px;margin:4px 0}#view-restaurant .r-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-top:18px}#view-restaurant .r-catalog-item{border:1px solid #dce8ef;border-radius:13px;overflow:hidden;background:white;min-width:0}#view-restaurant .r-catalog-photo{height:150px;background:#f0f8fa;display:grid;place-items:center;overflow:hidden}#view-restaurant .r-catalog-photo img{width:100%;height:100%;object-fit:cover}#view-restaurant .r-catalog-photo .r-food-emoji{font-size:60px}#view-restaurant .r-catalog-item>div:last-child{padding:16px}#view-restaurant .r-catalog-item small{font-size:10px;color:#6f8799}#view-restaurant .r-catalog-item h3{font-size:16px;color:#123b51;font-weight:800;margin:8px 0;overflow-wrap:anywhere}#view-restaurant .r-catalog-item strong{font-size:19px;color:#009b88}#view-restaurant .r-catalog-item p{font-size:11px;color:#728c9d;margin:9px 0}#view-restaurant .r-catalog-item .r-button{width:100%;margin-top:14px}#view-restaurant .r-sale-row .r-badge{white-space:normal;text-align:center;max-width:120px}.r-dialog .r-photo-editor{display:grid;grid-template-columns:110px minmax(0,1fr);gap:16px;padding:14px;border:1px solid #d7e9e7;border-radius:12px;background:#f5fbfa;margin-bottom:20px}.r-dialog .r-photo-preview{width:110px;height:110px;border-radius:10px;background:#e5f0ee;display:grid;place-items:center;overflow:hidden;color:#668982;font-size:12px}.r-dialog .r-photo-preview img{width:100%;height:100%;object-fit:cover}.r-dialog .r-photo-editor label{margin-top:0}.r-dialog .r-photo-editor input{max-width:100%;box-sizing:border-box;padding:8px;font-size:12px}.r-dialog .r-photo-editor small,.r-dialog [data-photo-error]{font-size:11px;color:#617e85;line-height:1.5;display:block}.r-dialog .r-photo-editor .r-button{margin-top:8px;padding:7px 12px;min-height:34px}
@media(max-width:1200px){#view-restaurant .r-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:767px){#view-restaurant .r-inventory-navigation{display:grid;grid-template-columns:1fr 1fr;gap:8px}#view-restaurant .r-inventory-mobile article{flex-wrap:wrap;gap:8px}#view-restaurant .r-inventory-mobile article>.r-ingredient-cell{flex:1;min-width:120px}#view-restaurant .r-inventory-mobile article>.r-ingredient-summary{flex:0 0 auto;text-align:right}#view-restaurant .r-inventory-mobile article>.r-button{flex:0 0 36px;padding:7px;min-height:36px}#view-restaurant .r-inventory-mobile .r-ingredient-cell strong{font-size:12px}#view-restaurant .r-inventory-layout .r-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}#view-restaurant .r-catalog-grid{gap:10px}#view-restaurant .r-catalog-photo{height:115px}#view-restaurant .r-catalog-item>div:last-child{padding:11px}#view-restaurant .r-catalog-item h3{font-size:13px}#view-restaurant .r-catalog-item strong{font-size:16px}.r-dialog .r-photo-editor{grid-template-columns:1fr}.r-dialog .r-photo-preview{width:100%;height:150px}.r-dialog .r-photo-editor input{font-size:13px;min-width:0}}@media(max-width:359px){#view-restaurant .r-catalog-grid{grid-template-columns:1fr}}
/* Al operar Restaurante, la selección administrativa anterior no sigue resaltada. */
body.restaurant-operating #sidebar .nav-btn.bg-brand-primary{background:transparent!important;color:#c4d7e3!important;box-shadow:none!important;border-left-color:transparent!important}

#view-restaurant .r-menu-item:disabled{opacity:.58;cursor:not-allowed;filter:grayscale(.35)}
#view-restaurant .r-menu-capacity{display:block;color:#526579;font-size:.75rem;line-height:1.35}


/* Presentation freeze 2026-10-16. Every override belongs to Restaurante. */
body.restaurant-mode{--r-muted:#52667d;--r-teal:#00796e}
body.restaurant-mode #view-restaurant,
body.restaurant-mode .r-dialog,
body.restaurant-mode #r-sidebar-nav,
body.restaurant-mode #r-mobile-nav{font-family:"Segoe UI",Arial,system-ui,sans-serif}
body.restaurant-mode #view-restaurant .r-page{font-size:15px;line-height:1.55}
body.restaurant-mode #view-restaurant .r-heading{align-items:flex-start}
body.restaurant-mode #view-restaurant .r-heading h1{font-family:inherit;font-size:36px;font-weight:800;line-height:1.2;letter-spacing:-.8px;overflow-wrap:anywhere}
body.restaurant-mode #view-restaurant .r-heading p{font-size:16px;line-height:1.55}
body.restaurant-mode #view-restaurant .r-card h2{font-size:20px;line-height:1.35}
body.restaurant-mode #view-restaurant .r-button,
body.restaurant-mode .r-dialog .r-button{font-family:inherit;font-size:14px;line-height:1.4;min-height:44px;padding:10px 14px;border-radius:9px;background:linear-gradient(100deg,#007c70,#007886);color:#fff;white-space:normal}
body.restaurant-mode #view-restaurant .r-button.secondary,
body.restaurant-mode .r-dialog .r-button.secondary{background:#fff;color:#175575;border-color:#cbdce7}
body.restaurant-mode #view-restaurant .r-button:not(.secondary):hover,
body.restaurant-mode .r-dialog .r-button:not(.secondary):hover{background:#00675f}
body.restaurant-mode #view-restaurant .r-button:disabled,
body.restaurant-mode .r-dialog .r-button:disabled{opacity:.6}
body.restaurant-mode #view-restaurant .r-card-title{align-items:flex-start;flex-wrap:wrap}
body.restaurant-mode #view-restaurant .r-card-title>.r-button{font-size:14px;min-height:44px;padding:7px 10px}
body.restaurant-mode #view-restaurant .r-metric small{font-size:13px;color:#52667d}
body.restaurant-mode #view-restaurant .r-metric p{font-size:12px;color:#52667d;line-height:1.5}
body.restaurant-mode #view-restaurant .r-metric strong{font-size:24px;white-space:normal;overflow-wrap:anywhere}
body.restaurant-mode #view-restaurant .r-tabs{flex-wrap:wrap;overflow:visible;gap:8px}
body.restaurant-mode #view-restaurant .r-tabs button{font-size:14px;min-height:44px;color:#40566e;white-space:normal;line-height:1.35;padding:8px 12px}
body.restaurant-mode #view-restaurant .r-tabs button.active{background:#00796e;color:#fff}
body.restaurant-mode #view-restaurant .r-tabs small{font-size:13px}
body.restaurant-mode #view-restaurant .r-badge{font-size:13px;line-height:1.4;white-space:normal;max-width:100%;color:#40566e;background:#edf2f7}
body.restaurant-mode #view-restaurant .r-badge.pending{color:#775200;background:#fff0ce}
body.restaurant-mode #view-restaurant .r-badge.preparing,
body.restaurant-mode #view-restaurant .r-badge.on_way{color:#075d91;background:#e2f2ff}
body.restaurant-mode #view-restaurant .r-badge.ready,
body.restaurant-mode #view-restaurant .r-badge.delivered,
body.restaurant-mode #view-restaurant .r-badge.paid{color:#006249;background:#dffbf0}
body.restaurant-mode #view-restaurant .r-badge.served{color:#354e75;background:#e7edf7}
body.restaurant-mode #view-restaurant .r-badge.cancelled{color:#9f2543;background:#ffe9ee}
body.restaurant-mode #view-restaurant .r-table{color:#006249}
body.restaurant-mode #view-restaurant .r-table.occupied{color:#a72837}
body.restaurant-mode #view-restaurant .r-table.reserved{color:#075d91}
body.restaurant-mode #view-restaurant .r-table strong{font-size:15px;overflow-wrap:anywhere}
body.restaurant-mode #view-restaurant .r-table small{font-size:13px;color:#405e68}
body.restaurant-mode #view-restaurant .r-table>span:last-of-type{font-size:14px}
body.restaurant-mode #view-restaurant .r-order-card>div{flex-wrap:wrap;align-items:center}
body.restaurant-mode #view-restaurant .r-order-card>div strong{font-size:16px}
body.restaurant-mode #view-restaurant .r-order-table{font-size:13px;color:#40566e}
body.restaurant-mode #view-restaurant .r-age{font-size:13px;color:#9f2543;background:#fff0f1;line-height:1.4;max-width:100%}
body.restaurant-mode #view-restaurant .r-order-card ul,
body.restaurant-mode #view-restaurant .r-order-card footer,
body.restaurant-mode #view-restaurant .r-order-card>p{font-size:14px;line-height:1.6}
body.restaurant-mode #view-restaurant .r-order-card li small{font-size:14px;color:#704315;line-height:1.6}
body.restaurant-mode #view-restaurant .r-order-card footer{gap:8px;flex-wrap:wrap}
body.restaurant-mode #view-restaurant .r-kitchen-column h2{font-size:16px;line-height:1.4}
body.restaurant-mode #view-restaurant .r-kitchen-ticket{min-width:0}
body.restaurant-mode #view-restaurant .r-kitchen-ticket header{flex-wrap:wrap;gap:7px}
body.restaurant-mode #view-restaurant .r-kitchen-ticket header strong{font-size:16px}
body.restaurant-mode #view-restaurant .r-kitchen-ticket header>span{font-size:13px;color:#52667d}
body.restaurant-mode #view-restaurant .r-kitchen-line{font-size:15px;line-height:1.6}
body.restaurant-mode #view-restaurant .r-kitchen-line>strong{font-size:15px;white-space:normal;overflow-wrap:anywhere}
body.restaurant-mode #view-restaurant .r-kitchen-line small{font-size:13px;color:#52667d}
body.restaurant-mode #view-restaurant .r-kitchen-note{font-size:14px;line-height:1.6;color:#704315;background:#fff5dc;padding:9px;overflow-wrap:anywhere}
body.restaurant-mode #view-restaurant .r-kitchen-line .r-button{font-size:14px;min-height:44px;width:100%;padding:9px 7px}
body.restaurant-mode #view-restaurant .r-detail dl,
body.restaurant-mode #view-restaurant .r-detail-line,
body.restaurant-mode #view-restaurant .r-detail-line p,
body.restaurant-mode #view-restaurant .r-detail-line small,
body.restaurant-mode #view-restaurant .r-detail-line>b{font-size:14px;line-height:1.6}
body.restaurant-mode #view-restaurant .r-muted,
body.restaurant-mode #view-restaurant .r-info{font-size:14px;line-height:1.6;color:#52667d}
body.restaurant-mode #view-restaurant .r-sale-row{font-size:14px;gap:10px;flex-wrap:wrap}
body.restaurant-mode #view-restaurant .r-sale-row>div{min-width:0;flex:1 1 180px}
body.restaurant-mode #view-restaurant .r-sale-row strong{overflow-wrap:anywhere}
body.restaurant-mode #view-restaurant .r-sale-row p,
body.restaurant-mode #view-restaurant .r-sale-row small{font-size:13px;line-height:1.5;color:#52667d}
body.restaurant-mode #view-restaurant .r-data-table th{font-size:13px;line-height:1.4}
body.restaurant-mode #view-restaurant .r-data-table td{font-size:14px;line-height:1.5}
body.restaurant-mode #view-restaurant .r-ingredient-cell small,
body.restaurant-mode #view-restaurant .r-ingredient-summary small,
body.restaurant-mode #view-restaurant .r-movement small,
body.restaurant-mode #view-restaurant .r-movement p,
body.restaurant-mode #view-restaurant .r-catalog-item small{font-size:13px;color:#52667d;line-height:1.5}
body.restaurant-mode #view-restaurant .r-inventory-mobile .r-ingredient-cell strong{font-size:14px;line-height:1.5}
body.restaurant-mode #view-restaurant .r-delivery-progress li strong{font-size:13px}
body.restaurant-mode #view-restaurant .r-delivery-row{font-size:14px;line-height:1.6}
body.restaurant-mode #view-restaurant .r-delivery-row small{font-size:13px;color:#52667d}
body.restaurant-mode #view-restaurant .r-source{font-size:12px;line-height:1.6;color:#52667d;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
body.restaurant-mode #view-restaurant .r-reviews{margin:24px 0 8px;padding-top:14px;border-top:1px solid #dce7f0;display:flex;justify-content:flex-end}
body.restaurant-mode #view-restaurant .r-reviews .r-button{font-size:13px;min-height:44px;background:transparent;border-color:#cbdce7;color:#40566e;box-shadow:none}
body.restaurant-mode #view-restaurant .r-chart small{font-size:12px;color:#52667d}
body.restaurant-mode #view-restaurant .r-chart-value{font-size:11px;color:#40566e}
body.restaurant-mode .r-dialog{font-family:"Segoe UI",Arial,system-ui,sans-serif}
body.restaurant-mode .r-dialog label,
body.restaurant-mode .r-dialog input,
body.restaurant-mode .r-dialog select,
body.restaurant-mode .r-dialog textarea{font-size:16px;line-height:1.5}
body.restaurant-mode .r-dialog .r-info,
body.restaurant-mode .r-dialog .r-muted,
body.restaurant-mode .r-dialog small{font-size:14px;line-height:1.6;color:#52667d}
@media(max-width:767px){
 body.restaurant-mode #view-restaurant .r-page{font-size:15px}
 body.restaurant-mode #view-restaurant .r-heading h1{font-size:28px;letter-spacing:-.5px}
 body.restaurant-mode #view-restaurant .r-heading p{font-size:14px}
 body.restaurant-mode #view-restaurant .r-heading-actions{width:100%;display:flex;flex-wrap:wrap}
 body.restaurant-mode #view-restaurant .r-heading-actions>*{flex:1 1 140px;max-width:100%}
 body.restaurant-mode #view-restaurant .r-card h2{font-size:18px}
 body.restaurant-mode #view-restaurant .r-metric{padding:12px 9px;gap:8px}
 body.restaurant-mode #view-restaurant .r-metric-icon{width:28px;height:28px;font-size:17px}
 body.restaurant-mode #view-restaurant .r-metric strong{font-size:20px;line-height:1.45}
 body.restaurant-mode #view-restaurant .r-metric small{font-size:12px}
 body.restaurant-mode #view-restaurant .r-tabs,
 body.restaurant-mode #view-restaurant .r-page:has(.r-delivery-layout)>.r-tabs,
 body.restaurant-mode #view-restaurant .r-inventory-layout .r-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;width:100%;gap:7px}
 body.restaurant-mode #view-restaurant .r-tabs button{font-size:13px;min-height:44px;white-space:normal;padding:8px 7px;overflow-wrap:anywhere}
 body.restaurant-mode #view-restaurant .r-tabs small{font-size:12px}
 body.restaurant-mode #view-restaurant .r-tables{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.restaurant-mode #view-restaurant .r-table{min-height:126px}
 body.restaurant-mode #view-restaurant .r-reviews{justify-content:flex-start}
 body.restaurant-mode #r-mobile-nav button{font-size:12px;color:#40566e;min-height:44px}
 body.restaurant-mode #r-mobile-nav button.active{color:#006249}
 body.restaurant-mode #view-restaurant .r-data-table td .r-button,
 body.restaurant-mode #view-restaurant .r-inventory-mobile article>.r-button{min-width:44px;min-height:44px}
}
@media(max-width:359px){body.restaurant-mode #view-restaurant .r-metrics{grid-template-columns:1fr}}

/* Icon searches reserve their own space even when shared input rules apply. */
body.restaurant-mode #view-restaurant :is(.r-orders-search,.r-orders-menu-search,.r-delivery-search,.r-stock-search){position:relative;min-width:0;max-width:100%;box-sizing:border-box}
body.restaurant-mode #view-restaurant :is(.r-orders-search,.r-orders-menu-search,.r-delivery-search,.r-stock-search)>i{position:absolute!important;left:14px!important;top:50%!important;transform:translateY(-50%)!important;width:18px;text-align:center;pointer-events:none;line-height:1}
body.restaurant-mode #view-restaurant :is(.r-orders-search,.r-orders-menu-search,.r-delivery-search,.r-stock-search)>input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding-left:42px!important;padding-right:12px!important;min-height:46px!important;margin:0!important;font-size:15px!important}
body.restaurant-mode #view-restaurant .r-card-title{flex-wrap:wrap;gap:12px;min-width:0}
body.restaurant-mode #view-restaurant .r-card-title>h2{min-width:0;overflow-wrap:break-word}
@media(max-width:760px){body.restaurant-mode #view-restaurant :is(.r-orders-search,.r-orders-menu-search,.r-delivery-search,.r-stock-search){width:100%;min-width:0;max-width:none}body.restaurant-mode #view-restaurant :is(.r-orders-search,.r-orders-menu-search,.r-delivery-search,.r-stock-search)>input{font-size:16px!important}}
