/* iOES | WEB suite, part of /webapp/index.html (v194 split; was inline at line 20610). */
/* IOESSHEET uses the same window chrome as the desktop apps: rounded frame, traffic lights on the left, centred title */
.sheet{border-radius:14px;overflow:hidden}
.sheet .sh-head{height:44px;margin:-12px -12px 6px;padding:0 14px;justify-content:center;position:relative;border-bottom:1px solid var(--line);background:var(--bar,var(--key));border-radius:0;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;font-size:13px;font-weight:600;letter-spacing:.01em;text-transform:none;color:var(--text)}
.sheet .sh-head > span{font-size:13px;letter-spacing:.01em}
/* close button sits at the right edge, out of the centred title's flow (AutoExpreso title was touching the X) */
.sheet .sh-head > .x,.sheet .sh-head > .sh-close{position:absolute;right:8px;top:50%;transform:translateY(-50%)}
.sheet .sh-ctl{position:absolute;left:14px;top:50%;transform:translateY(-50%);display:flex;gap:8px;align-items:center}
/* header buttons that sit beside the title (e.g. Theme in the calculator) move to the right so the centred title never runs under the lights */
.sheet .sh-head > .sh-tbtn{position:absolute;right:14px;top:50%;transform:translateY(-50%)}
/* the title is centred in the space between the traffic lights and the header buttons */
.sheet .sh-head > span:first-child{flex:1 1 auto;min-width:0;text-align:center;padding:0 124px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sheet .sh-ctl button{width:12px!important;height:12px!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;font-size:0!important;color:transparent!important;background:#FF5F57!important;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.25)}
.sheet .sh-ctl #shClose{order:1;background:#FF5F57!important}
.sheet .sh-ctl #shMin{order:2;background:#FEBC2E!important}
.sheet .sh-ctl #shMax{order:3;background:#28C840!important}
.sheet .sh-ctl button:hover{filter:brightness(.9)}
/* Same order in every window: red close, yellow minimize, green maximize (left to right) */
.sheet .sh-ctl .sh-close{order:1;background:#FF5F57!important}
.sheet .sh-ctl .sh-min{order:2;background:#FEBC2E!important}
.sheet .sh-ctl .sh-max{order:3;background:#28C840!important}
/* v104: the extra window buttons (Full screen, Open in a new tab, Save or open) are not traffic lights.
   They were red circles with no visible icon, so two or three identical red dots sat beside the real Close.
   Now they are small neutral buttons with their icon, after a gap, and each says what it does on hover. */
.sheet .sh-ctl .sh-fs,.sheet .sh-ctl .sh-newtab,.sheet .sh-ctl .sh-file{order:5;width:24px!important;height:22px!important;border-radius:6px!important;background:var(--tile,rgba(0,0,0,.05))!important;color:var(--text)!important;box-shadow:inset 0 0 0 1px var(--line,rgba(0,0,0,.12))!important;font-size:12px!important;align-items:center;justify-content:center}
.sheet .sh-ctl .sh-max{margin-right:6px!important}
.sheet .sh-ctl .sh-file{order:4}
.sheet .sh-ctl .sh-newtab{order:6}
.sheet .sh-ctl .sh-fs{order:7}
.sheet .sh-ctl .sh-fs:hover,.sheet .sh-ctl .sh-newtab:hover,.sheet .sh-ctl .sh-file:hover{background:var(--tile-h,rgba(0,0,0,.1))!important;filter:none}
.sheet .sh-ctl .sh-fs svg,.sheet .sh-ctl .sh-newtab svg,.sheet .sh-ctl .sh-file svg{width:13px;height:13px;color:var(--text)}
.sheet .sh-head > span:first-child{padding:0 200px}
@media (max-width:767px){.sheet .sh-head > span:first-child{padding:0 70px}}
.sheet .sh-head > .sh-tbtn{position:absolute;right:14px;top:50%;transform:translateY(-50%);height:24px;padding:0 10px;font-size:11px;border-radius:6px}
.sheet .sh-bar{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif}
.sheet .sh-bar .shm-btn{font-family:var(--font-sans,system-ui,sans-serif);font-weight:600;font-size:14px;letter-spacing:normal;text-transform:none;border-radius:12px;padding:9px 14px;min-height:40px}
.sheet .shm-item{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;font-size:13px}
.sheet .sh-status{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif}
