.gr-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 28px}.gr-heading h1{font-size:32px;letter-spacing:-.03em}.gr-heading p{font-size:14px;color:#715c70;line-height:1.8;margin-top:10px}.gr-heading .btn{min-height:46px;font-size:14px;white-space:nowrap}
.gr-toolbar{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.gr-toolbar label{font-size:13px;width:100%;margin:0}.gr-toolbar input{width:360px;max-width:100%;font-size:15px;min-height:46px;background:#fff}.gr-toolbar>span{font-size:13px;color:#715c70}.gr-list{border:1px solid #e5dcd8;border-radius:12px;background:#fff;overflow:hidden}.gr-row{display:flex;align-items:center;gap:24px;padding:22px 24px;border-bottom:1px solid #ece4e7;min-width:0}.gr-row:last-child{border-bottom:0}.gr-row>div:first-child{flex:1;min-width:0}.gr-row strong{display:block;font-size:15px;overflow-wrap:anywhere}.gr-row small{display:block;font-size:12px;line-height:1.8;color:#715c70;margin-top:5px}.gr-code{letter-spacing:.05em}.gr-status{font-size:12px;padding:6px 10px;border-radius:6px;background:#f2eae7;color:#715067;white-space:nowrap}.gr-status.is-active{background:#e5eee3;color:#36562f}.gr-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.gr-actions .btn,.gr-row>.btn{font-size:13px;min-height:44px}.gr-empty{padding:48px 24px;text-align:center;border:1px dashed #cfbdc7;border-radius:12px;background:#fffaf5}.gr-empty h2{font-size:22px;letter-spacing:-.025em}.gr-empty p{font-size:14px;line-height:1.8;color:#715c70;max-width:55ch;margin:14px auto 24px}.gr-empty .btn{font-size:14px;min-height:44px}.gr-help{font-size:12px!important;color:#715c70!important;line-height:1.8!important;margin:12px 0!important}.gr-client-amount{text-align:right;font-variant-numeric:tabular-nums}.gr-modal-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.gr-modal-heading h2{margin:0;font-size:23px;overflow-wrap:anywhere}.gr-modal-heading .btn{font-size:12px;min-height:40px}.gr-address{white-space:pre-wrap;font-size:14px;line-height:1.8;margin:16px 0}.gr-client-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:20px 0;margin:20px 0;border-top:1px solid #e5dcd8;border-bottom:1px solid #e5dcd8}.gr-client-stats small{display:block;font-size:11px;color:#715c70;line-height:1.7}.gr-client-stats strong{display:block;font-size:17px;margin-top:8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.gr-orders-title{font-size:17px;margin:28px 0 14px}.gr-history{display:flex;justify-content:space-between;gap:16px;align-items:center;width:100%;text-align:left;background:#fffaf5;color:#352238;border-bottom:1px solid #e5dcd8;padding:15px 12px;font-size:14px;min-height:54px}.gr-history small{display:block;color:#715c70;font-size:11px;margin-top:6px}.gr-history:hover{background:#fff0e4}.gr-coupon{display:flex;gap:8px}.gr-coupon input{flex:1;min-width:0;font-size:14px}.gr-coupon .btn{font-size:13px;min-height:44px}
dialog:has(#promotion-form),dialog:has(#customer-form){width:min(620px,calc(100vw - 24px));max-height:90dvh;overflow-y:auto;background:#fffaf5}.gr-modal-heading~form:is(#promotion-form,#customer-form) label{font-size:13px;margin-top:17px}.gr-modal-heading~form:is(#promotion-form,#customer-form) input,.gr-modal-heading~form:is(#promotion-form,#customer-form) select,.gr-modal-heading~form:is(#promotion-form,#customer-form) textarea{font-size:15px;min-height:44px}.gr-modal-heading~form:is(#promotion-form,#customer-form) .btn{min-height:44px;font-size:13px}dialog:has(#promotion-form) .modal-actions,dialog:has(#customer-form) .modal-actions{position:sticky;bottom:-27px;padding:16px 0 4px;background:#fffaf5}.gr-modal-heading~form:is(#promotion-form,#customer-form) [type=submit]:disabled{opacity:.6;cursor:wait}.gr-toolbar input:focus-visible,.gr-list :focus-visible,.gr-modal-heading~form:is(#promotion-form,#customer-form) :focus-visible,.gr-history:focus-visible{outline:3px solid #a54317;outline-offset:3px}
@media(max-width:720px){.gr-heading{flex-wrap:wrap;gap:18px}.gr-heading h1{font-size:28px}.gr-heading p{font-size:13px}.gr-row{padding:18px 16px;gap:14px;flex-wrap:wrap}.gr-row>div:first-child{flex-basis:55%}.gr-row strong{font-size:14px}.gr-row .gr-actions{width:100%}.gr-row>.btn{width:100%}.gr-row small{font-size:12px}.gr-client-amount strong{font-size:13px}.gr-client-stats{gap:10px}.gr-client-stats strong{font-size:14px}.gr-modal-heading h2{font-size:21px}.gr-empty{padding:32px 18px}.gr-empty h2{font-size:20px}.gr-toolbar input{width:100%}.gr-coupon{gap:6px}.gr-coupon .btn{padding:10px}}
dialog:has(#promotion-form),dialog:has(#customer-form){max-width:calc(100vw - 24px)}
.gr-modal-heading~form:is(#promotion-form,#customer-form) .form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gr-modal-heading~form:is(#promotion-form,#customer-form) .form-row>div{min-width:0}.gr-modal-heading~form:is(#promotion-form,#customer-form) select,.gr-modal-heading~form:is(#promotion-form,#customer-form) input{width:100%;min-width:0;max-width:100%}
@media(max-width:720px){dialog:has(#promotion-form),dialog:has(#customer-form){width:calc(100% - 24px);max-width:calc(100% - 24px);padding:20px}.gr-modal-heading{gap:12px}.gr-modal-heading h2{min-width:0;flex:1}.gr-modal-heading~form:is(#promotion-form,#customer-form) .modal-actions{bottom:-20px}}
@media(max-width:400px){.gr-modal-heading~form:is(#promotion-form,#customer-form) .form-row{grid-template-columns:minmax(0,1fr);gap:0}}

/* Match the compact order history without changing promotion rows. */
.gr-row:has(.gr-client-amount){padding:12px 20px;gap:20px}
.gr-row:has(.gr-client-amount) small{margin-top:3px;line-height:1.5}
.gr-row:has(.gr-client-amount)>.btn{min-height:40px;padding:9px 14px;white-space:nowrap;font-size:12px}
.gr-row:has(.gr-client-amount) .gr-client-amount{min-width:115px}
@media(max-width:720px){.gr-row:has(.gr-client-amount){flex-wrap:nowrap;gap:14px;padding:12px 16px}.gr-row:has(.gr-client-amount)>div:first-child{flex-basis:auto}.gr-row:has(.gr-client-amount)>.btn{width:auto;min-height:44px}.gr-row:has(.gr-client-amount) .gr-client-amount{min-width:90px}}
@media(max-width:500px){.gr-row:has(.gr-client-amount){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px}.gr-row:has(.gr-client-amount)>div:first-child{grid-column:1;grid-row:1 / span 2;overflow-wrap:anywhere}.gr-row:has(.gr-client-amount) .gr-client-amount{grid-column:2;grid-row:1}.gr-row:has(.gr-client-amount)>.btn{grid-column:2;grid-row:2;justify-self:end}}

#promotion-form .promo-targets{max-height:250px;overflow-y:auto;border:1px solid #dfd2d9;border-radius:8px;margin:14px 0;padding:10px 14px;min-width:0}
#promotion-form .promo-targets[hidden]{display:none}
#promotion-form label.promo-target{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:12px;min-height:44px;margin:0;padding:8px 0;cursor:pointer}
#promotion-form label.promo-target input[type=checkbox]{width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;padding:0;margin:0;accent-color:#352238}
#promotion-form .promo-target span{overflow-wrap:anywhere;line-height:1.5}
