/* Locations extends the existing Manager design; no framework/theme replacement. */
.location-grants { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); }
.location-grants fieldset { min-width:0; }
.location-grants label { display:flex; align-items:center; gap:8px; }
.location-grants fieldset:disabled { opacity:.5; }
.store-dialog { width:min(960px,calc(100vw - 24px)); max-width:calc(100vw - 24px); }
.store-dialog .dialog-shell { width:100%; max-height:calc(100dvh - 40px); }
.store-dialog-body { overflow:auto; padding:20px; display:grid; gap:20px; align-content:start; }
.store-dialog-body p:empty { display:none; }
.store-dialog-body h4,.store-dialog-body label { margin:0; }
.store-dialog-body form { display:grid; gap:12px; }
.store-profile-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.store-profile-fields label { min-width:0; }
.store-profile-fields input,.store-profile-fields select { width:100%; }
.timezone-field { min-width:0; }
.timezone-field label { display:grid; gap:6px; }
.timezone-field select { min-width:0; width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--border,#bac9c1); background:white; color:inherit; font:inherit; }
.timezone-field [data-timezone-scope] { padding:6px 0; font-size:12px; text-align:left; }
.store-open-action { display:block; margin-top:8px; }
.channel-grid td { vertical-align:middle; }
.channel-grid td:nth-last-child(-n+2) { text-align:right; font-variant-numeric:tabular-nums; }
.location-history-entry,.store-channel-form,.channel-library article { padding:16px 0; border-bottom:1px solid var(--border,#d9e0e6); }
.location-history-entry header { display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; }
.location-history-entry .mono,#storeIdentity { overflow-wrap:anywhere; }
.location-history-entry dl { display:grid; grid-template-columns:minmax(100px,1fr) 2fr; gap:8px; }
.location-history-entry dd { margin:0; overflow-wrap:anywhere; }
#storeAudit { padding-left:20px; overflow-wrap:anywhere; }
.store-dialog #storeError:empty,#locationsError:empty { display:none; }
.store-dialog summary { cursor:pointer; font-weight:600; padding:12px 0; }
.store-dialog[aria-busy="true"] button { pointer-events:none; opacity:.6; }
.aggregate-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; align-items:end; padding:12px 0; border-bottom:1px solid var(--border,#d9e0e6); }
.aggregate-row label { min-width:0; }
.aggregate-row input,.aggregate-row select { width:100%; }
.floor-card { padding:14px; margin:10px 0; border:1px solid var(--border,#d9e0e6); background:rgba(246,248,250,.72); }
.area-list { margin-left:16px; }
.area-row { border-left:3px solid var(--accent,#5b5fc7); padding-left:12px; }
.aggregate-add-form { margin-top:14px; padding-top:14px; border-top:1px dashed var(--border,#d9e0e6); }
.aggregate-actions { display:flex; flex-wrap:wrap; gap:10px; }
.hours-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:10px; }
.hours-grid fieldset { min-width:0; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.hours-grid fieldset label:first-of-type { grid-column:1/-1; }
@media(max-width:600px){.store-profile-fields,.hours-grid{grid-template-columns:1fr}.store-dialog-body{padding:12px}.store-dialog .dialog-shell{max-height:calc(100dvh - 24px)}.location-history-entry dl{grid-template-columns:1fr}.area-list{margin-left:0}.aggregate-row{grid-template-columns:1fr}}

/* Locality type (urban / rural) in the Store dialog and the Cities dialog. */
.locality-type { display: grid; gap: .5rem; padding-block: .75rem; border-top: 1px solid var(--border, rgba(0,0,0,.1)); }
.locality-type p { margin: 0; }
.locality-override { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; }
.locality-override label { display: grid; gap: .25rem; min-width: 12rem; }
#localityCitiesDialog .data-grid td { vertical-align: top; }
#localityCitiesDialog .locality-override label { min-width: 9rem; }
