/* Merchant settings and tools share the store's identity and shrinkable form tracks. */
.merchant-dashboard :is(.stock-alert,.instagram-hero,.coupon-hero,.commerce-intro,.privacy-hero,.delivery-intro,.integrations-hero,.billing-hero,.settings-launch-map>div){
  background:linear-gradient(120deg,var(--merchant-primary),color-mix(in srgb,var(--merchant-primary) 82%,#101820));
  color:var(--merchant-on-primary);border-color:var(--merchant-line);
}
.merchant-dashboard :is(.stock-alert,.instagram-hero,.coupon-hero,.commerce-intro,.privacy-hero,.delivery-intro,.integrations-hero,.billing-hero) :is(p,small,div>span){color:inherit;opacity:.85}
.merchant-dashboard .stock-alert button{background:color-mix(in srgb,var(--merchant-on-primary) 9%,transparent);color:inherit;border-color:color-mix(in srgb,var(--merchant-on-primary) 24%,transparent)}
.merchant-dashboard :is(.stock-alert,.instagram-hero,.privacy-hero,.commerce-intro,.delivery-intro)>div>span{color:inherit}
.merchant-dashboard :is(.instagram-hero,.commerce-intro,.delivery-intro)>span{color:var(--merchant-on-primary)}
.merchant-dashboard .dash-nav nav :is(button,a).active,.merchant-dashboard .dash-nav nav :is(button,a):hover{background:color-mix(in srgb,var(--merchant-on-primary) 14%,transparent);box-shadow:inset 3px 0 var(--merchant-on-primary)}
.merchant-dashboard .dash-nav input{background:transparent;border:0;color:inherit;padding:0;border-radius:0;min-height:0;height:24px;font-size:13px;box-sizing:border-box}
.merchant-dashboard .dash-nav input::placeholder{color:color-mix(in srgb,var(--merchant-on-primary) 65%,transparent)}
.merchant-dashboard .btn.light,.merchant-dashboard .btn.secondary,.merchant-dashboard .dash-quick-actions button,.merchant-dashboard .membership-bar{background:var(--merchant-primary-soft);color:var(--merchant-on-paper);border-color:var(--merchant-line)}
.merchant-dashboard .dash-quick-actions [data-quick-search]{background:var(--merchant-primary);color:var(--merchant-on-primary)}
.merchant-dashboard .instagram-link-panel,.merchant-dashboard .instagram-link-panel form{min-width:0}
.merchant-dashboard .instagram-link-panel form{grid-template-columns:repeat(2,minmax(0,1fr))}
.merchant-dashboard .instagram-link-panel form>.btn,.merchant-dashboard .instagram-link-panel form>.form-error{grid-column:1/-1}
.merchant-dashboard .instagram-setup>*{min-width:0}
.merchant-dashboard .instagram-setup code{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
.merchant-dashboard .settings-launch-map button{background:var(--merchant-surface-soft);color:var(--merchant-on-paper);border-color:var(--merchant-line);min-width:0}
.merchant-dashboard .settings-launch-map button.active{background:var(--merchant-primary-soft);border-color:var(--merchant-primary)}
.merchant-dashboard .settings-launch-map :is(i,small){color:inherit}
.merchant-dashboard :is(.privacy-builder>section,.commerce-grid>.panel):before{background:var(--merchant-primary)}
.merchant-dashboard :is(.privacy-step,.privacy-answer,.privacy-responsibility,.notice,.compact-commerce-form){background:var(--merchant-primary-soft);color:var(--merchant-on-paper);border-color:var(--merchant-line)}
.merchant-dashboard .privacy-answer{background:var(--merchant-primary-soft)!important;box-shadow:inset 0 0 0 1px var(--merchant-line)}
.merchant-dashboard :is(.privacy-responsibility p,.privacy-answer small){color:var(--merchant-muted)}
.merchant-dashboard .compact-commerce-form>.btn,.merchant-dashboard .delivery-card .connector-actions>.btn:first-child{background:var(--merchant-primary);color:var(--merchant-on-primary)}
.merchant-dashboard :is(.form-grid,.compact-commerce-form,.commerce-grid,.split,.instagram-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
.merchant-dashboard .form-grid{display:grid;gap:20px}
.merchant-dashboard .form-grid>.full{grid-column:1/-1}
.merchant-dashboard :is(form,fieldset,label,.panel,.commerce-grid>*,.store-seo-grid>*,.privacy-builder>section>div){min-width:0;max-width:100%}
.merchant-dashboard :is(.form-panel,.privacy-builder,.merchant-policy-editor) label:not(.privacy-answer):not(.check-line){display:grid;gap:9px;font-size:14px;font-weight:700;margin-bottom:16px}
.merchant-dashboard .dash-content :is(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box;min-width:0;max-width:100%;width:100%;border:1px solid var(--merchant-line);border-radius:12px;background:var(--merchant-surface-soft);color:var(--merchant-on-paper);padding:13px 15px;font:inherit}
.merchant-dashboard textarea{display:block;resize:vertical;min-height:128px;line-height:1.8}
.merchant-dashboard input::placeholder,.merchant-dashboard textarea::placeholder{color:var(--merchant-muted);font-weight:400}
.merchant-dashboard :is(input,select,textarea):focus-visible{outline:2px solid var(--merchant-primary);outline-offset:2px}
.merchant-dashboard input:is([type=checkbox],[type=radio]){accent-color:var(--merchant-primary)}
.merchant-dashboard .privacy-answer input{min-height:23px!important;padding:0}
.merchant-dashboard .settings-launch-map{display:grid;overflow:visible}
.merchant-dashboard .mobile-primary-nav button.active{background:var(--merchant-primary-soft);color:var(--merchant-on-paper);border-color:var(--merchant-line)}
.merchant-dashboard .privacy-notice-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.merchant-dashboard .privacy-notice-fields label{margin:0!important}
.merchant-dashboard .privacy-notice-fields textarea{min-height:190px}
.merchant-dashboard .privacy-builder .muted{font-size:14px;line-height:1.9}
.merchant-dashboard .form-error{overflow-wrap:anywhere;line-height:1.8}
.merchant-dashboard .form-error:empty{margin:0}
.merchant-dashboard .save-row{display:flex;flex-wrap:wrap;gap:12px}
.merchant-dashboard :is(.settings-launch-map,.store-seo-grid){min-width:0}
.merchant-dashboard .store-seo-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.merchant-dashboard .settings-launch-map>div{min-width:0}
@media(max-width:1100px){
 .merchant-dashboard .settings-launch-map{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .merchant-dashboard .store-seo-grid{grid-template-columns:minmax(0,1fr)}
 .merchant-dashboard .commerce-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:900px){
 .merchant-dashboard:not(.mobile-menu-open) .dash-nav{visibility:hidden;transform:none;pointer-events:none}
 .merchant-dashboard.mobile-menu-open .dash-nav{visibility:visible;transform:none;pointer-events:auto}
}
@media(max-width:620px){
 .merchant-dashboard-page{overflow-x:clip}
 .merchant-dashboard .privacy-hero .btn{white-space:normal;max-width:100%;text-align:center}
 .merchant-dashboard .order-filters{flex-wrap:wrap;overflow:visible;max-width:100%}
 .merchant-dashboard :is(.form-grid,.compact-commerce-form,.commerce-grid,.split,.instagram-grid,.privacy-notice-fields){grid-template-columns:minmax(0,1fr)}
 .merchant-dashboard .settings-launch-map{grid-template-columns:repeat(2,minmax(0,1fr))}
 .merchant-dashboard .settings-launch-map>div{grid-column:1/-1}
 .merchant-dashboard .settings-launch-map>div{grid-row:auto}
 .merchant-dashboard .settings-launch-map :is(button,div){padding:16px;min-height:96px}
 .merchant-dashboard .dash-content :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;min-height:48px}
 .merchant-dashboard .privacy-notice-fields textarea{min-height:165px}
 .merchant-dashboard .privacy-builder>section{padding:22px 18px}
 .merchant-dashboard .save-row{display:grid;grid-template-columns:minmax(0,1fr);height:auto;flex-wrap:nowrap}
 .merchant-dashboard .save-row>.btn{flex:none;width:100%;text-align:center}
 .merchant-dashboard .stock-alert{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;padding:24px 18px}
 .merchant-dashboard .stock-alert>div,.merchant-dashboard .stock-alert button{min-width:0;width:100%}
 .merchant-dashboard .stock-alert h3{font-size:24px}
 .merchant-dashboard .compact-commerce-form>label{min-width:0}
 .merchant-dashboard .compact-commerce-form{padding:14px}
 .merchant-dashboard .privacy-builder .retention-control{max-width:100%}
 .merchant-dashboard .instagram-link-panel,.merchant-dashboard .instagram-link-panel form{grid-template-columns:minmax(0,1fr)}
 .merchant-dashboard .payment-settings-card>.mobile-gateway-toggle{width:calc(100% - 28px);max-width:calc(100% - 28px);white-space:normal}
 .merchant-dashboard .inventory-log .data-table{display:block;min-width:0;width:100%}
 .merchant-dashboard .inventory-log .data-table thead{display:none}
 .merchant-dashboard .inventory-log .data-table tbody{display:grid;gap:12px}
 .merchant-dashboard .inventory-log .data-table tr{display:grid;grid-template-columns:minmax(0,1fr);padding:12px;border:1px solid var(--merchant-line);border-radius:12px}
 .merchant-dashboard .inventory-log .data-table td{display:flex;justify-content:space-between;gap:12px;min-width:0;padding:8px 0;border:0;white-space:normal;overflow-wrap:anywhere}
 .merchant-dashboard .inventory-log .data-table td:not([colspan]):before{font-weight:700;color:var(--merchant-muted)}
 .merchant-dashboard .inventory-log .data-table td:nth-child(1):not([colspan]):before{content:'المنتج'}
 .merchant-dashboard .inventory-log .data-table td:nth-child(2):before{content:'الحركة'}
 .merchant-dashboard .inventory-log .data-table td:nth-child(3):before{content:'الرصيد'}
 .merchant-dashboard .inventory-log .data-table td:nth-child(4):before{content:'السبب'}
 .merchant-dashboard .inventory-log .data-table td:nth-child(5):before{content:'المرجع'}
 .merchant-dashboard .inventory-log .data-table td:nth-child(6):before{content:'التاريخ'}
}
/* Editable social section copy is available without a Meta connection. */
.merchant-dashboard .social-section-editor form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.merchant-dashboard .social-section-editor label { display: grid; gap: 8px; min-width: 0; font-size: 13px; font-weight: 700; }
.merchant-dashboard .social-section-editor :is(input:not([type=checkbox]), textarea) { width: 100%; box-sizing: border-box; min-width: 0; border: 1px solid var(--merchant-line); border-radius: 14px; padding: 13px; font: inherit; background: var(--merchant-paper); color: var(--merchant-on-paper); }
.merchant-dashboard .social-section-editor textarea { min-height: 110px; resize: vertical; }
.merchant-dashboard .social-section-editor .check-line { display: flex; gap: 10px; align-items: center; grid-column: 1 / -1; }
.merchant-dashboard .social-settings-save { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) {
  .merchant-dashboard .social-section-editor form { grid-template-columns: minmax(0, 1fr); }
  .merchant-dashboard .social-section-editor :is(input:not([type=checkbox]), textarea) { font-size: 16px; }
  .merchant-dashboard .social-settings-save { display: grid; width: 100%; }
}

/* Automatic owner alerts stay prominent; custom sending credentials are optional. */
.merchant-dashboard .integration-workspace{grid-template-columns:minmax(0,1fr)}
.merchant-dashboard .integration-workspace>.smtp-form{order:2}
.merchant-dashboard .smtp-form.mobile-collapsible>[data-mobile-email-toggle]{display:block;width:100%;padding:20px 24px;border:0;background:transparent;color:var(--merchant-on-paper);text-align:start;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer}
.merchant-dashboard .smtp-form.mobile-collapsible:not(.mobile-expanded)>:not([data-mobile-email-toggle]){display:none!important}
.merchant-dashboard .order-email-setting{display:grid;gap:9px;margin:20px 25px;font-weight:700}
.merchant-dashboard .order-email-setting input{width:100%;min-height:48px;border:1px solid var(--merchant-line);border-radius:12px;padding:12px;background:var(--merchant-surface);color:var(--merchant-on-paper)}
.merchant-dashboard .order-email-setting small{font-size:12px;font-weight:400;color:var(--merchant-muted);line-height:1.7}
@media(max-width:720px){.merchant-dashboard .order-email-setting{margin-inline:18px}.merchant-dashboard .order-email-setting input{font-size:16px}}

/* Store PDF document choices */
.document-eyebrow{font-size:11px;letter-spacing:.12em;color:var(--merchant-primary,#315f52);font-weight:700}.document-design-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.document-design-columns fieldset{min-width:0;border:0;padding:0;margin:0}.document-design-columns legend{font-weight:800;margin-bottom:15px}.document-template-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.document-template{position:relative!important;display:flex!important;flex-direction:column;gap:12px!important;border:1px solid var(--border,#dce1e4);border-radius:16px;padding:13px!important;cursor:pointer;background:#fff;transition:border-color .2s,box-shadow .2s}.document-template:has(input:checked){border-color:var(--merchant-primary,#315f52);box-shadow:0 0 0 2px var(--merchant-primary,#315f52)}.document-template input{position:absolute!important;inset-inline-end:10px;top:10px;width:16px!important;height:16px;accent-color:var(--merchant-primary,#315f52);z-index:1}.document-template-paper{height:130px;display:block;position:relative;margin:5px 8px;background:#fff;box-shadow:0 3px 12px #14203717;border:1px solid #e4e9ed;overflow:hidden}.document-template-paper i{position:absolute;top:0;left:0;right:0;height:32px;background:var(--document-color)}.document-template-paper b{position:absolute;top:41px;right:10px;width:55%;height:5px;background:#cbd2d9}.document-template-paper em{position:absolute;top:57px;left:10px;right:10px;height:4px;background:#e0e5ea}.document-template-paper em:nth-of-type(2){top:71px}.document-template-paper em:nth-of-type(3){top:85px}.document-template-paper strong{position:absolute;bottom:15px;left:10px;width:42%;height:9px;background:var(--document-color)}.document-template-paper.classic i{top:12px;left:10px;right:10px;height:3px}.document-template-paper.classic b{top:25px;background:var(--document-color)}.document-template-paper.minimal i{top:13px;left:10px;width:3px;height:20px}.document-template-paper.minimal b{top:20px;background:#aab5bf}.document-template-paper.minimal strong{height:3px}.document-template-name{font-weight:800;font-size:14px}.document-template-name small{display:block;font-size:11px;line-height:1.6;font-weight:400;color:#697782;margin-top:4px}.document-preview-link{margin-top:16px}.document-design-settings>.muted{margin-top:22px}.document-template:focus-within{outline:2px solid var(--merchant-primary,#315f52);outline-offset:3px}@media(max-width:1000px){.document-design-columns{grid-template-columns:1fr}}@media(max-width:480px){.document-template-cards{gap:8px}.document-template{padding:9px!important;border-radius:12px}.document-template-paper{margin:9px 0 0;height:112px}.document-template-name{font-size:13px}.document-template-name small{font-size:10px}}
