/* p-sgs: /zoho-for-supermarkets/ (ETC-3326). Leaf green, tomato and shelf yellow; dawn-to-night panorama under a two-column headline,
   24-hour clock journey, shelf with gaps, store floor plan, markdown-or-wait calculator. */
main:has(.sgs-hero) { --sgs-blue: #256029; --sgs-red: #B4372A; --sgs-yel: #FFF4CF; --fx: #2F7D32; --fx-l: #A8DC92; }
main:has(.sgs-hero) .eyebrow { color: var(--sgs-red); }
main:has(.sgs-hero) .eyebrow::before { background: #F2B632; }
main:has(.sgs-hero) .sec__head { max-width: 860px; }
.sgs-hero .kicker { color: var(--sgs-blue); background: #E6F3DF; }
.sgs-hero .kicker i { background: var(--sgs-red); }
.sgs-hero__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin: 16px 0 28px; }
.sgs-hero h1 { font-size: clamp(30px, 1.1rem + 2.2vw, 48px); line-height: 1.12; margin: 0; }
.sgs-frame { position: relative; }
.sgs-art.st-art { aspect-ratio: 1200 / 430; border-bottom: 10px solid var(--sgs-red); }
.sgs-chip1 { left: 27%; top: 18px; }
.sgs-chip2 { right: 18px; bottom: 74px; }
.sgs-pause { position: absolute; right: 18px; bottom: 24px; z-index: 6; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .95); font: 600 13px/1 var(--font-ui); color: var(--ink); cursor: pointer; }
.sgs-pause:focus-visible, .sgs-calc input:focus-visible { outline: 3px solid var(--sgs-red); outline-offset: 2px; }
.sgs-van { animation: sgs-van 7s ease-in-out infinite; }
.sgs-gap { animation: sgs-gap 2.8s ease-in-out infinite; }
.sgs-frame.is-paused .sgs-van, .sgs-frame.is-paused .sgs-gap { animation-play-state: paused; }
@keyframes sgs-van { 0%, 100% { transform: translateX(-14px); } 50% { transform: translateX(10px); } }
@keyframes sgs-gap { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .sgs-van, .sgs-gap { animation: none; } .sgs-pause { display: none; } }

.sgs-note { margin: 24px 0 0; padding: 14px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-left: 6px solid #F2B632; font-size: 15px; }

.sgs-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 26px; }
.sgs-two > div { padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.sgs-two h3 { margin: 0 0 10px; font-size: 20px; }
.sgs-two p { margin: 0; }
.sgs-two .sgs-k { margin: 0 0 6px; font: 700 13px/1 var(--font-ui); color: var(--sgs-red); }
.sgs-two dl { margin: 0; }
.sgs-two dl div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed #CBD5E1; }
.sgs-two dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; white-space: nowrap; }
.sgs-two dl .is-sum { border-bottom: 0; font-weight: 700; color: var(--ink); font-size: 18px; }
#cost .ctas { margin-top: 22px; }

.sgs-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.sgs-first { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.sgs-first h3 { margin: 0 0 10px; font-size: 22px; }

/* calculator: till receipt */
.sgs-calc { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.sgs-calc__in { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 24px; }
.sgs-calc label { display: grid; gap: 6px; align-content: end; font: 600 13.5px/1.3 var(--font-ui); color: var(--ink); }
.sgs-calc input { min-height: 44px; width: 100%; box-sizing: border-box; padding: 8px 12px; border-radius: 10px; border: 1px solid #94A3B8; font: 500 16px/1.2 var(--font-ui); color: var(--ink); background: #fff; }
.sgs-wide { grid-column: 1 / -1; }
.sgs-calc__out { padding: 24px; background: var(--sgs-yel); border-top: 2px dashed #B08A2E; color: var(--ink); }
.sgs-calc__v { margin: 0 0 10px; font-weight: 800; font-size: 24px; color: #8F3620; }
.sgs-calc__out dl { margin: 0 0 12px; }
.sgs-calc__out dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dotted #B08A2E; }
.sgs-calc__out dd { margin: 0; font-weight: 700; text-align: right; }
.sgs-calc__f { margin: 0; padding: 14px 24px; font-size: 14px; color: var(--muted); }

@media (max-width: 960px) {
  .sgs-hero__top, .sgs-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sgs-art.st-art { aspect-ratio: 16 / 9; }
}
@media (max-width: 680px) {
  .sgs-two { grid-template-columns: minmax(0, 1fr); }
  .sgs-art.st-art { aspect-ratio: 1 / 1; }
  .sgs-chip1 { left: 12px; top: 12px; } .sgs-chip2 { right: 12px; bottom: 76px; }
  .sgs-art .st-art__tag { max-width: calc(100% - 170px); }
}
@media (max-width: 420px) { .sgs-calc__in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- shared bits ---------- */
main:has(.sgs-hero) :is(.rh-std, .rh-set, .rh-cus) { display: inline-block; padding: 5px 10px; border: 0; border-radius: 999px; font: 600 13px/1.3 var(--font-ui); }
main:has(.sgs-hero) .rh-std { background: #E0F2D6; color: #235F0A; }
main:has(.sgs-hero) .rh-set { background: #E1EDF9; color: #1B5A94; }
main:has(.sgs-hero) .rh-cus { background: #FFE6D6; color: #93310F; }
.sgs-app { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.sgs-app img { height: 28px; width: auto; }
.sgs-clock button:focus-visible, .sgs-shelf button:focus-visible, .sgs-plan button:focus-visible { outline: 3px solid #0B5CAD; outline-offset: 3px; }

/* ---------- 24-hour clock ---------- */
.sec.sgs-clock { background: linear-gradient(180deg, #FDF3E1, #EAF4E2 45%, #DCE9EC); }
.sgs-key { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: -18px 0 26px; font: 500 15px/1.4 var(--font-ui); color: var(--ink); }
.sgs-key button { margin-left: auto; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--sgs-blue); color: #fff; font: 600 15px/1 var(--font-ui); cursor: pointer; }
.sgs-day { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(166px, auto); gap: 10px 14px; }
.sgs-day > ol { display: contents; list-style: none; }
.sgs-day li { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 16px; transition: background .35s, box-shadow .35s; }
.sgs-day time { font: 800 15px/1.2 var(--font-ui); color: var(--sgs-blue); font-variant-numeric: tabular-nums; }
.sgs-day em { position: absolute; right: 12px; top: 5px; padding: 3px 10px; border-radius: 999px; background: var(--sgs-blue); color: #fff; font: 600 13px/1.3 var(--font-ui); }
.sgs-day h3 { margin: 3px 0 4px; font-size: 18px; line-height: 1.22; }
.sgs-day p { margin: 0 0 8px; font-size: 15px; line-height: 1.38; color: #334155; }
.sgs-day .sgs-app { margin-top: auto; gap: 6px 12px; }
.sgs-day .is-ask h3, .sgs-day .is-lost h3, .sgs-day .is-ask time, .sgs-day .is-lost time { color: #A52F1E; }
.sgs-day .sgs-yn { display: grid; gap: 3px; }
.sgs-yn b { display: inline-block; min-width: 34px; padding: 1px 7px; margin-right: 4px; border-radius: 6px; background: #2F7D32; color: #fff; text-align: center; font: 700 13px/1.45 var(--font-ui); }
.sgs-yn span + span b { background: #B4372A; }
.sgs-day li.is-now { background: #fff; box-shadow: 0 20px 40px -24px rgba(16, 60, 24, .7); }
.sgs-dial { grid-column: 2 / 4; grid-row: 2 / 6; position: relative; z-index: 1; align-self: center; justify-self: center; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 180deg, #14304A, #1D4760 52deg, #C8602A 82deg, #57A35A 112deg, #2F7D32 180deg, #57A35A 235deg, #D0562F 272deg, #1D4760 305deg, #14304A);
  box-shadow: 0 50px 80px -40px rgba(12, 48, 30, .75), inset 0 3px 2px rgba(255, 255, 255, .45), inset 0 -6px 10px rgba(0, 0, 0, .35); }
.sgs-dial svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sgs-hand { transform: rotate(var(--a, -52deg)); transform-origin: 320px 320px; }
.sgs-sun { fill: color-mix(in srgb, #F4A51C, #DCE8F4 calc(var(--n, 0) * 100%)); }
.sgs-dark { opacity: calc(var(--n, 0) * .66); } .sgs-glow { opacity: var(--n, 0); }
.sgs-pin rect { transition: fill .3s; } .sgs-pin text { transition: fill .3s; }
.sgs-pin.is-now rect { fill: #FFD75E; }
.sgs-wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.sgs-wires path { fill: none; stroke: #8FB08A; stroke-width: 2; } .sgs-wires .is-now { stroke: #B4372A; stroke-width: 4; }
.sgs-day li:nth-child(1) { grid-area: 5 / 1; } .sgs-day li:nth-child(2) { grid-area: 4 / 1; } .sgs-day li:nth-child(3) { grid-area: 3 / 1; } .sgs-day li:nth-child(4) { grid-area: 2 / 1; }
.sgs-day li:nth-child(5) { grid-area: 1 / 1; } .sgs-day li:nth-child(6) { grid-area: 1 / 2; } .sgs-day li:nth-child(7) { grid-area: 1 / 3; } .sgs-day li:nth-child(8) { grid-area: 1 / 4; }
.sgs-day li:nth-child(9) { grid-area: 2 / 4; } .sgs-day li:nth-child(10) { grid-area: 3 / 4; } .sgs-day li:nth-child(11) { grid-area: 4 / 4; } .sgs-day li:nth-child(12) { grid-area: 5 / 4; }
.sgs-day li:nth-child(13) { grid-area: 6 / 4; } .sgs-day li:nth-child(14) { grid-area: 6 / 3; } .sgs-day li:nth-child(15) { grid-area: 6 / 2; } .sgs-day li:nth-child(16) { grid-area: 6 / 1; }

/* ---------- shelf with gaps ---------- */
.sgs-shelf { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 20px; overflow: hidden; background: #1C4A22; box-shadow: 0 40px 70px -44px rgba(12, 48, 20, .8); }
.sgs-shelf li { display: flex; flex-direction: column; margin: 0; }
.sgs-shelf li > svg { display: block; width: 100%; height: auto; }
.sgs-edge { flex: 1; display: flex; padding: 0 10px 14px; background: linear-gradient(180deg, #3B8A3F 0 12px, #1C4A22 12px); }
.sgs-edge h3 { display: flex; flex: 1; margin: 0; font-size: 18px; line-height: 1.28; }
.sgs-edge button, .sgs-shelf:not(.is-js) .sgs-edge h3 { flex: 1; position: relative; padding: 14px 14px 14px 34px; border: 0; border-radius: 4px 4px 10px 10px; background: var(--sgs-yel); color: #3A2A06; font: 700 17px/1.28 var(--font); text-align: left; cursor: pointer; box-shadow: 0 8px 14px -8px #000; transition: background .25s, color .25s, transform .25s; transform-origin: 50% 0; }
.sgs-edge button::before { content: ""; position: absolute; left: 12px; top: 14px; bottom: 14px; width: 11px; background: repeating-linear-gradient(180deg, currentColor 0 2px, transparent 2px 5px, currentColor 5px 8px, transparent 8px 10px); opacity: .75; }
.sgs-edge button:hover { transform: rotate(-1deg); }
.sgs-edge button[aria-expanded="true"] { background: #B4372A; color: #fff; }
.sgs-fill { opacity: 0; transform: translateY(-40px); transition: transform .6s cubic-bezier(.3, 1.5, .5, 1), opacity .25s; } .sgs-hole { transition: opacity .3s; }
.is-open .sgs-fill { opacity: 1; transform: none; } .is-open .sgs-hole { opacity: 0; }
.sgs-ans { padding: 20px; background: #fff; }
.sgs-why { margin: 0 0 18px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.sgs-ans__h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; padding: 0 0 10px; border-bottom: 3px solid #2F7D32; font: 700 18px/1.3 var(--font); color: var(--ink); }
.sgs-ans__h small { font: 500 14px/1 var(--font-ui); color: #55606E; }
.sgs-ans dl { margin: 0; }
.sgs-ans dl div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.sgs-ans dd { margin: 0; font-weight: 700; color: var(--ink); } .sgs-ans dd[class] { font: 700 15px/1.2 var(--font-ui); }
.sgs-ans dd.sg-ok { color: #235F0A; } .sgs-ans dd.sg-no { color: #8A2F0F; } .sgs-ans dd.sg-wt { color: #6B3A06; }
.sgs-res { margin: 18px 0; padding: 14px 16px; border-radius: 12px; background: #E0F2D6; color: #1C4A22; font-weight: 700; font-size: 16px; line-height: 1.4; }
.sgs-shelf.is-js .sgs-ans { display: none; } .sgs-shelf.is-js .is-open .sgs-ans { display: block; }
@media (min-width: 961px) {
  .sgs-shelf.is-js { padding-right: 384px; }
  .sgs-shelf.is-js .is-open .sgs-ans { position: absolute; top: 0; right: 0; bottom: 0; width: 384px; box-sizing: border-box; padding: 30px 30px 24px; display: flex; flex-direction: column; animation: sgs-in .45s cubic-bezier(.2, .7, .2, 1); }
  .sgs-shelf.is-js .sgs-ans .sgs-app { margin-top: auto; }
}
@keyframes sgs-in { from { opacity: 0; transform: translateX(24px); } }

/* ---------- floor plan ---------- */
.sgs-plan__g { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.sgs-floor { position: relative; align-self: start; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(12, 48, 20, .8); }
.sgs-floor svg { display: block; width: 100%; height: auto; }
.sgs-floor button { display: none; position: absolute; margin: 0; padding: 0; border: 0; background: rgba(9, 34, 20, .6); cursor: pointer; transition: background .3s; }
.is-js .sgs-floor button { display: block; }
.sgs-floor button:hover { background: rgba(9, 34, 20, .38); }
.sgs-floor button[aria-pressed="true"] { background: radial-gradient(closest-side, rgba(255, 226, 120, .05), rgba(255, 205, 70, .22)); box-shadow: inset 0 0 0 5px #FFCE3D, 0 0 46px 6px rgba(255, 206, 61, .75); z-index: 2; animation: sgs-tube .55s steps(1); }
.sgs-floor span { position: absolute; left: 10px; bottom: 10px; padding: 8px 12px; border-radius: 8px; background: #fff; color: #14301A; font: 700 15px/1.1 var(--font-ui); }
.sgs-floor [aria-pressed="true"] span { background: #FFCE3D; }
.sgs-floor button:focus-visible { outline-offset: -8px; z-index: 3; }
@keyframes sgs-tube { 0% { background: rgba(9, 34, 20, .6); } 18% { background: rgba(255, 226, 120, .3); } 30% { background: rgba(9, 34, 20, .5); } 52% { background: rgba(255, 226, 120, .35); } 66% { background: rgba(9, 34, 20, .3); } }
.sgs-heads { display: grid; gap: 20px; }
.sgs-head { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 30px; border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -44px rgba(12, 48, 20, .8); }
.is-js .sgs-head:not(.is-on) { display: none; }
.sgs-head__w { display: flex; justify-content: space-between; width: 100%; margin: 0 0 8px; color: var(--sgs-red); font: 700 16px/1.3 var(--font-ui); }
.sgs-head__w span { color: #475569; }
.sgs-head h3 { margin: 4px 0 16px; font-size: 28px; line-height: 1.24; }
.sgs-head dl { width: 100%; margin: 0 0 16px; }
.sgs-head dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.sgs-head dd { margin: 0; font: 700 26px/1.2 var(--font); color: var(--ink); white-space: nowrap; } .sgs-head dd.is-g { color: #2A6E2D; } .sgs-head dd.is-r { color: #B4372A; }
.sgs-head__r { margin: 0 0 12px; font-weight: 600; color: var(--ink); } .sgs-head__r small { font: 500 14px/1.3 var(--font-ui); color: #55606E; margin-left: 4px; }
.sgs-head__a { margin: 14px 0 16px; font-size: 15px; line-height: 1.45; }
.sgs-head .btn { margin-top: auto; }

/* ---------- story stage in deep leaf green; plain tables as soft cards ---------- */
main:has(.sgs-hero) .sec.fx-stage { background: radial-gradient(70% 420px at 82% 0, #2F7D3299, transparent 100%), linear-gradient(180deg, #0D2413, #15371C); }
main:has(.sgs-hero) .fx-stage .st-rail::before { background: #102916; }
main:has(.sgs-hero) .fx-stage .st-rail li:not(.is-on)::before { background: #15371C; border-color: #4C7A53; }
main:has(.sgs-hero) .fx-stage.sec > .wrap > .sgs-note { background: #1D4625; border-color: #3B6B43; }
main:has(.sgs-hero) .ks-cmp { border: 0; border-radius: 22px; box-shadow: 0 34px 60px -46px rgba(12, 48, 20, .8); }
main:has(.sgs-hero) .ks-cmp thead th { background: #E6F3DF; }
main:has(.sgs-hero) .ks-cmp tbody th { color: var(--sgs-blue); font-size: 15px; }
main:has(.sgs-hero) .ks-cmp td { font-size: 15px; }
main:has(.sgs-hero) .ks-cmp tbody tr:is(:hover, .is-on) > * { background-color: #F4FAF0; }
.sgs-two > div { border: 0; background: #F3F8EE; border-radius: 20px; padding: 26px; }
.sgs-two dl div { border-bottom-color: #BCD3B2; }

@media (max-width: 1120px) { .sgs-day h3 { font-size: 17px; } .sgs-day li { padding: 10px; } .sgs-day em { position: static; order: -1; margin-bottom: 4px; } .sgs-head { padding: 22px; } .sgs-head h3 { font-size: 22px; } }
@media (max-width: 960px) {
  main:has(.sgs-hero) .fx-stage.is-pinned .st-rail { background: #102916; }
  .sgs-day { display: block; }
  .sgs-dial { width: min(100%, 520px); margin: 0 auto 26px; }
  .sgs-wires { display: none; }
  .sgs-day > ol { display: block; margin: 0; padding: 0 0 0 22px; background: linear-gradient(180deg, #C8602A, #57A35A 22%, #2F7D32 50%, #D0562F 72%, #14304A) 0 0 / 6px 100% no-repeat; }
  .sgs-day li { padding: 14px 0 16px 4px; border-radius: 0; border-bottom: 1px solid #C6D6C0; }
  .sgs-day li::before { content: ""; position: absolute; left: -29px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--sgs-blue); }
  .sgs-day li:is(.is-ask, .is-lost)::before { border-color: #B4372A; }
  .sgs-day li.is-now { background: none; box-shadow: none; }
  .sgs-day h3 { font-size: 19px; } .sgs-day p { font-size: 16px; }
  .sgs-key button { margin-left: 0; }
  .sgs-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sgs-shelf.is-js .is-open { grid-column: 1 / -1; }
  .sgs-plan__g { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .sgs-shelf { grid-template-columns: minmax(0, 1fr); } .sgs-shelf li > svg { max-height: 190px; }
  .sgs-pin { display: none; }
  .sgs-floor span { left: 5px; bottom: 5px; padding: 5px 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .sgs-fill, .sgs-floor button, .sgs-shelf .sgs-ans { transition: none !important; animation: none !important; } }
