/* Global header ribbon; all styles stay scoped and inherit the ERP design tokens. */
.global-business-hours{min-width:0;width:100%;margin:0;color:var(--ink);font-family:inherit}
.gbh-ribbon{height:56px;display:flex;align-items:center;gap:8px}
.gbh-ribbon-label{flex:0 0 66px;display:flex;flex-direction:column;gap:2px;line-height:1.35;padding-left:2px;color:var(--muted);white-space:nowrap}
.gbh-ribbon-label>span:first-child{font-size:11px;font-weight:650;color:var(--ink)}
.gbh-ribbon-label>span:last-child{font-size:9px;letter-spacing:.1px}
.gbh-grid{display:flex;align-items:stretch;flex:1 1 auto;min-width:0;max-width:100%;height:56px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#D4E1E8 transparent;overscroll-behavior-x:contain}
.gbh-grid::-webkit-scrollbar{height:3px}.gbh-grid::-webkit-scrollbar-thumb{background:#D4E1E8;border-radius:3px}
.gbh-city{flex:1 0 112px;min-width:0;box-sizing:border-box;padding:2px 9px 3px;border-left:1px solid var(--line);background:transparent;outline-offset:-2px;transition:background .15s}
.gbh-city-name{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px;font-weight:650;line-height:15px}
.gbh-city-name>span:last-child{overflow:hidden;text-overflow:ellipsis}
.gbh-city-english{font-size:10px;line-height:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:10px}
.gbh-clock-row{display:flex;align-items:baseline;gap:7px;padding-left:10px;white-space:nowrap;line-height:20px}
.gbh-time{font-size:17px;font-weight:650;letter-spacing:-.3px;font-variant-numeric:tabular-nums}
.gbh-date{font-size:10px;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}
.gbh-status-dot{display:inline-block;width:5px;height:5px;flex:0 0 5px;border-radius:50%;background:currentColor}
.gbh-status-business{color:#27775D}.gbh-status-edge{color:#9B6B22}.gbh-status-off{color:#A95353}.gbh-status-unknown{color:var(--muted)}
.gbh-is-highlighted{background:#EDF6FA;border-radius:5px}
.gbh-settings-trigger,.gbh-dialog-close,.gbh-action{display:grid;place-items:center;box-sizing:border-box;flex:none;cursor:pointer;font:inherit;border:1px solid transparent;border-radius:6px;color:var(--muted);background:transparent;padding:6px}
.gbh-settings-trigger{width:32px;height:32px;margin-left:0}
.gbh-settings-trigger:hover,.gbh-dialog-close:hover,.gbh-action:hover{border-color:#BCD4E4;background:#F0F6FB;color:var(--teal)}
.gbh-settings-trigger:disabled,.gbh-action:disabled{opacity:.45;cursor:default}
.gbh-settings-trigger:focus-visible,.gbh-dialog-close:focus-visible,.gbh-action:focus-visible,.gbh-city:focus-visible{outline:2px solid var(--cyan,#3CC6F0);outline-offset:1px}
.gbh-city:focus-visible{outline-offset:-2px}
.gbh-settings-trigger.gbh-has-warning{color:#9B6B22;background:#FFF7E8;border-color:#E7D3AD}
.gbh-message{flex:1;min-width:0;font-size:10px;color:var(--muted);line-height:1.45}
.gbh-message.gbh-error{display:flex;align-items:center;gap:8px;color:#9B6B22}
.gbh-message .btn{white-space:nowrap;font-size:10px;padding:4px 7px;min-height:28px}
.gbh-message:not([hidden])+.gbh-grid:empty{display:none}
.gbh-settings-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 28px));max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow-y:auto;border:1px solid var(--line);border-radius:12px;padding:0;margin:auto;background:var(--white,#FFF);color:var(--ink);font-family:inherit;box-shadow:0 18px 65px rgba(16,60,80,.2)}
.gbh-settings-dialog::backdrop{background:rgba(16,40,55,.3)}
.gbh-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 20px 13px;border-bottom:1px solid var(--line)}
.gbh-dialog-head h3{font-size:16px;font-weight:650;line-height:1.4;margin:0}
.gbh-dialog-head p{font-size:11px;line-height:1.5;margin:3px 0 0;color:var(--muted)}
.gbh-dialog-close{height:32px;width:32px;border-color:var(--line)}
.gbh-settings-intro{font-size:11px;line-height:1.6;margin:0;padding:13px 20px 9px;color:var(--muted)}
.gbh-settings-columns,.gbh-setting-row{display:grid;grid-template-columns:minmax(0,1fr) 64px 82px;align-items:center;gap:8px;padding-left:20px;padding-right:20px}
.gbh-settings-columns{font-size:10px;color:var(--muted);padding-top:6px;padding-bottom:8px}
.gbh-settings-columns>span:not(:first-child){text-align:center}
.gbh-setting-row{min-height:55px;border-top:1px solid var(--line);padding-top:7px;padding-bottom:7px}
.gbh-setting-city{min-width:0;display:flex;flex-direction:column;gap:3px}
.gbh-setting-city strong{font-size:12px;font-weight:600;line-height:1.4}
.gbh-setting-city>span{font-size:10px;color:var(--muted);line-height:1.4}
.gbh-action{justify-self:center;width:32px;height:32px;border-color:var(--line)}
.gbh-action.selected{color:var(--teal);background:#E0F4FA;border-color:#B9E4EF}
.gbh-highlight.selected svg{fill:#D8EDF5}
.gbh-settings-message{font-size:10px;line-height:1.6;color:var(--muted);padding:12px 20px;border-top:1px solid var(--line)}
.gbh-settings-message.gbh-error{color:#9B6B22;display:flex;align-items:center;gap:10px;justify-content:space-between}
.gbh-settings-message .btn{font-size:10px;flex:none;white-space:nowrap;min-height:30px}
.gbh-settings-guide{display:flex;flex-direction:column;gap:5px;padding:13px 20px 17px;background:var(--bg);font-size:10px;line-height:1.5}
.gbh-settings-guide p{margin:0;color:var(--muted)}
.gbh-settings-guide p:first-of-type{margin-top:4px}
.global-business-hours [hidden]{display:none!important}
@media(max-width:600px){.gbh-ribbon{gap:5px}.gbh-ribbon-label{flex-basis:57px}.gbh-city{flex-basis:112px}.gbh-settings-trigger{width:30px}.gbh-settings-columns,.gbh-setting-row{grid-template-columns:minmax(0,1fr) 51px 73px;gap:5px;padding-left:16px;padding-right:16px}.gbh-settings-message.gbh-error{align-items:flex-start;flex-direction:column}.gbh-message.gbh-error{gap:5px}.gbh-message.gbh-error>span{font-size:9px}}
