.dallni-restaurant,.dr-dashboard{--dr-green:#167c52;--dr-ink:#14231d;--dr-muted:#65766f;--dr-border:#e3ebe6;--dr-bg:#f5f8f6;direction:rtl;color:var(--dr-ink);font-family:inherit;margin:0 auto 48px;max-width:1100px;padding:24px 18px;box-sizing:border-box}
.dallni-restaurant *,.dr-dashboard *{box-sizing:border-box}
.dr-hero{overflow:hidden;border-radius:22px;background:var(--dr-brand-primary,#173b2d);color:var(--dr-brand-on-primary,#fff);position:relative;min-height:260px;display:flex;align-items:flex-end}
.dr-hero__cover{position:absolute;inset:0}.dr-cover-image{width:100%;height:100%;object-fit:cover;opacity:.38}.dr-hero__body{position:relative;padding:32px;z-index:1}.dr-hero h1,.dr-dashboard h1{margin:4px 0 10px;font-size:clamp(28px,5vw,44px);color:inherit}.dr-eyebrow{margin:0 0 7px;color:#57c494;font-weight:700;font-size:13px;letter-spacing:.03em}.dr-meta,.dr-subtle{color:var(--dr-muted);font-size:14px}.dr-hero .dr-meta{color:var(--dr-brand-on-primary,#d4e5dc)}.dr-hero .dr-eyebrow{color:var(--dr-brand-accent,#57c494)}.dr-state{display:inline-block;border-radius:30px;padding:6px 12px;margin-top:8px;font-size:13px;background:#fff;color:#43534b}.dr-state.is-open{color:#126b44}.dr-state.is-closed{color:#a34435}.dr-actions{display:flex;gap:9px;margin-top:16px;flex-wrap:wrap}
.dr-button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;padding:11px 17px;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}.dr-button--primary{background:var(--dr-green);color:#fff}.dr-button--primary:hover{background:#116641;color:#fff}.dr-button--light{background:#fff;color:#174a35}.dr-about,.dr-menu,.dr-checkout,.dr-owner-qr,.dr-dashboard-card{background:#fff;border:1px solid var(--dr-border);border-radius:18px;padding:24px;margin-top:22px}.dr-about h2,.dr-menu h2,.dr-checkout h2,.dr-owner-qr h2,.dr-dashboard-card h2{margin:0 0 16px;font-size:23px}.dr-section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px}.dr-section-heading h2{margin:0}.dr-category{margin-top:25px}.dr-category h3{font-size:18px;border-bottom:1px solid var(--dr-border);padding-bottom:10px}.dr-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dr-item{display:flex;gap:14px;align-items:center;border:1px solid var(--dr-border);border-radius:14px;padding:12px;min-width:0}.dr-item__image{width:88px;height:88px;object-fit:cover;border-radius:11px;flex:none}.dr-item__body{flex:1;min-width:0}.dr-item h4{margin:0 0 5px;font-size:16px}.dr-item p{color:var(--dr-muted);margin:0 0 8px;font-size:13px}.dr-item strong{color:var(--dr-green)}.dr-quantity input{width:68px;padding:9px;border:1px solid var(--dr-border);border-radius:9px}.dr-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.dr-form-grid label,.dr-checkout form>label{display:flex;flex-direction:column;gap:6px;font-weight:600}.dr-form-grid input,.dr-form-grid select,.dr-form-grid textarea,.dr-checkout input,.dr-checkout select,.dr-checkout textarea,.dr-dashboard select{width:100%;border:1px solid #d7e1db;border-radius:9px;padding:10px;background:#fff;font:inherit;color:var(--dr-ink)}.dr-field-wide{grid-column:1/-1}.dr-payment-note,.dr-notice{background:#f0f7f3;border-radius:10px;padding:12px 14px;color:#365b48}.dr-checkout .dr-button{margin-top:14px}.dr-transfer-info{margin:12px 0;padding:12px;background:#f6f7f0;border-radius:8px}.dr-empty{color:var(--dr-muted)}.dr-owner-qr{text-align:center}.dr-owner-qr img{display:block;margin:15px auto;border:1px solid var(--dr-border);padding:8px;border-radius:10px;background:#fff}.dr-dashboard>header{border-radius:18px;padding:26px;background:#183e30;color:#fff}.dr-dashboard>header p{color:#e1eee7}.dr-dashboard-card form{margin:0}.dr-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.dr-plans article{border:1px solid var(--dr-border);border-radius:13px;padding:18px}.dr-plans article h3{margin:0 0 8px}.dr-plans article .dr-button{margin-top:12px}.dr-history{padding-inline-start:20px}.dr-table-wrap{overflow:auto}.dr-table{width:100%;border-collapse:collapse}.dr-table th,.dr-table td{text-align:right;padding:10px;border-bottom:1px solid var(--dr-border)}.dr-order-list{display:grid;gap:12px}.dr-order-list article{padding:16px;border:1px solid var(--dr-border);border-radius:12px}.dr-order-head{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.dr-inline-form{display:flex!important;align-items:center;gap:9px;flex-wrap:wrap;margin-top:10px!important}.dr-inline-form select{width:auto}.dr-inline-form label{display:inline-flex;align-items:center;gap:6px}.dr-inline-form input[type=checkbox]{width:auto}.dr-order-list ul{margin:8px 0}.dr-dashboard small{color:var(--dr-muted)}
@media(max-width:680px){.dallni-restaurant,.dr-dashboard{padding:14px 12px}.dr-hero{min-height:220px}.dr-hero__body{padding:22px}.dr-items,.dr-plans,.dr-form-grid{grid-template-columns:1fr}.dr-field-wide{grid-column:auto}.dr-item{gap:9px;padding:9px}.dr-item__image{width:68px;height:68px}.dr-item h4{font-size:14px}.dr-quantity input{width:58px}.dr-about,.dr-menu,.dr-checkout,.dr-owner-qr,.dr-dashboard-card{padding:17px}.dr-section-heading{align-items:start;flex-direction:column}}
@media print{body *{visibility:hidden!important}.dr-owner-qr,.dr-owner-qr *{visibility:visible!important}.dr-owner-qr{position:absolute;inset:0;border:0;margin:0}.dr-owner-qr img{width:330px;height:330px}.dr-owner-qr .dr-button{display:none}}
.dr-honeypot{position:absolute!important;inset-inline-start:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.dr-cart-summary{margin-top:18px;padding:13px 15px;border-radius:11px;background:#f0f7f3;color:#315944}.dr-delivery-zone[hidden],.dr-street-address[hidden],.dr-transfer-info[hidden]{display:none!important}
.dr-directory{direction:rtl;max-width:1100px;padding:30px 18px;margin:0 auto 50px;color:#14231d}.dr-directory__header{padding:28px;border-radius:18px;background:#183e30;color:#fff}.dr-directory__header h1{margin:5px 0 10px}.dr-directory__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}.dr-directory-card{display:grid;grid-template-columns:150px 1fr;gap:16px;padding:14px;border:1px solid #e3ebe6;border-radius:16px;background:#fff}.dr-directory-card__image{display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:150px;border-radius:12px;background:#f0f7f3;color:#167c52;font-weight:700}.dr-directory-card__image img{width:100%;height:100%;object-fit:cover}.dr-directory-card h2{font-size:20px;margin:4px 0 8px}.dr-directory-card h2 a{color:#14231d;text-decoration:none}.dr-directory-card p{color:#65766f;font-size:14px}.dr-directory-card .dr-button{font-size:13px;padding:9px 12px}
@media(max-width:680px){.dr-directory__grid{grid-template-columns:1fr}.dr-directory-card{grid-template-columns:100px 1fr;gap:12px}.dr-directory-card__image{min-height:110px}}
.dr-owner-panel[hidden]{display:none!important}
.dr-registration{max-width:900px;margin:0 auto;padding-top:34px}
.dr-registration-hero{position:relative;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:18px 20px;overflow:hidden;padding:30px;border-radius:24px;background:linear-gradient(135deg,#0E46C4 0%,#1456E1 100%);color:#fff;box-shadow:0 12px 30px rgba(20,86,225,.2)}
.dr-registration-hero:after{position:absolute;content:"";width:240px;height:240px;border:1px solid rgba(255,255,255,.12);border-radius:50%;inset-inline-end:-100px;top:-150px}
.dr-registration-mark{display:grid;place-items:center;width:64px;height:64px;border-radius:19px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.2);font-size:34px;font-weight:800;color:#fff}
.dr-registration-hero .dr-eyebrow{color:#DBE7FF;font-size:13px;font-weight:700}
.dr-registration-hero h1{margin:0 0 7px;font-size:clamp(26px,4vw,38px);color:#fff}
.dr-registration-hero>div>p:last-child{max-width:570px;margin:0;color:rgba(255,255,255,.9);line-height:1.8}
.dr-registration-steps{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding-top:18px;border-top:1px solid rgba(255,255,255,.18);color:#fff;font-size:13px}
.dr-registration-steps span{display:flex;align-items:center;gap:8px;white-space:nowrap}
.dr-registration-steps b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#fff;color:#1456E1;font-size:12px}
.dr-registration-steps i{height:1px;flex:1;background:rgba(255,255,255,.3)}
.dr-registration-section{padding:25px 26px;border-bottom:1px solid hsl(var(--jm-border,240 5.9% 90%))}
.dr-registration-section__heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}
.dr-registration-section__heading>span{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:11px;background:hsl(var(--jm-primary) / .12);color:hsl(var(--jm-primary));font-weight:800}
.dr-registration-section__heading h2{margin:0 0 3px;font-size:20px}
.dr-registration-section__heading p{margin:0;color:hsl(var(--jm-muted-foreground));font-size:13px}
@media(max-width:680px){.dr-registration{padding:18px 12px}.dr-registration-hero{grid-template-columns:1fr;padding:23px 20px;border-radius:20px}.dr-registration-mark{width:52px;height:52px;font-size:28px}.dr-registration-steps{gap:7px;font-size:11px}.dr-registration-steps span{gap:5px}.dr-registration-steps i{min-width:8px}.dr-registration-steps b{width:22px;height:22px}.dr-registration-section{padding:21px 17px}.dr-registration-section__heading h2{font-size:18px}}
/* Join pages share one look with the service-provider page: always light, blue actions, same card */
html .jm-root.dr-registration{--dr-green:#1456E1;--jm-primary:221 84% 48%;--jm-primary-hover:222 87% 41%;--jm-ring:221 84% 48%;--jm-background:0 0% 100%;--jm-foreground:240 10% 3.9%;--jm-card:0 0% 100%;--jm-card-foreground:240 10% 3.9%;--jm-popover:0 0% 100%;--jm-popover-foreground:240 10% 3.9%;--jm-secondary:240 4.8% 95.9%;--jm-secondary-foreground:240 5.9% 10%;--jm-muted:240 4.8% 95.9%;--jm-muted-foreground:240 3.8% 46.1%;--jm-border:240 5.9% 90%;--jm-input:240 5.9% 90%;background:transparent;color:hsl(var(--jm-foreground))}
.generic-page:has(.dr-registration){background:linear-gradient(135deg,#f0f9f4 0%,#F4F7F6 100%)!important}
html[data-jm-theme="dark"] body:has(.dr-registration){background:#F4F7F6!important;color:inherit!important}
.dr-registration .jm-card{border:1px solid #EDEDED;border-radius:24px;box-shadow:0 20px 60px rgba(15,35,69,.08),0 4px 15px rgba(0,0,0,.05)}
.dr-registration>.dr-registration-hero{border-radius:24px;background:linear-gradient(135deg,#0E46C4 0%,#1456E1 100%)}
.dr-registration-form{position:relative;overflow:hidden}
.dr-registration-form:before{position:absolute;content:"";inset:0 0 auto;height:5px;background:linear-gradient(90deg,#1456E1,#0E46C4)}
.dr-registration .jm-btn--primary,.dr-registration .dr-button--primary{border-radius:14px;background:#1456E1;color:#fff!important;font-weight:800;box-shadow:0 6px 20px rgba(20,86,225,.28);transition:all .35s ease}
.dr-registration .jm-btn--primary:hover:not(:disabled),.dr-registration .dr-button--primary:hover:not(:disabled){background:#0E46C4;transform:translateY(-2px);box-shadow:0 12px 30px rgba(20,86,225,.38)}
.dr-registration .jm-btn--outline{border-radius:14px;border-color:#1456E1;color:#1456E1;font-weight:700}
.dr-registration .jm-btn--outline:hover:not(:disabled){background:#F1F7FF;color:#1456E1}
.dr-registration-submit .jm-btn--primary{width:100%;padding:18px;font-size:1.15rem}
@media(max-width:600px){.dr-registration .jm-card,.dr-registration>.dr-registration-hero{border-radius:20px}}
/* Shared join-page design: keep identical to dallni-stores/assets/stores.css and themes/dallni_theme/page-join.php */
.dj-page{padding:60px 0 80px;min-height:100vh;background:linear-gradient(135deg,#f0f9f4 0%,#F4F7F6 100%);color:var(--text-main);font-family:var(--font-main);font-size:16px;line-height:1.6;direction:rtl;box-sizing:border-box}
.dj-page *{box-sizing:border-box}
.dr-registration.dj-page{max-width:none;margin:0;padding:60px 0 80px;font-family:var(--font-main)}
.dj-page .dj-header{margin-bottom:50px;text-align:center}
.dj-page .dj-badge{display:inline-flex;align-items:center;gap:10px;margin-bottom:20px;padding:8px 20px;border-radius:50px;background:rgba(20,86,225,.08);color:var(--primary-color);font-size:.95rem;font-weight:700}
.dj-page .dj-badge i{font-size:1.2rem}
.dj-page .dj-title{margin:0 0 15px;color:#111;font-size:clamp(2rem,5vw,3rem);font-weight:800;line-height:1.6}
.dj-page .dj-title span{color:var(--primary-color)}
.dj-page .dj-sub{max-width:500px;margin:0 auto;color:var(--text-muted);font-size:1.1rem}
.dj-page .dj-card{position:relative;max-width:650px;margin:0 auto;padding:50px 45px;overflow:hidden;color:var(--text-muted);border:1px solid #EDEDED;border-radius:24px;background:#fff;box-shadow:0 20px 60px rgba(15,35,69,.08),0 4px 15px rgba(0,0,0,.05)}
.dj-page .dj-card::before{content:"";position:absolute;top:0;right:0;left:0;height:5px;background:linear-gradient(90deg,var(--btn-primary,#1456E1),#0E46C4)}
.dj-page .dj-section{margin-bottom:30px}
.dj-page .dj-section h2{margin:0 0 5px;color:#111;font-size:1.4rem;font-weight:800}
.dj-page .dj-section p{margin:0;color:var(--text-muted);font-size:.95rem}
.dj-page .dj-fields{display:grid;gap:22px}
.dj-page .dj-field{display:block;margin:0}
.dj-page .dj-label{display:flex;align-items:center;gap:8px;margin-bottom:10px;color:#333;font-size:.95rem;font-weight:700}
.dj-page .dj-label i{color:var(--primary-color);font-size:1.1rem}
.dj-page .dj-input,.dj-page .dj-submit{line-height:normal}
.dj-page .dj-input{display:block;width:100%;min-height:0;padding:15px 18px;border:1.5px solid #E8E8E8;border-radius:12px;outline:none;background:#FAFAFA;color:var(--text-main);font-family:'Tajawal',sans-serif;font-size:1rem;transition:all .3s ease}
.dj-page .dj-input:focus{border-color:var(--primary-color);background:#fff;box-shadow:0 0 0 4px rgba(45,182,98,.1)}
.dj-page .dj-select{padding-left:40px;appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 24 24' fill='%231456E1'%3E%3Cpath d='M16.293 9.293 12 13.586 7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 15px center}
.dj-page .dj-textarea{min-height:110px;resize:vertical}
.dj-page .dj-hint{display:block;margin:0;color:#999;font-size:.82rem}
.dj-page .dj-actions{display:grid;gap:12px;margin-top:22px}
.dj-page .dj-submit{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:70px;padding:18px;border:none;border-radius:14px;background:var(--btn-primary,#1456E1);box-shadow:0 6px 20px rgba(20,86,225,.28);color:#fff;font-family:'Tajawal',sans-serif;font-size:1.15rem;font-weight:800;cursor:pointer;transition:all .35s ease}
.dj-page .dj-submit:hover:not(:disabled){background:var(--btn-primary-hover,#0E46C4);box-shadow:0 12px 30px rgba(20,86,225,.38);transform:translateY(-2px)}
.dj-page .dj-submit:disabled{opacity:.7;cursor:not-allowed;transform:none}
.dj-page .dj-trust{display:flex;flex-wrap:wrap;justify-content:center;gap:20px;margin-top:30px}
.dj-page .dj-trust span{display:flex;align-items:center;gap:6px;color:var(--text-muted);font-size:.85rem}
.dj-page .dj-trust i{color:var(--primary-color)}
.dj-page .jm-card,.dj-page .jm-alert{max-width:650px;margin-inline:auto}
.dj-page .jm-alert{margin-bottom:1.25rem}
.dj-page .jm-input{padding:15px 18px;border:1.5px solid #E8E8E8;border-radius:12px;background:#FAFAFA;font-family:'Tajawal',sans-serif;font-size:1rem}
@media(max-width:600px){.dj-page .dj-card{padding:35px 20px;border-radius:20px}}



.dallni-join-choice{--join-green:#167c52;--join-ink:#14231d;--join-muted:#65766f;background:#f5f8f6;min-height:65vh;padding:clamp(40px,8vw,88px) 20px;color:var(--join-ink)}
.dallni-join-choice__inner{max-width:980px;margin:0 auto;text-align:center}
.dallni-join-choice h1{margin:8px 0 12px;font-size:clamp(30px,5vw,46px)}
.dallni-join-choice__intro{max-width:650px;margin:0 auto;color:var(--join-muted);line-height:1.8}
.dallni-join-choice__cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:36px;text-align:right}
.dallni-join-choice__card{display:block;padding:30px;border:1px solid #e3ebe6;border-radius:20px;background:#fff;color:var(--join-ink);text-decoration:none;box-shadow:0 10px 30px rgba(20,35,29,.05);transition:transform .18s ease,box-shadow .18s ease}
.dallni-join-choice__card:hover{color:var(--join-ink);transform:translateY(-3px);box-shadow:0 16px 38px rgba(20,35,29,.1)}
.dallni-join-choice__icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#eaf5ef;color:var(--join-green);font-size:24px}
.dallni-join-choice__card h2{margin:18px 0 8px;font-size:24px}
.dallni-join-choice__card p{min-height:52px;color:var(--join-muted);line-height:1.8}
.dallni-join-choice__card strong{display:flex;justify-content:space-between;align-items:center;margin-top:22px;color:var(--join-green)}
@media(max-width:640px){.dallni-join-choice__cards{grid-template-columns:1fr}.dallni-join-choice__card p{min-height:0}}

.dr-registration-phone-form{display:grid;gap:12px;padding:22px 24px!important}
.dr-registration-phone-form__row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
.dr-registration-phone-form__row label{display:flex;flex-direction:column;gap:7px;color:#283d33;font-size:14px;font-weight:700}
.dr-registration-phone-form__row input{width:100%;min-height:48px;padding:11px 13px;border:1px solid #dce5df;border-radius:10px;background:#fbfdfb;color:var(--dr-ink);font:inherit}
.dr-registration-phone-form__row input:focus{outline:0;border-color:#1456E1;background:#fff;box-shadow:0 0 0 3px rgba(20,86,225,.12)}
.dr-registration-phone-form__row .dr-button{min-height:48px;white-space:nowrap}
.dr-registration-phone-form__hint{margin:0;color:var(--dr-muted);font-size:13px;line-height:1.7}
.dr-registration-otp{display:flex;flex-direction:column;gap:7px;max-width:420px;color:#283d33;font-size:14px;font-weight:700}
.dr-registration-otp input{width:100%;min-height:48px;padding:11px 13px;border:1px solid #dce5df;border-radius:10px;background:#fbfdfb;color:var(--dr-ink);font:inherit;letter-spacing:.15em}
.dr-registration-otp[hidden]{display:none!important}
.dr-registration-submit button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
@media(max-width:680px){.dr-registration-phone-form{padding:18px!important}.dr-registration-phone-form__row{grid-template-columns:1fr}.dr-registration-phone-form__row .dr-button{width:100%}}
.dr-logo{display:block;width:88px;height:88px;object-fit:cover;border:3px solid rgba(255,255,255,.85);border-radius:50%;margin:10px 0;box-shadow:0 4px 18px rgba(0,0,0,.18)}

.dallni-restaurant .dr-button--primary{background:var(--dr-brand-button,var(--dr-green));color:var(--dr-brand-on-button,#fff)}.dallni-restaurant .dr-button--primary:hover{filter:brightness(.92);background:var(--dr-brand-button,#116641);color:var(--dr-brand-on-button,#fff)}.dallni-restaurant .dr-item strong{color:var(--dr-brand-price,var(--dr-green))}.dallni-restaurant .dr-category h3{border-bottom-color:var(--dr-brand-secondary,var(--dr-border))}
.dr-category-badges{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.dr-category-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;background:#f0f7f3;color:#24553d;font-size:13px;font-weight:600}.dr-hero .dr-category-badge{background:rgba(255,255,255,.9);color:#173b2d}.dr-category-badge__image{width:18px;height:18px;border-radius:50%;object-fit:cover}
.dr-section-tabs{position:sticky;top:var(--dr-sticky-top,0);z-index:5;display:flex;gap:6px;overflow-x:auto;margin:14px -6px 0;padding:8px 6px;background:#fff;border-bottom:1px solid var(--dr-border);scrollbar-width:thin}.dr-section-tabs a{flex:0 0 auto;padding:7px 13px;border-radius:999px;background:#f3f7f5;color:#264d3a;text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap}.dr-section-tabs a:hover,.dr-section-tabs a:focus{background:var(--dr-brand-button,var(--dr-green));color:var(--dr-brand-on-button,#fff)}.dr-category{scroll-margin-top:calc(var(--dr-sticky-top,0px) + 70px)}.dr-category__head{display:flex;align-items:center;gap:12px}.dr-category__head h3{flex:1}.dr-category__head p{margin:-6px 0 8px}.dr-category__image{width:56px;height:56px;border-radius:12px;object-fit:cover}
.dr-directory-filter{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-top:16px;padding:16px;border:1px solid #e3ebe6;border-radius:16px;background:#fff}.dr-directory-filter label{display:flex;flex-direction:column;gap:5px;font-weight:600;min-width:160px;flex:1}.dr-directory-filter select{padding:10px;border:1px solid #d7e1db;border-radius:9px;font:inherit;background:#fff}
.dr-subtabs{display:flex;gap:6px;overflow-x:auto;padding:6px;margin-bottom:4px;border:1px solid var(--dr-border);border-radius:14px;background:#fff}.dr-subtabs button{flex:0 0 auto;padding:9px 13px;border:0;border-radius:10px;background:transparent;color:#40554a;font:inherit;font-size:14px;cursor:pointer;white-space:nowrap}.dr-subtabs button[aria-selected=true]{background:#eaf5ee;color:#145d3d;font-weight:800}.dr-subpanel[hidden]{display:none!important}.dr-settings-title{margin:22px 3px 0;font-size:18px}
.dr-field-error{display:block;color:#a3261a!important;font-weight:600;font-size:13px}.dr-notice--warning{background:#fff6e5;color:#6b4a0d;border:1px solid #f1d9a6}.dr-notice--warning p{margin:4px 0}
.dr-settings-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}.dr-settings-summary div{padding:12px;border:1px solid var(--dr-border);border-radius:12px;background:#fbfdfc}.dr-settings-summary dt{color:var(--dr-muted);font-size:12px}.dr-settings-summary dd{margin:4px 0 0;font-weight:700;overflow-wrap:anywhere}
.dr-staff-list,.dr-section-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}.dr-staff-list li,.dr-section-list li{padding:12px;border:1px solid var(--dr-border);border-radius:12px}.dr-staff-list summary{cursor:pointer;margin-top:8px;color:#315944;font-size:13px}.dr-section-move{display:inline-flex;gap:4px}
.dr-category-choice{border:1px solid var(--dr-border);border-radius:12px;padding:12px}.dr-category-choice legend{font-weight:700;padding:0 6px}.dr-category-choice__list{display:flex;flex-wrap:wrap;gap:8px 16px}.dr-category-choice__other{display:flex;flex-direction:column;gap:6px;margin-top:10px;font-weight:600}.dr-category-choice input[disabled]+.dr-category-badge{opacity:.5}
.dr-brand-editor{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:16px;align-items:start}.dr-brand-editor input[type=color]{height:44px;padding:4px}.dr-brand-preview{position:sticky;top:20px;overflow:hidden;border:1px solid var(--dr-border);border-radius:16px;background:#fff}.dr-brand-preview__hero{display:grid;gap:4px;padding:22px 18px;background:var(--dr-brand-primary,#173b2d);color:var(--dr-brand-on-primary,#fff)}.dr-brand-preview__hero strong{font-size:20px}.dr-brand-preview__accent{color:var(--dr-brand-accent,#57c494)!important;font-weight:700}.dr-brand-preview__logo{width:42px;height:42px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.6);background:#fff;margin-bottom:4px}.dr-brand-preview__body{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px}.dr-brand-preview__price{color:var(--dr-brand-price,#167c52);font-weight:800}.dr-brand-preview__button{padding:9px 14px;border-radius:10px;background:var(--dr-brand-button,#167c52);color:var(--dr-brand-on-button,#fff);font-weight:700}.dr-brand-preview__warning{margin:0 18px 16px;color:#8a4b00;font-size:13px}.dr-brand-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.dr-branding-current-thumb{display:block;margin-bottom:8px;border-radius:10px;border:1px solid var(--dr-border);object-fit:cover;background:#fff;padding:2px}
@media(max-width:680px){.dr-settings-summary,.dr-brand-editor{grid-template-columns:1fr}.dr-brand-preview{position:static}.dr-directory-filter label{min-width:100%}.dr-directory-filter .dr-button{width:100%}}
.dr-section-list .dr-inline-form{align-items:flex-end}.dr-section-list .dr-inline-form input[type=text],.dr-section-list .dr-inline-form input:not([type]),.dr-section-list .dr-inline-form select,.dr-dashboard-card>form.dr-inline-form input:not([type]){padding:8px 10px;border:1px solid #d7e1db;border-radius:9px;font:inherit;background:#fff}.dr-section-list li{display:grid;gap:8px}.dr-section-list .button,.dr-section-add .button{padding:6px 12px;border:1px solid #cfe1d6;border-radius:8px;background:#fff;color:#1f4f38;font:inherit;cursor:pointer}.dr-section-list .button[disabled]{opacity:.4;cursor:default}
@media(max-width:560px){.dr-section-list .dr-inline-form,.dr-section-add{flex-direction:column;align-items:stretch!important}.dr-section-list .dr-inline-form label,.dr-section-add label{flex-direction:column;align-items:stretch}.dr-section-add input{width:100%}.dr-section-list .dr-inline-form label:has(input[type=checkbox]){flex-direction:row;align-items:center}.dr-section-list .dr-inline-form input:not([type=checkbox]),.dr-section-list .dr-inline-form select{width:100%}.dr-section-move{align-self:flex-start}}
.dr-directory-types{grid-template-columns:repeat(auto-fit,minmax(150px,220px));justify-content:center}.dr-directory-types .dallni-subcat-card{text-decoration:none}[data-dr-directory][aria-busy="true"] [data-dr-results]{opacity:.55;transition:opacity .15s ease}.dr-directory-menu-btn{position:relative;z-index:2;text-decoration:none}.worker-icon-backdrop img.dr-directory-logo{padding:6px;object-fit:contain;border-radius:20px}[data-dr-directory] .dallni-hero-fullbleed-img{object-position:left bottom}
.dr-directory{--dr-green:#167c52}.dr-directory__header h1{color:#fff}.dr-directory-filter .dr-button--primary{background:#167c52;color:#fff}
/* ==========================================================================
   Jawaher Market Design System for Restaurant Owner Dashboard
   ========================================================================== */
.dr-owner-dashboard {
  --dr-border: hsl(var(--jm-border, 240 5.9% 90%));
  --dr-surface: hsl(var(--jm-card, 0 0% 100%));
  --dr-canvas: hsl(var(--jm-background, 0 0% 100%));
  --dr-ink: hsl(var(--jm-foreground, 240 10% 3.9%));
  --dr-muted: hsl(var(--jm-muted-foreground, 240 3.8% 46.1%));
  background: hsl(var(--jm-background, 0 0% 100%));
  color: hsl(var(--jm-foreground, 240 10% 3.9%));
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.dr-owner-dashboard,
.dr-owner-dashboard.jm-shell,
.dr-owner-dashboard .jm-shell {
  width: 100%;
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow: visible !important;
}

body.admin-bar .dr-owner-dashboard,
body.admin-bar .dr-owner-dashboard.jm-shell,
body.admin-bar .dr-owner-dashboard .jm-shell {
  height: auto !important;
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px)) !important;
  max-height: none !important;
  overflow: visible !important;
}

.dr-owner-dashboard .dr-owner-panel[hidden] {
  display: none !important;
}

.dr-owner-dashboard h1,
.dr-owner-dashboard h2,
.dr-owner-dashboard h3,
.dr-owner-dashboard h4 {
  color: hsl(var(--jm-foreground));
  letter-spacing: 0;
}

.dr-owner-dashboard .dr-dashboard-card,
.dr-owner-dashboard .dr-owner-qr {
  border: 1px solid hsl(var(--jm-border));
  border-radius: var(--jm-radius-card);
  background: hsl(var(--jm-card));
  color: hsl(var(--jm-card-foreground));
  box-shadow: var(--jm-shadow-sm);
  margin-top: 1rem;
}

.dr-owner-dashboard .dr-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dr-owner-dashboard .dr-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--jm-foreground));
}

.dr-owner-dashboard .dr-form-grid input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),
.dr-owner-dashboard .dr-form-grid select,
.dr-owner-dashboard .dr-form-grid textarea,
.dr-owner-dashboard .dr-inline-form input:not([type=checkbox]):not([type=radio]):not([type=file]),
.dr-owner-dashboard .dr-inline-form select,
.dr-owner-dashboard .dr-inline-form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid hsl(var(--jm-border));
  border-radius: var(--jm-radius);
  background: hsl(var(--jm-background));
  color: hsl(var(--jm-foreground));
  font: inherit;
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dr-owner-dashboard input:focus,
.dr-owner-dashboard select:focus,
.dr-owner-dashboard textarea:focus {
  outline: none;
  border-color: hsl(var(--jm-primary));
  box-shadow: 0 0 0 2px hsl(var(--jm-ring) / 0.5);
}

.dr-owner-dashboard input[type=file] {
  width: 100%;
  padding: 0.5rem;
  border: 1px dashed hsl(var(--jm-border));
  border-radius: var(--jm-radius);
  background: hsl(var(--jm-secondary) / 0.3);
  font-size: 0.8125rem;
  color: hsl(var(--jm-muted-foreground));
}

.dr-owner-dashboard .dr-field-wide {
  grid-column: 1 / -1;
}

.dr-owner-dashboard .dr-owner-checkbox {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.dr-owner-dashboard .dr-owner-checkbox input {
  width: 1.125rem !important;
  height: 1.125rem !important;
  margin: 0;
  accent-color: hsl(var(--jm-primary));
}

.dr-owner-dashboard .dr-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.dr-owner-dashboard .dr-table th {
  padding: 0.75rem 1rem;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  background: hsl(var(--jm-secondary) / 0.5);
  color: hsl(var(--jm-muted-foreground));
  border-bottom: 1px solid hsl(var(--jm-border));
}

.dr-owner-dashboard .dr-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--jm-border));
  color: hsl(var(--jm-foreground));
}

.dr-order-card {
  padding: 1.25rem;
  border: 1px solid hsl(var(--jm-border));
  border-radius: var(--jm-radius-card);
  background: hsl(var(--jm-card));
  color: hsl(var(--jm-card-foreground));
  box-shadow: var(--jm-shadow-sm);
  margin-bottom: 0.75rem;
  transition: box-shadow 0.15s;
}

.dr-order-card:hover {
  box-shadow: var(--jm-shadow-md);
}

.dr-brand-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.dr-brand-preview {
  position: sticky;
  top: 1.5rem;
  overflow: hidden;
  border: 1px solid hsl(var(--jm-border));
  border-radius: var(--jm-radius-card);
  background: hsl(var(--jm-card));
  box-shadow: var(--jm-shadow-sm);
}

@media (max-width: 768px) {
  .dr-owner-dashboard .dr-form-grid,
  .dr-brand-editor {
    grid-template-columns: 1fr;
  }
}

/* Restaurant ordering: product cards, options, floating cart and bottom sheets (Pizza House-style flow). */
.dallni-restaurant{--dr-accent:var(--dr-brand-button,var(--dr-green));--dr-on-accent:var(--dr-brand-on-button,#fff);--dr-cream:#fffdf8}
.dallni-restaurant .dr-items{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}
.dallni-restaurant .dr-item{flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;border-radius:16px;background:#fff;box-shadow:0 3px 12px rgba(20,35,29,.06)}
.dallni-restaurant .dr-item__media{aspect-ratio:4/3;background:#f3f6f4;overflow:hidden}
.dallni-restaurant .dr-item__image{width:100%;height:100%;border-radius:0;object-fit:contain}
.dr-item__placeholder{display:grid;place-items:center;width:100%;height:100%;color:var(--dr-accent);font-size:40px;font-weight:800;opacity:.35}
.dallni-restaurant .dr-item__body{padding:12px 12px 4px;text-align:center}
.dallni-restaurant .dr-item h4{margin:0 0 4px;font-size:15px;line-height:1.5}
.dallni-restaurant .dr-item p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0;font-size:12px;line-height:1.6}
.dr-item__foot{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:auto;padding:6px 12px 12px;text-align:center}
.dr-item__foot strong{font-size:14px}
.dr-add-button,.dr-whatsapp-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:38px;border:0;border-radius:10px;padding:8px 10px;background:var(--dr-accent);color:var(--dr-on-accent);font:inherit;font-size:14px;font-weight:700;text-decoration:none;cursor:pointer;transition:filter .15s,transform .15s;box-sizing:border-box}
.dr-add-button:hover,.dr-whatsapp-button:hover{filter:brightness(.92);color:var(--dr-on-accent)}
.dr-add-button.is-added{transform:scale(.96);filter:brightness(1.12)}
.dr-whatsapp-button{background:#1fa855;color:#fff}.dr-whatsapp-button:hover{color:#fff}
.dr-cart-bar{position:fixed;z-index:9990;inset-inline:16px;bottom:16px;display:flex;align-items:center;gap:12px;max-width:560px;margin:0 auto;padding:13px 18px;border:0;border-radius:16px;background:var(--dr-accent);color:var(--dr-on-accent);font:inherit;font-weight:700;box-shadow:0 10px 26px rgba(0,0,0,.22);cursor:pointer}
.dr-cart-bar__count{display:grid;place-items:center;min-width:26px;height:26px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.22);font-size:13px}
.dr-cart-bar__total{flex:1;text-align:start}
.dr-cart-bar__view{padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.18);font-size:13px}
.dr-overlay{position:fixed;inset:0;z-index:100000;background:rgba(15,20,18,.5)}
.dr-sheet{position:fixed;z-index:100001;inset-inline:0;bottom:0;display:flex;flex-direction:column;width:min(560px,100%);max-height:88vh;margin:0 auto;border-radius:22px 22px 0 0;background:var(--dr-cream);color:var(--dr-ink);box-shadow:0 -10px 30px rgba(0,0,0,.18);animation:dr-sheet-in .22s ease-out;box-sizing:border-box}
.dr-order-ui [hidden],.dr-order-ui[hidden]{display:none!important}
@keyframes dr-sheet-in{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.dr-sheet{animation:none}}
.dr-sheet>form{display:flex;flex-direction:column;min-height:0;margin:0}
.dr-sheet__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid #eee6da}
.dr-sheet__head h3{margin:0;font-size:19px;color:inherit}
.dr-sheet__close{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:#f1ebe0;color:#444;font-size:22px;line-height:1;cursor:pointer}
.dr-sheet__body{flex:1;overflow-y:auto;padding:14px 20px;overscroll-behavior:contain}
.dr-sheet__foot{padding:14px 20px calc(14px + env(safe-area-inset-bottom));border-top:1px solid #eee6da;background:#fff}
.dr-sheet__actions{display:grid;grid-template-columns:1fr 2fr;gap:10px}
.dr-sheet__actions .dr-button{min-height:48px;border:1px solid #e6dccb}
.dr-sheet__hint{margin:0 0 10px;color:var(--dr-muted);font-size:13px;line-height:1.7}
.dr-button--block{width:100%;min-height:48px}
.dr-sheet-lock,.dr-sheet-lock body{overflow:hidden}
.dr-cart-row,.dr-variant-row{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:10px;border:1px solid #efe6d6;border-radius:14px;background:#fff}
.dr-cart-row__info,.dr-variant-row__info{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.dr-cart-row__info b,.dr-variant-row__name{font-size:15px;font-weight:700}
.dr-cart-row__info span,.dr-variant-row__price{color:var(--dr-muted);font-size:13px}
.dr-cart-row__total{min-width:62px;text-align:end;font-weight:800}
.dr-cart-empty{margin:18px 0;color:var(--dr-muted);text-align:center}
.dr-stepper{display:inline-flex;align-items:center;gap:8px;padding:4px;border-radius:999px;background:#f6f1e8}
.dr-stepper__btn{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:var(--dr-accent);color:var(--dr-on-accent);font:inherit;font-size:18px;font-weight:800;line-height:1;cursor:pointer}
.dr-stepper__value{min-width:20px;text-align:center;font-weight:800}
.dr-total-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:16px}
.dr-total-row b{font-size:18px}
.dr-choice{display:flex;gap:10px;margin:4px 0 14px}
.dr-choice label{position:relative;flex:1;cursor:pointer}
.dr-choice input{position:absolute;opacity:0;pointer-events:none}
.dr-choice span{display:flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:10px;border:1.5px solid #e6dccb;border-radius:12px;background:#fff;font-weight:700;text-align:center;transition:background .15s,border-color .15s,color .15s}
.dr-choice input:checked+span{border-color:var(--dr-accent);background:var(--dr-accent);color:var(--dr-on-accent)}
.dr-choice input:focus-visible+span{outline:2px solid var(--dr-accent);outline-offset:2px}
.dr-choice i{font-style:normal}
.dr-field-group{display:grid;gap:12px;padding:14px;margin-bottom:14px;border:1px solid #efe6d6;border-radius:14px;background:#fff}
.dr-field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;font-weight:700;font-size:14px}
.dr-field-group .dr-field{margin-bottom:0}
.dr-field-group>div{display:grid;gap:12px}
.dr-field small{color:var(--dr-muted);font-weight:500}
.dr-field input,.dr-field select,.dr-field textarea{width:100%;min-height:46px;padding:11px 12px;border:1px solid #d9d2c5;border-radius:10px;background:#fff;color:var(--dr-ink);font:inherit;font-weight:500;box-sizing:border-box}
.dr-field textarea{min-height:70px;resize:vertical}
.dr-field input:focus,.dr-field select:focus,.dr-field textarea:focus{outline:0;border-color:var(--dr-accent);box-shadow:0 0 0 3px rgba(0,0,0,.06)}
.dr-field-hint{display:block;margin-top:-6px;color:#8a4b00;font-size:12px}
.dr-section-title{margin:4px 0 8px;font-weight:800}
.dr-transfer-box{padding:12px 14px;margin:-4px 0 14px;border:1px dashed #d9cbb2;border-radius:12px;background:#fff}
.dr-link-button{margin-bottom:10px;padding:0;border:0;background:none;color:var(--dr-accent);font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}
.dr-order-totals{margin:4px 0 10px;padding:12px 14px;border-radius:12px;background:#fff;border:1px solid #efe6d6}
.dr-order-totals div{display:flex;justify-content:space-between;gap:10px;padding:4px 0}
.dr-order-totals dt,.dr-order-totals dd{margin:0}
.dr-order-totals .is-total{margin-top:4px;padding-top:9px;border-top:1px dashed #e3d8c5;font-size:17px;font-weight:800}
.dr-form-error{margin:0 0 10px;padding:10px 12px;border-radius:10px;background:#fdecea;color:#a33a2c;font-weight:700}
.dr-channel-note{display:block;color:var(--dr-muted);font-size:12px;line-height:1.7}
.dr-bank-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;margin-bottom:9px;border:1px solid #efe6d6;border-radius:12px;background:#fff;font-weight:700;overflow-wrap:anywhere}
.dr-copy-button{flex:none;padding:7px 12px;border:0;border-radius:9px;background:#f6f1e8;color:var(--dr-accent);font:inherit;font-size:13px;font-weight:800;cursor:pointer}
@media(max-width:680px){.dallni-restaurant .dr-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dallni-restaurant .dr-item h4{font-size:14px}.dr-item__foot{padding:4px 9px 10px}.dallni-restaurant .dr-item__body{padding:10px 9px 2px}.dr-add-button,.dr-whatsapp-button{gap:4px;padding:8px 6px;font-size:12.5px;white-space:nowrap}.dr-whatsapp-button svg{width:15px;height:15px}.dr-sheet{max-height:92vh}.dr-sheet__body{padding:12px 14px}.dr-sheet__head,.dr-sheet__foot{padding-inline:14px}.dr-cart-bar{inset-inline:12px;bottom:12px}}
/* Distinct ordering look: horizontal product rows, compact dark cart pill, side drawers and centered dialogs. */
.dallni-restaurant{--dr-cream:#fff;--dr-ink-soft:#2b3a35}
.dallni-restaurant .dr-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dallni-restaurant .dr-item{display:grid;grid-template-columns:96px 1fr;grid-template-areas:"media body" "media foot";align-items:start;column-gap:12px;row-gap:0;padding:10px;border:1px solid var(--dr-border);border-radius:12px;box-shadow:none;background:#fff}
.dallni-restaurant .dr-item__media{grid-area:media;aspect-ratio:1/1;border-radius:10px;align-self:center}
.dallni-restaurant .dr-item__body{grid-area:body;padding:0;text-align:start}
.dallni-restaurant .dr-item h4{font-size:15px;margin:0 0 3px}
.dallni-restaurant .dr-item p{-webkit-line-clamp:2}
.dr-item__foot{grid-area:foot;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:6px 0 0;text-align:start}
.dr-item__foot strong{font-size:14px;white-space:nowrap}
.dr-add-button,.dr-whatsapp-button{width:auto;min-height:34px;padding:6px 14px;border-radius:999px;font-size:13px;white-space:nowrap}
.dr-add-button{background:transparent;color:var(--dr-accent);border:1.5px solid var(--dr-accent)}
.dr-add-button:hover{background:var(--dr-accent);color:var(--dr-on-accent);filter:none}
.dr-add-button.is-added{background:var(--dr-accent);color:var(--dr-on-accent)}
.dr-whatsapp-button{background:#fff;color:#128c4a;border:1.5px solid #25b866}.dr-whatsapp-button:hover{background:#25b866;color:#fff}
.dr-cart-bar{inset-inline:auto 18px;bottom:18px;max-width:none;margin:0;padding:10px 16px 10px 12px;border-radius:999px;background:#1e2a26;color:#fff;gap:10px;box-shadow:0 8px 22px rgba(0,0,0,.28)}
.dr-cart-bar__count{order:-1;background:var(--dr-accent);color:var(--dr-on-accent)}
.dr-cart-bar__total{flex:none}.dr-cart-bar__view{background:none;padding:0;font-size:13px;opacity:.85}
.dr-overlay{background:rgba(20,28,25,.55);backdrop-filter:blur(2px)}
.dr-sheet{background:#fff;color:var(--dr-ink)}
.dr-sheet--cart,.dr-sheet--confirm{inset:0 auto 0 0;width:min(430px,100%);max-height:none;height:100%;margin:0;border-radius:0 18px 18px 0;animation:dr-drawer-in .24s ease-out}
.dr-sheet--cart>*,.dr-sheet--confirm>form{min-height:0}
.dr-sheet--confirm>form{height:100%}
.dr-sheet--variants,.dr-sheet--accounts{inset:50% auto auto 50%;bottom:auto;width:min(440px,92vw);max-height:82vh;margin:0;border-radius:18px;transform:translate(-50%,-50%);animation:dr-pop-in .18s ease-out}
@keyframes dr-drawer-in{from{transform:translateX(-36px);opacity:0}to{transform:none;opacity:1}}
@keyframes dr-pop-in{from{transform:translate(-50%,-47%);opacity:0}to{transform:translate(-50%,-50%);opacity:1}}
.dr-sheet__head{background:#f4f7f5;border-bottom:0}
.dr-sheet__close{border-radius:8px;background:#fff;border:1px solid var(--dr-border)}
.dr-sheet__foot{background:#f4f7f5;border-top:0}
.dr-cart-row,.dr-variant-row{border:0;border-bottom:1px solid var(--dr-border);border-radius:0;margin:0;padding:12px 2px;background:transparent}
.dr-stepper{gap:0;padding:0;border:1.5px solid var(--dr-accent);border-radius:8px;background:#fff;overflow:hidden}
.dr-stepper__btn{width:30px;height:30px;border-radius:0;background:transparent;color:var(--dr-accent)}
.dr-stepper__btn:hover{background:var(--dr-accent);color:var(--dr-on-accent)}
.dr-stepper__value{min-width:28px;font-size:14px}
.dr-choice{gap:0;border:1.5px solid var(--dr-border);border-radius:10px;overflow:hidden;background:#fff}
.dr-choice label+label span{border-inline-start:1.5px solid var(--dr-border)}
.dr-choice span{border:0;border-radius:0;min-height:44px;font-size:14px;background:#fff}
.dr-choice input:checked+span{background:#1e2a26;color:#fff}
.dr-field-group,.dr-order-totals,.dr-transfer-box,.dr-bank-card{border-radius:10px;border-color:var(--dr-border);background:#fafcfb}
.dr-field input,.dr-field select,.dr-field textarea{border-radius:8px;border-color:#cfd9d3}
.dr-sheet__actions{grid-template-columns:1fr 2fr}
.dr-sheet__actions .dr-button{border-radius:10px;border:0}
.dr-sheet__actions .dr-button--light{background:#fff;border:1px solid var(--dr-border)}
.dr-copy-button{background:#fff;border:1px solid var(--dr-border);border-radius:8px}
.dr-order-totals .is-total{border-top-style:solid}
@media(max-width:680px){.dallni-restaurant .dr-items{grid-template-columns:1fr}.dallni-restaurant .dr-item{grid-template-columns:84px 1fr}.dr-item__foot{padding:6px 0 0}.dr-cart-bar{inset-inline:auto 12px;bottom:12px}.dr-sheet--cart,.dr-sheet--confirm{width:100%;border-radius:0}}
/* Restaurant page as a mobile-app style storefront: header, banner, category circles, product cards, bottom navigation. */
body.single-restaurant{background:var(--dr-page,#f6f4ef)!important}
.dr-app{--dr-primary:var(--dr-brand-primary,#173b2d);--dr-on-primary:var(--dr-brand-on-primary,#fff);max-width:1100px;padding:0 0 24px;scroll-margin-top:0;background:transparent}
.dr-app .dr-hero{display:none}
.dr-app-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 20px;border-radius:0 0 22px 22px;background:var(--dr-primary);color:var(--dr-on-primary)}
.dr-app-head__who{display:flex;align-items:center;gap:12px;min-width:0}
.dr-app-head__logo{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.55);background:#fff;flex:none}
.dr-app-head__who>div{display:flex;flex-direction:column;min-width:0}
.dr-app-head small{font-size:12px;opacity:.8}
.dr-app-head strong{font-size:18px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dr-app-head span{font-size:12px;opacity:.85}
.dr-app-head__tools{display:flex;gap:8px;flex:none}
.dr-icon-btn{display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:inherit;cursor:pointer;text-decoration:none}
.dr-icon-btn:hover{background:rgba(255,255,255,.3);color:inherit}
.dr-banner{position:relative;overflow:hidden;min-height:190px;margin:16px 16px 0;border-radius:20px;background:linear-gradient(135deg,var(--dr-primary),color-mix(in srgb,var(--dr-primary) 60%,#000));color:#fff;display:flex;align-items:flex-end}
.dr-banner__slide{position:absolute;inset:0}
.dr-banner__slide[hidden]{display:none}
.dr-banner__picture,.dr-banner__image{display:block;width:100%;height:100%}
.dr-banner__image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dr-banner:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.72),rgba(0,0,0,.08) 70%);z-index:1}
.dr-banner__overlay{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;padding:20px}
.dr-banner__text{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.dr-banner h1{margin:0;color:#fff;font-size:clamp(24px,5vw,34px);line-height:1.3}
.dr-banner p{margin:0;color:rgba(255,255,255,.88);font-size:14px}
.dr-banner .dr-state{margin:0;font-size:12px;padding:4px 10px}
.dr-banner__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}
.dr-banner__cta{display:inline-flex;align-items:center;gap:8px;padding:9px 18px;border-radius:999px;background:var(--dr-accent);color:var(--dr-on-accent);font-weight:800;font-size:14px;text-decoration:none;white-space:nowrap}
.dr-banner__cta:hover{filter:brightness(.92);color:var(--dr-on-accent)}
.dr-banner__qr-button{display:inline-flex;align-items:center;gap:7px;padding:9px 16px;border:1px solid rgba(255,255,255,.75);border-radius:999px;background:rgba(15,35,29,.58);color:#fff;font:inherit;font-size:14px;font-weight:800;cursor:pointer;backdrop-filter:blur(6px);white-space:nowrap}
.dr-banner__qr-button:hover,.dr-banner__qr-button:focus-visible{background:rgba(15,35,29,.82);color:#fff}
.dr-banner__qr-button svg{width:17px;height:17px}
.dr-qr-dialog[hidden]{display:none!important}
.dr-qr-dialog-open{overflow:hidden}
.dr-qr-dialog{position:fixed;z-index:100000;inset:0;display:grid;place-items:center;padding:20px}
.dr-qr-dialog__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.68)}
.dr-qr-dialog__card{position:relative;display:grid;justify-items:center;width:min(100%,420px);max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow:auto;padding:28px 24px 24px;border-radius:20px;background:#fff;color:#1e293b;text-align:center;box-shadow:0 24px 80px rgba(15,23,42,.28)}
.dr-qr-dialog__card h2{margin:4px 24px 6px;color:#183b2f;font-size:20px}
.dr-qr-dialog__card p{margin:0 0 16px;color:#64748b;font-size:14px}
.dr-qr-dialog__card img{display:block;width:min(100%,320px);height:auto;aspect-ratio:1;padding:10px;border:1px solid #e2e8f0;border-radius:16px;background:#fff}
.dr-qr-dialog__card a{margin-top:16px;color:#0d765f;font-weight:800;text-decoration:underline}
.dr-qr-dialog__share{width:min(100%,320px);min-height:44px;margin-top:14px;padding:8px 16px;border:0;border-radius:12px;background:#0d765f;color:#fff;font:inherit;font-weight:800;cursor:pointer}
.dr-qr-dialog__share:focus-visible{outline:2px solid #0d765f;outline-offset:2px}
.dr-qr-dialog__share:disabled{opacity:.7;cursor:wait}
.dr-qr-dialog__feedback:not(:empty){margin-top:8px;color:#475569;font-size:14px}
.dr-qr-dialog__link{width:min(100%,320px);min-width:0;margin-top:8px;padding:8px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1e293b}
.dr-qr-dialog__close{position:absolute;inset-block-start:8px;inset-inline-end:10px;width:38px;height:38px;border:0;border-radius:50%;background:#f1f5f9;color:#334155;font-size:27px;line-height:1;cursor:pointer}
.dr-qr-dialog__close:focus-visible{outline:2px solid #0d765f;outline-offset:2px}
.dr-banner__controls{position:absolute;z-index:3;left:12px;bottom:12px;display:flex;align-items:center;gap:7px;direction:ltr}
.dr-banner__controls>button{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:50%;background:rgba(0,0,0,.38);color:#fff;font-size:23px;line-height:1;cursor:pointer}
.dr-banner__dots{display:flex;align-items:center;gap:5px}
.dr-banner__dots button{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.58);cursor:pointer}
.dr-banner__dots button[aria-current="true"]{width:18px;border-radius:8px;background:#fff}
.dr-app>.dr-tracking{margin:16px}
.dr-shelf{margin:22px 16px 0}
.dr-shelf__title{margin:0 0 12px;font-size:20px}
.dr-cats{display:flex;gap:16px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:none}
.dr-cats::-webkit-scrollbar{display:none}
.dr-cat{display:flex;flex:0 0 auto;flex-direction:column;align-items:center;gap:7px;width:76px;color:var(--dr-ink);text-decoration:none}
.dr-cat__circle{display:grid;place-items:center;width:68px;height:68px;overflow:hidden;border-radius:50%;background:#fff;box-shadow:0 3px 10px rgba(20,35,29,.1);color:var(--dr-accent);font-size:26px;font-weight:800}
.dr-cat__circle img{width:100%;height:100%;object-fit:cover}
.dr-cat:hover .dr-cat__circle,.dr-cat:focus-visible .dr-cat__circle{box-shadow:0 0 0 2px var(--dr-accent)}
.dr-cat__name{font-size:13px;font-weight:700;text-align:center;line-height:1.4}
.dr-popular{overflow-x:auto;margin:0 -16px;padding:2px 16px 10px;scrollbar-width:none}
.dr-popular::-webkit-scrollbar{display:none}
.dr-popular .dr-items--row{display:flex;gap:12px}
.dr-popular .dr-item{flex:0 0 190px}
.dr-app .dr-menu{margin:22px 16px 0;padding:0;border:0;border-radius:0;background:transparent}
.dr-app .dr-menu .dr-eyebrow{display:none}
.dr-app .dr-menu h2{font-size:20px;margin:0}
.dr-app .dr-section-heading{margin-bottom:12px;align-items:center}
.dr-search{display:flex;align-items:center;gap:10px;margin:0 0 6px;padding:0 14px;border-radius:14px;background:#fff;border:1px solid var(--dr-border);color:var(--dr-muted)}
.dr-search input{flex:1;min-height:46px;border:0!important;outline:0;background:transparent!important;font:inherit;color:var(--dr-ink);padding:0!important}
.dr-search:focus-within{border-color:var(--dr-accent);box-shadow:0 0 0 3px rgba(0,0,0,.05)}
.dr-app .dr-category{margin-top:20px;scroll-margin-top:12px}
.dr-app .dr-category h3{border:0;padding:0;font-size:18px}
.dr-app .dr-category[hidden],.dr-app .dr-item[hidden]{display:none!important}
.dr-app .dr-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.dr-app .dr-item{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;border:0;border-radius:18px;background:#fff;box-shadow:0 4px 14px rgba(20,35,29,.07)}
.dr-app .dr-item__media{aspect-ratio:4/3;border-radius:0;align-self:auto}
.dr-app .dr-item__body{padding:12px 14px 0;text-align:start}
.dr-app .dr-item h4{margin:0 0 4px;font-size:16px}
.dr-app .dr-item p{margin:0;color:var(--dr-muted);font-size:12.5px;line-height:1.7;-webkit-line-clamp:2}
.dr-app .dr-item__foot{flex-direction:row;align-items:center;justify-content:space-between;margin-top:auto;padding:12px 14px 14px}
.dr-app .dr-item__foot strong{font-size:15px;color:var(--dr-ink)}
.dr-app .dr-add-button{display:grid;place-items:center;width:38px;height:38px;min-height:0;padding:0;border:0;border-radius:50%;background:var(--dr-accent);color:var(--dr-on-accent);font-size:24px;font-weight:600;line-height:1}
.dr-app .dr-add-button:hover{filter:brightness(.9);background:var(--dr-accent);color:var(--dr-on-accent)}
.dr-app .dr-whatsapp-button{width:auto;min-height:36px;padding:7px 12px;font-size:12.5px;white-space:nowrap}
.dr-app .dr-item__foot:has(.dr-whatsapp-button){flex-wrap:wrap}
.dr-app .dr-about,.dr-app .dr-branch-hours{margin:22px 16px 0}
.dr-bottom-nav{display:none}
@media(max-width:820px){
.dr-app{padding-bottom:96px}
.dr-cart-bar{display:none!important}
.dr-bottom-nav{position:fixed;z-index:9990;inset-inline:0;bottom:0;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;align-items:end;gap:2px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -6px 22px rgba(20,35,29,.12)}
.dr-bottom-nav a,.dr-bottom-nav__center,.dr-bottom-nav__unavailable{display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px;border:0;background:none;color:#7b8780;font:inherit;font-size:11.5px;font-weight:700;text-decoration:none;cursor:pointer}
.dr-bottom-nav__unavailable{opacity:.5;cursor:not-allowed}
.dr-bottom-nav a.is-active{color:var(--dr-accent)}
.dr-bottom-nav a[href*="wa.me"]:hover{color:#25d366}
.dr-bottom-nav a[href^="tel:"]:hover{color:var(--dr-accent)}
.dr-bottom-nav__center{position:relative;justify-self:center;width:62px;height:62px;margin-top:-30px;padding:0!important;justify-content:center;border-radius:50%!important;background:var(--dr-accent)!important;color:var(--dr-on-accent)!important;box-shadow:0 8px 20px rgba(0,0,0,.25)}
.dr-bottom-nav__center span{font-size:10.5px}
.dr-badge{position:absolute;top:4px;inset-inline-end:2px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#d9392b;color:#fff;font-size:11px;font-weight:800}
.dr-badge:empty,.dr-badge[data-zero]{display:none}
.dr-app-head{padding:14px 16px 18px}
.dr-banner{margin:14px 12px 0;min-height:170px}
.dr-shelf,.dr-app .dr-menu,.dr-app .dr-about,.dr-app .dr-branch-hours{margin-inline:12px}
.dr-popular{margin-inline:-12px;padding-inline:12px}
.dr-app .dr-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dr-app .dr-item__body{padding:10px 11px 0}
.dr-app .dr-item h4{font-size:14.5px}
.dr-app .dr-item__foot{padding:10px 11px 12px}
.dr-popular .dr-item{flex-basis:160px}
.dr-sheet--cart,.dr-sheet--confirm{width:100%}
}
@media(min-width:821px){.dr-app{padding-top:0}.dr-app-head,.dr-banner{margin-inline:0}.dr-app-head{border-radius:0 0 20px 20px;margin-top:0}.dr-shelf,.dr-app .dr-menu,.dr-app .dr-about,.dr-app .dr-branch-hours{margin-inline:0}}
.dr-app .dr-section-heading{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px}
.dr-app .dr-section-heading .dr-subtle{font-size:13px}
.dr-search{flex:0 0 100%;margin-top:6px}
/* Storefront polish after the reference app screens: search pill, active category, horizontal "most ordered" row with a badge. */
.dr-search-pill{position:relative;z-index:2;display:flex;align-items:center;gap:10px;width:calc(100% - 32px);margin:-22px 16px 0;padding:0 16px;min-height:48px;border:0;border-radius:999px;background:#fff;box-shadow:0 6px 18px rgba(20,35,29,.12);color:var(--dr-muted);font:inherit;font-size:14px;text-align:start;cursor:pointer}
.dr-search-pill svg{flex:none;color:var(--dr-ink)}
.dr-search-pill:hover,.dr-search-pill:focus-visible{background:#fff;color:var(--dr-ink);box-shadow:0 0 0 2px var(--dr-accent),0 6px 18px rgba(20,35,29,.12)}
.dr-app-head:has(+.dr-search-pill){padding-bottom:40px}
.dr-shelf__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.dr-shelf__head .dr-shelf__title{margin:0}
.dr-shelf__more{color:var(--dr-accent);font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}
.dr-shelf__more:after{content:" ←"}
.dr-cat.is-active .dr-cat__circle{background:var(--dr-accent);color:var(--dr-on-accent);box-shadow:0 0 0 3px #fff,0 0 0 5px var(--dr-accent)}
.dr-cat.is-active .dr-cat__name{color:var(--dr-accent)}
.dr-app .dr-popular .dr-items--row{display:flex;gap:12px}
.dr-app .dr-popular .dr-item{flex:0 0 190px}
.dr-app .dr-item__media{position:relative}
.dr-item__badge{position:absolute;top:10px;inset-inline-start:10px;padding:3px 10px;border-radius:999px;background:rgba(20,20,20,.72);color:#fff;font-size:11px;font-weight:800;line-height:1.6}
.dr-app .dr-item__foot{gap:8px}
.dr-app .dr-item__foot strong{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.dr-app .dr-item__foot strong small{color:var(--dr-muted);font-size:11px;font-weight:600}
.dr-app .dr-add-button{flex:none;width:34px;height:34px;font-size:22px}
@media(max-width:820px){
.dr-search-pill{width:calc(100% - 24px);margin-inline:12px}
.dr-app .dr-popular .dr-item{flex-basis:158px}
.dr-app .dr-item__foot strong{font-size:14px}
}
@media(min-width:821px){.dr-search-pill{width:calc(100% - 48px);margin-inline:24px}}
/* Empty states and orders modal */
.dr-empty-state[hidden],.dr-empty-state--search[hidden],[data-dr-no-results][hidden]{display:none!important}
.dr-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 18px;gap:8px}
.dr-empty-state__icon{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:#f4f7f5;color:var(--dr-accent);margin-bottom:6px}
.dr-empty-state__icon svg{width:32px;height:32px}
.dr-empty-state h4{margin:0;font-size:17px;font-weight:800;color:var(--dr-ink)}
.dr-empty-state p{margin:0 0 10px;color:var(--dr-muted);font-size:13.5px;line-height:1.6;max-width:300px}
.dr-empty-state .dr-button{min-height:42px;padding:8px 22px;border-radius:999px;font-weight:700;font-size:13.5px}
.dr-empty-state--search{margin-top:14px;padding:26px 16px;background:#fff;border-radius:14px;border:1px dashed var(--dr-border)}

/* ==========================================================================
   Dashboard Design Matching Reference Screenshot
   ========================================================================== */
.dr-dashboard.dr-owner-dashboard {
  background: #f5f7f6;
  min-height: 100vh;
  height: auto !important;
  overflow: visible !important;
}

.dr-owner-content {
  background: #f5f7f6;
  min-height: 100vh;
  height: auto !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Sidebar Styles Matching Screenshot */
.dr-owner-dashboard .jm-sidebar {
  background: #ffffff !important;
  border-inline-end: 1px solid #e5ede7 !important;
  padding: 16px 14px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.dr-owner-dashboard .jm-sidebar__brand {
  display: flex !important;
  min-height: 52px;
  height: auto !important;
  box-sizing: border-box;
  padding: 10px 12px !important;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, #17644d 0%, #103f32 100%);
  box-shadow: 0 6px 16px rgba(21, 78, 61, 0.17);
  font-size: 14px;
  color: #ffffff !important;
}

.dr-owner-dashboard .jm-sidebar__brand > span {
  width: 100%;
}

.dr-owner-dashboard .jm-sidebar__brand > span > svg {
  flex: 0 0 22px;
  color: #d8eee3;
}

.dr-owner-dashboard .jm-sidebar__brand > span > span {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.dr-owner-dashboard .jm-sidebar__brand .jm-icon-btn {
  color: #ffffff;
}

.dr-owner-dashboard .jm-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.dr-owner-dashboard .jm-nav__link {
  height: 46px !important;
  min-height: 46px !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
  color: #1f3d32 !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.dr-owner-dashboard .jm-nav__link .jm-nav__label {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.dr-owner-dashboard .jm-nav__link svg {
  width: 20px !important;
  height: 20px !important;
  color: #154e3d !important;
  stroke: #154e3d !important;
  flex-shrink: 0 !important;
}

.dr-owner-dashboard .jm-nav__link .dr-nav-arrow {
  margin-inline-start: auto !important;
  color: #9cb2a8 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.dr-owner-dashboard .jm-nav__link:hover {
  background: #f1f6f3 !important;
  color: #154e3d !important;
}

.dr-owner-dashboard .jm-nav__link.is-active {
  background: #154e3d !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(21, 78, 61, 0.18) !important;
}

.dr-owner-dashboard .jm-nav__link.is-active svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.dr-owner-dashboard .jm-nav__link.is-active .dr-nav-arrow {
  display: none !important;
}

.dr-owner-dashboard .dr-owner-nav__count {
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  border-radius: 9999px !important;
}

/* Topbar Breadcrumb & Actions Row */
.dr-owner-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: transparent;
  border-bottom: none;
  gap: 16px;
}

.dr-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
}

.dr-breadcrumbs a {
  color: #64748b;
  text-decoration: none;
}

.dr-breadcrumbs-sep {
  color: #94a3b8;
  opacity: 0.6;
}

.dr-breadcrumbs-current {
  color: #334155;
  font-weight: 600;
}

.dr-owner-topbar__end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dr-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  white-space: nowrap;
}

.dr-pill-btn--primary {
  background: #154e3d;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(21, 78, 61, 0.16);
}

.dr-pill-btn--primary:hover {
  background: #0f3d30;
  color: #ffffff;
}

.dr-pill-btn--outline {
  background: #ffffff;
  color: #334155;
  border: 1.5px solid #d5ded9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dr-pill-btn--outline:hover {
  background: #f7faf8;
  border-color: #c4d2cb;
}

/* Welcome Hero Banner */
.dr-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  box-sizing: border-box;
  min-height: 148px;
  padding: 26px 40px;
  border-radius: 22px;
  background: linear-gradient(105deg, #d3ebdff0 0%, #e5f2eb 40%, #f6f1e8 85%, #f6f1e8 100%);
  margin-bottom: 26px;
  box-shadow: 0 3px 12px rgba(20, 50, 35, 0.04);
  position: relative;
  overflow: hidden;
}

.dr-hero-banner-content {
  flex: 1;
  min-width: 0;
}

.dr-hero-banner-title {
  font-size: 26px;
  font-weight: 800;
  color: #144234;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.dr-hero-banner-sub {
  font-size: 15px;
  font-weight: 500;
  color: #446459;
  margin: 0;
  line-height: 1.5;
}

.dr-hero-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #154e3d;
  background: rgba(21, 78, 61, 0.08);
  padding: 4px 12px;
  border-radius: 9999px;
  width: fit-content;
}

.dr-hero-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.dr-hero-banner-illustration {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dr-hero-banner-img {
  height: 122px;
  width: auto;
  object-fit: contain;
  display: block;
}


/* Store Share Bar inside Main Hero Card */
.dr-hero-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(21, 78, 61, 0.16);
  border-radius: 14px;
  padding: 6px 8px 6px 14px;
  margin: 14px 0 18px 0;
  max-width: 600px;
  box-shadow: 0 2px 8px rgba(20, 50, 35, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.15s ease;
}

.dr-hero-share-bar:focus-within {
  background: #ffffff;
  border-color: #154e3d;
  box-shadow: 0 4px 14px rgba(21, 78, 61, 0.08);
}

.dr-hero-share-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.dr-hero-share-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #154e3d;
  white-space: nowrap;
  flex-shrink: 0;
}

.dr-hero-share-label svg {
  color: #154e3d;
}

.dr-hero-share-input {
  border: none;
  background: transparent;
  font-size: 12.5px;
  color: #27453b;
  width: 100%;
  direction: ltr;
  text-align: left;
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 0;
}

.dr-hero-share-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dr-hero-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.dr-hero-share-btn--copy {
  background: #154e3d !important;
  color: #ffffff !important;
}

.dr-hero-share-btn--copy:hover {
  background: #0f3d30 !important;
  color: #ffffff !important;
}

.dr-hero-share-btn--copy.is-copied {
  background: #1d774f !important;
  color: #ffffff !important;
}

.dr-hero-share-btn--copy svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.dr-hero-share-btn--qr {
  background: #eef5f1;
  color: #154e3d;
  border: 1px solid #d8e7de;
}

.dr-hero-share-btn--qr:hover {
  background: #e0eee6;
  color: #0f3d30;
}

.dr-hero-share-btn--qr svg {
  color: #154e3d;
}

@media (max-width: 680px) {
  .dr-hero-share-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    gap: 10px;
  }
  .dr-hero-share-actions {
    justify-content: stretch;
  }
  .dr-hero-share-btn {
    flex: 1;
  }
}

/* Orders dashboard: readable cards with clear details and status actions. */
.dr-owner-dashboard [data-dr-panel="orders"] .dr-orders-page-header{padding:22px 24px;margin:0 0 18px;border:1px solid #e3ede6;border-radius:18px;background:linear-gradient(135deg,#f3faf6 0%,#fff 72%)}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-orders-page-title{font-size:24px}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-orders-card-box{padding:24px;border-radius:20px;background:#f8fbf9}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-orders-card-inner{gap:20px}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-orders-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 16px;padding-bottom:16px;border-bottom:1px solid #e6eee9}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-orders-card-title{font-size:20px}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-orders-card-desc{grid-column:1;grid-row:2}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-orders-count-badge{grid-column:2;grid-row:1/3;margin:0;white-space:nowrap}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-list{display:grid;gap:16px}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card{margin:0;padding:0;overflow:hidden;border:1px solid #dfe9e3;border-radius:16px;background:#fff;box-shadow:0 4px 14px rgba(20,50,35,.045)}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;background:#f5faf7;border-bottom:1px solid #e8efeb}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__head>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;min-width:0}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__head strong{font-size:16px;color:#173f30}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__head small{color:#718078;font-size:13px}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__body{padding:18px 20px}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__meta>div{min-width:0;padding:11px 13px;border:1px solid #edf1ee;border-radius:11px;background:#fbfdfc}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__meta dt{margin:0 0 4px;color:#76847c;font-size:12px;font-weight:600}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__meta dd{margin:0;color:#263b30;font-weight:700;overflow-wrap:anywhere}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__meta dd a{color:inherit;text-decoration:none}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__meta .dr-order-card__wide{grid-column:1/-1}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__meta .dr-order-card__total{color:#167c52;font-size:17px}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__lines{display:grid;gap:0;margin:14px 0 0;padding:0;list-style:none;border:1px solid #edf1ee;border-radius:11px;overflow:hidden}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__lines li{display:flex;justify-content:space-between;gap:12px;padding:10px 13px;margin:0;border-bottom:1px solid #edf1ee}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__lines li:last-child{border-bottom:0}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__lines li strong{white-space:nowrap;color:#234b38}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__foot{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:15px 20px;background:#fafcfb;border-top:1px solid #edf1ee}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__status{display:grid;gap:6px;min-width:min(250px,100%);color:#42564b;font-size:13px;font-weight:700}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__status select{width:100%;min-height:42px;border:1px solid #d9e5dd;border-radius:9px;background:#fff;padding:8px 12px;font:inherit}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__foot .jm-btn{min-height:42px;padding:9px 18px}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__wa{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-color:#25d366;color:#128c4b}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__wa:hover{background:#eafaf0}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__wa .bx{font-size:19px}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__receipt-upload{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin:12px 0 0;padding:12px 13px;border:1px dashed #cfe0d6;border-radius:11px;background:#fafcfb}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__receipt-upload .dr-field{display:grid;gap:6px;flex:1 1 240px;margin:0;color:#42564b;font-size:13px;font-weight:700}
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__receipt-upload input[type=file]{max-width:100%;font:inherit;font-size:13px}
@media(max-width:760px){
  .dr-owner-dashboard [data-dr-panel="orders"] .dr-orders-card-box{padding:18px 14px}
  .dr-owner-dashboard [data-dr-panel="orders"] .dr-orders-card-illustration{display:none}
  .dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__meta{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
  .dr-owner-dashboard [data-dr-panel="orders"] .dr-orders-page-header{padding:17px}
  .dr-owner-dashboard [data-dr-panel="orders"] .dr-orders-page-title{font-size:20px}
  .dr-owner-dashboard [data-dr-panel="orders"] .dr-orders-card-head{grid-template-columns:1fr;align-items:start}
  .dr-owner-dashboard [data-dr-panel="orders"] .dr-orders-count-badge{grid-column:1;grid-row:auto}
  .dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__head,.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__body{padding:14px}
  .dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__foot{padding:14px}
  .dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__foot .jm-btn{width:100%}
  .dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__meta{grid-template-columns:1fr}
  .dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__meta .dr-order-card__wide{grid-column:auto}
}

/* Menu sections: calmer hierarchy and easier controls in the owner dashboard. */
.dr-owner-dashboard .dr-sections-card-box{padding:24px;border-color:#e3ebe6;border-radius:18px;background:#fbfdfc;box-shadow:0 5px 20px rgba(24,62,48,.035)}
.dr-owner-dashboard .dr-category-display-settings{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px 18px;margin:0 0 20px;padding:18px 20px;border-color:#e3ebe6;border-radius:14px;background:#fff}
.dr-owner-dashboard .dr-category-display-settings__copy{grid-column:1/-1;padding-bottom:12px;border-bottom:1px solid #edf1ee}
.dr-owner-dashboard .dr-category-display-settings__copy strong{font-size:15px;color:#203c30}
.dr-owner-dashboard .dr-category-display-settings__copy span{font-size:13px;line-height:1.6}
.dr-owner-dashboard .dr-category-display-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.dr-owner-dashboard .dr-category-display-option__button{min-height:66px;padding:11px 14px;border-color:#e3ebe6;border-radius:12px}
.dr-owner-dashboard .dr-category-display-option__text strong{font-size:13px}
.dr-owner-dashboard .dr-category-display-option__text small{font-size:12px}
.dr-owner-dashboard .dr-category-display-option:hover .dr-category-display-option__button{border-color:#a9cbbb;background:#f8fbf9}
.dr-owner-dashboard .dr-section-image-save{min-height:42px;padding:9px 16px;border-radius:10px;font-size:13px;transition:filter .15s ease,box-shadow .15s ease}
.dr-owner-dashboard .dr-section-image-save:hover{filter:brightness(.94)}
.dr-owner-dashboard .dr-section-image-save:focus-visible,.dr-owner-dashboard .dr-action-btn-green:focus-visible,.dr-owner-dashboard .dr-section-delete-btn:focus-visible,.dr-owner-dashboard .dr-section-image-editor summary:focus-visible{outline:3px solid rgba(22,124,82,.25);outline-offset:2px}
.dr-owner-dashboard .dr-sections-top-row{margin-bottom:14px}
.dr-owner-dashboard .dr-action-btn-green{background:#167c52!important;border-radius:11px;padding:10px 17px;box-shadow:0 3px 8px rgba(22,124,82,.14)}
.dr-owner-dashboard .dr-action-btn-green:hover{background:#116641!important}
.dr-owner-dashboard .dr-section-item-row{gap:14px;padding:14px 16px;border-color:#e6ede8;border-radius:14px;background:#fff;box-shadow:0 2px 7px rgba(24,62,48,.025)}
.dr-owner-dashboard .dr-section-item-row:hover{border-color:#c9ddd1;box-shadow:0 5px 14px rgba(24,62,48,.06)}
.dr-owner-dashboard .dr-section-status-group{min-width:82px}
.dr-owner-dashboard .dr-section-status-label{font-size:12px}
.dr-owner-dashboard .dr-section-title-text{font-size:15px;line-height:1.5;color:#263b30}
.dr-owner-dashboard .dr-section-name-wrap{gap:5px}
.dr-owner-dashboard .dr-section-image-editor summary{display:inline-flex;align-items:center;min-height:28px;padding:2px 9px;border-radius:999px;background:#eff7f2;font-size:12px;text-decoration:none}
.dr-owner-dashboard .dr-section-image-editor[open]{padding:10px;border:1px solid #e5eee8;border-radius:11px;background:#fbfdfc}
.dr-owner-dashboard .dr-section-delete-btn{min-height:36px;padding:7px 11px;border-color:#f3dede;border-radius:9px;color:#a94343}
.dr-owner-dashboard .dr-section-delete-btn:hover{background:#fff6f5;border-color:#e8bcbc}
.dr-owner-dashboard .dr-drag-handle{border-radius:8px;transition:background .15s ease,color .15s ease}
.dr-owner-dashboard .dr-section-item-row:hover .dr-drag-handle{visibility:visible;background:#f2f6f3;color:#567466}
@media(max-width:760px){
  .dr-owner-dashboard .dr-sections-card-box{padding:18px}
  .dr-owner-dashboard .dr-category-display-settings{padding:15px}
}

/* Keep the menu page title and its guidance together in a distinct card. */
.dr-owner-dashboard .dr-menu-page-header{gap:7px;margin:0 0 24px;padding:22px 24px;border:1px solid #e2ebe5;border-radius:18px;background:linear-gradient(120deg,#fff 0%,#f7fbf8 100%);box-shadow:0 4px 16px rgba(24,62,48,.035)}
.dr-owner-dashboard .dr-menu-title-wrap{width:100%}
.dr-owner-dashboard .dr-menu-page-title{gap:12px;font-size:25px}
.dr-owner-dashboard .dr-menu-title-icon{box-sizing:content-box;width:24px;height:24px;padding:9px;border:1px solid #dcebe1;border-radius:12px;background:#eef7f1;color:#17644d}
.dr-owner-dashboard .dr-menu-page-sub{padding-inline-start:42px;font-size:14px;line-height:1.7;color:#64776d}
@media(max-width:560px){
  .dr-owner-dashboard .dr-menu-page-header{margin-bottom:18px;padding:17px;border-radius:15px}
  .dr-owner-dashboard .dr-menu-page-title{font-size:21px}
  .dr-owner-dashboard .dr-menu-page-sub{padding-inline-start:0;font-size:13px}
}

/* The item form opens only on request; its trigger stays with the item list. */
.dr-owner-dashboard #drAddItemCard[hidden]{display:none!important}
.dr-owner-dashboard .dr-items-card-actions{display:flex;justify-content:flex-start;margin:0 0 16px}
.dr-owner-dashboard .dr-items-card-actions .dr-action-btn-green{min-height:42px}
.dr-owner-dashboard .dr-menu-section-required{margin:0 0 16px;padding:14px 16px;border:1px solid #f1d79a;border-radius:12px;background:#fffaf0;color:#59451d}
.dr-owner-dashboard .dr-menu-section-required strong{display:block;margin-bottom:5px}
.dr-owner-dashboard .dr-menu-section-required p{margin:0 0 8px;color:#6b5a35}
.dr-owner-dashboard .dr-menu-section-required button{color:#176744;font-weight:700}

/* Storefront offers form a horizontal, touch-friendly scroller at every width. */
.dr-app .dr-offers-grid{display:flex;flex-wrap:nowrap;grid-template-columns:none;gap:16px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 12px;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#e8a33b #fff6e8}
.dr-app .dr-offers-grid>.dr-item--offer{flex:0 0 calc((100% - 48px)/4);min-width:0;scroll-snap-align:start}
.dr-app .dr-offers-grid::-webkit-scrollbar{height:7px}
.dr-app .dr-offers-grid::-webkit-scrollbar-track{border-radius:999px;background:#fff6e8}
.dr-app .dr-offers-grid::-webkit-scrollbar-thumb{border-radius:999px;background:#e8a33b}
@media(max-width:820px){.dr-app .dr-offers-grid{gap:10px}.dr-app .dr-offers-grid>.dr-item--offer{flex-basis:calc((100% - 10px)/2)}}

/* Use a consistent page-title card across the restaurant dashboard tabs. */
.dr-owner-dashboard [data-dr-panel="branches"] .dr-branches-container > .dr-block-header,
.dr-owner-dashboard [data-dr-panel="profile"] .dr-modern-page-wrap > .dr-block-header,
.dr-owner-dashboard [data-dr-panel="settings"] .dr-modern-page-wrap > .dr-block-header,
.dr-owner-dashboard [data-dr-panel="qr"] .dr-modern-page-wrap > .dr-block-header,
.dr-owner-dashboard [data-dr-panel="suggestion"] .dr-modern-page-wrap > .dr-block-header,
.dr-owner-dashboard [data-dr-panel="subscription"] .dr-modern-page-wrap > .dr-block-header,
.dr-owner-dashboard [data-dr-panel="branding"] .dr-branding-header {
  box-sizing:border-box;
  min-height:92px;
  margin:0 0 22px;
  padding:20px 22px;
  border:1px solid #e2ebe5;
  border-radius:18px;
  background:linear-gradient(120deg,#fff 0%,#f7fbf8 100%);
  box-shadow:0 4px 16px rgba(24,62,48,.035);
}
.dr-owner-dashboard [data-dr-panel="branches"] .dr-block-header__start,
.dr-owner-dashboard [data-dr-panel="profile"] .dr-block-header__start,
.dr-owner-dashboard [data-dr-panel="settings"] .dr-block-header__start,
.dr-owner-dashboard [data-dr-panel="qr"] .dr-block-header__start,
.dr-owner-dashboard [data-dr-panel="suggestion"] .dr-block-header__start,
.dr-owner-dashboard [data-dr-panel="subscription"] .dr-block-header__start {gap:14px}
.dr-owner-dashboard [data-dr-panel="branches"] .dr-block-badge-icon,
.dr-owner-dashboard [data-dr-panel="profile"] .dr-block-badge-icon,
.dr-owner-dashboard [data-dr-panel="settings"] .dr-block-badge-icon,
.dr-owner-dashboard [data-dr-panel="qr"] .dr-block-badge-icon,
.dr-owner-dashboard [data-dr-panel="suggestion"] .dr-block-badge-icon,
.dr-owner-dashboard [data-dr-panel="subscription"] .dr-block-badge-icon {
  width:46px;height:46px;min-width:46px;border-radius:13px;background:#eef7f1;color:#17644d;border:1px solid #dcebe1;
}
.dr-owner-dashboard [data-dr-panel="branches"] .dr-block-title,
.dr-owner-dashboard [data-dr-panel="profile"] .dr-block-title,
.dr-owner-dashboard [data-dr-panel="settings"] .dr-block-title,
.dr-owner-dashboard [data-dr-panel="qr"] .dr-block-title,
.dr-owner-dashboard [data-dr-panel="suggestion"] .dr-block-title,
.dr-owner-dashboard [data-dr-panel="subscription"] .dr-block-title,
.dr-owner-dashboard [data-dr-panel="branding"] .dr-branding-title {color:#144234;font-size:23px}
.dr-owner-dashboard [data-dr-panel="branches"] .dr-block-desc,
.dr-owner-dashboard [data-dr-panel="profile"] .dr-block-desc,
.dr-owner-dashboard [data-dr-panel="settings"] .dr-block-desc,
.dr-owner-dashboard [data-dr-panel="qr"] .dr-block-desc,
.dr-owner-dashboard [data-dr-panel="suggestion"] .dr-block-desc,
.dr-owner-dashboard [data-dr-panel="subscription"] .dr-block-desc,
.dr-owner-dashboard [data-dr-panel="branding"] .dr-branding-subtitle {color:#64776d;line-height:1.65}
.dr-owner-dashboard [data-dr-panel="branding"] .dr-branding-header{display:flex;align-items:center;justify-content:space-between;gap:16px}
@media(max-width:640px){
  .dr-owner-dashboard [data-dr-panel="branches"] .dr-branches-container > .dr-block-header,
  .dr-owner-dashboard [data-dr-panel="profile"] .dr-modern-page-wrap > .dr-block-header,
  .dr-owner-dashboard [data-dr-panel="settings"] .dr-modern-page-wrap > .dr-block-header,
  .dr-owner-dashboard [data-dr-panel="qr"] .dr-modern-page-wrap > .dr-block-header,
  .dr-owner-dashboard [data-dr-panel="suggestion"] .dr-modern-page-wrap > .dr-block-header,
  .dr-owner-dashboard [data-dr-panel="subscription"] .dr-modern-page-wrap > .dr-block-header,
  .dr-owner-dashboard [data-dr-panel="branding"] .dr-branding-header {min-height:0;margin-bottom:18px;padding:16px;border-radius:15px}
  .dr-owner-dashboard [data-dr-panel="branding"] .dr-branding-header{align-items:flex-start;flex-direction:column}
  .dr-owner-dashboard [data-dr-panel="branches"] .dr-block-title,
  .dr-owner-dashboard [data-dr-panel="profile"] .dr-block-title,
  .dr-owner-dashboard [data-dr-panel="settings"] .dr-block-title,
  .dr-owner-dashboard [data-dr-panel="qr"] .dr-block-title,
  .dr-owner-dashboard [data-dr-panel="suggestion"] .dr-block-title,
  .dr-owner-dashboard [data-dr-panel="subscription"] .dr-block-title,
  .dr-owner-dashboard [data-dr-panel="branding"] .dr-branding-title {font-size:20px}
}
@media(max-width:560px){
  .dr-owner-dashboard .dr-category-display-settings{grid-template-columns:1fr}
  .dr-owner-dashboard .dr-category-display-options{grid-template-columns:1fr}
  .dr-owner-dashboard .dr-category-display-option__button{min-height:58px}
  .dr-owner-dashboard .dr-category-display-settings .dr-section-image-save{width:100%}
  .dr-owner-dashboard .dr-section-item-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px 10px;padding:12px}
  .dr-owner-dashboard .dr-section-status-group{grid-column:1;grid-row:1;min-width:0}
  .dr-owner-dashboard .dr-section-icon-badge{grid-column:3;grid-row:1}
  .dr-owner-dashboard .dr-section-name-wrap{grid-column:1/-1;grid-row:2;min-width:0}
  .dr-owner-dashboard .dr-section-delete-wrap{grid-column:3;grid-row:3}
  .dr-owner-dashboard .dr-drag-handle{grid-column:2;grid-row:3;visibility:visible;min-height:36px;background:#f5f8f6}
  .dr-owner-dashboard .dr-section-image-form{align-items:stretch;flex-direction:column}
  .dr-owner-dashboard .dr-section-image-form input[type="file"]{max-width:100%}
}

/* Section Header (لوحة المعلومات) */
.dr-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.dr-section-header-start {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dr-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #154e3d;
  margin: 0;
  line-height: 1.2;
}

.dr-section-title svg {
  color: #154e3d;
}

.dr-section-subtitle {
  font-size: 13px;
  color: #6e857c;
  margin: 0;
}

.dr-section-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dr-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dr-action-btn--primary {
  background: #154e3d;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(21, 78, 61, 0.15);
}

.dr-action-btn--primary:hover {
  background: #0f3d30;
  color: #ffffff;
}

.dr-action-btn--soft {
  background: #edf3ef;
  color: #223c33;
}

.dr-action-btn--soft:hover {
  background: #e1ece5;
}

/* Date Strip */
.dr-date-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #eef4f1;
  color: #426357;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 20px;
}

.dr-date-strip svg {
  color: #426357;
}

/* 4 Stat Cards Grid */
.dr-stat-cards-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.dr-stat-cards-row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dr-stat-card {
  background: #ffffff;
  border: 1px solid #e4ede7;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 138px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dr-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 78, 61, 0.06);
}

.dr-stat-card--gold {
  background: #fdfaf5;
  border-color: #f5ece2;
}

.dr-stat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dr-stat-card-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #52796f;
  margin: 0;
}

.dr-stat-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dr-stat-card-icon--mint {
  background: #e2efe8;
  color: #154e3d;
}

.dr-stat-card-icon--gold {
  background: #faeedd;
  color: #b46b1a;
}

.dr-stat-card-value {
  font-size: 34px;
  font-weight: 800;
  color: #154e3d;
  line-height: 1;
  margin: 8px 0;
}

.dr-stat-card-value--text {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  color: #154e3d;
}

.dr-stat-card-link {
  background: none;
  border: none;
  padding: 0;
  color: #154e3d;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
  margin-top: auto;
}

.dr-stat-card-link:hover {
  text-decoration: underline;
}

.dr-chevron {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* Restaurant Share Card in Dashboard Overview */
.dr-overview-share-card {
  background: #ffffff;
  border: 1px solid #e4ede7;
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dr-overview-share-card:hover {
  box-shadow: 0 4px 12px rgba(20, 78, 61, 0.05);
}

.dr-overview-share-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dr-overview-share-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef5f1;
  color: #154e3d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dr-overview-share-text {
  min-width: 0;
}

.dr-overview-share-title {
  font-size: 16px;
  font-weight: 800;
  color: #154e3d;
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.dr-overview-share-sub {
  font-size: 13px;
  color: #637d73;
  margin: 0;
  line-height: 1.4;
}

.dr-overview-share-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dr-overview-share-input-wrap {
  display: flex;
  align-items: center;
  background: #f4f7f5;
  border: 1px solid #dce8e0;
  border-radius: 10px;
  padding: 3px 4px 3px 12px;
  gap: 8px;
  transition: border-color 0.15s ease;
}

.dr-overview-share-input-wrap:focus-within {
  border-color: #154e3d;
  background: #ffffff;
}

.dr-overview-share-input {
  border: none;
  background: transparent;
  font-size: 13px;
  color: #27453b;
  width: 240px;
  direction: ltr;
  text-align: left;
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 0;
}

.dr-overview-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.dr-overview-share-btn--copy {
  background: #154e3d;
  color: #ffffff;
}

.dr-overview-share-btn--copy:hover {
  background: #0f3d30;
  color: #ffffff;
}

.dr-overview-share-btn--copy.is-copied {
  background: #1d774f !important;
}

.dr-overview-share-btn--qr {
  background: #eef5f1;
  color: #154e3d;
  border: 1px solid #d8e7de;
  border-radius: 10px;
  padding: 8px 14px;
}

.dr-overview-share-btn--qr:hover {
  background: #e0eee6;
  color: #0f3d30;
}

@media (max-width: 900px) {
  .dr-overview-share-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .dr-overview-share-box {
    flex-direction: column;
    align-items: stretch;
  }
  .dr-overview-share-input-wrap {
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
  }
  .dr-overview-share-input {
    width: 100%;
  }
}

/* Recent Orders Card */
.dr-recent-orders-card {
  background: #ffffff;
  border: 1px solid #e4ede7;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.dr-recent-orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dr-recent-orders-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  color: #154e3d;
}

.dr-recent-orders-all-link {
  background: none;
  border: none;
  padding: 0;
  color: #154e3d;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dr-recent-orders-all-link:hover {
  text-decoration: underline;
}

.dr-recent-orders-table-strip {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.4fr 1.1fr 1.1fr 1.2fr;
  gap: 12px;
  background: #eef4f1;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 700;
  color: #4e6d62;
  margin-bottom: 12px;
}

.dr-recent-orders-empty {
  padding: 40px 20px;
  text-align: center;
}

.dr-recent-orders-empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #eef4f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.dr-recent-orders-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: #154e3d;
  margin: 0 0 4px;
}

.dr-recent-orders-empty-sub {
  font-size: 13px;
  color: #789287;
  margin: 0;
}

.dr-recent-order-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.4fr 1.1fr 1.1fr 1.2fr;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #eef4f1;
  font-size: 13.5px;
  color: #2d3748;
}

.dr-recent-order-row:last-child {
  border-bottom: none;
}

.dr-badge-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
}

.dr-badge-status--new {
  background: #e3f2fd;
  color: #0d47a1;
}

.dr-badge-status--in_progress {
  background: #fff3e0;
  color: #e65100;
}

.dr-badge-status--delivered,
.dr-badge-status--ready {
  background: #e8f5e9;
  color: #1b5e20;
}

.dr-badge-status--cancelled {
  background: #ffebee;
  color: #b71c1c;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .dr-stat-cards-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .dr-stat-cards-row {
    grid-template-columns: 1fr;
  }
  .dr-hero-banner {
    flex-direction: column-reverse;
    text-align: center;
    padding: 20px 16px;
  }
  .dr-owner-topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }
  .dr-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .dr-recent-orders-table-strip {
    display: none;
  }
}

/* Subscription renewal warning shown to the owner throughout the grace period. */
.dr-subscription-expiry-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  padding: 20px 22px;
  border: 2px solid #f2b544;
  border-inline-start: 7px solid #d97706;
  border-radius: 16px;
  background: linear-gradient(110deg, #fff7e6 0%, #fffdf7 100%);
  color: #713f12;
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.12);
}

.dr-subscription-expiry-alert__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #d97706;
  color: #fff;
  font-size: 27px;
  font-weight: 800;
}

.dr-subscription-expiry-alert__copy strong {
  display: block;
  margin-bottom: 5px;
  color: #7c2d12;
  font-size: 19px;
}

.dr-subscription-expiry-alert__copy p {
  margin: 0;
  color: #713f12;
  font-size: 14px;
  line-height: 1.8;
}

.dr-subscription-expiry-alert__action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border-radius: 10px;
  background: #b45309;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
}

.dr-subscription-expiry-alert__action:hover,
.dr-subscription-expiry-alert__action:focus-visible {
  background: #92400e;
  color: #fff !important;
}

@media (max-width: 680px) {
  .dr-subscription-expiry-alert {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .dr-subscription-expiry-alert__icon {
    width: 38px;
    height: 38px;
    font-size: 23px;
  }
  .dr-subscription-expiry-alert__copy strong {
    font-size: 17px;
  }
  .dr-subscription-expiry-alert__action {
    grid-column: 1 / -1;
  }
}

/* Dynamic Dismissible Action Alert Toast */
.dr-alert-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #198754;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(25, 135, 84, 0.28);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.35s ease, transform 0.35s ease;
  animation: drToastSlideIn 0.3s ease-out;
  max-width: 90vw;
}

@keyframes drToastSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -15px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.dr-alert-toast.is-hidden {
  opacity: 0;
  transform: translate(-50%, -15px);
  pointer-events: none;
}

.dr-alert-toast__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.dr-alert-toast__text {
  flex: 1;
  line-height: 1.4;
}

.dr-alert-toast__close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}

.dr-alert-toast__close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}


/* ==========================================================================
   Full Vertical Scrollability for All Restaurant Dashboard Pages
   ========================================================================== */
html,
body {
  scroll-behavior: smooth;
  overflow-y: auto !important;
}

/* Ensure the root dashboard shell and all panels expand to full height and scroll naturally */
.dr-dashboard.dr-owner-dashboard,
.dr-dashboard.dr-owner-dashboard.jm-shell,
.dr-owner-dashboard.jm-shell,
.dr-owner-dashboard .jm-shell {
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Content column: allow full natural expansion without clipping */
.dr-owner-dashboard .jm-shell-col,
.dr-owner-dashboard .dr-owner-content {
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Content wrapper & page panels: visible overflow and comfortable bottom space */
.dr-owner-dashboard .jm-content {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
  overscroll-behavior: auto !important;
  padding-bottom: 90px !important;
}

.dr-owner-dashboard .jm-page {
  height: auto !important;
  overflow: visible !important;
}

/* Ensure ALL 9 panels are fully scrollable from top to bottom */
.dr-owner-dashboard .dr-owner-panel {
  width: 100% !important;
  box-sizing: border-box !important;
  height: auto !important;
  overflow: visible !important;
  display: block;
}

.dr-owner-dashboard .dr-owner-panel[hidden] {
  display: none !important;
}

/* Sticky sidebar on desktop: stays below the site header while scrolling and stops at the end of the dashboard, so it never covers the footer */
body:has(.dr-owner-dashboard) {
  overflow: visible !important;
  overflow-x: clip !important;
}

.dr-dashboard.dr-owner-dashboard {
  scroll-margin-top: calc(95px + var(--wp-admin--admin-bar--height, 0px));
}

@media (min-width: 769px) {
  .dr-dashboard.dr-owner-dashboard,
  .dr-dashboard.dr-owner-dashboard.jm-shell,
  .dr-owner-dashboard .dr-owner-content {
    min-height: calc(100vh - 95px - var(--wp-admin--admin-bar--height, 0px)) !important;
  }

  .dr-owner-dashboard .jm-content {
    padding-bottom: 40px !important;
  }

  .dr-owner-dashboard .jm-only-mobile,
  .dr-owner-dashboard .jm-backdrop {
    display: none !important;
  }

  .dr-owner-dashboard .jm-sidebar {
    position: sticky !important;
    inset: auto !important;
    top: 95px !important;
    flex: 0 0 272px !important;
    align-self: flex-start !important;
    width: 272px !important;
    height: calc(100vh - 95px) !important;
    max-height: calc(100vh - 95px) !important;
    z-index: 100 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    transform: none !important;
    background: #ffffff !important;
    border-inline-end: 1px solid #e5ede7 !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.02) !important;
    padding: 12px 12px !important;
    box-sizing: border-box !important;
  }

  .dr-owner-dashboard .jm-sidebar .jm-nav {
    flex: 0 0 auto !important;
    overflow: visible !important;
    padding: 0 !important;
    gap: 2px !important;
  }

  .dr-owner-dashboard .jm-sidebar .jm-nav__link {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
  }

  .dr-owner-dashboard .jm-sidebar .jm-nav__label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  body.admin-bar .dr-owner-dashboard .jm-sidebar {
    top: calc(95px + var(--wp-admin--admin-bar--height, 32px)) !important;
    height: calc(100vh - 95px - var(--wp-admin--admin-bar--height, 32px)) !important;
    max-height: calc(100vh - 95px - var(--wp-admin--admin-bar--height, 32px)) !important;
  }

  .dr-owner-dashboard .dr-owner-content {
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 0 !important;
    box-sizing: border-box !important;
  }
}

/* Mobile drawer: keep the first and last links clear of the site header and bottom app bar */
@media (max-width: 768px) {
  .dr-owner-dashboard .jm-sidebar {
    padding-top: 90px !important;
    padding-bottom: 110px !important;
    justify-content: flex-start !important;
  }

  .dr-owner-dashboard .jm-sidebar .jm-nav {
    min-height: 0 !important;
    padding: 0 !important;
  }
}

@media (min-width: 769px) {
  .dr-owner-dashboard .dr-breadcrumbs {
    white-space: nowrap;
  }
}

.dr-owner-dashboard .jm-sidebar::-webkit-scrollbar {
  width: 4px;
}
.dr-owner-dashboard .jm-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.dr-owner-dashboard .jm-sidebar::-webkit-scrollbar-track {
  background: transparent;
}


/* ==========================================================================
   Orders Page Design Matching Reference Screenshot
   ========================================================================== */
.dr-orders-page-header {
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dr-orders-title-wrap {
  display: flex;
  align-items: center;
}

.dr-orders-page-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 800;
  color: #144234;
  margin: 0;
  line-height: 1.3;
}

.dr-orders-title-icon {
  color: #144234;
  flex-shrink: 0;
}

.dr-orders-page-sub {
  font-size: 14px;
  font-weight: 500;
  color: #647d73;
  margin: 0;
  line-height: 1.5;
}

/* Orders Main Card ("سجل الطلبات") */
.dr-orders-card-box {
  background: #ffffff;
  border: 1px solid #e3ede6;
  border-radius: 22px;
  padding: 38px 44px;
  box-shadow: 0 3px 14px rgba(20, 50, 35, 0.03);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.dr-orders-card-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.dr-orders-card-main {
  flex: 1;
  min-width: 0;
}

.dr-orders-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 20px;
}

.dr-orders-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #154e3d;
  margin: 0;
  line-height: 1.25;
}

.dr-orders-card-desc {
  font-size: 13.5px;
  color: #647d73;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

.dr-orders-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 18px;
  border-radius: 9999px;
  background: #eef5f1;
  color: #154e3d;
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
  border: 1px solid #dbe8e0;
  margin-top: 6px;
}

.dr-orders-empty-state {
  margin-top: 26px;
}

.dr-orders-empty-text {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  margin: 0;
  line-height: 1.6;
}

/* Watermark Illustration on the Left */
.dr-orders-card-illustration {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
}

.dr-orders-card-illustration svg {
  display: block;
  width: 150px;
  height: 120px;
}

@media (max-width: 768px) {
  .dr-orders-card-box {
    padding: 24px 20px;
    border-radius: 18px;
  }
  .dr-orders-card-inner {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 16px;
  }
  .dr-orders-card-illustration {
    align-self: center;
    margin-bottom: 4px;
  }
  .dr-orders-page-title {
    font-size: 22px;
  }
}


/* ==========================================================================
   Menu Page & Add Item Card Matching Reference Screenshot
   ========================================================================== */
.dr-menu-page-header {
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dr-menu-title-wrap {
  display: flex;
  align-items: center;
}

.dr-menu-page-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 800;
  color: #144234;
  margin: 0;
  line-height: 1.3;
}

.dr-menu-title-icon {
  color: #144234;
  flex-shrink: 0;
}

.dr-menu-page-sub {
  font-size: 14px;
  font-weight: 500;
  color: #647d73;
  margin: 0;
  line-height: 1.5;
}

/* Add Item Card */
.dr-add-item-card {
  background: #ffffff;
  border: 1px solid #e3ede6;
  border-radius: 22px;
  padding: 34px 42px;
  box-shadow: 0 3px 14px rgba(20, 50, 35, 0.03);
  margin-bottom: 28px;
  position: relative;
  box-sizing: border-box;
}

.dr-menu-card-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #144234;
  margin: 0 0 24px;
  line-height: 1.25;
}

.dr-menu-card-title-icon {
  color: #144234;
  flex-shrink: 0;
}

/* 2-Column Grid matching screenshot */
.dr-add-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}
.dr-item-image-preview{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.dr-item-image-preview[hidden]{display:none}
.dr-item-image-preview__tile{display:flex;flex:0 0 76px;flex-direction:column;gap:4px;min-width:0}
.dr-item-image-preview__tile img{width:72px;height:64px;border:1px solid #dbe5de;border-radius:8px;background:#f7faf8;object-fit:cover}
.dr-item-image-preview__tile small{overflow:hidden;color:#64756b;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.dr-item-image-count{grid-column:1/-1;margin:-8px 0 0;color:#27734d;font-size:12px;font-weight:700}
.dr-item-image-count.is-over-limit{color:#b42318}

.dr-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dr-form-field--full {
  grid-column: 1 / -1;
}

.dr-field-label {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

.dr-text-input,
.dr-select-input,
.dr-textarea-input {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 14px;
  color: #1e293b;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dr-text-input:focus,
.dr-select-input:focus,
.dr-textarea-input:focus {
  border-color: #167c52;
  box-shadow: 0 0 0 3px rgba(22, 124, 82, 0.12);
}

.dr-select-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 16px;
  padding-inline-end: 16px;
  padding-inline-start: 38px;
  cursor: pointer;
}

.dr-textarea-input {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

/* File Upload Dropzone matching screenshot */
.dr-upload-dropzone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  background: #fcfdfc;
  padding: 8px 14px;
  min-height: 48px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dr-upload-dropzone:hover {
  border-color: #94a3b8;
  background: #f8faf8;
}

.dr-file-input-hidden {
  display: none !important;
}

.dr-upload-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dr-upload-browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #144234;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dr-upload-browse-btn:hover {
  background: #f1f5f3;
  border-color: #94a3b8;
}

.dr-upload-drag-hint {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}

.dr-upload-left {
  display: flex;
  align-items: center;
}

.dr-upload-format-hint {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}

/* Bottom Bar: Info Box on Left, Actions on Right */
.dr-add-item-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 6px;
  flex-wrap: wrap;
}

/* Info Pill on Left */
.dr-menu-info-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #edf6f1;
  border: 1px solid #dcece2;
  border-radius: 16px;
  padding: 10px 18px;
  box-sizing: border-box;
}

.dr-menu-info-pill__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #154e3d;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(21, 78, 61, 0.08);
}

.dr-menu-info-pill__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dr-menu-info-pill__text strong {
  font-size: 13px;
  font-weight: 800;
  color: #144234;
  line-height: 1.3;
}

.dr-menu-info-pill__text span {
  font-size: 11.5px;
  color: #647d73;
  font-weight: 500;
  line-height: 1.3;
}

/* Action Group on Right: Toggle + Submit */
.dr-add-item-actions-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dr-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.dr-toggle-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

/* iOS-style toggle switch */
.dr-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.dr-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.dr-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s ease;
  border-radius: 9999px;
}

.dr-switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.dr-switch input:checked + .dr-switch-slider {
  background-color: #144234;
}

.dr-switch input:checked + .dr-switch-slider:before {
  transform: translateX(22px);
}

.dr-submit-item-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #144234 !important;
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 66, 52, 0.2);
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none !important;
}

.dr-submit-item-btn *,
.dr-submit-item-btn:hover,
.dr-submit-item-btn:hover *,
.dr-submit-item-btn:focus,
.dr-submit-item-btn:focus *,
.dr-submit-item-btn:active,
.dr-submit-item-btn:active * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.dr-submit-item-btn svg,
.dr-submit-item-btn:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.dr-submit-item-btn:hover {
  background: #0d3025 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(20, 66, 52, 0.28);
}

@media (max-width: 860px) {
  .dr-add-item-card {
    padding: 24px 20px;
    border-radius: 18px;
  }
  .dr-add-item-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dr-upload-dropzone {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }
  .dr-add-item-bottom-bar {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 16px;
  }
  .dr-add-item-actions-group {
    justify-content: space-between;
    width: 100%;
  }
  .dr-menu-page-title {
    font-size: 22px;
  }
}


/* ==========================================================================
   Reduced Item Images Size (Admin Dashboard & Storefront Menu)
   ========================================================================== */

/* 1. Admin Dashboard Items List: Compact Item Thumbnails */
.dr-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.dr-item-card {
  background: #ffffff;
  border: 1px solid #e3ede6;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(20, 50, 35, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dr-item-card:hover {
  border-color: #cbdcd1;
  box-shadow: 0 4px 14px rgba(20, 50, 35, 0.06);
}

.dr-item-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Reduced thumbnail size to compact 46px */
.dr-item-card__thumb {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #eef6f1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  border: 1px solid #d8e8de !important;
  color: #154e3d !important;
  font-weight: 800 !important;
  font-size: 15px !important;
}

.dr-item-card__thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.dr-item-card__name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dr-item-card__name strong {
  font-size: 15px;
  font-weight: 700;
  color: #144234;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dr-item-card__name small {
  font-size: 13px;
  font-weight: 700;
  color: #167c52;
}

.dr-item-card__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dr-item-card__fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.dr-item-card__wide {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.dr-item-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f4f2;
  flex-wrap: wrap;
}

/* 2. Storefront / Customer Menu Page: Compact Reduced Item Images */
.dallni-restaurant .dr-item__media,
.dr-app .dr-item__media {
  max-height: 110px !important;
  aspect-ratio: 16 / 10 !important;
}

.dallni-restaurant .dr-item__image,
.dr-app .dr-item__image {
  width: 100% !important;
  height: 100% !important;
  max-height: 110px !important;
  object-fit: contain !important;
}

/* Horizontal list item images reduction */
.dallni-restaurant .dr-item {
  grid-template-columns: 76px 1fr !important;
}

.dallni-restaurant .dr-item .dr-item__media {
  width: 76px !important;
  height: 76px !important;
  max-height: 76px !important;
  border-radius: 10px !important;
}

.dallni-restaurant .dr-item .dr-item__image {
  max-height: 76px !important;
}

@media (max-width: 680px) {
  .dr-item-grid {
    grid-template-columns: 1fr;
  }
  .dallni-restaurant .dr-item__media,
  .dr-app .dr-item__media {
    max-height: 100px !important;
    aspect-ratio: 16 / 10 !important;
  }
}


/* ==========================================================================
   Modern Menu Layout (Matching Design Screenshot)
   Card 1: أقسام قائمة الطعام | Card 2: الأصناف الحالية في المنيو
   ========================================================================== */

/* Block Containers & Headers */
.dr-sections-block,
.dr-items-block {
  width: 100%;
  margin-bottom: 28px;
}

.dr-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.dr-block-header__start {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dr-block-badge-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  color: #059669;
}

.dr-block-badge-icon--teal {
  background: #f0fdf4;
  color: #167c52;
  border: 1px solid #dcfce7;
}

.dr-block-title {
  font-size: 19px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.dr-block-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.dr-block-header__end {
  display: flex;
  align-items: center;
}

.dr-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Card Boxes */
.dr-sections-card-box,
.dr-items-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Card 1: Sections Top Row */
.dr-sections-top-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.dr-action-btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #10b981 !important;
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  text-decoration: none !important;
}

.dr-action-btn-green *,
.dr-action-btn-green:hover,
.dr-action-btn-green:hover *,
.dr-action-btn-green:focus,
.dr-action-btn-green:focus *,
.dr-action-btn-green:active,
.dr-action-btn-green:active * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.dr-action-btn-green svg,
.dr-action-btn-green:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.dr-action-btn-green:hover {
  background: #059669 !important;
  color: #ffffff !important;
}

.dr-action-btn-green:active {
  transform: translateY(1px);
}

/* Inline Add Section Form */
.dr-add-section-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.dr-add-section-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.dr-add-section-inputs .dr-text-input {
  width: 100%;
  box-sizing: border-box;
}

.dr-add-section-image {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #475569;
  font-size: 13px;
}

.dr-add-section-image input[type="file"] {
  width: 100%;
  font: inherit;
}

.dr-add-section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dr-cancel-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Card 1: Sections List Rows */
.dr-sections-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dr-section-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dr-section-item-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.dr-section-status-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 90px;
}

.dr-section-status-label {
  font-size: 13px;
  font-weight: 700;
  color: #10b981;
}

.dr-section-icon-badge {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dr-section-icon-badge--meal {
  background: #fffbeb;
  color: #d97706;
}

.dr-section-icon-badge--drink {
  background: #ecfdf5;
  color: #059669;
}

.dr-section-icon-badge--salad {
  background: #f5f3ff;
  color: #7c3aed;
}

.dr-section-name-wrap {
  flex: 1;
  min-width: 0;
}

.dr-section-title-text {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.dr-section-delete-wrap {
  display: flex;
  align-items: center;
}

.dr-section-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #fee2e2;
  color: #ef4444;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dr-section-delete-btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.dr-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: grab;
  padding: 4px;
  user-select: none;
}

.dr-drag-handle:hover {
  color: #475569;
}

/* Section order arrows (replace the old drag handle, which did nothing). */
.dr-owner-dashboard .dr-section-order {
  gap: 2px;
  margin: 0;
  cursor: default;
  visibility: visible;
}

.dr-owner-dashboard .dr-section-order__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #dbe5df;
  border-radius: 8px;
  background: #fff;
  color: #567466;
  cursor: pointer;
}

.dr-owner-dashboard .dr-section-order__btn:hover:not(:disabled) {
  background: #f2f6f3;
  color: #1f5c43;
}

.dr-owner-dashboard .dr-section-order__btn:focus-visible {
  outline: 2px solid #1f7a55;
  outline-offset: 2px;
}

.dr-owner-dashboard .dr-section-order__btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

/* Card 2: Filter & Search Bar */
.dr-items-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.dr-search-field-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
  min-width: 200px;
}

.dr-search-input-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.dr-search-items-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 9px 40px 9px 16px;
  font-size: 13.5px;
  color: #1e293b;
  outline: none;
  box-sizing: border-box;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dr-search-items-input:focus {
  background: #ffffff;
  border-color: #10b981;
}

.dr-category-tabs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dr-category-tab {
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 9999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dr-category-tab:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.dr-category-tab.is-active {
  background: #1e293b;
  color: #ffffff;
}

/* Card 2: 3-Column Items Grid */
.dr-items-modern-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dr-modern-item-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dr-modern-item-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.dr-modern-item-card__media {
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dr-modern-item-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dr-modern-item-placeholder {
  font-size: 20px;
  font-weight: 800;
  color: #94a3b8;
}

.dr-modern-item-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dr-modern-item-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dr-modern-item-price {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.dr-cat-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 2px;
}

.dr-cat-badge--amber {
  background: #fef3c7;
  color: #d97706;
}

.dr-cat-badge--mint {
  background: #d1fae5;
  color: #059669;
}

.dr-cat-badge--purple {
  background: #f3e8ff;
  color: #7e22ce;
}

.dr-cat-badge--teal {
  background: #e0f2fe;
  color: #0284c7;
}

.dr-item-edit {
  flex: 0 0 100%;
  width: 100%;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}

.dr-item-edit__summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #d5ded9;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.dr-item-edit__summary::-webkit-details-marker { display: none; }
.dr-item-edit__summary::marker { content: ""; }
.dr-item-edit__summary:hover { background: #f7faf8; }

.dr-item-edit__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f8faf9;
}

.dr-item-edit__form > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.dr-item-edit__form .dr-text-input,
.dr-item-edit__form .dr-select-input,
.dr-item-edit__form .dr-textarea-input,
.dr-item-edit__form .dr-file-input {
  width: 100%;
  box-sizing: border-box;
}

.dr-item-edit__wide,
.dr-item-edit__actions { grid-column: 1 / -1; }
.dr-item-edit__actions { display: flex; justify-content: flex-start; }
.dr-item-edit__summary:focus-visible { outline: 2px solid #57c494; outline-offset: 2px; }

@media (max-width: 1100px) {
  .dr-items-modern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dr-items-modern-grid {
    grid-template-columns: 1fr;
  }
  .dr-item-edit__form { grid-template-columns: 1fr; }
  .dr-items-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .dr-search-field-wrap {
    max-width: 100%;
  }
}


/* ==========================================================================
   Modern Branches & Location Page (Matching Design Screenshot)
   ========================================================================== */

.dr-branches-container {
  width: 100%;
  margin-bottom: 32px;
}

.dr-branch-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.dr-branch-card-box--new {
  border: 1.5px dashed #10b981;
  background: #fcfdfc;
}

.dr-branch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.dr-branch-card-header__info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dr-branch-icon-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1fae5;
}

.dr-branch-title {
  font-size: 17.5px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.dr-branch-location-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.dr-branch-desc-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.dr-branch-card-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dr-branch-more-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.dr-branch-more-btn:hover {
  background: #f8fafc;
  color: #1e293b;
  border-color: #cbd5e1;
}

.dr-branch-section-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.dr-branch-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 16px;
}

.dr-branch-section-title svg {
  color: #10b981;
}

.dr-branch-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.dr-input-icon-wrap {
  position: relative;
  width: 100%;
}

.dr-text-input--has-icon {
  padding-left: 42px !important;
}

.dr-input-inner-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dr-input-inner-icon--whatsapp {
  color: #25d366;
}

.dr-input-inner-text {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

.dr-branch-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.dr-branch-footer-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dr-branch-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.dr-branch-status-badge--active {
  background: #ecfdf5;
  color: #059669;
}

.dr-branch-status-badge--paused {
  background: #fef2f2;
  color: #dc2626;
}

/* Branches page UX: summary stats, collapsible cards, clear status and actions. */
.dr-branch-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dr-branch-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 16px;
}

.dr-branch-stat__value {
  font-size: 22px;
  font-weight: 800;
  color: #167c52;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.dr-branch-stat__label {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
}

.dr-branch-stat--warn .dr-branch-stat__value {
  color: #b45309;
}

.dr-branch-notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
}

.dr-branches-list .dr-branch-card-box {
  margin-bottom: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dr-branch-card-box.is-collapsed .dr-branch-card-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.dr-branch-card-box.is-collapsed .dr-branch-body {
  display: none;
}

.dr-branch-card-box.is-paused {
  background: #fafafa;
}

.dr-branch-card-box.is-paused .dr-branch-icon-badge {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
}

.dr-branch-card-box.is-dirty {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.dr-branch-card-header__info {
  min-width: 0;
  flex: 1 1 260px;
}

.dr-branch-card-header__text {
  min-width: 0;
}

.dr-branch-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.dr-branch-title-row .dr-branch-title {
  margin: 0;
}

.dr-branch-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.dr-branch-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.dr-branch-state--open { background: #ecfdf5; color: #047857; }
.dr-branch-state--closed { background: #f1f5f9; color: #475569; }
.dr-branch-state--idle { background: #fffbeb; color: #b45309; }
.dr-branch-state--paused { background: #fef2f2; color: #b91c1c; }

.dr-branch-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.dr-branch-facts li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.dr-branch-facts svg {
  flex: 0 0 auto;
  color: #94a3b8;
}

.dr-branch-map-link {
  color: #167c52;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dr-branch-card-header__actions {
  flex-wrap: wrap;
  gap: 8px;
}

.dr-owner-dashboard .dr-branch-card-header__actions .dr-cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 13px;
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
}

.dr-owner-dashboard .dr-branch-card-header__actions .dr-cancel-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.dr-branch-edit-btn svg {
  transition: transform 0.2s ease;
  transform: rotate(180deg);
}

.dr-branch-card-box.is-collapsed .dr-branch-edit-btn svg {
  transform: none;
}

.dr-owner-dashboard .dr-branch-card-header__actions .dr-branch-toggle-btn--on {
  border-color: #bbf7d0;
  color: #167c52;
}

.dr-owner-dashboard .dr-branch-card-header__actions .dr-cancel-btn:focus-visible {
  outline: 3px solid rgba(22, 124, 82, 0.25);
  outline-offset: 2px;
}

.dr-branch-body {
  margin-top: 4px;
}

.dr-branch-footer-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dr-branch-dirty-note {
  font-size: 12.5px;
  font-weight: 700;
  color: #b45309;
}

.dr-required {
  color: #dc2626;
  font-weight: 800;
}

.dr-branch-section-box .dr-zone-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

@media (prefers-reduced-motion: reduce) {
  .dr-branch-edit-btn svg,
  .dr-branches-list .dr-branch-card-box {
    transition: none;
  }
}

@media (max-width: 768px) {
  .dr-branch-grid-2 {
    grid-template-columns: 1fr;
  }
  .dr-branch-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .dr-branch-card-header__info {
    flex-basis: auto;
    width: 100%;
  }
  .dr-branch-card-header__actions {
    width: 100%;
    justify-content: flex-start;
  }
  .dr-branch-card-box {
    padding: 18px 16px;
  }
  .dr-branch-section-box {
    padding: 16px 14px;
  }
  .dr-branch-stats {
    gap: 8px;
  }
  .dr-branch-stat {
    padding: 10px 12px;
  }
  .dr-branch-stat__value {
    font-size: 19px;
  }
  .dr-branch-card-footer,
  .dr-branch-footer-buttons {
    width: 100%;
  }
  .dr-branch-footer-buttons .dr-submit-item-btn {
    flex: 1;
    justify-content: center;
  }
}


/* ==========================================================================
   Modern Branding & Design Page (Matching Design Screenshot)
   ========================================================================== */

.dr-branding-page {
  width: 100%;
  margin-bottom: 32px;
}

.dr-breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.dr-breadcrumb-nav span {
  color: #64748b;
}

.dr-breadcrumb-nav .is-current {
  color: #1e293b;
  font-weight: 700;
}

.dr-branding-header {
  margin-bottom: 24px;
}

.dr-branding-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.dr-branding-title {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  line-height: 1.2;
}

.dr-branding-palette-icon {
  color: #10b981;
  display: flex;
  align-items: center;
}

.dr-branding-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Two Columns Container */
.dr-branding-two-col {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Right Column: Form Card */
.dr-branding-form-card {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.dr-branding-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

/* Color Picker Box Widget */
.dr-color-picker-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 7px 12px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dr-color-picker-box:hover {
  border-color: #cbd5e1;
}

.dr-color-picker-box:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.dr-color-swatch {
  width: 90px;
  height: 32px;
  min-width: 80px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.dr-color-hex {
  font-family: monospace, inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dr-color-wheel-icon {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dr-hidden-color-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Checkbox Toggles */
.dr-branding-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  user-select: none;
}

.dr-green-check {
  width: 20px;
  height: 20px;
  accent-color: #10b981;
  border-radius: 6px;
  cursor: pointer;
}

/* Upload Dropzones */
.dr-upload-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dr-upload-header-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dr-upload-title {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
}

.dr-upload-specs {
  font-size: 11.5px;
  color: #64748b;
}

.dr-brand-dropzone {
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  background: #fbfdfc;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dr-brand-dropzone:hover {
  border-color: #10b981;
  background: #f0fdf4;
}

.dr-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dr-cloud-icon {
  color: #475569;
  margin-bottom: 2px;
}

.dr-dropzone-cta {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.dr-dropzone-hint {
  font-size: 12px;
  color: #94a3b8;
}

/* Bottom Action Buttons */
.dr-branding-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.dr-brand-btn-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f766e !important;
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  text-decoration: none !important;
}

.dr-brand-btn-save *,
.dr-brand-btn-save:hover,
.dr-brand-btn-save:hover *,
.dr-brand-btn-save:focus,
.dr-brand-btn-save:focus *,
.dr-brand-btn-save:active,
.dr-brand-btn-save:active *,
.dr-brand-btn-save:visited,
.dr-brand-btn-save:visited * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.dr-brand-btn-save svg,
.dr-brand-btn-save:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.dr-brand-btn-save:hover {
  background: #0d5f58 !important;
  color: #ffffff !important;
}

.dr-brand-btn-save:active {
  transform: translateY(1px);
}

.dr-brand-btn-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dr-brand-btn-light:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Left Column: Live Preview Card */
.dr-brand-preview-column {
  width: 320px;
  min-width: 300px;
  flex-shrink: 0;
}

.dr-brand-preview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 24px;
  transition: outline 0.2s ease;
}

.dr-preview-hero-banner {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: background-color 0.2s ease;
}

.dr-preview-hero-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dr-preview-store-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.dr-preview-store-name {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.dr-preview-store-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.dr-preview-card-body {
  padding: 18px 20px;
}

.dr-preview-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.dr-preview-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  transition: background-color 0.2s ease;
}

.dr-preview-price-text {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.dr-preview-info-list {
  display: flex;
  flex-direction: column;
}

.dr-preview-info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.dr-preview-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dr-preview-info-start {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dr-preview-info-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}

.dr-preview-info-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 1px;
}

.dr-preview-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #059669;
}

.dr-preview-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

/* Realistic, responsive storefront preview in restaurant identity settings. */
.dr-store-preview{--dr-preview-primary:#173b2d;--dr-preview-accent:#167c52;--dr-preview-button:#167c52;--dr-preview-page:#f6f4ef;--dr-preview-title:#14231d;--dr-preview-body:#65766f;overflow:hidden;border:1px solid #e1e7e3;border-radius:18px;background:var(--dr-preview-page);box-shadow:0 10px 28px rgba(20,35,29,.12);color:var(--dr-preview-title);font-family:inherit}
.dr-store-preview__top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px 16px;border-radius:0 0 16px 16px;background:var(--dr-preview-primary);color:#fff}
.dr-store-preview__identity{display:flex;align-items:center;gap:9px;min-width:0}.dr-store-preview__identity>div{display:flex;flex-direction:column;min-width:0}.dr-store-preview__identity small{font-size:9px;opacity:.8}.dr-store-preview__identity strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.dr-store-preview__identity>div>span{font-size:9px;opacity:.82}
.dr-store-preview__logo,.dr-store-preview__logo-fallback{display:grid;place-items:center;flex:none;width:36px;height:36px;border:2px solid rgba(255,255,255,.65);border-radius:50%;background:#fff;color:var(--dr-preview-primary);font-size:16px;font-weight:800;object-fit:cover}.dr-store-preview__tool{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.16);font-size:23px;line-height:1}
.dr-store-preview__hero{position:relative;display:flex;align-items:flex-end;min-height:138px;margin:10px 10px 0;padding:13px;overflow:hidden;border-radius:14px;background-image:linear-gradient(135deg,var(--dr-preview-primary),#0e241b);background-position:center;background-size:cover;color:#fff}.dr-store-preview__hero>div{position:relative;z-index:1}.dr-store-preview__hero:has([style]){background-color:var(--dr-preview-primary)}.dr-store-preview__status{display:inline-flex;padding:3px 7px;border-radius:999px;background:rgba(255,255,255,.2);font-size:8px}.dr-store-preview__hero h3{margin:5px 0 1px;color:#fff;font-size:18px;line-height:1.3}.dr-store-preview__hero p{margin:0;color:rgba(255,255,255,.88);font-size:9px}.dr-store-preview__hero button{display:inline-flex;align-items:center;gap:12px;margin-top:8px;padding:6px 11px;border:0;border-radius:999px;background:var(--dr-preview-button);color:#fff;font:inherit;font-size:9px;font-weight:800}
.dr-store-preview__content{padding:12px 11px}.dr-store-preview__section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:7px}.dr-store-preview__section-head small{color:var(--dr-preview-body);font-size:8px}.dr-store-preview__section-head h4{margin:1px 0 0;color:var(--dr-preview-title);font-size:13px;font-weight:800}.dr-store-preview__section-head>span{color:var(--dr-preview-accent);font-size:8px;font-weight:700}.dr-store-preview__categories{display:flex;gap:7px;overflow:hidden}.dr-store-preview__categories>span{display:flex;flex:1;flex-direction:column;align-items:center;gap:3px;min-width:0;padding:6px 3px;border:1px solid color-mix(in srgb,var(--dr-preview-accent) 18%,transparent);border-radius:10px;background:#fff;color:var(--dr-preview-title);font-size:8px;text-align:center;white-space:nowrap}.dr-store-preview__categories i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:color-mix(in srgb,var(--dr-preview-accent) 11%,white);font-size:14px;font-style:normal}.dr-store-preview__menu-head{margin-top:13px}.dr-store-preview__products{display:grid;gap:7px}.dr-store-preview__products article{display:grid;grid-template-columns:58px minmax(0,1fr);gap:8px;overflow:hidden;padding:6px;border:1px solid #e8ebe8;border-radius:11px;background:#fff}.dr-store-preview__food{display:grid;place-items:center;min-height:72px;border-radius:8px;background:linear-gradient(145deg,#f2d5a3,#bd6837);font-size:25px}.dr-store-preview__food--two{background:linear-gradient(145deg,#e9c391,#8e573e)}.dr-store-preview__products article>div:last-child{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:2px 0}.dr-store-preview__products small{color:var(--dr-preview-accent);font-size:7px}.dr-store-preview__products strong{margin-top:2px;color:var(--dr-preview-title);font-size:10px}.dr-store-preview__products article span{overflow:hidden;max-width:100%;color:var(--dr-preview-body);font-size:7px;text-overflow:ellipsis;white-space:nowrap}.dr-store-preview__products b{margin-top:auto;color:var(--dr-preview-price);font-size:9px}.dr-store-preview__about{display:grid;gap:2px;margin-top:8px;padding:9px;border:1px solid #e8ebe8;border-radius:10px;background:#fff}.dr-store-preview__about[hidden]{display:none}.dr-store-preview__about strong{font-size:9px}.dr-store-preview__about span{color:var(--dr-preview-body);font-size:8px}.dr-store-preview__bottom{display:flex;justify-content:space-around;padding:8px 5px;border-top:1px solid #e8ebe8;background:#fff;color:var(--dr-preview-accent)}.dr-store-preview__bottom>span{display:grid;justify-items:center;gap:2px;font-size:14px}.dr-store-preview__bottom small{color:var(--dr-preview-body);font-size:7px}
.dr-store-preview{--dr-preview-on-button:#fff;--dr-preview-heading:var(--dr-preview-title)}
.dr-store-preview__hero{background-color:var(--dr-preview-primary)}
.dr-store-preview__hero button{color:var(--dr-preview-on-button)}
.dr-store-preview__section-head h4{color:var(--dr-preview-heading)}
.dr-store-preview [hidden]{display:none!important}
.dr-brand-preview-column{width:min(100%,360px);min-width:280px}

@media (max-width: 992px) {
  .dr-branding-two-col {
    flex-direction: column;
  }
  .dr-brand-preview-column {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .dr-branding-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Clearer owner branding workflow: colors, visible sections, logo, then banners. */
.dr-branding-header{padding:20px 22px;border:1px solid #e1ebe4;border-radius:16px;background:linear-gradient(120deg,#f2faf5,#fff 72%);}
.dr-branding-title-wrap{margin-bottom:7px}
.dr-branding-subtitle{max-width:680px;line-height:1.7}
.dr-branding-two-col{gap:20px}
.dr-branding-form-card{padding:20px}
.dr-branding-section{min-width:0;margin:0 0 16px;padding:18px;border:1px solid #e5ece7;border-radius:14px;background:#fff}
.dr-branding-section--colors{background:#fbfdfb}
.dr-branding-section__heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:17px}
.dr-branding-section__step{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:11px;background:#e8f5ed;color:#20784f;font-size:14px;font-weight:800}
.dr-branding-section__heading h3{margin:0 0 4px;color:#1e3428;font-size:16px;font-weight:800;line-height:1.4}
.dr-branding-section__heading p{margin:0;color:#718078;font-size:12.5px;line-height:1.6}
.dr-branding-section .dr-branding-grid-2{margin-top:0!important;gap:14px 16px}
.dr-branding-section--visibility .dr-branding-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.dr-branding-checkbox-label{min-height:68px;padding:12px;border:1px solid #e5ece7;border-radius:11px;background:#fbfdfb}
.dr-branding-checkbox-label>span{display:flex;flex-direction:column;gap:3px}
.dr-branding-checkbox-label strong{color:#263c2f;font-size:13px}
.dr-branding-checkbox-label small{color:#77857d;font-size:11.5px;font-weight:400}
.dr-branding-media-grid{display:grid;gap:16px}
.dr-branding-section--logo,.dr-branding-section--banners{margin-bottom:16px}
.dr-branding-logo-current{display:flex;align-items:center;gap:12px;margin:-3px 0 14px;padding:10px 12px;border:1px solid #e5ece7;border-radius:10px;background:#fbfdfb;color:#62736a;font-size:12px;font-weight:700}
.dr-branding-logo-current__image{width:52px;height:52px;border:1px solid #e2e9e4;border-radius:11px;background:#fff;object-fit:cover}
.dr-brand-preview-heading{display:flex;flex-direction:column;gap:4px;margin:0 0 10px}
.dr-brand-preview-heading strong{color:#263c2f;font-size:15px;font-weight:800}
.dr-brand-preview-heading span{color:#718078;font-size:12px;line-height:1.6}
.dr-banner-editor{display:grid;gap:10px;margin:10px 0 12px}
.dr-banner-editor__card{padding:14px;border:1px solid #dfe9e2;border-radius:12px;background:#fbfdfb}
.dr-banner-editor__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:#243c2e}
.dr-banner-editor__head strong{font-size:13px}
.dr-banner-editor__head button{padding:5px 8px;border-radius:7px;background:#fff7f6;font-size:12px}
#drAddBanner{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:42px;margin-top:10px;padding:8px 14px;border:1px solid #168052;border-radius:9px;background:#168052;color:#fff;font-size:13px;font-weight:800;box-shadow:0 3px 8px rgba(22,128,82,.16);transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}
#drAddBanner:before{content:"+";font-size:20px;font-weight:500;line-height:1}
#drAddBanner:hover{border-color:#126641;background:#126641;color:#fff;box-shadow:0 4px 11px rgba(18,102,65,.22)}
#drAddBanner:focus-visible{outline:3px solid rgba(22,128,82,.24);outline-offset:2px}
#drAddBanner:disabled{border-color:#d8e1db;background:#edf1ee;color:#87948b;box-shadow:none;cursor:not-allowed}
.dr-banner-editor__images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dr-banner-editor__device{display:flex;flex-direction:column;gap:7px;min-width:0;padding:11px;border:1px solid #e5ece7;border-radius:10px;background:#fff;color:#2c4034;font-size:12.5px;font-weight:800}
.dr-banner-editor__device small{color:#738178;font-size:11px;font-weight:400;line-height:1.5}
.dr-banner-editor__device input[type="file"]{box-sizing:border-box;width:100%;min-width:0;padding:7px;border:1px dashed #cbd8cf;border-radius:8px;background:#fbfdfb;color:#53645a;font-size:11px}
.dr-banner-editor__device input[type="file"]::file-selector-button{margin-inline-end:7px;padding:5px 8px;border:0;border-radius:6px;background:#e9f5ed;color:#236f4a;font:inherit;font-weight:700;cursor:pointer}
.dr-banner-editor__device img{width:100%;max-height:130px;border-radius:7px;object-fit:cover}
.dr-banner-editor__device img[hidden]{display:none}
.dr-branding-actions-row{position:sticky;bottom:0;z-index:5;margin:0 -20px -20px;padding:14px 20px;border-top:1px solid #e6ede8;background:rgba(255,255,255,.96);backdrop-filter:blur(8px)}
.dr-brand-btn-save{min-height:44px}
.dr-brand-btn-light{min-height:42px}
@media(max-width:700px){
	.dr-branding-form-card{padding:14px}
	.dr-branding-section{padding:14px}
	.dr-branding-section--visibility .dr-branding-grid-2,.dr-banner-editor__images{grid-template-columns:1fr}
	.dr-branding-actions-row{margin:0 -14px -14px;padding:12px 14px}
	.dr-branding-actions-row>*{flex:1 1 100%;justify-content:center}
}


/* ==========================================================================
   Modern Dashboard Pages (Profile, Settings, QR, Subscriptions)
   ========================================================================== */

.dr-modern-page-wrap {
  width: 100%;
  margin-bottom: 32px;
}

.dr-modern-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.dr-suggestion-form {
  max-width: 760px;
}

.dr-suggestion-form .dr-field textarea {
  min-height: 170px;
  border-color: #d5e1da;
  background: #fcfefd;
}

.dr-suggestion-form .dr-action-btn-green {
  margin-top: 4px;
}

/* QR Code Display Card */
.dr-qr-display-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dr-qr-image-container {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dr-qr-image-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
}

/* Subscription Plans */
.dr-plan-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dr-plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.dr-modern-table tr:hover {
  background: #f8fafc;
}


/* ==========================================================================
   Universal White Font Color for All Dark Green Buttons Across Dashboard
   ========================================================================== */
.dr-owner-dashboard .dr-pill-btn--primary,
.dr-owner-dashboard .dr-pill-btn--primary *,
.dr-owner-dashboard .dr-action-btn--primary,
.dr-owner-dashboard .dr-action-btn--primary *,
.dr-owner-dashboard .dr-action-btn-green,
.dr-owner-dashboard .dr-action-btn-green *,
.dr-owner-dashboard .dr-submit-item-btn,
.dr-owner-dashboard .dr-submit-item-btn *,
.dr-owner-dashboard .dr-brand-btn-save,
.dr-owner-dashboard .dr-brand-btn-save *,
.dr-owner-dashboard .dr-overview-share-btn--copy,
.dr-owner-dashboard .dr-overview-share-btn--copy *,
.dr-owner-dashboard .jm-btn--primary,
.dr-owner-dashboard .jm-btn--primary *,
.dr-owner-dashboard .dr-button--primary,
.dr-owner-dashboard .dr-button--primary *,
.dr-owner-dashboard .button-primary,
.dr-owner-dashboard .button-primary *,
.dr-owner-dashboard .jm-nav__link.is-active,
.dr-owner-dashboard .jm-nav__link.is-active *,
.dr-owner-dashboard button[type="submit"]:not(.dr-cancel-btn):not(.dr-section-delete-btn):not(.dr-brand-btn-light):not(.dr-section-order__btn):not(.dr-staff-btn):not(.dr-item-action-btn),
.dr-owner-dashboard button[type="submit"]:not(.dr-cancel-btn):not(.dr-section-delete-btn):not(.dr-brand-btn-light):not(.dr-section-order__btn):not(.dr-staff-btn):not(.dr-item-action-btn) * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.dr-owner-dashboard .dr-pill-btn--primary svg,
.dr-owner-dashboard .dr-action-btn--primary svg,
.dr-owner-dashboard .dr-action-btn-green svg,
.dr-owner-dashboard .dr-submit-item-btn svg,
.dr-owner-dashboard .dr-brand-btn-save svg,
.dr-owner-dashboard .dr-overview-share-btn--copy svg,
.dr-owner-dashboard .jm-btn--primary svg,
.dr-owner-dashboard .dr-button--primary svg,
.dr-owner-dashboard .button-primary svg,
.dr-owner-dashboard .jm-nav__link.is-active svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: none;
}

.dr-owner-dashboard .dr-pill-btn--primary:hover,
.dr-owner-dashboard .dr-pill-btn--primary:hover *,
.dr-owner-dashboard .dr-pill-btn--primary:focus,
.dr-owner-dashboard .dr-pill-btn--primary:focus *,
.dr-owner-dashboard .dr-pill-btn--primary:active,
.dr-owner-dashboard .dr-pill-btn--primary:active *,
.dr-owner-dashboard .dr-pill-btn--primary:visited,
.dr-owner-dashboard .dr-pill-btn--primary:visited *,
.dr-owner-dashboard .dr-action-btn--primary:hover,
.dr-owner-dashboard .dr-action-btn--primary:hover *,
.dr-owner-dashboard .dr-action-btn--primary:focus,
.dr-owner-dashboard .dr-action-btn--primary:focus *,
.dr-owner-dashboard .dr-action-btn--primary:active,
.dr-owner-dashboard .dr-action-btn--primary:active *,
.dr-owner-dashboard .dr-action-btn-green:hover,
.dr-owner-dashboard .dr-action-btn-green:hover *,
.dr-owner-dashboard .dr-action-btn-green:focus,
.dr-owner-dashboard .dr-action-btn-green:focus *,
.dr-owner-dashboard .dr-action-btn-green:active,
.dr-owner-dashboard .dr-action-btn-green:active *,
.dr-owner-dashboard .dr-submit-item-btn:hover,
.dr-owner-dashboard .dr-submit-item-btn:hover *,
.dr-owner-dashboard .dr-submit-item-btn:focus,
.dr-owner-dashboard .dr-submit-item-btn:focus *,
.dr-owner-dashboard .dr-submit-item-btn:active,
.dr-owner-dashboard .dr-submit-item-btn:active *,
.dr-owner-dashboard .dr-brand-btn-save:hover,
.dr-owner-dashboard .dr-brand-btn-save:hover *,
.dr-owner-dashboard .dr-brand-btn-save:focus,
.dr-owner-dashboard .dr-brand-btn-save:focus *,
.dr-owner-dashboard .dr-brand-btn-save:active,
.dr-owner-dashboard .dr-brand-btn-save:active *,
.dr-owner-dashboard .dr-brand-btn-save:visited,
.dr-owner-dashboard .dr-brand-btn-save:visited *,
.dr-owner-dashboard .dr-overview-share-btn--copy:hover,
.dr-owner-dashboard .dr-overview-share-btn--copy:hover *,
.dr-owner-dashboard .dr-overview-share-btn--copy:focus,
.dr-owner-dashboard .dr-overview-share-btn--copy:focus *,
.dr-owner-dashboard .dr-overview-share-btn--copy:active,
.dr-owner-dashboard .dr-overview-share-btn--copy:active *,
.dr-owner-dashboard .jm-btn--primary:hover,
.dr-owner-dashboard .jm-btn--primary:hover *,
.dr-owner-dashboard .jm-btn--primary:focus,
.dr-owner-dashboard .jm-btn--primary:focus *,
.dr-owner-dashboard .jm-btn--primary:active,
.dr-owner-dashboard .jm-btn--primary:active *,
.dr-owner-dashboard .dr-button--primary:hover,
.dr-owner-dashboard .dr-button--primary:hover *,
.dr-owner-dashboard .dr-button--primary:focus,
.dr-owner-dashboard .dr-button--primary:focus *,
.dr-owner-dashboard .dr-button--primary:active,
.dr-owner-dashboard .dr-button--primary:active *,
.dr-owner-dashboard .button-primary:hover,
.dr-owner-dashboard .button-primary:hover *,
.dr-owner-dashboard .button-primary:focus,
.dr-owner-dashboard .button-primary:focus *,
.dr-owner-dashboard .button-primary:active,
.dr-owner-dashboard .button-primary:active *,
.dr-owner-dashboard .jm-nav__link.is-active:hover,
.dr-owner-dashboard .jm-nav__link.is-active:hover *,
.dr-owner-dashboard button[type="submit"]:not(.dr-cancel-btn):not(.dr-section-delete-btn):not(.dr-brand-btn-light):not(.dr-staff-btn):hover,
.dr-owner-dashboard button[type="submit"]:not(.dr-cancel-btn):not(.dr-section-delete-btn):not(.dr-brand-btn-light):not(.dr-staff-btn):hover * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.dr-owner-dashboard .dr-pill-btn--primary:hover svg,
.dr-owner-dashboard .dr-action-btn--primary:hover svg,
.dr-owner-dashboard .dr-action-btn-green:hover svg,
.dr-owner-dashboard .dr-submit-item-btn:hover svg,
.dr-owner-dashboard .dr-brand-btn-save:hover svg,
.dr-owner-dashboard .dr-overview-share-btn--copy:hover svg,
.dr-owner-dashboard .jm-btn--primary:hover svg,
.dr-owner-dashboard .dr-button--primary:hover svg,
.dr-owner-dashboard .button-primary:hover svg,
.dr-owner-dashboard .jm-nav__link.is-active:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Restaurant storefront product cards: photo-led layout inspired by the supplied mobile references. */
.dr-app .dr-items {
  align-items: stretch;
  gap: 14px;
}

.dr-app .dr-items > .dr-item {
  min-width: 0;
  border: 1px solid rgba(32, 45, 38, .07);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(32, 45, 38, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.dr-app .dr-items > .dr-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(32, 45, 38, .12);
}

.dr-app .dr-items .dr-item__media {
  position: relative;
  width: 100%;
  max-height: none !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden;
  background: #f1eee8;
}

.dr-app .dr-items .dr-item__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  transition: transform .25s ease;
}

.dr-app .dr-items .dr-item:hover .dr-item__image {
  transform: scale(1.035);
}

.dr-app .dr-items .dr-item__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--dr-accent);
  font-size: 38px;
  font-weight: 800;
}

.dr-app .dr-items .dr-item__badge {
  top: 10px;
  inset-inline-start: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e74b43;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
  font-size: 11px;
}

.dr-app .dr-items .dr-item__body {
  padding: 10px 12px 0;
  text-align: right;
}

.dr-app .dr-items .dr-item h4 {
  margin: 0 0 3px;
  color: var(--dr-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.dr-app .dr-items .dr-item p {
  display: -webkit-box;
  min-height: 2.9em;
  margin: 0;
  overflow: hidden;
  color: var(--dr-muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dr-app .dr-items .dr-item__foot {
  flex-direction: row;
  direction: rtl;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 6px 12px 11px;
}

.dr-app .dr-items .dr-item__foot strong {
  color: var(--dr-accent);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.dr-app .dr-items .dr-item__foot strong small {
  color: var(--dr-muted);
}

.dr-app .dr-items .dr-add-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  height: auto;
  min-height: 34px;
  padding: 6px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--dr-accent);
  color: var(--dr-on-accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}

.dr-app .dr-items .dr-add-button:hover {
  filter: brightness(.92);
  transform: translateY(-1px);
}

.dr-app .dr-items .dr-add-button:active {
  transform: scale(.97);
}

.dr-app .dr-items .dr-add-button.is-added {
  transform: scale(.97);
  filter: brightness(1.15);
}

@media (max-width: 820px) {
  .dr-app .dr-items {
    gap: 10px;
  }

  .dr-app .dr-items .dr-item__media {
    min-height: 112px;
  }

  .dr-app .dr-items .dr-item__body {
    padding: 9px 10px 0;
  }

  .dr-app .dr-items .dr-item h4 {
    font-size: 14px;
  }

  .dr-app .dr-items .dr-item__foot {
    padding: 6px 10px 10px;
  }
}

.dr-app .dr-item__gallery {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.dr-app .dr-item__gallery-track {
  display: flex;
  direction: ltr;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
}

.dr-app .dr-item__gallery-track::-webkit-scrollbar {
  display: none;
}

.dr-app .dr-item__gallery-track > .dr-item__image {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.dr-app .dr-item__gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(20, 24, 22, .56);
  color: #fff;
  font: inherit;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.dr-app .dr-item__gallery-arrow--prev {
  left: 8px;
}

.dr-app .dr-item__gallery-arrow--next {
  right: 8px;
}

.dr-app .dr-item__gallery-count {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: 8px;
  padding: 3px 8px;
  transform: translateX(50%);
  border-radius: 999px;
  background: rgba(20, 24, 22, .62);
  color: #fff;
  direction: ltr;
  font-size: 11px;
  line-height: 1.4;
}

.dr-item-edit-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dr-item-edit-gallery img {
  width: 54px;
  height: 54px;
  border: 1px solid var(--dr-border);
  border-radius: 8px;
  object-fit: cover;
}

/* Keep the customer cart drawer in the restaurant's saved brand palette. */
.dallni-restaurant .dr-sheet--cart {
  background: var(--dr-page, #f6f4ef);
  color: var(--dr-ink);
}

.dallni-restaurant .dr-sheet--cart .dr-sheet__head {
  background: var(--dr-brand-primary, var(--dr-primary, #173b2d));
  color: var(--dr-brand-on-primary, #fff);
}

.dallni-restaurant .dr-sheet--cart .dr-sheet__close {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .16);
  color: var(--dr-brand-on-primary, #fff);
}

.dallni-restaurant .dr-sheet--cart .dr-sheet__body {
  background: var(--dr-page, #f6f4ef);
}

.dallni-restaurant .dr-sheet--cart .dr-sheet__foot {
  border-top: 1px solid var(--dr-brand-secondary, var(--dr-border));
  background: var(--dr-page, #f6f4ef);
}

.dallni-restaurant .dr-sheet--cart .dr-cart-row {
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid var(--dr-brand-secondary, var(--dr-border));
  border-radius: 12px;
  background: #fff;
}

.dallni-restaurant .dr-sheet--cart .dr-total-row b {
  color: var(--dr-brand-price, var(--dr-accent));
}

.dallni-restaurant .dr-sheet--cart .dr-wa-send {
  background: var(--dr-brand-button, var(--dr-accent));
  color: var(--dr-brand-on-button, var(--dr-on-accent));
}

.dallni-restaurant .dr-sheet--cart .dr-wa-send:hover {
  filter: brightness(.92);
  color: var(--dr-brand-on-button, var(--dr-on-accent));
}

/* Restore the full photo-led card layout after legacy compact-row rules. */
.dr-app .dr-items > .dr-item {
  display: flex;
  flex-direction: column;
  grid-template-areas: none !important;
  grid-template-columns: none !important;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.dr-app .dr-items .dr-item__media {
  position: relative;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 4 / 3 !important;
  align-self: stretch !important;
  border-radius: 0;
}

.dr-app .dr-items .dr-item__image {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

.dr-app .dr-items .dr-item__gallery,
.dr-app .dr-items .dr-item__gallery-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dr-app .dr-items .dr-item__body {
  padding: 10px 12px 0;
  text-align: right;
}

.dr-app .dr-items .dr-item h4 {
  display: -webkit-box;
  min-height: 3em;
  max-height: 3em;
  overflow: hidden;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dr-app .dr-items .dr-item__description-empty {
  min-height: 2.9em;
  visibility: hidden;
}

.dr-app .dr-items .dr-item__foot {
  flex-direction: row;
  direction: rtl;
  justify-content: space-between;
  padding: 8px 12px 12px;
}

.dr-section-icon-badge > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.dr-section-name-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.dr-section-image-editor summary {
  color: var(--dr-green);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.dr-section-image-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.dr-section-image-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--dr-muted);
  font-size: 12px;
}

.dr-section-image-form input[type="file"] {
  max-width: 240px;
  font: inherit;
  font-size: 12px;
}

.dr-section-image-remove span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
}

.dr-section-image-save {
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: var(--dr-brand-button, var(--dr-green));
  color: var(--dr-brand-on-button, #fff);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 560px) {
  .dr-section-item-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .dr-section-name-wrap {
    min-width: calc(100% - 120px);
  }
}

.dr-category-display-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--dr-border, #e2e8f0);
  border-radius: 12px;
  background: var(--dr-surface, #fff);
}

.dr-category-display-settings__copy {
  display: flex;
  flex: 1 1 220px;
  flex-direction: column;
  gap: 4px;
}

.dr-category-display-settings__copy strong {
  color: var(--dr-ink);
  font-size: 14px;
}

.dr-category-display-settings__copy span {
  color: var(--dr-muted);
  font-size: 12px;
}

.dr-category-display-options {
  display: flex;
  flex: 1 1 420px;
  gap: 8px;
  min-width: min(100%, 280px);
}

.dr-category-display-option {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.dr-category-display-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}

.dr-category-display-option__button {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid var(--dr-border, #d8e4dd);
  border-radius: 10px;
  background: #ffffff;
  color: var(--dr-ink, #19392e);
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, color .16s ease;
}

.dr-category-display-option__button > svg {
  flex: 0 0 20px;
  color: #648276;
}

.dr-category-display-option__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dr-category-display-option__text strong {
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.dr-category-display-option__text small {
  color: var(--dr-muted, #718078);
  font-size: 11px;
  line-height: 1.4;
}

.dr-category-display-option input:checked + .dr-category-display-option__button {
  border-color: #17644d;
  background: #eff7f2;
  color: #124c3a;
  box-shadow: inset 0 0 0 1px rgba(23, 100, 77, .12);
}

.dr-category-display-option input:checked + .dr-category-display-option__button > svg {
  color: #17644d;
}

.dr-category-display-option input:focus-visible + .dr-category-display-option__button {
  outline: 3px solid rgba(23, 100, 77, .25);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .dr-category-display-options {
    flex-basis: 100%;
  }

  .dr-category-display-option__button {
    align-items: flex-start;
    gap: 7px;
    padding: 9px 8px;
  }

  .dr-category-display-option__text strong {
    font-size: 11px;
  }
}

.dr-app[data-category-display="name"] .dr-cat__circle,
.dr-app[data-category-display="name"] .dr-category__image {
  display: none;
}

.dr-app[data-category-display="name"] .dr-cat {
  width: auto;
  padding: 9px 14px;
  border: 1px solid var(--dr-border, #e2e8f0);
  border-radius: 999px;
  background: var(--dr-surface, #fff);
  box-shadow: none;
}

.dr-app[data-category-display="name"] .dr-cat__name {
  white-space: nowrap;
}

.dr-app[data-category-display="name"] .dr-cat.is-active {
  border-color: var(--dr-accent);
  background: var(--dr-accent);
  color: var(--dr-on-accent);
}

.dr-app[data-category-display="name"] .dr-cat.is-active .dr-cat__name {
  color: inherit;
}

/* Anchor scroll margins for fixed navbar offset */
#menu,
.dr-menu,
.dr-category,
.dr-shelf,
[id^="dr-section-"],
#dr-tracking {
  scroll-margin-top: 115px;
}

body.admin-bar #menu,
body.admin-bar .dr-menu,
body.admin-bar .dr-category,
body.admin-bar .dr-shelf,
body.admin-bar [id^="dr-section-"],
body.admin-bar #dr-tracking {
  scroll-margin-top: 147px;
}

.dr-app .dr-category__head {
  display: none !important;
}

/* Let cards from adjacent categories share the same menu grid rows. */
.dr-app .dr-menu > .dr-category:not([hidden]),
.dr-app .dr-menu > .dr-category > .dr-items {
  display: contents !important;
}

.dr-app .dr-menu > .dr-category .dr-item {
  scroll-margin-top: 115px;
}

body.admin-bar .dr-app .dr-menu > .dr-category .dr-item {
  scroll-margin-top: 147px;
}

.dr-app .dr-items .dr-item__category {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--dr-brand-button, var(--dr-green, #167c52));
  background: rgba(22, 124, 82, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 5px;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

@media (max-width: 820px) {
  .dr-app .dr-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 10px;
    row-gap: 16px;
  }

  .dr-app .dr-menu > .dr-section-heading,
  .dr-app .dr-menu > .dr-search,
  .dr-app .dr-menu > .dr-empty-state {
    grid-column: 1 / -1;
  }

  .dr-app .dr-menu > .dr-category {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-top: 0;
  }

  .dr-app .dr-menu > .dr-category--span-1 {
    grid-column: span 1;
  }

  .dr-app .dr-menu > .dr-category:not(.dr-category--span-1) {
    grid-column: 1 / -1;
  }

  .dr-app .dr-menu > .dr-category--span-1 .dr-items {
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    align-content: stretch;
  }

  .dr-app .dr-menu > .dr-category:not(.dr-category--span-1) .dr-items {
    flex: 1 1 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-content: stretch;
    gap: 10px;
  }

  .dr-app .dr-menu > .dr-category .dr-item {
    min-width: 0;
    height: 100%;
  }
}

@media (min-width: 821px) {
  .dr-app .dr-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    column-gap: 16px;
    row-gap: 22px;
  }

  .dr-app .dr-menu > .dr-section-heading,
  .dr-app .dr-menu > .dr-search,
  .dr-app .dr-menu > .dr-empty-state {
    grid-column: 1 / -1;
  }

  .dr-app .dr-menu > .dr-category {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-top: 0;
  }

  .dr-app .dr-menu > .dr-category--span-1 {
    grid-column: span 1;
  }

  .dr-app .dr-menu > .dr-category--span-2 {
    grid-column: span 2;
  }

  .dr-app .dr-menu > .dr-category--span-3 {
    grid-column: span 3;
  }

  .dr-app .dr-menu > .dr-category--span-4,
  .dr-app .dr-menu > .dr-category:not([class*="dr-category--span-"]) {
    grid-column: 1 / -1;
  }

  .dr-app .dr-menu > .dr-category .dr-items {
    flex: 1 1 auto;
    display: grid;
    gap: 14px;
    align-content: stretch;
  }

  .dr-app .dr-menu > .dr-category--span-1 .dr-items {
    grid-template-columns: minmax(0, 1fr);
  }

  .dr-app .dr-menu > .dr-category--span-2 .dr-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dr-app .dr-menu > .dr-category--span-3 .dr-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dr-app .dr-menu > .dr-category--span-4 .dr-items,
  .dr-app .dr-menu > .dr-category:not([class*="dr-category--span-"]) .dr-items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dr-app .dr-menu > .dr-category .dr-item {
    min-width: 0;
    height: 100%;
  }
}


/* ==========================================================================
   Product Details Modal & Sheet
   ========================================================================== */
.dr-app .dr-items .dr-item {
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.dr-app .dr-items .dr-item:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 74, 53, 0.25);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.dr-app .dr-items .dr-item:hover h4 {
  color: var(--dr-accent, #174a35);
}

.dr-app .dr-items .dr-item:focus-visible {
  outline: 2px solid var(--dr-green, #174a35);
  outline-offset: 2px;
}

.dr-app .dr-items .dr-add-button,
.dr-app .dr-items .dr-item__gallery-arrow {
  cursor: pointer;
}

/* Modal Popup Window */
.dallni-restaurant .dr-sheet--product {
  inset: 50% auto auto 50% !important;
  bottom: auto !important;
  width: min(520px, 92vw) !important;
  max-height: 86vh !important;
  margin: 0 !important;
  border-radius: 20px !important;
  transform: translate(-50%, -50%) !important;
  animation: dr-pop-in 0.18s ease-out !important;
  background: #fff !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22) !important;
  overflow: hidden;
}

.dallni-restaurant .dr-sheet--product .dr-sheet__head {
  padding: 14px 18px;
  background: #f8faf9;
  border-bottom: 1px solid #edf2ef;
}

.dallni-restaurant .dr-sheet--product .dr-sheet__head h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dr-ink, #2d3748);
}

.dallni-restaurant .dr-sheet--product .dr-product-sheet__body {
  padding: 0 !important;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Media in Product Sheet */
.dr-product-sheet__media {
  position: relative;
  width: min(100%, 260px, 32vh);
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  background: #f3f0ea;
  overflow: hidden;
}

.dr-product-sheet__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dr-product-sheet__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #eef3ef;
  color: var(--dr-green, #174a35);
  font-size: 48px;
  font-weight: 800;
}

/* Product Sheet Gallery */
.dr-product-sheet__gallery {
  position: relative;
  width: 100%;
  height: 100%;
}

.dr-product-sheet__gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.dr-product-sheet__gallery-track::-webkit-scrollbar {
  display: none;
}

.dr-product-sheet__gallery-track > .dr-product-sheet__image {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.dr-product-sheet__gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: background 0.15s;
}

.dr-product-sheet__gallery-arrow:hover {
  background: #fff;
}

.dr-product-sheet__gallery-arrow--prev {
  right: 12px;
}

.dr-product-sheet__gallery-arrow--next {
  left: 12px;
}

.dr-product-sheet__gallery-count {
  position: absolute;
  bottom: 12px;
  left: 14px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  z-index: 2;
}

/* Product Content */
.dr-product-sheet__content {
  padding: 18px 20px 22px;
  text-align: right;
  direction: rtl;
}

.dr-product-sheet__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.dr-product-sheet__category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(23, 74, 53, 0.08);
  color: var(--dr-green, #174a35);
  font-size: 12px;
  font-weight: 700;
}

.dr-product-sheet__badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: #eef6f1;
  color: var(--dr-green, #174a35);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(23, 74, 53, 0.15);
}

.dr-product-sheet__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--dr-ink, #1f2937);
  line-height: 1.4;
}

.dr-product-sheet__desc-box {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fbfbf9;
  border: 1px solid #f0eee9;
}

.dr-product-sheet__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #4a5568;
  white-space: pre-line;
  word-break: break-word;
}

.dr-product-sheet__desc.is-empty {
  color: #a0aec0;
  font-style: italic;
  font-size: 13px;
}

/* Product Sheet Variants */
.dr-product-sheet__variants-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0eee9;
}

.dr-product-sheet__section-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--dr-ink);
}

.dr-product-sheet__variants-list {
  display: grid;
  gap: 8px;
}

/* Product Sheet Footer */
.dallni-restaurant .dr-sheet--product .dr-product-sheet__foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom)) !important;
  border-top: 1px solid #edf2ef !important;
  background: #fff !important;
  direction: rtl;
}

.dr-product-sheet__price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.dr-product-sheet__price-label {
  font-size: 11.5px;
  color: var(--dr-muted, #718096);
  font-weight: 600;
}

.dr-product-sheet__price {
  font-size: 19px;
  font-weight: 800;
  color: var(--dr-accent, #174a35);
}

.dr-product-sheet__action-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dr-product-sheet__add-btn {
  min-height: 42px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
}

/* Mobile responsive bottom sheet */
@media (max-width: 680px) {
  .dallni-restaurant .dr-sheet--product {
    inset-inline: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-height: 90vh !important;
    border-radius: 22px 22px 0 0 !important;
    animation: dr-sheet-in 0.22s ease-out !important;
  }

  .dr-product-sheet__content {
    padding: 14px 16px 18px;
  }

  .dr-product-sheet__title {
    font-size: 18px;
  }

  .dr-app .dr-items .dr-add-button {
    font-size: 11.5px !important;
    padding: 5px 10px !important;
    min-height: 30px !important;
  }

  .dallni-restaurant .dr-sheet--product .dr-product-sheet__foot {
    padding-inline: 16px !important;
  }
}

/* ==========================================================================
   Offers Feature (باقة الطلبات - قسم العروض والتخفيضات)
   ========================================================================== */

.dr-app .dr-offers-shelf[hidden],
.dr-app [data-dr-categories][hidden],
.dr-app .dr-cat--offers[hidden] {
  display: none !important;
}

.dr-app .dr-offer-expiry,
.dr-sheet--product .dr-offer-expiry {
  color: #92400e;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
}

.dr-sheet--product .dr-offer-expiry {
  margin-block: 0 8px;
}

.dr-offers-shelf {
  margin: 28px 0 !important;
  padding: 24px 20px !important;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.45) 0%, rgba(255, 237, 213, 0.3) 100%) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.28) !important;
  border-radius: 20px !important;
  position: relative !important;
}

.dr-offers-shelf .dr-shelf__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.dr-offers-shelf__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dr-offers-badge-flame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.dr-offers-shelf__subtitle {
  font-size: 13px;
  color: #92400e;
  margin: 3px 0 0 0;
  line-height: 1.4;
}

.dr-offers-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #b45309;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.08);
  white-space: nowrap;
}

.dr-offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.dr-item--offer {
  border: 1.5px solid rgba(245, 158, 11, 0.32) !important;
  background: #ffffff !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08) !important;
}

.dr-item--offer:hover {
  border-color: #f59e0b !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.16) !important;
}

.dr-item__offer-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.dr-item__badge--offer {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35) !important;
}

.dr-item__badge--discount {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35) !important;
  font-size: 11px !important;
}

.dr-item__category--offer {
  color: #d97706 !important;
  font-weight: 700 !important;
}

.dr-item__placeholder--offer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 100%);
  font-size: 36px;
}

.dr-offer-price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}

.dr-offer-strike-price {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.dr-add-button--offer {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
}

.dr-add-button--offer:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
}

.dr-cat--offers .dr-cat__circle {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%) !important;
  color: #ffffff !important;
  font-size: 22px !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.dr-cat--offers .dr-cat__name {
  color: #b45309 !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   Dashboard Offers Section (لوحة التحكم - إدارة العروض)
   ========================================================================== */

.dr-offers-block {
  margin-top: 32px;
}

.dr-block-badge-icon--amber {
  background: #fffbeb !important;
  color: #d97706 !important;
  border: 1px solid #fef3c7 !important;
}

.dr-plan-badge--orders {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #fef3c7 0%, #fee2e2 100%);
  color: #b45309;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 800;
}

.dr-offers-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.dr-offers-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.dr-action-btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
  transition: all 0.15s ease;
  text-decoration: none;
}

.dr-action-btn-amber:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35);
}

.dr-add-offer-form {
  background: #fffdfa;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.dr-offers-owner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.dr-offer-owner-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dr-offer-owner-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dr-offer-pct-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.dr-offer-badges-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.dr-offer-price-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 15px;
  color: #0f172a;
}

.dr-strike-price {
  font-size: 12.5px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.dr-offer-owner-desc {
  font-size: 12px;
  color: #64748b;
  margin: 6px 0 0 0;
  line-height: 1.4;
}

.dr-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.dr-status-pill--active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.dr-status-pill--inactive {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* Locked Offer Feature Banner */
.dr-offers-locked-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef2f2 100%);
  border: 1.5px dashed #f59e0b;
  border-radius: 16px;
  padding: 24px;
}

.dr-offers-locked-box__icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 16px;
  background: #ffffff;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.dr-offers-locked-box__content {
  flex: 1;
}

.dr-offers-locked-box__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
  background: #fde68a;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.dr-offers-locked-box__title {
  font-size: 16px;
  font-weight: 800;
  color: #78350f;
  margin: 0 0 4px 0;
}

.dr-offers-locked-box__desc {
  font-size: 13px;
  color: #92400e;
  margin: 0;
  line-height: 1.5;
}

.dr-btn-upgrade-orders {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  transition: all 0.2s ease;
}

.dr-btn-upgrade-orders:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

@media (max-width: 768px) {
  .dr-offers-locked-box {
    flex-direction: column;
    text-align: center;
  }
  .dr-offers-locked-box__icon {
    margin: 0 auto;
  }
  .dr-btn-upgrade-orders {
    width: 100%;
    justify-content: center;
  }
  .dr-offers-shelf {
    padding: 18px 14px !important;
  }
  .dr-offers-grid {
    grid-template-columns: 1fr;
  }
}

/* Storefront product grid: 4 cards per row on laptops, 2 on phones, aligned across menu sections. */
@media (min-width: 821px) {
  .dr-app .dr-menu > .dr-category .dr-items {
    gap: 16px;
  }

  .dr-app .dr-offers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 820px) {
  .dr-app .dr-offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .dr-app .dr-items .dr-item__foot {
    flex-wrap: wrap;
    gap: 6px;
  }

  .dr-app .dr-items .dr-item__foot strong {
    flex: 1 1 100%;
    white-space: nowrap;
  }

  .dr-app .dr-items .dr-add-button,
  .dr-app .dr-items .dr-whatsapp-button {
    width: 100%;
  }
}

/* Equal card heights: reserve the category, description and price lines even when an item omits them. */
.dr-app .dr-items .dr-item__body p,
.dr-app .dr-items .dr-item__body:not(:has(> p))::after {
  height: 3.1em;
  min-height: 3.1em;
  font-size: 12px;
  line-height: 1.55;
}

.dr-app .dr-items .dr-item__body:not(:has(> p))::after {
  content: "";
  display: block;
}

.dr-app .dr-items .dr-item__body:not(:has(> .dr-item__category))::before {
  content: "";
  display: block;
  height: 25px;
}

@media (max-width: 560px) {
  .dr-app .dr-items .dr-item__foot strong {
    justify-content: flex-end;
    min-height: calc(11px * 1.35 + 1.35em);
  }
}

/* Restaurant brand colors: section headings, prices, secondary accents and category pills. */
.dr-app .dr-shelf:not(.dr-offers-shelf) .dr-shelf__title,
.dr-app .dr-menu > .dr-section-heading h2,
.dr-app .dr-cat:not(.is-active) .dr-cat__name {
  color: var(--dr-brand-heading, #14231d);
}

.dr-app .dr-menu > .dr-section-heading .dr-subtle {
  color: var(--dr-brand-heading, #14231d);
  opacity: .75;
}

.dr-app .dr-about h2,
.dr-app .dr-about strong {
  color: var(--dr-ink);
}

.dr-app .dr-items .dr-item__foot strong,
.dr-app .dr-offer-price-stack strong {
  color: var(--dr-brand-price, var(--dr-accent));
}

.dr-app .dr-items .dr-item__category {
  color: var(--dr-brand-price, var(--dr-green, #167c52));
  background: color-mix(in srgb, var(--dr-brand-secondary, #57c494) 18%, #fff);
}

.dr-app .dr-cat__circle {
  border: 2px solid var(--dr-brand-secondary, transparent);
}

.dr-branding-subheading {
  margin: 22px 0 12px;
  font-size: 15px;
  font-weight: 800;
}

/* Product cards: taller and bigger images in 4:3 ratio matching dashboard guide, fully contained. */
.dr-app .dr-items .dr-item__media {
  aspect-ratio: 4 / 3 !important;
}

.dr-app .dr-items .dr-item__image {
  object-fit: contain !important;
  object-position: center !important;
}

.dr-app .dr-items .dr-item__body {
  padding: 8px 12px 0;
}

.dr-app .dr-items .dr-item__category {
  margin-bottom: 3px;
}

.dr-app .dr-items .dr-item__body:not(:has(> .dr-item__category))::before {
  height: 23px;
}

.dr-app .dr-items .dr-item h4 {
  min-height: 2.7em;
  max-height: 2.7em;
  margin-bottom: 2px;
  line-height: 1.35;
}

.dr-app .dr-items .dr-item__foot {
  min-height: 0;
  padding: 6px 12px 10px;
}

@media (max-width: 560px) {
  .dr-app .dr-items .dr-item__body {
    padding: 7px 10px 0;
  }

  .dr-app .dr-items .dr-item__body p,
  .dr-app .dr-items .dr-item__body:not(:has(> p))::after {
    height: 1.55em;
    min-height: 1.55em;
    -webkit-line-clamp: 1;
  }

  .dr-app .dr-items .dr-item__foot {
    gap: 4px;
    padding: 4px 10px 9px;
  }
}

/* Product cards: taller and bigger images in 4:3 ratio matching dashboard guide, fully contained. */
.dr-app .dr-items .dr-item__media {
  aspect-ratio: 4 / 3 !important;
}

.dr-app .dr-items .dr-item__image {
  object-fit: contain !important;
  object-position: center !important;
}

.dr-app .dr-items .dr-item__category {
  margin-bottom: 2px;
  padding: 1px 7px;
  font-size: 10.5px;
}

.dr-app .dr-items .dr-item__body:not(:has(> .dr-item__category))::before {
  height: 19px;
}

@media (max-width: 560px) {
  .dr-app .dr-items .dr-item h4 {
    font-size: 13.5px;
  }

  .dr-app .dr-items .dr-item__foot {
    padding: 3px 10px 8px;
  }

  .dr-app .dr-items .dr-item__foot strong {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 4px;
    min-height: 0;
    font-size: 13px;
  }

  .dr-app .dr-items .dr-item__foot strong small {
    font-size: 10px;
  }

  .dr-app .dr-items .dr-add-button,
  .dr-app .dr-items .dr-whatsapp-button {
    min-height: 28px !important;
    padding-block: 4px !important;
  }
}

/* Owner photo guidance next to banner and product image uploads. */
.dr-image-guide {
  margin: 8px 0 4px;
  padding: 10px 14px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #78350f;
  font-size: 13px;
  line-height: 1.8;
}

.dr-image-guide summary {
  cursor: pointer;
  font-weight: 700;
}

.dr-image-guide ul {
  margin: 8px 0 0;
  padding-inline-start: 20px;
}

/* Owner statistics and reports tab */
.dr-reports {
  --dr-rep-surface: #ffffff;
  --dr-rep-soft: #f4f8f5;
  --dr-rep-line: #e4ede7;
  --dr-rep-ink: #144234;
  --dr-rep-text: #2b3a35;
  --dr-rep-muted: #5d746a;
  --dr-rep-bar: #167c52;
  --dr-rep-bar-strong: #0f5c3c;
  --dr-rep-bar-soft: #8fc7ab;
  --dr-rep-track: #edf3ef;
  --dr-rep-good: #167c52;
  --dr-rep-bad: #b42318;
  color: var(--dr-rep-text);
}

[data-jm-theme="dark"] .dr-reports,
.dark .dr-reports {
  --dr-rep-surface: #111113;
  --dr-rep-soft: #18181b;
  --dr-rep-line: #27272a;
  --dr-rep-ink: #fafafa;
  --dr-rep-text: #e4e4e7;
  --dr-rep-muted: #a1a1aa;
  --dr-rep-bar: #30a674;
  --dr-rep-bar-strong: #57c494;
  --dr-rep-bar-soft: #1f6b4b;
  --dr-rep-track: #27272a;
  --dr-rep-good: #57c494;
  --dr-rep-bad: #f97066;
}

.dr-reports__header { margin-bottom: 18px; }
.dr-reports h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--dr-rep-ink); line-height: 1.4; }
.dr-reports small { font-size: 12.5px; color: var(--dr-rep-muted); line-height: 1.6; }

.dr-rep-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.dr-rep-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-rep-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--dr-rep-line);
  border-radius: 999px;
  background: var(--dr-rep-surface);
  color: var(--dr-rep-text);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.dr-rep-chip::-webkit-details-marker { display: none; }
.dr-rep-chip:hover { border-color: var(--dr-rep-bar); color: var(--dr-rep-text); }
.dr-rep-chip.is-active,
.dr-rep-chip.is-active:hover { background: var(--dr-rep-bar); border-color: var(--dr-rep-bar); color: #fff; }
.dr-rep-custom__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 10px; padding: 14px; border: 1px solid var(--dr-rep-line); border-radius: 14px; background: var(--dr-rep-surface); }
.dr-rep-custom__form label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--dr-rep-muted); }
.dr-reports .dr-rep-range { margin: 0 0 16px; font-size: 13.5px; color: var(--dr-rep-muted); }
.dr-rep-range strong { color: var(--dr-rep-ink); }

.dr-rep-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.dr-rep-kpi { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 20px; border: 1px solid var(--dr-rep-line); border-radius: 16px; background: var(--dr-rep-surface); }
.dr-rep-kpi h3 { font-size: 13.5px; font-weight: 700; color: var(--dr-rep-muted); }
.dr-rep-kpi > strong { font-size: 28px; font-weight: 800; line-height: 1.2; color: var(--dr-rep-ink); overflow-wrap: anywhere; }
.dr-rep-kpi--lead { background: var(--dr-rep-soft); }
.dr-rep-delta { font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.dr-rep-delta--good { color: var(--dr-rep-good); }
.dr-rep-delta--bad { color: var(--dr-rep-bad); }
.dr-rep-delta--flat { color: var(--dr-rep-muted); font-weight: 500; }

.dr-rep-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding: 12px 16px; border: 1px solid #f3dfb8; border-radius: 14px; background: #fffaf0; color: #6b4a12; font-size: 13.5px; }
.dr-rep-note p { margin: 0; line-height: 1.7; }
[data-jm-theme="dark"] .dr-rep-note, .dark .dr-rep-note { background: #27200f; border-color: #4a3a17; color: #f5d78e; }

.dr-rep-highlights { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: var(--dr-rep-soft); list-style: none; }
.dr-rep-highlights li { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; }
.dr-rep-highlights span { color: var(--dr-rep-muted); }
.dr-rep-highlights strong { color: var(--dr-rep-ink); }

.dr-rep-card { min-width: 0; padding: 20px; border: 1px solid var(--dr-rep-line); border-radius: 16px; background: var(--dr-rep-surface); box-sizing: border-box; }
.dr-rep-card--spaced { margin-bottom: 14px; }
.dr-rep-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dr-rep-card__sub { margin: 4px 0 0; font-size: 13px; color: var(--dr-rep-muted); line-height: 1.6; }
.dr-rep-card__hint { margin: 12px 0 0; font-size: 12.5px; color: var(--dr-rep-muted); line-height: 1.6; }
.dr-rep-card__figure { margin: 12px 0; font-size: 13.5px; color: var(--dr-rep-muted); }
.dr-rep-card__figure strong { display: block; font-size: 28px; font-weight: 800; color: var(--dr-rep-ink); line-height: 1.2; }
.dr-reports .dr-rep-subhead { margin: 20px 0 10px; font-size: 14px; font-weight: 800; color: var(--dr-rep-ink); }

.dr-rep-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.dr-rep-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dr-rep-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.dr-rep-toggle { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--dr-rep-track); }
.dr-rep-toggle button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--dr-rep-muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dr-rep-toggle button.is-active { background: var(--dr-rep-surface); color: var(--dr-rep-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

.dr-rep-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.dr-rep-chart__axis { position: relative; min-width: 48px; height: 244px; }
.dr-rep-chart__ticks { position: absolute; inset: 0; display: none; }
.dr-rep-chart[data-metric="sales"] .dr-rep-chart__ticks[data-for="sales"],
.dr-rep-chart[data-metric="orders"] .dr-rep-chart__ticks[data-for="orders"] { display: block; }
.dr-rep-chart__ticks span { position: absolute; inset-inline-start: 0; display: block; height: 0; font-size: 11.5px; line-height: 0; color: var(--dr-rep-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.dr-rep-plot { position: relative; height: 244px; }
.dr-rep-plot--small { height: 150px; margin-top: 14px; }
.dr-rep-plot__grid { position: absolute; inset: 0 0 24px; display: flex; flex-direction: column; justify-content: space-between; }
.dr-rep-plot__grid i { display: block; height: 1px; background: var(--dr-rep-line); }
.dr-rep-plot__cols { position: absolute; inset: 0; display: flex; }
.dr-rep-col { position: relative; flex: 1 1 0; min-width: 0; height: 100%; padding: 0 1px 24px; display: flex; align-items: flex-end; justify-content: center; box-sizing: border-box; outline: none; cursor: default; }
.dr-rep-col__bar { display: block; width: 100%; max-width: 24px; height: var(--dr-s); border-radius: 4px 4px 0 0; background: var(--dr-rep-bar); }
.dr-rep-chart[data-metric="orders"] .dr-rep-col__bar { height: var(--dr-o); }
.dr-rep-plot--small .dr-rep-col__bar { background: var(--dr-rep-bar-soft); }
.dr-rep-plot--small .dr-rep-col.is-peak .dr-rep-col__bar { background: var(--dr-rep-bar); }
.dr-rep-col:hover .dr-rep-col__bar,
.dr-rep-col:focus .dr-rep-col__bar { background: var(--dr-rep-bar-strong); }
.dr-rep-col:focus-visible { box-shadow: inset 0 0 0 2px var(--dr-rep-bar); border-radius: 4px; }
.dr-rep-col__x { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-size: 11.5px; line-height: 20px; color: var(--dr-rep-muted); white-space: nowrap; }
.dr-rep-tip { position: absolute; z-index: 5; top: -6px; left: 50%; transform: translateX(-50%); display: none; min-width: 140px; padding: 8px 12px; border-radius: 10px; background: #14231d; color: #fff; font-size: 12.5px; line-height: 1.7; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); pointer-events: none; }
.dr-rep-tip b, .dr-rep-tip span { display: block; }
.dr-rep-col:hover .dr-rep-tip, .dr-rep-col:focus .dr-rep-tip { display: block; }
.dr-rep-col.is-start .dr-rep-tip { left: auto; right: 0; transform: none; }
.dr-rep-col.is-end .dr-rep-tip { left: 0; transform: none; }

.dr-rep-table-wrap { margin-top: 14px; }
.dr-rep-table-wrap summary { min-height: 32px; font-size: 13.5px; font-weight: 700; color: var(--dr-rep-ink); cursor: pointer; }
.dr-rep-table-scroll { overflow-x: auto; margin-top: 8px; }
.dr-rep-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dr-rep-table th, .dr-rep-table td { padding: 9px 10px; border-bottom: 1px solid var(--dr-rep-line); text-align: start; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dr-rep-table thead th { color: var(--dr-rep-muted); font-size: 12.5px; font-weight: 700; }
.dr-rep-table tbody th { font-weight: 600; color: var(--dr-rep-text); }

.dr-rep-meter { height: 8px; border-radius: 999px; background: var(--dr-rep-track); overflow: hidden; }
.dr-rep-meter span { display: block; height: 100%; border-radius: 999px; background: var(--dr-rep-bar); }
.dr-rep-items, .dr-rep-shares { display: grid; gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.dr-rep-items li, .dr-rep-shares li { display: grid; gap: 5px; }
.dr-rep-items__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; }
.dr-rep-items__row strong { color: var(--dr-rep-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dr-rep-items__name { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.dr-rep-unordered { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--dr-rep-line); }
.dr-rep-unordered p { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--dr-rep-muted); }
.dr-rep-unordered ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dr-rep-unordered li { padding: 3px 10px; border-radius: 999px; background: var(--dr-rep-track); font-size: 12.5px; }
.dr-rep-unordered li.is-more { background: transparent; color: var(--dr-rep-muted); }

.dr-rep-days { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dr-rep-days li { display: grid; grid-template-columns: 62px minmax(0, 1fr) 34px; align-items: center; gap: 10px; font-size: 13px; }
.dr-rep-days b { text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.dr-rep-days .dr-rep-meter span { background: var(--dr-rep-bar-soft); }
.dr-rep-days .is-peak .dr-rep-meter span { background: var(--dr-rep-bar); }
.dr-rep-days .is-peak > span { font-weight: 800; color: var(--dr-rep-ink); }

.dr-rep-pairs { display: grid; gap: 8px; margin: 0; }
.dr-rep-pairs div { display: flex; justify-content: space-between; font-size: 13.5px; }
.dr-rep-pairs dt { color: var(--dr-rep-muted); }
.dr-rep-pairs dd { margin: 0; font-weight: 700; color: var(--dr-rep-ink); }

.dr-rep-downloads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.dr-rep-download { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--dr-rep-line); border-radius: 12px; background: var(--dr-rep-surface); color: var(--dr-rep-text); font: inherit; text-align: start; text-decoration: none; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.dr-rep-download:hover { border-color: var(--dr-rep-bar); background: var(--dr-rep-soft); color: var(--dr-rep-text); }
.dr-rep-download strong { font-size: 13.5px; color: var(--dr-rep-ink); }
.dr-rep-download span { font-size: 12.5px; color: var(--dr-rep-muted); line-height: 1.5; }

.dr-rep-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; border: 1px dashed var(--dr-rep-line); border-radius: 16px; background: var(--dr-rep-surface); color: var(--dr-rep-muted); text-align: center; }
.dr-rep-empty p { margin: 0 0 8px; max-width: 420px; font-size: 14px; line-height: 1.7; }

@media (max-width: 1100px) {
  .dr-rep-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dr-rep-grid--three, .dr-rep-downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .dr-rep-grid--two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .dr-rep-grid--three, .dr-rep-downloads { grid-template-columns: minmax(0, 1fr); }
  .dr-rep-kpi { padding: 14px; }
  .dr-rep-kpi > strong { font-size: 22px; }
  .dr-rep-card { padding: 16px; }
  .dr-rep-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -4px; padding: 2px 4px; scrollbar-width: none; }
  .dr-rep-chip { flex: none; }
}
@media print {
  .dr-reports, .dr-reports * { visibility: visible !important; }
  .dr-reports { position: absolute; top: 0; left: 0; width: 100%; }
  .dr-rep-noprint { display: none !important; }
  .dr-rep-card, .dr-rep-kpi { break-inside: avoid; }
  .dr-rep-col__bar, .dr-rep-meter span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.dr-zone-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.dr-zone-choices label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid #e2e8f0; border-radius: 10px; background: #fff; font-size: 14px; color: #1e293b; cursor: pointer; }
.dr-zone-choices label:has(input:checked) { border-color: #167c52; background: rgba(22, 124, 82, .08); }
.dr-zone-hint { display: block; margin-top: 6px; color: #64748b; font-size: 12.5px; }
.dr-delivery-places__title { margin: 14px 0 6px; font-size: 13.5px; font-weight: 700; color: #263b30; }
.dr-delivery-places__title small { font-weight: 400; color: #64748b; }
.dr-delivery-places__list { display: grid; gap: 8px; }
.dr-delivery-place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 170px); align-items: center; gap: 10px; padding: 8px 10px; border: 1.5px solid #e2e8f0; border-radius: 10px; background: #fff; }
.dr-delivery-place:has(input[type=checkbox]:checked) { border-color: #167c52; background: rgba(22, 124, 82, .06); }
.dr-delivery-place:not(:has(.dr-delivery-place__fee)) { grid-template-columns: 1fr; }
.dr-delivery-place__name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: #1e293b; cursor: pointer; overflow-wrap: anywhere; }
.dr-delivery-place__name small { color: #94a3b8; }
.dr-delivery-place .dr-text-input { width: 100%; min-width: 0; }
@media (max-width: 480px) { .dr-delivery-place { grid-template-columns: 1fr; } }

/* ===================================================
   Onboarding Checklist Card – بطاقة خطوات الإعداد
   =================================================== */

.dr-onboarding-card {
  background: #ffffff;
  border: 1.5px solid #d4ebe0;
  border-radius: 20px;
  padding: 28px 28px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(22, 124, 82, 0.07);
  position: relative;
  overflow: hidden;
}

.dr-onboarding-card::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, #2f8f6e, #167c52);
  border-radius: 20px 0 0 20px;
}
[dir="rtl"] .dr-onboarding-card::before {
  inset-inline-start: auto;
  inset-inline-end: 0;
  border-radius: 0 20px 20px 0;
}

/* Header */
.dr-onboarding-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.dr-onboarding-header-text {
  flex: 1;
  min-width: 0;
}

.dr-onboarding-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f7f0;
  color: #167c52;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.dr-onboarding-title {
  font-size: 18px;
  font-weight: 800;
  color: #14231d;
  margin: 0 0 6px;
}

.dr-onboarding-sub {
  font-size: 13.5px;
  color: #56766a;
  margin: 0;
  line-height: 1.6;
}

/* Progress ring */
.dr-onboarding-progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  position: relative;
}

.dr-onboarding-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dr-onboarding-ring svg {
  transform: rotate(0deg);
}

.dr-onboarding-ring-num {
  position: absolute;
  font-size: 13px;
  font-weight: 800;
  color: #167c52;
  line-height: 1;
}

.dr-onboarding-pct {
  font-size: 14px;
  font-weight: 800;
  color: #167c52;
  margin-top: 4px;
  text-align: center;
}

.dr-onboarding-pct-label {
  font-size: 11.5px;
  color: #7a9b8d;
  text-align: center;
}

/* Progress bar */
.dr-onboarding-bar-wrap {
  margin-bottom: 22px;
}

.dr-onboarding-bar {
  height: 7px;
  background: #e8f0ee;
  border-radius: 999px;
  overflow: hidden;
}

.dr-onboarding-bar-fill {
  height: 100%;
  background: linear-gradient(to left, #2f8f6e, #167c52);
  border-radius: 999px;
  transition: width 0.6s ease;
  min-width: 2%;
}

/* Steps grid */
.dr-onboarding-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Single step card */
.dr-onboarding-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fbf9;
  border: 1.5px solid #e3ece7;
  border-radius: 14px;
  padding: 14px 14px 14px 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.dr-onboarding-step--done {
  background: #f0faf4;
  border-color: #b8e0ce;
}

.dr-onboarding-step--launch {
  grid-column: 1 / -1;
  border-style: dashed;
  background: #fafffe;
}

.dr-onboarding-step--launch.dr-onboarding-step--done {
  border-style: solid;
  background: #edfaf4;
  border-color: #a4d9ba;
}

/* Step icon */
.dr-onboarding-step-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 11px;
  background: #e3ece8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a7a62;
  flex-shrink: 0;
}

.dr-onboarding-step--done .dr-onboarding-step-icon {
  background: #d2f0e1;
  color: #167c52;
}

/* Step body */
.dr-onboarding-step-body {
  flex: 1;
  min-width: 0;
}

.dr-onboarding-step-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.dr-onboarding-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: #cde4d9;
  color: #167c52;
  font-size: 11px;
  font-weight: 800;
}

.dr-onboarding-step--done .dr-onboarding-step-num {
  background: #167c52;
  color: #fff;
}

.dr-onboarding-step-title {
  font-size: 14px;
  font-weight: 700;
  color: #14231d;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.dr-onboarding-step-desc {
  font-size: 12px;
  color: #6b8b7c;
  margin: 0;
  line-height: 1.5;
}

/* Badges */
.dr-onboarding-badge-done {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #d2f0e1;
  color: #126641;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.dr-onboarding-badge-todo {
  display: inline-flex;
  align-items: center;
  background: #fff4e0;
  color: #9a6300;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.dr-onboarding-badge-ready {
  display: inline-flex;
  align-items: center;
  background: #d6f2e9;
  color: #0e6e44;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Action button on each step */
.dr-onboarding-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #167c52;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  transition: background 0.18s ease;
  text-decoration: none;
  padding: 0;
}

.dr-onboarding-step-btn:hover {
  background: #116641;
  color: #fff;
}

.dr-onboarding-step-btn--view {
  background: #0f5132;
}

.dr-onboarding-step-btn--publish {
  width: auto;
  padding: 0 14px;
  gap: 5px;
  font-size: 13px;
  background: linear-gradient(135deg, #2f8f6e, #167c52);
  box-shadow: 0 2px 8px rgba(22, 124, 82, 0.35);
}

.dr-onboarding-step-btn--publish:hover {
  background: #116641;
}

.dr-onboarding-step-btn--locked {
  background: #e4ede9;
  color: #9ab3a7;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 680px) {
  .dr-onboarding-card {
    padding: 20px 16px 16px;
  }

  .dr-onboarding-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .dr-onboarding-step--launch {
    grid-column: auto;
  }

  .dr-onboarding-header {
    flex-direction: row;
    align-items: center;
  }

  .dr-onboarding-title {
    font-size: 16px;
  }

  .dr-onboarding-ring {
    display: none;
  }

  .dr-onboarding-pct,
  .dr-onboarding-pct-label {
    display: none;
  }
}

/* Owner dashboards (restaurant + store) — compact mobile top bar (one row: section switcher + icon actions). */
.dr-owner-dashboard .dr-nav-switch,
.dr-owner-dashboard .dr-topbar-icon-btn__hint {
	display: none;
}

@media (max-width: 768px) {
	.dr-owner-dashboard .dr-owner-topbar {
		position: sticky;
		top: var(--dr-topbar-offset, 0px);
		z-index: 40;
		flex-direction: row !important;
		align-items: center !important;
		gap: 8px !important;
		padding: 10px 16px !important;
		background: rgba(255, 255, 255, 0.94);
		-webkit-backdrop-filter: saturate(1.4) blur(10px);
		backdrop-filter: saturate(1.4) blur(10px);
		border-bottom: 1px solid #e5ede7;
	}

	html[data-jm-theme="dark"] .dr-owner-dashboard .dr-owner-topbar {
		background: rgba(9, 9, 11, 0.92);
		border-bottom-color: #27272a;
	}

	.dr-owner-dashboard .dr-owner-topbar__start {
		flex: 1 1 0;
		min-width: 0;
		display: flex;
	}

	/* The page heading already names the section, so the breadcrumb is redundant on phones. */
	.dr-owner-dashboard .dr-breadcrumbs {
		display: none !important;
	}

	.dr-owner-dashboard .dr-nav-switch {
		display: flex !important;
		align-items: center;
		gap: 7px;
		width: 100%;
		min-width: 0;
		min-height: 52px;
		margin: 0;
		padding: 4px 4px 4px 8px;
		border: 1.5px solid #d5ded9;
		border-radius: 14px;
		background: #ffffff;
		color: #0f172a;
		font: inherit;
		text-align: start;
		cursor: pointer;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
		-webkit-tap-highlight-color: transparent;
		transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
	}

	.dr-owner-dashboard .dr-nav-switch:active {
		transform: scale(0.98);
		background: #f7faf8;
	}

	.dr-owner-dashboard .dr-nav-switch:focus-visible {
		outline: 2px solid #154e3d;
		outline-offset: 2px;
	}

	.dr-owner-dashboard .dr-nav-switch__icon {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		border-radius: 10px;
		background: #e8f3ee;
		color: #154e3d;
	}

	.dr-owner-dashboard .dr-nav-switch__text {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		flex-direction: column;
		line-height: 1.25;
	}

	.dr-owner-dashboard .dr-nav-switch__text small {
		font-size: 11px;
		font-weight: 600;
		color: #64748b;
	}

	.dr-owner-dashboard .dr-nav-switch__text strong {
		overflow: hidden;
		font-size: 14.5px;
		font-weight: 800;
		color: #0f172a;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.dr-owner-dashboard .dr-nav-switch__chevron {
		flex: 0 0 auto;
		display: inline-flex;
		color: #64748b;
		transition: transform 0.2s ease;
	}

	.dr-owner-dashboard .dr-nav-switch[aria-expanded="true"] .dr-nav-switch__chevron {
		transform: rotate(180deg);
	}

	html[data-jm-theme="dark"] .dr-owner-dashboard .dr-nav-switch {
		background: #18181b;
		border-color: #3f3f46;
		color: #fafafa;
	}

	html[data-jm-theme="dark"] .dr-owner-dashboard .dr-nav-switch__text strong {
		color: #fafafa;
	}

	html[data-jm-theme="dark"] .dr-owner-dashboard .dr-nav-switch__icon {
		background: rgba(52, 211, 153, 0.12);
		color: #6ee7b7;
	}

	.dr-owner-dashboard .dr-owner-topbar__end {
		flex: 0 0 auto;
		gap: 8px !important;
	}

	/* Visit page / log out become compact buttons: icon on top, short label below (full label via aria-label). */
	.dr-owner-dashboard .dr-owner-topbar .dr-topbar-icon-btn {
		flex-direction: column;
		justify-content: center;
		gap: 3px !important;
		min-width: 52px;
		height: 52px;
		padding: 0 8px !important;
		border-radius: 14px;
	}

	.dr-owner-dashboard .dr-owner-topbar .dr-topbar-icon-btn__hint {
		display: block;
		font-size: 10.5px;
		font-weight: 700;
		line-height: 1;
		white-space: nowrap;
		color: inherit;
	}

	.dr-owner-dashboard .dr-owner-topbar .dr-topbar-icon-btn span {
		display: none !important;
	}

	.dr-owner-dashboard .dr-owner-topbar .dr-topbar-icon-btn svg {
		flex: 0 0 auto;
		width: 18px;
		height: 18px;
	}

	/* Publish keeps its label (it is the main call to action): it moves to a second row, full width, next to log out. */
	.dr-owner-dashboard .dr-owner-topbar {
		flex-wrap: wrap;
	}

	.dr-owner-dashboard .dr-owner-topbar__end:has(> form) {
		flex: 1 1 100%;
	}

	.dr-owner-dashboard .dr-owner-topbar__end > form {
		flex: 1 1 auto;
		display: flex !important;
		min-width: 0;
	}

	.dr-owner-dashboard .dr-owner-topbar__end form .dr-pill-btn {
		width: 100%;
		height: 52px;
		padding: 0 14px;
		justify-content: center;
		border-radius: 14px;
		font-size: 13.5px;
	}
}

/* Owner dashboards (restaurant + store): no site bottom app bar — the dashboard has its own section switcher. */
@media (max-width: 768px) {
	body:has(.dr-owner-dashboard) .mobile-bottom-nav {
		display: none !important;
	}

	body:has(.dr-owner-dashboard) {
		padding-bottom: 0 !important;
	}

	.dr-owner-dashboard .jm-sidebar {
		padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
	}
}

/* Owner dashboards: share the page link (WhatsApp status, WhatsApp message, native share). */
.dr-owner-dashboard .dr-share-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	max-width: 600px;
	margin: -6px 0 18px;
}

.dr-owner-dashboard .dr-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 42px;
	padding: 0 16px;
	border: 1.5px solid transparent;
	border-radius: 12px;
	font: inherit;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
	-webkit-tap-highlight-color: transparent;
}

.dr-owner-dashboard .dr-share-btn[hidden] {
	display: none !important;
}

.dr-owner-dashboard .dr-share-btn:active {
	transform: scale(0.98);
}

.dr-owner-dashboard .dr-share-btn:focus-visible {
	outline: 2px solid #154e3d;
	outline-offset: 2px;
}

.dr-owner-dashboard .dr-share-btn .bx {
	font-size: 20px;
	line-height: 1;
}

.dr-owner-dashboard .dr-share-btn--status {
	background: #154e3d;
	color: #ffffff !important;
	box-shadow: 0 2px 6px rgba(21, 78, 61, 0.16);
}

.dr-owner-dashboard .dr-share-btn--status:hover {
	background: #0f3d30;
}

/* A touch of WhatsApp green on the icon only, readable on the dark button. */
.dr-owner-dashboard .dr-share-btn--status .bx {
	color: #5fe39a;
}

.dr-owner-dashboard .dr-share-btn--wa {
	background: #ffffff;
	border-color: #d5ded9;
	color: #154e3d !important;
}

.dr-owner-dashboard .dr-share-btn--wa:hover {
	background: #f7faf8;
	border-color: #c4d2cb;
}

.dr-owner-dashboard .dr-share-btn--native {
	background: #eef5f1;
	border-color: #d8e7de;
	color: #154e3d !important;
}

.dr-owner-dashboard .dr-share-btn--native:hover {
	background: #e0eee6;
}

.dr-owner-dashboard .dr-share-hint {
	flex: 1 1 100%;
	margin: 2px 0 0;
	font-size: 12px;
	line-height: 1.6;
	color: #64748b;
}

@media (max-width: 680px) {
	.dr-owner-dashboard .dr-share-row {
		margin-top: -8px;
	}

	.dr-owner-dashboard .dr-share-btn {
		flex: 1 1 0;
		min-height: 46px;
		padding: 0 10px;
	}

	.dr-owner-dashboard .dr-share-btn--status {
		flex-basis: 100%;
	}
}

/* ===================================================
   Orders list: search, pager, print, sound, sold out
   =================================================== */

.dr-orders-card-head .dr-sound-toggle { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
.dr-order-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 16px 0; padding: 14px; border: 1px solid #e6eee9; border-radius: 12px; background: #fafcfb; }
.dr-order-filters__field { display: grid; gap: 5px; flex: 1 1 150px; min-width: 0; color: #42564b; font-size: 13px; font-weight: 700; }
.dr-order-filters__field--wide { flex: 2 1 240px; }
.dr-order-filters__field .jm-input, .dr-order-filters__field .jm-select { width: 100%; min-height: 40px; }
.dr-order-filters__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-order-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 18px; }
.dr-order-pager__info { color: #64748b; font-size: 13px; }
.dr-order-card__head-end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dr-order-card__note { display: grid; gap: 6px; flex: 1 1 240px; min-width: 0; color: #42564b; font-size: 13px; font-weight: 700; }
.dr-order-card__note[hidden] { display: none; }
.dr-order-card__note .jm-input { width: 100%; min-height: 42px; }
.dr-order-card__cancel dd { color: #b42318; }
.dr-sold-out-btn { font-size: 11px; padding: 3px 8px; color: #b45309; border-color: #fcd34d; }
.dr-print-only { display: none; }

@media print {
  body.dr-printing-order .dr-order-card.is-printing, body.dr-printing-order .dr-order-card.is-printing * { visibility: visible !important; }
  body.dr-printing-order .dr-order-card.is-printing { position: absolute; top: 0; left: 0; right: 0; width: auto; margin: 0; border: 0; box-shadow: none; background: #fff; color: #000; }
  body.dr-printing-order .dr-order-card.is-printing form, body.dr-printing-order .dr-order-card.is-printing .dr-noprint { display: none !important; }
  body.dr-printing-order .dr-order-card.is-printing .dr-print-only { display: block; margin: 0 0 8px; font-size: 18px; font-weight: 700; text-align: center; }
  body.dr-printing-order .dr-reports, body.dr-printing-order .dr-reports * { visibility: hidden !important; }
}
.dr-closed-notice{margin:0 0 14px}.dr-closed-notice strong{display:block;font-size:15px;margin-bottom:2px}

/* Owner-curated featured shelves (e.g. «الأكثر طلبًا»): dashboard picker and storefront scroller. */
.dr-featured-block{margin-top:32px}
.dr-featured-editor>summary{cursor:pointer;list-style:none}
.dr-featured-editor>summary::-webkit-details-marker{display:none}
.dr-featured-editor:not(.dr-featured-editor--new)>summary{display:inline-block;padding:6px 0;color:#167c52;font-size:13px;font-weight:700}
.dr-featured-editor--new>summary{width:fit-content}
.dr-featured-form{display:grid;gap:14px;margin-top:14px;padding:16px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.dr-featured-form__name{display:grid;gap:6px;font-size:13px;font-weight:700;color:#24443a}
.dr-featured-form__active{display:flex;align-items:center;gap:8px;font-size:13px;color:#24443a}
.dr-featured-picker{margin:0;padding:0;border:0;min-width:0}
.dr-featured-picker legend{margin-bottom:8px;padding:0;font-size:13px;font-weight:700;color:#24443a}
.dr-featured-picker__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;max-height:320px;overflow-y:auto;padding:2px}
.dr-featured-pick{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:10px 12px;border:1px solid #e3ebe6;border-radius:10px;background:#fff;cursor:pointer}
.dr-featured-pick:has(input:checked){border-color:#167c52;background:#f0f9f4}
.dr-featured-pick input{margin-top:3px;flex:0 0 auto}
.dr-featured-pick__text{display:grid;gap:2px;min-width:0}
.dr-featured-pick__text strong{font-size:14px;color:#17352b;overflow-wrap:anywhere}
.dr-featured-pick__text small{font-size:12px;color:#647d73}
.dr-featured-form .dr-section-image-save{justify-self:start}
.dr-featured-list{display:grid;gap:10px;margin-top:16px}
.dr-featured-row{padding:14px 16px;border:1px solid #e3ebe6;border-radius:12px;background:#fff}
.dr-featured-row__head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.dr-featured-row__title{display:grid;gap:2px}
.dr-featured-row__title strong{font-size:15px;color:#17352b}
.dr-featured-row__title small{font-size:12px;color:#647d73}
.dr-featured-row__actions{display:flex;align-items:center;gap:6px;margin:0}
.dr-featured-empty{margin:16px 0 0;color:#647d73;font-size:13px}
.dr-app .dr-featured-shelf{margin-top:24px}
.dr-app .dr-featured-grid{display:flex;flex-wrap:nowrap;grid-template-columns:none;gap:16px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 12px;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scrollbar-width:thin}
.dr-app .dr-featured-grid>.dr-item{flex:0 0 calc((100% - 48px)/4);min-width:0;scroll-snap-align:start}
@media(max-width:820px){.dr-app .dr-featured-grid{gap:10px}.dr-app .dr-featured-grid>.dr-item{flex-basis:calc((100% - 10px)/2)}.dr-featured-form .dr-section-image-save{justify-self:stretch}}

/* ---------- Owner dashboard: assistant ---------- */
.dr-assistant__chat { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 76px; }
@media (min-width: 768px) {
  .dr-assistant__chat { scroll-margin-top: 28px; }
}
.dr-assistant__log { display: flex; flex-direction: column; gap: 12px; min-height: clamp(160px, 28vh, 240px); max-height: min(62vh, 620px); overflow-y: auto; padding: 4px 8px 4px 4px; overscroll-behavior-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #9bb8ad #edf4f1; scroll-padding-block: 12px; }
@supports (height: 100dvh) {
  .dr-assistant__log { min-height: clamp(160px, 28dvh, 240px); max-height: min(62dvh, 620px); }
}
.dr-assistant__msg { max-width: min(680px, 92%); padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.9; color: #1e293b; overflow-wrap: anywhere; }
.dr-assistant__msg p { margin: 0 0 8px; }
.dr-assistant__msg p:last-child { margin-bottom: 0; }
.dr-assistant__msg--bot { align-self: flex-start; background: #f1f7f5; border: 1px solid #dcebe6; border-start-start-radius: 4px; }
.dr-assistant__msg--user { align-self: flex-end; background: #2f8f6e; color: #fff; font-weight: 600; border-start-end-radius: 4px; }
.dr-assistant__msg--wait { color: #64748b; font-style: normal; }
.dr-assistant__msg--new { animation: dr-assistant-msg-in .25s ease-out; }
@keyframes dr-assistant-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.dr-assistant__topic-tag { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; background: #dcebe6; color: #256e52; font-size: 12px; font-weight: 700; }
.dr-assistant__answer-title { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: #0f172a; }
.dr-assistant__steps { margin: 0 0 10px; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }
.dr-assistant__steps li { padding-inline-start: 4px; }
.dr-assistant__steps li::marker { color: #2f8f6e; font-weight: 800; }
.dr-assistant__note { padding: 8px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 13.5px; }
.dr-assistant__locked { padding: 8px 12px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 13.5px; font-weight: 700; }
.dr-assistant__go { display: inline-flex; align-items: center; min-height: 40px; margin-top: 4px; padding: 8px 16px; border: 0; border-radius: 999px; background: #2f8f6e; color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.dr-assistant__go:hover, .dr-assistant__go:focus-visible { background: #256e52; }
.dr-assistant__related-label { margin: 12px 0 6px !important; font-size: 13px; font-weight: 700; color: #475569; }
.dr-assistant__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-assistant__chip { min-height: 36px; padding: 6px 14px; border: 1px solid #cfe3dc; border-radius: 999px; background: #fff; color: #256e52; font: inherit; font-size: 13px; font-weight: 600; text-align: start; cursor: pointer; }
.dr-assistant__chip:hover, .dr-assistant__chip:focus-visible { background: #eaf4f1; border-color: #2f8f6e; }
.dr-assistant__ask { display: flex; gap: 10px; align-items: stretch; }
.dr-assistant__ask .dr-text-input { flex: 1; min-width: 0; }
.dr-assistant__ask button:disabled { opacity: .6; cursor: default; }
.dr-assistant__topics { scroll-margin-top: 76px; }
@media (min-width: 768px) {
  .dr-assistant__topics { scroll-margin-top: 28px; }
}
.dr-assistant__topics-title { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: #1e293b; }
.dr-assistant__topic { border-top: 1px solid #eef2f6; }
.dr-assistant__topic summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px; font-size: 14.5px; font-weight: 700; color: #1e293b; cursor: pointer; }
.dr-assistant__topic summary small { min-width: 26px; padding: 1px 8px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 12px; text-align: center; }
.dr-assistant__topic .dr-assistant__chips { padding: 0 2px 14px; }
@media (max-width: 600px) {
  .dr-assistant__log { min-height: clamp(150px, 24vh, 210px); max-height: min(54vh, 480px); padding-inline: 2px 6px; }
  .dr-assistant__msg { max-width: 100%; }
  .dr-assistant__ask { flex-direction: column; }
  .dr-assistant__ask button { justify-content: center; }
}
@supports (height: 100dvh) {
  @media (max-width: 600px) {
    .dr-assistant__log { min-height: clamp(150px, 24dvh, 210px); max-height: min(54dvh, 480px); }
  }
}

/* Product limit reached note in the owner's menu tab */
.dr-limit-note { margin: 0 0 16px; padding: 14px 16px; border: 1px solid #f3d9a4; border-radius: 12px; background: #fff9ec; color: #6b4e12; font-size: 14px; line-height: 1.7; }
.dr-limit-note strong { display: block; color: #5a3f08; }
.dr-limit-note p { margin: 4px 0 0; }
.dr-limit-note ul { margin: 8px 0 0; padding: 0 18px 0 0; }
.dr-limit-note__link { display: inline-block; margin-top: 10px; color: #14633f; font-weight: 700; text-decoration: underline; }
.dr-assistant__chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #64748b; }
.dr-assistant__clear { min-height: 36px; padding: 6px 14px; border: 1px solid #fecaca; border-radius: 999px; background: #fff; color: #b91c1c; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dr-assistant__clear[hidden] { display: none; }
.dr-assistant__clear:hover, .dr-assistant__clear:focus-visible { background: #fef2f2; }
.dr-tracking__done { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #ecfdf3; color: #14532d; font-size: 14px; line-height: 1.7; }
.dr-tracking__wa { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0 0; }
.dr-tracking__wa small { color: #64748b; font-size: 12px; }
.dr-my-orders__list { display: grid; gap: 12px; }
.dr-app .dr-tracking { padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.dr-tracking .dr-tracking__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dr-tracking .dr-tracking__head h3 { margin: 2px 0 6px; font-size: 17px; }
.dr-tracking .dr-tracking__info { margin: 4px 0 0; font-size: 14px; }
.dr-my-orders__empty { margin: 0; padding: 14px 16px; border: 1px dashed #cbd5e1; border-radius: 14px; background: #fff; color: #64748b; font-size: 14px; line-height: 1.7; }
.dr-my-orders__loading { margin: 0; color: #64748b; font-size: 14px; }
/* «طلباتي» sits outside .dr-order-ui, whose [hidden] rule hides the cart sheets; the drawer needs its own. */
.dr-sheet--orders[hidden],.dr-sheet--orders [hidden],.dr-overlay[data-dr-my-orders-overlay][hidden]{display:none!important}
/* «طلباتي» floating button: wide screens only (the bottom bar takes over below 820px); it sits above the cart button when that shows. */
.dr-my-orders-fab{position:fixed;z-index:9990;inset-inline:auto 18px;bottom:18px;display:flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#1e2a26;box-shadow:0 8px 22px rgba(0,0,0,.18);font-size:14px;font-weight:700;text-decoration:none}
.dr-my-orders-fab svg{width:20px;height:20px}
.dr-my-orders-fab:hover,.dr-my-orders-fab:focus-visible{color:var(--dr-accent)}
.dr-app:has(.dr-cart-bar:not([hidden])) .dr-my-orders-fab{bottom:78px}
@media(max-width:820px){.dr-my-orders-fab{display:none}}
/* Cart: delete a whole line. */
.dr-cart-row__remove{display:grid;flex:none;place-items:center;width:34px;height:34px;padding:0;border:1px solid var(--dr-border,#e2e8f0);border-radius:10px;background:#fff;color:#b91c1c;cursor:pointer}
.dr-cart-row__remove:hover,.dr-cart-row__remove:focus-visible{background:#fef2f2;border-color:#fecaca}
/* Cart button on wide screens: always shown, with a cart icon; the count sits on the icon and hides at zero. */
.dr-cart-bar__icon{position:relative;display:grid;order:-2;place-items:center}
.dr-cart-bar__icon svg{width:22px;height:22px}
.dr-cart-bar__icon .dr-cart-bar__count{position:absolute;top:-9px;inset-inline-start:-11px;min-width:18px;height:18px;padding:0 4px;font-size:11px;line-height:18px}
.dr-cart-bar__icon .dr-cart-bar__count[data-zero]{display:none}
/* Orders page: branch tabs for the owner, and the branch note for staff tied to one branch. */
.dr-branch-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 4px}
.dr-branch-tabs__tab{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:7px 14px;border:1px solid #dfe7e2;border-radius:999px;background:#fff;color:#1e2a26;font-size:14px;font-weight:700;text-decoration:none}
.dr-branch-tabs__tab:hover,.dr-branch-tabs__tab:focus-visible{border-color:#1e2a26}
.dr-branch-tabs__tab.is-active{border-color:#1e2a26;background:#1e2a26;color:#fff}
.dr-branch-tabs__new{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#dc2626;color:#fff;font-size:12px}
.dr-branch-scope{margin:14px 0 4px;padding:10px 14px;border-radius:12px;background:#f1f7f3;color:#1e2a26;font-size:14px}

/* ---------- الحساب والموظفون (Account, contacts & staff tab) ---------- */
.dr-owner-dashboard .dr-acct{--acct-green:hsl(var(--jm-primary));--acct-ink:#144234;--acct-muted:#647d73;--acct-line:#e3ede6;--acct-soft:#f4f9f6}
.dr-owner-dashboard .dr-acct .dr-orders-page-header{margin-bottom:18px}
.dr-acct-tabs{display:flex;gap:6px;padding:5px;margin-bottom:18px;border:1px solid var(--acct-line);border-radius:14px;background:#fff;overflow-x:auto;scrollbar-width:none;box-shadow:var(--jm-shadow-sm)}
.dr-acct-tabs::-webkit-scrollbar{display:none}
.dr-acct-tabs [role=tab]{flex:1 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 16px;border:0;border-radius:10px;background:transparent;color:var(--acct-muted);font:inherit;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s}
.dr-acct-tabs [role=tab]:hover{background:var(--acct-soft);color:var(--acct-ink)}
.dr-acct-tabs [role=tab][aria-selected=true]{background:var(--acct-ink);color:#fff}
.dr-acct-tabs [role=tab]:focus-visible{outline:2px solid var(--acct-green);outline-offset:2px}
.dr-acct-tabs__count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:var(--acct-soft);color:var(--acct-ink);font-size:12px}
.dr-acct-tabs [aria-selected=true] .dr-acct-tabs__count{background:rgb(255 255 255 / .18);color:#fff}
.dr-acct-tabs__dot{width:8px;height:8px;border-radius:50%;background:#d97706;box-shadow:0 0 0 3px rgb(217 119 6 / .18)}
.dr-acct-panel>.dr-notice{margin:0 0 14px}

/* Summary tiles */
.dr-acct-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 4px}
.dr-acct-stats>div{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border:1px solid var(--acct-line);border-radius:14px;background:#fff;min-width:0}
.dr-acct-stats dt{color:var(--acct-muted);font-size:12px;font-weight:600}
.dr-acct-stats dd{margin:0;color:var(--acct-ink);font-size:16px;font-weight:800;overflow-wrap:anywhere}
.dr-acct-stats small{color:var(--acct-muted);font-size:12px}
.dr-acct-stats .is-open{border-color:#bfe3cf;background:#f1faf5}
.dr-acct-stats .is-pending{border-color:#f1d9a6;background:#fffaf0}
.dr-acct-stats .is-closed dd{color:#a3261a}

/* Cards */
.dr-acct-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px;align-items:start}
.dr-acct-grid .dr-dashboard-card{margin-top:12px}
.dr-owner-dashboard .dr-acct .dr-acct-card{padding:22px}
.dr-acct-card__head{display:flex;gap:12px;align-items:flex-start;margin-bottom:18px}
.dr-acct-card__head h3{margin:0 0 3px;font-size:17px;font-weight:800;color:var(--acct-ink)}
.dr-acct-card__head p{margin:0;color:var(--acct-muted);font-size:13px;line-height:1.6}
.dr-acct-card__icon{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--acct-soft);color:var(--acct-green)}
.dr-owner-dashboard .dr-acct .dr-form-grid--single{grid-template-columns:1fr}
.dr-owner-dashboard .dr-acct .dr-form-grid label small,.dr-staff-field small{color:var(--acct-muted);font-weight:500;font-size:12px}
.dr-acct-card__foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:18px}
.dr-acct-link{color:var(--acct-green);font-size:13px;font-weight:700;text-decoration:none}
.dr-acct-link:hover{text-decoration:underline}
.dr-acct-note{margin:14px 0 0;color:var(--acct-muted);font-size:13px;line-height:1.7}
.dr-acct-note--lock{display:flex;gap:8px;align-items:center;padding:12px 14px;border-radius:12px;background:var(--acct-soft)}
.dr-acct-note--lock svg{flex:none;color:var(--acct-green)}
.dr-acct-inline-link{padding:0;border:0;background:none;color:var(--acct-green);font:inherit;font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:3px}

/* Staff toolbar and empty state */
.dr-staff-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.dr-staff-toolbar h3{display:flex;align-items:center;gap:8px;margin:0 0 3px;font-size:18px;font-weight:800;color:var(--acct-ink)}
.dr-staff-toolbar p{margin:0;color:var(--acct-muted);font-size:13px}
.dr-staff-toolbar__count{padding:2px 9px;border-radius:999px;background:var(--acct-soft);color:var(--acct-muted);font-size:12px;font-weight:700}
.dr-owner-dashboard .dr-staff-toolbar__add{gap:6px;border-radius:12px}
.dr-owner-dashboard .dr-staff-toolbar__add[aria-expanded=true]{background:var(--acct-ink)}
.dr-staff-toolbar__full{padding:8px 12px;border-radius:10px;background:#fffaf0;color:#6b4a0d;font-size:13px;font-weight:700}
.dr-owner-dashboard .dr-acct .dr-staff-add{margin:0 0 14px;border-color:#bfe3cf;box-shadow:0 0 0 4px rgb(22 124 82 / .06)}
.dr-staff-empty{display:flex;align-items:center;gap:14px;padding:22px;border:1px dashed #cfe0d6;border-radius:16px;background:#fff;color:var(--acct-green)}
.dr-staff-empty p{display:flex;flex-direction:column;gap:2px;margin:0;color:var(--acct-muted);font-size:13px}
.dr-staff-empty strong{color:var(--acct-ink);font-size:15px}

/* Staff cards */
.dr-staff-cards{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.dr-staff-card{padding:16px 18px;border:1px solid var(--acct-line);border-radius:16px;background:#fff;box-shadow:var(--jm-shadow-sm)}
.dr-staff-card.is-disabled{background:#fafafa}
.dr-staff-card.is-disabled .dr-staff-card__avatar{background:#e5e7eb;color:#6b7280}
.dr-staff-card__head{display:flex;align-items:center;gap:12px}
.dr-staff-card__avatar{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#e2f3ea;color:var(--acct-green);font-size:18px;font-weight:800}
.dr-staff-card__who{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.dr-staff-card__who strong{color:var(--acct-ink);font-size:15px;overflow-wrap:anywhere}
.dr-staff-card__meta{color:var(--acct-muted);font-size:12.5px;overflow-wrap:anywhere}
.dr-staff-card__status{flex:none;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:800}
.dr-staff-card__status.is-on{background:#e2f3ea;color:#11663f}
.dr-staff-card__status.is-off{background:#fde8e6;color:#a3261a}
.dr-staff-card__chips{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0;padding:0}
.dr-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;background:var(--acct-soft);color:#2c5545;font-size:12px;font-weight:700}
.dr-chip--branch{background:#eef3ff;color:#26408b}
.dr-chip--branch.is-warning{background:#fff4e5;color:#8a4b00}
.dr-staff-card__actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--acct-line)}
.dr-owner-dashboard .dr-acct .dr-staff-card__danger{display:flex;gap:8px;margin:0 auto 0 0}
.dr-owner-dashboard .dr-acct .dr-staff-btn{display:inline-flex;align-items:center;min-height:36px;padding:6px 13px;border:1px solid var(--acct-line);border-radius:10px;background:#fff;color:var(--acct-ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:background .15s,border-color .15s}
.dr-owner-dashboard .dr-acct .dr-staff-btn:hover{background:var(--acct-soft);border-color:#cfe0d6}
.dr-owner-dashboard .dr-acct .dr-staff-btn[aria-expanded=true]{background:var(--acct-ink);border-color:var(--acct-ink);color:#fff}
.dr-owner-dashboard .dr-acct .dr-staff-btn--danger{color:#a3261a}
.dr-owner-dashboard .dr-acct .dr-staff-btn--danger:hover{background:#fdf0ee;border-color:#f3c9c3}
.dr-owner-dashboard .dr-acct .dr-staff-btn:focus-visible{outline:2px solid var(--acct-green);outline-offset:2px}
.dr-staff-card__panel{margin-top:12px;padding:16px;border-radius:14px;background:var(--acct-soft)}
.dr-staff-field{display:flex;flex-direction:column;gap:6px;max-width:420px;margin-bottom:14px;font-size:14px;font-weight:600;color:var(--acct-ink)}
.dr-owner-dashboard .dr-acct .dr-staff-field input,.dr-owner-dashboard .dr-acct .dr-staff-field select{width:100%;min-height:2.75rem;padding:.625rem .875rem;border:1px solid hsl(var(--jm-border));border-radius:var(--jm-radius);background:#fff;font:inherit;font-size:14px}

/* Permission picker */
.dr-perms{margin:16px 0 0;padding:0;border:0;min-width:0}
.dr-staff-card__panel .dr-perms{margin-top:0}
.dr-perms legend{padding:0;margin-bottom:8px;color:var(--acct-ink);font-size:14px;font-weight:700}
.dr-perms__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dr-owner-dashboard .dr-acct .dr-perm{position:relative;display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--acct-line);border-radius:12px;background:#fff;cursor:pointer;font-weight:400;transition:border-color .15s,background .15s}
.dr-owner-dashboard .dr-acct .dr-perm:hover{border-color:#bfe3cf}
.dr-owner-dashboard .dr-acct .dr-perm input{position:absolute;inset-inline-start:12px;top:13px;width:18px;height:18px;margin:0;opacity:0}
.dr-perm__check{flex:none;display:grid;place-items:center;width:20px;height:20px;margin-top:1px;border:2px solid #b8c8bf;border-radius:6px;background:#fff;transition:background .15s,border-color .15s}
.dr-perm__check::after{content:"";width:10px;height:6px;border:solid #fff;border-width:0 0 2.5px 2.5px;transform:translateY(-1px) rotate(-45deg);opacity:0}
.dr-perm input:checked+.dr-perm__check,.dr-perm.is-locked .dr-perm__check{border-color:var(--acct-green);background:var(--acct-green)}
.dr-perm input:checked+.dr-perm__check::after,.dr-perm.is-locked .dr-perm__check::after{opacity:1}
.dr-owner-dashboard .dr-acct .dr-perm:has(input:checked){border-color:#9fd3b8;background:#f1faf5}
.dr-perm:has(input:focus-visible){outline:2px solid var(--acct-green);outline-offset:2px}
.dr-owner-dashboard .dr-acct .dr-perm.is-locked{cursor:default;background:var(--acct-soft);border-style:dashed}
.dr-perm.is-locked .dr-perm__check{opacity:.55}
.dr-perm__text{display:flex;flex-direction:column;gap:2px;min-width:0}
.dr-perm__text strong{display:flex;align-items:center;gap:6px;color:var(--acct-ink);font-size:14px}
.dr-perm__text em{padding:1px 7px;border-radius:999px;background:#fff;color:var(--acct-muted);font-size:11px;font-style:normal;font-weight:700}
.dr-perm__text small{color:var(--acct-muted);font-size:12px;line-height:1.5}

@media (max-width:1100px){.dr-acct-grid{grid-template-columns:1fr;gap:0}}
@media (max-width:680px){
  .dr-acct-tabs{gap:2px;padding:4px}
  .dr-acct-tabs [role=tab]{flex:1 1 auto;gap:5px;padding:8px 8px;font-size:13px}
  .dr-acct-stats{grid-template-columns:1fr}
  .dr-acct-stats>div{flex-direction:row;flex-wrap:wrap;align-items:baseline;justify-content:space-between;column-gap:10px}
  .dr-acct-stats small{flex-basis:100%}
  .dr-perms__grid{grid-template-columns:1fr}
  .dr-owner-dashboard .dr-acct .dr-acct-card{padding:16px}
  .dr-staff-card{padding:14px}
  .dr-owner-dashboard .dr-staff-toolbar__add{width:100%}
  .dr-owner-dashboard .dr-acct .dr-staff-card__danger{margin:0;width:100%}
  .dr-owner-dashboard .dr-acct .dr-staff-card__danger .dr-staff-btn{flex:1;justify-content:center}
  .dr-acct-card__foot .dr-button{flex:1}
}

/* ==========================================================================
   Menu tab UX: add-item card inside the items card, clearer item status and
   actions, filter counts, no-results state, full-row item editor.
   ========================================================================== */
.dr-owner-dashboard [data-dr-panel="menu"] [hidden]{display:none!important}
.dr-owner-dashboard .dr-items-card-box .dr-add-item-card{margin:0 0 22px;padding:24px 26px;border-color:#cfe5d8;background:#fbfdfc;box-shadow:0 6px 20px rgba(20,50,35,.05)}
.dr-owner-dashboard .dr-add-item-card__head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.dr-owner-dashboard .dr-add-item-card__head .dr-menu-card-title{margin:0}
.dr-owner-dashboard .dr-add-item-card__required{color:#647d73;font-size:12px}
.dr-owner-dashboard .dr-required{color:#dc2626;font-weight:800}
.dr-owner-dashboard .dr-image-preview{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}
.dr-owner-dashboard .dr-image-preview img{width:56px;height:56px;object-fit:cover;border-radius:10px;border:1px solid #dbe5df;background:#f1f5f9}
.dr-owner-dashboard .dr-image-preview small{flex-basis:100%;color:#476457;font-size:12px;font-weight:700}
.dr-owner-dashboard .dr-image-preview small.is-error{color:#b91c1c}

.dr-owner-dashboard .dr-items-block .dr-block-header__end{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dr-owner-dashboard .dr-count-pill.is-full{border-color:#fcd34d;background:#fffbeb;color:#92400e}
.dr-owner-dashboard .dr-count-pill--muted{background:#f8fafc;color:#64748b}

.dr-owner-dashboard .dr-category-tabs-wrap{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:2px;max-width:100%}
.dr-owner-dashboard .dr-category-tab{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex-shrink:0}
.dr-owner-dashboard .dr-category-tab:focus-visible{outline:2px solid #1f7a55;outline-offset:2px}
.dr-owner-dashboard .dr-category-tab__count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:rgba(15,23,42,.08);font-size:11px;font-weight:800}
.dr-owner-dashboard .dr-category-tab.is-active .dr-category-tab__count{background:rgba(255,255,255,.2)}
.dr-owner-dashboard .dr-category-tab--status{background:#fff7ed;color:#9a3412}
.dr-owner-dashboard .dr-search-items-input::-webkit-search-cancel-button{cursor:pointer}
.dr-owner-dashboard .dr-items-result-count{margin:-10px 0 14px;color:#647d73;font-size:12.5px;font-weight:700}
.dr-owner-dashboard .dr-items-empty,
.dr-owner-dashboard .dr-items-no-results{padding:32px 20px;text-align:center;color:#647d73;border:1px dashed #d5e2da;border-radius:16px;background:#fbfdfc}
.dr-owner-dashboard .dr-items-empty p,
.dr-owner-dashboard .dr-items-no-results p{margin:0 0 6px}
.dr-owner-dashboard .dr-items-empty strong,
.dr-owner-dashboard .dr-items-no-results strong{color:#1e293b;font-size:15px}
.dr-owner-dashboard .dr-items-no-results .dr-cancel-btn{margin-top:10px}

.dr-owner-dashboard .dr-modern-item-card{align-items:flex-start}
.dr-owner-dashboard .dr-modern-item-card:hover{transform:none}
.dr-owner-dashboard .dr-modern-item-card.is-editing{grid-column:1/-1;border-color:#9fd3b8;box-shadow:0 8px 24px rgba(20,50,35,.08)}
.dr-owner-dashboard .dr-modern-item-card.is-unavailable{background:#f8fafc}
.dr-owner-dashboard .dr-modern-item-card.is-unavailable .dr-modern-item-card__media{filter:grayscale(1);opacity:.6}
.dr-owner-dashboard .dr-modern-item-card.is-unavailable .dr-modern-item-title,
.dr-owner-dashboard .dr-modern-item-card.is-unavailable .dr-modern-item-price{color:#64748b}
.dr-owner-dashboard .dr-modern-item-card__media{position:relative}
.dr-owner-dashboard .dr-modern-item-photos{position:absolute;inset-inline:4px;bottom:4px;padding:1px 4px;border-radius:6px;background:rgba(15,23,42,.65);color:#fff;font-size:10px;font-weight:700;text-align:center}
.dr-owner-dashboard .dr-modern-item-tags{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.dr-owner-dashboard .dr-modern-item-tags .dr-cat-badge{margin-top:0}
.dr-owner-dashboard .dr-item-status{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:6px;font-size:11px;font-weight:700}
.dr-owner-dashboard .dr-item-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.dr-owner-dashboard .dr-item-status--on{background:#ecfdf5;color:#047857}
.dr-owner-dashboard .dr-item-status--off{background:#f1f5f9;color:#64748b}
.dr-owner-dashboard .dr-item-status--soldout{background:#fff7ed;color:#c2410c}

.dr-owner-dashboard .dr-modern-item-card__actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex-basis:100%;justify-content:flex-start}
.dr-owner-dashboard .dr-modern-item-card__actions form{margin:0}
.dr-owner-dashboard .dr-modern-item-card .dr-item-action-btn{display:inline-flex;align-items:center;justify-content:center;min-height:32px;min-width:32px;padding:4px 10px;border:1px solid #dbe5df;border-radius:8px;background:#fff;color:#334155;font-size:12px;font-weight:700;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.dr-owner-dashboard .dr-modern-item-card .dr-item-action-btn:hover:not(:disabled){background:#f2f6f3}
.dr-owner-dashboard .dr-modern-item-card .dr-item-action-btn:focus-visible{outline:2px solid #1f7a55;outline-offset:2px}
.dr-owner-dashboard .dr-modern-item-card .dr-item-action-btn:disabled{opacity:.55;cursor:wait}
.dr-owner-dashboard .dr-modern-item-card .dr-item-action-btn--resume{border-color:#a7f3d0;background:#ecfdf5;color:#047857}
.dr-owner-dashboard .dr-modern-item-card .dr-item-action-btn--resume:hover:not(:disabled){background:#d1fae5}
.dr-owner-dashboard .dr-modern-item-card .dr-item-action-btn.dr-sold-out-btn{color:#c2410c;border-color:#fed7aa}
.dr-owner-dashboard .dr-modern-item-card .dr-item-action-btn.dr-sold-out-btn:hover:not(:disabled){background:#fff7ed}
.dr-owner-dashboard .dr-modern-item-card .dr-item-action-btn--delete{padding:4px 8px;color:#ef4444;border-color:#fecaca}
.dr-owner-dashboard .dr-modern-item-card .dr-item-action-btn--delete:hover:not(:disabled){background:#fef2f2;border-color:#fca5a5}
.dr-owner-dashboard .dr-item-edit__summary{gap:6px}
.dr-owner-dashboard .dr-item-edit[open] .dr-item-edit__summary{background:#ecfdf5;border-color:#a7f3d0;color:#047857}
.dr-owner-dashboard .dr-item-edit__actions{gap:8px;flex-wrap:wrap}

@media (max-width:640px){
  .dr-owner-dashboard .dr-items-card-box .dr-add-item-card{padding:18px 16px}
  .dr-owner-dashboard .dr-items-card-box .dr-add-item-actions-group{flex-wrap:wrap;width:100%;gap:10px}
  .dr-owner-dashboard .dr-items-card-box .dr-add-item-actions-group .dr-toggle-wrap{flex-basis:100%}
  .dr-owner-dashboard .dr-items-card-box .dr-add-item-actions-group .dr-submit-item-btn{flex:1;justify-content:center;min-width:0}
    .dr-owner-dashboard .dr-modern-item-card .dr-item-action-btn{min-height:38px;padding:6px 12px}
  .dr-owner-dashboard .dr-items-card-actions .dr-action-btn-green{width:100%;justify-content:center}
}
@media (prefers-reduced-motion:reduce){
  .dr-owner-dashboard .dr-modern-item-card .dr-item-action-btn,.dr-owner-dashboard .dr-modern-item-card{transition:none}
}

/* Platform services in the subscription panel */
.dr-owner-dashboard .dr-services-panel{margin:24px 0;padding:26px;border:1px solid #dce8e1;border-radius:20px;background:linear-gradient(180deg,#fff 0%,#fbfdfc 100%);box-shadow:0 10px 30px rgba(20,50,35,.06)}
.dr-services-panel__header{display:flex;align-items:flex-start;gap:14px;margin-bottom:20px}
.dr-services-panel__icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:#e8f5ee;color:#0d765f;font-size:25px}
.dr-services-panel__header h2{margin:0 0 5px;color:#183b2f;font-size:21px;font-weight:800}
.dr-services-panel__header p{margin:0;color:#64776e;font-size:14px;line-height:1.7}
.dr-services-bank{display:grid;grid-template-columns:minmax(190px,.7fr) minmax(0,1.7fr);align-items:center;gap:16px;margin:0 0 22px;padding:17px 19px;border:1px solid #cfe8da;border-radius:15px;background:#f0faf4;color:#214c39}
.dr-services-bank__title{display:grid;gap:3px}
.dr-services-bank__title>span{float:right;grid-row:1 / span 2;color:#13866b;font-size:20px}
.dr-services-bank__title strong{font-size:15px;font-weight:800}
.dr-services-bank__title small{color:#638171;font-size:12px;line-height:1.5}
.dr-services-bank__details{padding:11px 14px;border-radius:11px;background:#fff;color:#183b2f;font-size:14px;font-weight:700;line-height:1.9;overflow-wrap:anywhere}
.dr-services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));align-items:stretch;gap:18px}
.dr-owner-dashboard .dr-service-card{display:flex;flex-direction:column;min-width:0;padding:22px;border:1px solid #e0e9e4;border-radius:18px;background:#fff;box-shadow:0 4px 16px rgba(20,50,35,.035);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.dr-owner-dashboard .dr-service-card:hover{transform:translateY(-2px);border-color:#b8d9c6;box-shadow:0 12px 28px rgba(20,50,35,.09)}
.dr-service-card__header{display:flex;align-items:flex-start;gap:12px;min-height:82px}
.dr-service-card__icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;background:#f0f7f3;color:#16816b;font-size:22px}
.dr-service-card__header h3{margin:1px 0 6px;color:#183b2f;font-size:17px;font-weight:800;line-height:1.5}
.dr-service-card__header p{margin:0;color:#66766e;font-size:13px;line-height:1.7}
.dr-service-card__price{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:15px 0;padding:12px 14px;border:1px solid #e5eee9;border-radius:12px;background:#f8fbf9}
.dr-service-card__price span{color:#687a71;font-size:12px;font-weight:700}
.dr-service-card__price strong{color:#0d765f;font-size:19px;font-weight:900}
.dr-service-form{display:grid;gap:10px;margin-top:auto;padding-top:12px}
.dr-service-field{display:grid;gap:6px;margin:0;color:#344b40;font-size:13px;font-weight:800}
.dr-service-field small{color:#7b8a83;font-size:11px;font-weight:500}
.dr-owner-dashboard .dr-service-field input[type=file],.dr-owner-dashboard .dr-service-field input[type=text]{width:100%;min-height:44px;padding:8px 10px;border:1px solid #dbe5df;border-radius:10px;background:#fff;color:#344b40;font:inherit;font-size:13px;box-sizing:border-box}
.dr-owner-dashboard .dr-service-field input[type=file]::file-selector-button{margin-inline-end:10px;padding:7px 10px;border:0;border-radius:7px;background:#edf5f0;color:#24523d;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.dr-owner-dashboard .dr-service-field input:focus{outline:0;border-color:#17826a;box-shadow:0 0 0 3px rgba(23,130,106,.12)}
.dr-service-actions{display:flex;align-items:stretch;gap:9px;margin-top:3px}
.dr-owner-dashboard .dr-service-submit,.dr-owner-dashboard .dr-service-inquiry{display:inline-flex;flex:1 1 0;min-width:0;align-items:center;justify-content:center;min-height:48px;padding:9px 12px;border:1px solid transparent;border-radius:11px;font:inherit;font-size:13px;font-weight:800;line-height:1.35;text-align:center;text-decoration:none;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}
.dr-owner-dashboard .dr-service-submit{background:#0d786b;color:#fff}
.dr-owner-dashboard .dr-service-submit:hover{background:#095f55;color:#fff}
.dr-owner-dashboard .dr-service-inquiry{border-color:#cfe3d8;background:#fff;color:#17634f}
.dr-owner-dashboard .dr-service-inquiry:hover{border-color:#9dcab0;background:#f1faf5;color:#12543f}
.dr-owner-dashboard .dr-service-submit:focus-visible,.dr-owner-dashboard .dr-service-inquiry:focus-visible{outline:2px solid #16755f;outline-offset:2px}
.dr-service-inquiry-form{margin:auto 0 0;padding-top:12px}
.dr-service-inquiry-form.is-form-target{display:none}
.dr-service-inquiry-form .dr-service-inquiry{width:100%}
.dr-services-history{margin-top:24px;padding-top:20px;border-top:1px solid #e6eee9}
.dr-services-history h3{margin:0 0 12px;color:#183b2f;font-size:16px;font-weight:800}
.dr-services-history .dr-table-wrap{border:1px solid #e3ebe6;border-radius:12px}
.dr-services-history .dr-modern-table{margin:0}
.dr-services-history .dr-modern-table th{background:#f7faf8;color:#51675b;font-size:12px}
.dr-services-history .dr-modern-table td{font-size:13px}
@media(max-width:760px){
  .dr-owner-dashboard .dr-services-panel{padding:19px 16px}
  .dr-services-panel__header h2{font-size:18px}
  .dr-services-bank{grid-template-columns:1fr;gap:10px;padding:14px}
  .dr-services-grid{grid-template-columns:1fr}
  .dr-owner-dashboard .dr-service-card{padding:18px}
  .dr-owner-dashboard .dr-service-submit,.dr-owner-dashboard .dr-service-inquiry{padding-inline:8px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.dr-owner-dashboard .dr-service-card,.dr-owner-dashboard .dr-service-submit,.dr-owner-dashboard .dr-service-inquiry{transition:none}}

/* Restaurant order queue */
.dr-order-views, .dr-orders-alerts > div, .dr-order-more-filters > div {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.dr-order-views { margin-block-start: 16px; }
.dr-order-views a, .dr-orders-alerts summary, .dr-order-more-filters summary {
	padding: 10px 14px;
	color: #285442;
	font-weight: 700;
	cursor: pointer;
}
.dr-order-views a { border: 1px solid #cdded4; border-radius: 10px; background: white; text-decoration: none; }
.dr-order-views a[aria-current="page"] { background: #195f43; border-color: #195f43; color: white; }
.dr-orders-alerts { grid-column: 1 / -1; }
.dr-orders-alerts summary, .dr-order-more-filters summary { width: fit-content; }
.dr-order-more-filters { flex-basis: 100%; border-block-start: 1px solid #dce7e0; }
.dr-order-more-filters > div { margin-block: 4px; }
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card[data-order-state="new"] { border-inline-start: 4px solid #177650; }
.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__lines { margin: 0 0 14px; }
.dr-order-editor { margin-block-start: 12px; }
.dr-order-editor[open] form { display: grid; gap: 12px; margin-block-start: 12px; }
.dr-order-editor form > button { justify-self: start; }
@media (max-width: 600px) {
	.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.dr-owner-dashboard [data-dr-panel="orders"] .dr-order-card__meta .dr-order-card__wide { grid-column: 1 / -1; }
	.dr-order-views a { flex: 1 1 auto; padding-inline: 8px; text-align: center; }
	.dr-order-filters .dr-order-filters__field--wide { flex: 1 1 150px; }
	.dr-order-editor form > button { width: 100%; }
}

.dr-registration-plans { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.dr-registration-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .75rem; margin-top: .5rem; }
.dr-registration-plan { display: flex; flex-direction: column; gap: .4rem; padding: 1rem; border: 1px solid #cbd5e1; border-radius: .75rem; cursor: pointer; }
.dr-registration-plan-title { display: flex; align-items: center; gap: .5rem; }
.dr-registration-plan-price { margin-block-start: auto; }
.dr-registration-plan:has(input:checked) { background: #f0fdfa; border-color: #0f766e; }

.dr-custom-places { display: grid; gap: 10px; }
.dr-custom-places__list { display: grid; gap: 10px; }
.dr-custom-place { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 12px; border: 1px solid #dce7e0; border-radius: 12px; }
.dr-custom-place label { display: grid; min-width: 0; gap: 5px; font-size: 13px; font-weight: 600; }
.dr-custom-place .dr-text-input { width: 100%; min-width: 0; box-sizing: border-box; }
.dr-custom-places [hidden] { display: none !important; }
.dr-custom-places [data-place-add] { justify-self: start; }
@media (max-width: 640px) {
	.dr-custom-place { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
	.dr-custom-place [data-place-remove] { grid-column: 1 / -1; justify-self: end; }
	.dr-custom-places [data-place-add] { width: 100%; }
}
.dr-hours-field{grid-column:1/-1;min-width:0}.dr-hours-intro{margin:0 0 12px;color:#64748b;font-size:.9rem;line-height:1.7}.dr-hours-warning{margin:0 0 12px;padding:10px 12px;border:1px solid #f3d49a;border-radius:10px;background:#fff9e9;color:#805c14;font-size:.88rem;line-height:1.65}.dr-hours-schedule{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dr-hours-day{min-width:0;margin:0;padding:12px;border:1px solid #e1e8e4;border-radius:12px;background:#fff}.dr-hours-day__head{display:flex;align-items:center;justify-content:space-between;gap:8px}.dr-hours-day__toggle{display:flex;align-items:center;gap:9px;color:#24372e;font-weight:700;cursor:pointer}.dr-hours-day__toggle input{width:18px;height:18px;margin:0;accent-color:#23845b}.dr-hours-add,.dr-hours-remove{min-height:34px;padding:5px 10px;border:1px solid #d8e6df;border-radius:8px;background:#f7fbf8;color:#176443;font:inherit;font-size:.82rem;cursor:pointer}.dr-hours-add:disabled,.dr-hours-remove:disabled{opacity:.45;cursor:not-allowed}.dr-hours-periods[hidden]{display:none!important}.dr-hours-periods{display:grid;gap:8px;margin-top:10px}.dr-hours-period{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:8px}.dr-hours-period label{display:grid;gap:4px;color:#64748b;font-size:.78rem}.dr-hours-period input[type=time]{width:100%;min-height:38px;padding:6px 8px;border:1px solid #d9e2dd;border-radius:8px;background:#fff;color:#24372e;font:inherit;direction:ltr}.dr-hours-remove{color:#87524d;background:#fffafa;border-color:#eadbd8}.dr-hours-day__hint{display:block;margin-top:8px;color:#748279;font-size:.76rem;line-height:1.5}@media(max-width:640px){.dr-hours-schedule{grid-template-columns:1fr}.dr-hours-period{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px}.dr-hours-day{padding:10px}}

.dr-dashboard-guide{margin:0 0 18px;line-height:1.7}
.dr-dashboard-guide strong{display:block;margin-bottom:4px}
.dr-dashboard-guide ol{margin:4px 0 0;padding-inline-start:22px}
.dr-dashboard-guide li+li{margin-top:2px}

/* Owner setup before publication */
.dr-setup {
	background: white;
	border: 1px solid #d6e4dc;
	border-radius: 18px;
	padding: clamp(16px, 3vw, 28px);
	margin-block-end: 20px;
}
.dr-setup h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.dr-setup p { margin: 0 0 .75rem; color: #4d6258; }
.dr-setup-list { margin: 0; padding-inline-start: 1.8rem; }
.dr-setup-list li { padding-inline-start: .25rem; border-bottom: 1px solid #e4ece7; }
.dr-setup-list li::marker { color: #486457; }
.dr-setup-list button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	width: 100%;
	min-height: 44px;
	padding: .6rem .25rem;
	border: 0;
	background: transparent;
	color: #15513e;
	font: inherit;
	font-weight: 700;
	text-align: start;
	cursor: pointer;
}
.dr-setup-list button:hover { text-decoration: underline; }
.dr-setup details { margin-block-start: .8rem; }
.dr-setup summary { color: #355448; cursor: pointer; width: fit-content; }

.dr-menu-group > .dr-block-header {
	border-block-end: 1px solid #e2e8e5;
	padding-block-end: 14px;
}
.dr-menu-group .dr-block-header__start { flex: 1 1 18rem; min-width: 0; }
.dr-menu-group .dr-block-header__end { flex-wrap: wrap; }
@media (max-width: 600px) {
	.dr-menu-group > .dr-block-header { align-items: flex-start; gap: 8px; }
	.dr-menu-group .dr-block-header__start { flex-basis: 100%; align-items: flex-start; gap: 10px; }
	.dr-menu-group .dr-block-header__end { margin-inline-start: 54px; }
}

/* Beginner setup overview: scoped to the unpublished owner's dashboard. */
.dr-owner-dashboard .dr-start-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.dr-owner-dashboard .dr-start-heading h2 { margin:0 0 6px; font-size:clamp(24px,3vw,34px); color:#183e2c; }
.dr-owner-dashboard .dr-start-heading p, .dr-owner-dashboard .dr-start-card p { margin:0 0 18px; color:#5c6d65; line-height:1.8; }
.dr-owner-dashboard .dr-start-heading p { margin:0; }
.dr-owner-dashboard .dr-start-status { background:#fff0de; color:#96501c; border-radius:12px; padding:10px 16px; white-space:nowrap; font-weight:700; }
.dr-owner-dashboard .dr-start-setup { background:linear-gradient(120deg,#f4fbf7,#eaf6ef); border:1px solid #d5e8dc; border-radius:22px; padding:28px; margin-bottom:20px; box-shadow:0 3px 12px #183e2c05; }
.dr-start-layout { display:flex; align-items:center; gap:20px; }
.dr-start-main { flex:1; min-width:0; }
.dr-owner-dashboard .dr-start-setup h2 { font-size:clamp(22px,2.3vw,30px); line-height:1.5; color:#173f2c; }
.dr-start-art { width:19%; max-width:220px; height:auto; object-fit:contain; }
.dr-start-progress { display:flex; align-items:center; gap:16px; margin:22px 0; flex-wrap:wrap; color:#405d4e; font-size:14px; }
.dr-start-progress progress { flex:1; min-width:120px; height:10px; border:0; border-radius:20px; overflow:hidden; background:#dce8e0; accent-color:#157347; }
.dr-start-progress progress::-webkit-progress-bar { background:#dce8e0; border-radius:20px; }
.dr-start-progress progress::-webkit-progress-value { background:#157347; border-radius:20px; }
.dr-start-progress progress::-moz-progress-bar { background:#157347; border-radius:20px; }
.dr-start-checklist { background:#fff; border:1px solid #e1ece5; border-radius:16px; padding:18px; margin-bottom:18px; }
.dr-start-checklist h3 { margin:0 0 14px; color:#245a3b; font-size:16px; }
.dr-start-steps { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.dr-start-steps li { display:flex; align-items:center; gap:12px; padding:14px; border:1px solid #e2e8e4; border-radius:12px; background:#fff; }
.dr-start-steps li.is-complete { background:#edf8f0; border-color:#edf8f0; }
.dr-start-steps li.is-next { border-color:#96c9ac; box-shadow:0 0 0 2px #15734708; }
.dr-start-number { width:36px; height:36px; flex:0 0 36px; display:grid; place-items:center; background:#f0f3f1; color:#52655a; border-radius:50%; font-weight:700; }
.is-complete .dr-start-number, .is-next .dr-start-number { background:#d6f1e0; color:#17613a; }
.dr-start-step-text { flex:1; min-width:0; overflow-wrap:anywhere; }
.dr-start-step-text strong, .dr-start-step-text small { display:block; }
.dr-start-step-text strong { color:#24392d; font-size:16px; }
.dr-start-step-text small { color:#607068; margin-top:5px; font-size:13px; }
.dr-owner-dashboard .dr-start-card { background:#fff; border:1px solid #dfe9e2; border-radius:20px; padding:24px; box-shadow:0 3px 12px #183e2c05; }
.dr-owner-dashboard .dr-start-card h2 { color:#203e2d; font-size:22px; margin:0 0 10px; line-height:1.6; }
.dr-start-optional { margin-bottom:20px; }
.dr-start-optional h2 span { display:inline-block; vertical-align:middle; font-size:12px; font-weight:500; background:#eaf6ef; color:#426451; border-radius:20px; padding:3px 12px; margin-inline-start:8px; }
.dr-start-actions { display:flex; gap:12px; flex-wrap:wrap; }
.dr-start-bottom { display:grid; grid-template-columns:1.15fr 1fr; gap:20px; }
.dr-owner-dashboard .dr-start-help { background:#f2faf5; }
.dr-start-help-icon { float:left; display:grid; place-items:center; width:52px; height:52px; border:2px solid #258454; border-radius:18px; font-size:32px; color:#258454; margin-inline-start:12px; }
.dr-start-item { display:flex; gap:16px; align-items:center; background:#f8faf8; border:1px solid #e5ece6; padding:12px; border-radius:12px; margin:16px 0; }
.dr-start-item-image { width:76px; height:76px; object-fit:cover; border-radius:10px; }
.dr-start-item strong, .dr-start-item span { display:block; }
.dr-start-item span { color:#17613a; margin-top:8px; font-weight:700; }
.dr-start-preview { margin:16px 0; }
.dr-start-preview summary { cursor:pointer; color:#17613a; padding:10px 0; font-weight:600; }
.dr-start-preview ul { padding-inline-start:22px; max-height:240px; overflow:auto; line-height:2; }
.dr-start-empty { padding:16px; background:#f8faf8; border-radius:12px; }
.dr-start-setup .dr-pill-btn, .dr-start-card .dr-pill-btn { min-height:44px; white-space:normal; text-align:center; }
.dr-start-setup .dr-pill-btn:focus-visible, .dr-start-card .dr-pill-btn:focus-visible, .dr-start-preview summary:focus-visible { outline:3px solid #18774b; outline-offset:3px; }
@media(max-width:1100px) { .dr-start-art { display:none; } }
@media(max-width:640px) {
 .dr-owner-dashboard .dr-start-heading { align-items:flex-start; flex-direction:column; gap:12px; }
 .dr-owner-dashboard .dr-start-setup, .dr-owner-dashboard .dr-start-card { padding:18px; border-radius:16px; }
 .dr-start-checklist { padding:12px; }
 .dr-start-bottom { grid-template-columns:1fr; }
 .dr-start-steps li { flex-wrap:wrap; padding:12px; gap:10px; }
 .dr-start-steps .dr-pill-btn { flex-basis:100%; }
 .dr-start-actions { flex-direction:column; }
 .dr-start-progress { gap:10px; }
}
.dr-dashboard-action-alert{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:18px 20px;border:1px solid #f1d6a6;border-radius:16px;background:#fff9ed;color:#513c1c}.dr-dashboard-action-alert>div{display:grid;gap:4px}.dr-dashboard-action-alert strong{font-size:17px}.dr-dashboard-action-alert span{color:#766448;font-size:14px}.dr-dashboard-action-alert .dr-pill-btn{flex:none}
.dr-dashboard-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 22px}.dr-dashboard-shortcut{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-height:78px;padding:14px 16px;border:1px solid #dce8e0;border-radius:14px;background:#fff;color:#183e2c;text-align:right;text-decoration:none;cursor:pointer;font:inherit;transition:border-color .18s,box-shadow .18s,transform .18s}.dr-dashboard-shortcut:hover{border-color:#73b18c;box-shadow:0 5px 16px #183e2c12;transform:translateY(-1px)}.dr-dashboard-shortcut strong{font-size:15px}.dr-dashboard-shortcut span{color:#63756b;font-size:12px;line-height:1.5}.dr-dashboard-shortcut:focus-visible{outline:3px solid #18774b;outline-offset:3px}
.dr-start-customer-preview{margin-top:14px;padding:12px;border:1px solid #e1e9e3;border-radius:14px;background:#f6f8f6}.dr-start-customer-preview>header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:4px 2px 12px}.dr-start-customer-preview>header strong{font-size:16px;color:#203e2d}.dr-start-customer-preview>header span{padding:4px 8px;border-radius:999px;background:#eaf6ef;color:#426451;font-size:11px}.dr-start-customer-items{display:grid;gap:8px}.dr-start-customer-item{display:flex;align-items:center;gap:12px;min-height:68px;padding:9px;border:1px solid #e4eae5;border-radius:11px;background:#fff}.dr-start-customer-item .dr-start-item-image{width:58px;height:54px;flex:none}.dr-start-customer-item>div{display:flex;flex:1;align-items:center;justify-content:space-between;gap:12px;min-width:0}.dr-start-customer-item strong{overflow-wrap:anywhere;font-size:14px}.dr-start-customer-item span{flex:none;color:#17613a;font-weight:800}
.dr-dashboard-price-error{display:block;margin-top:5px;color:#b42318;font-size:12px}.dr-dashboard-price-error[hidden]{display:none}
@media(max-width:760px){.dr-dashboard-action-alert{align-items:stretch;flex-direction:column}.dr-dashboard-action-alert .dr-pill-btn{width:100%}.dr-dashboard-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dr-dashboard-shortcut{min-height:72px;padding:12px}.dr-start-customer-item>div{align-items:flex-start;flex-direction:column;gap:2px}}

/* Storefront Branches & Working Hours presentation */
.dr-branch-hours {
  background: #fff;
  border: 1px solid var(--dr-border, #e2e8f0);
  border-radius: 18px;
  padding: 22px;
}
.dr-branch-hours h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
  color: var(--dr-ink, #14231d);
}
.dr-branch-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dr-branch-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #e7efe9;
  border-radius: 14px;
  background: #fbfdfc;
}
.dr-branch-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf4ef;
}
.dr-branch-item__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--dr-ink, #14231d);
  line-height: 1.4;
}
.dr-branch-item .dr-state {
  margin: 0;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
}
.dr-branch-item .dr-state.is-open {
  background: #e6f7ec;
  color: #126b44;
}
.dr-branch-item .dr-state.is-closed {
  background: #fdeee9;
  color: #b33927;
}
.dr-branch-item__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.dr-branch-item__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--dr-accent, #167c52);
  margin-top: 1px;
}
.dr-branch-item__icon svg {
  width: 17px;
  height: 17px;
}
.dr-branch-item__detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.dr-branch-item__location .dr-branch-item__detail {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.dr-branch-item__label {
  font-weight: 700;
  color: var(--dr-ink, #14231d);
}
.dr-branch-item__value {
  color: var(--dr-muted, #4b5e54);
}
.dr-branch-item__hours-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}
.dr-branch-item__hour-line {
  color: var(--dr-muted, #4b5e54);
  font-size: 13.5px;
}
@media (max-width: 680px) {
  .dr-branch-hours {
    padding: 16px 14px;
  }
  .dr-branch-item {
    padding: 14px 12px;
    gap: 10px;
  }
  .dr-branch-item__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}


/* ==========================================================================
 * صور مربعة 1:1 موحدة + object-fit:cover + lightbox + أداة ضبط الصورة
 * تُلغي هذه الأنماط جميع قواعد aspect-ratio السابقة للصور في صفحة المطعم.
 * ========================================================================== */

/* --- بطاقات المنتجات في صفحة المطعم والتطبيق الكامل (1:1 cover) --- */
.dallni-restaurant .dr-item__media,
.dr-app .dr-items .dr-item__media {
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: #f3f0ea;
  border-radius: 12px 12px 0 0;
}

.dallni-restaurant .dr-item__image,
.dr-app .dr-items .dr-item__image {
  object-fit: cover !important;
  object-position: center !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
  transition: transform .3s ease;
}

/* تكبير خفيف عند التحويم */
.dallni-restaurant .dr-item:hover .dr-item__image,
.dr-app .dr-items .dr-item:hover .dr-item__image {
  transform: scale(1.045);
}

/* بطاقة العرض الترويجي (نفس القاعدة) */
.dallni-restaurant .dr-item--offer .dr-item__media {
  aspect-ratio: 1 / 1 !important;
  border-radius: 12px 12px 0 0;
}

/* gallery track داخل الحاوية */
.dallni-restaurant .dr-item__gallery,
.dr-app .dr-items .dr-item__gallery {
  width: 100%;
  height: 100%;
}
.dallni-restaurant .dr-item__gallery-track,
.dr-app .dr-items .dr-item__gallery-track {
  height: 100%;
}

/* --- Lightbox — تكبير الصورة عند الضغط --- */
.dr-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: drLbIn .18s ease;
  cursor: zoom-out;
  touch-action: none;
}
@keyframes drLbIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.dr-lightbox-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .6);
  cursor: default;
  animation: drLbImgIn .2s ease;
  user-select: none;
}
@keyframes drLbImgIn {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.dr-lightbox-close {
  position: fixed;
  top: 14px;
  inset-inline-end: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 22px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  border: 0;
  transition: background .15s;
  z-index: 1000000;
}
.dr-lightbox-close:hover { background: rgba(255, 255, 255, .3); }

/* لافتة «اضغط للتكبير» تظهر عند التحويم على صورة المنتج */
.dr-item__media {
  position: relative;
}
.dr-item__zoom-hint {
  position: absolute;
  bottom: 7px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .52);
  color: #fff;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  white-space: nowrap;
  z-index: 2;
}
.dallni-restaurant .dr-item:hover .dr-item__zoom-hint,
.dr-app .dr-items .dr-item:hover .dr-item__zoom-hint {
  opacity: 1;
}

/* --- أداة ضبط موضع الصورة (Crop Adjuster) في لوحة التحكم --- */
.dr-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(0, 0, 0, .72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dr-crop-modal[style*="flex"] {
  display: flex !important;
}
.dr-crop-box {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 490px;
  width: 100%;
  max-height: 92vh;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
  animation: drCropBoxIn .2s ease;
}
@keyframes drCropBoxIn {
  from { transform: scale(.93) translateY(10px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}
.dr-crop-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid #eaefec;
  font-weight: 700;
  font-size: 15px;
  color: #14231d;
  gap: 10px;
}
.dr-crop-box__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #64748b;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background .15s;
}
.dr-crop-box__close:hover { background: #f1f5f9; }
.dr-crop-viewport-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
  touch-action: none;
  /* شبكة تبيّن منطقة الإطار المربع */
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18);
}
.dr-crop-viewport-wrap:active { cursor: grabbing; }
/* خطوط التقسيم الثلاثية */
.dr-crop-viewport-wrap::before,
.dr-crop-viewport-wrap::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 3;
  opacity: .25;
}
.dr-crop-viewport-wrap::before {
  inset: 0;
  background:
    linear-gradient(to right,  transparent 33.33%, rgba(255,255,255,.5) 33.33%, rgba(255,255,255,.5) 33.44%, transparent 33.44%, transparent 66.56%, rgba(255,255,255,.5) 66.56%, rgba(255,255,255,.5) 66.67%, transparent 66.67%),
    linear-gradient(to bottom, transparent 33.33%, rgba(255,255,255,.5) 33.33%, rgba(255,255,255,.5) 33.44%, transparent 33.44%, transparent 66.56%, rgba(255,255,255,.5) 66.56%, rgba(255,255,255,.5) 66.67%, transparent 66.67%);
}
.dr-crop-img {
  position: absolute;
  transform-origin: center center;
  pointer-events: none;
  will-change: transform;
  image-rendering: auto;
}
.dr-crop-hint {
  font-size: 12.5px;
  color: #6b7280;
  text-align: center;
  padding: 10px 20px 2px;
  margin: 0;
  line-height: 1.5;
}
.dr-crop-box__controls {
  padding: 10px 20px 6px;
}
.dr-crop-zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dr-crop-zoom-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.dr-crop-zoom-slider {
  flex: 1;
  accent-color: #167c52;
  cursor: pointer;
  height: 4px;
}
.dr-crop-reset-btn {
  background: #f3f4f6;
  border: none;
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 16px;
  cursor: pointer;
  color: #374151;
  flex-shrink: 0;
  transition: background .15s;
}
.dr-crop-reset-btn:hover { background: #e5e7eb; }
.dr-crop-box__actions {
  display: flex;
  gap: 8px;
  padding: 10px 20px 18px;
}
.dr-crop-confirm {
  flex: 1;
  background: #167c52;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
}
.dr-crop-confirm:hover { background: #125f3e; }
.dr-crop-cancel {
  background: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.dr-crop-cancel:hover { background: #e5e7eb; }

/* صندوق المعاينة بعد الضبط */
.dr-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
}
.dr-image-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}
.dr-image-preview small {
  width: 100%;
  font-size: 12px;
  color: #6b7280;
}

/* صور المعرض في تعديل الصنف */
.dr-item-edit-gallery img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

/* صورة كبيرة في ورقة تفاصيل المنتج: قابلة للنقر لتكبيرها */
.dr-product-sheet__image,
.dr-product-sheet__gallery-track img {
  cursor: zoom-in;
}

@media (max-width: 480px) {
  .dr-crop-box {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 95vh;
  }
  .dr-crop-modal {
    align-items: flex-end;
    padding: 0;
  }
}
/* END صور مربعة 1:1 */
