.shell, .shell * { box-sizing: border-box; }
.shell {
  position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: 248px;
  background: #0b4489; color: #fff; overflow: auto;
  font-family: Roboto, Arial, sans-serif; font-size: 13px;
  box-shadow: 4px 0 18px rgba(8, 40, 80, .12);
  transition: transform .18s ease;
}
.shell a { color: #e7f0fb; text-decoration: none; }
.shell .brand {
  display: block; position: sticky; top: 0; z-index: 2;
  padding: 16px 14px 12px; background: #0b4489; border-bottom: 1px solid rgba(255,255,255,.12);
  font-weight: 900; font-size: 16px; letter-spacing: .2px;
}
.shell .brand small { display: block; font-weight: 400; font-size: 11px; opacity: .85; margin-top: 2px; }
.shell .grp {
  margin: 12px 12px 4px; padding: 4px 4px 2px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b9d4f5;
}
.shell .item { display: block; margin: 1px 8px; padding: 6px 10px; border-radius: 6px; line-height: 1.3; }
.shell .item:hover { background: rgba(255,255,255,.14); color: #fff; }
.shell .item.on { background: #fff; color: #0b4489; font-weight: 700; }
.shell .foot { display: block; margin: 14px 8px 18px; padding: 8px 10px; border-radius: 6px; background: rgba(0,0,0,.15); text-align: center; font-weight: 700; }
.side-hide {
  flex: 0 0 auto; border: 0; border-radius: 8px; background: rgba(255,255,255,.16); color: #fff;
  font: 700 13px/1 Roboto, Arial, sans-serif; padding: 8px 10px; cursor: pointer;
}
.side-hide:hover { background: #fff; color: #0c3d86; }
body.shell-off .shell { transform: translateX(-105%); }
body.shell-off.has-shell { margin-left: 0; }
body.shell-off.has-shell .topbar,
body.shell-off.has-shell .footbar { left: 0; }
.topbar, .footbar {
  position: fixed; z-index: 40; left: 0; right: 0;
  background: #0c3d86; color: #fff;
  font-family: Roboto, Arial, sans-serif;
  box-shadow: 0 2px 10px rgba(8, 40, 80, .16);
}
.topbar {
  top: 0; height: 56px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 18px;
  background:
    radial-gradient(140px 56px at 100% 0, rgba(255,255,255,.2), transparent 70%),
    linear-gradient(90deg, #0c3d86 0%, #1457b5 100%);
}
.topbar .who { font-weight: 900; font-size: 15px; line-height: 1.15; }
.topbar .who small { display: block; font-weight: 500; font-size: 11px; font-style: italic; opacity: .92; }
.topbar .meta { text-align: right; font-size: 12px; line-height: 1.35; white-space: nowrap; }
.topbar .brandlink { color: #fff; font-weight: 900; text-decoration: none; letter-spacing: .3px; flex: 0 0 auto; }
.topbar nav { display: flex; gap: 2px; align-items: center; overflow: auto; flex: 1; justify-content: flex-end; }
.topbar nav a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.topbar nav a:hover, .topbar nav a.on { background: #fff; color: #0c3d86; }
.topbar nav a.out { background: rgba(0,0,0,.16); }
.topbar nav a.out:hover { background: #fff; color: #0c3d86; }
.footbar {
  bottom: 0; height: 46px; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 0 12px 0 16px; font-size: 13px; font-weight: 700;
  background:
    radial-gradient(160px 46px at 0 100%, rgba(255,255,255,.16), transparent 70%),
    #0c3d86;
}
.foot-note { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sortcart-btn {
  border: 0; background: #fff; color: #0c3d86; cursor: pointer; flex: 0 0 auto;
  font: 800 13px/1 Roboto, Arial, sans-serif; border-radius: 20px; padding: 8px 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.sortcart-btn .n { background: #0c3d86; color: #fff; border-radius: 99px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; font-size: 11px; }
.sortcart-panel {
  position: fixed; z-index: 45; right: 12px; bottom: 56px; width: min(400px, calc(100vw - 24px));
  background: #fff; color: #12263f; border: 1px solid #cfd9e6; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(8,40,80,.22); padding: 12px;
  font-family: Roboto, Arial, sans-serif; font-size: 13px;
}
.sortcart-panel h3 { margin: 0; color: #0c3d86; font-size: 16px; }
.sortcart-panel .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sortcart-panel .x { border: 0; background: transparent; color: #3e5570; font-size: 18px; cursor: pointer; }
.sortcart-panel .row { display: flex; gap: 6px; margin-bottom: 6px; }
.sortcart-panel input, .sortcart-panel select { width: 100%; padding: 6px 7px; border: 1px solid #cfd9e6; border-radius: 6px; font: inherit; font-size: 13px; background: #fff; color: inherit; }
.sortcart-panel .lines { max-height: 220px; overflow: auto; margin: 6px 0; }
.sortcart-panel .line { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px solid #e6eef8; }
.sortcart-panel .line b { font-weight: 500; }
.sortcart-panel .total { text-align: right; font-weight: 800; color: #0c3d86; }
.sortcart-panel .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sortcart-panel .b { border: 0; border-radius: 6px; background: #0b4489; color: #fff; font: inherit; font-size: 12px; font-weight: 700; padding: 7px 10px; cursor: pointer; }
.sortcart-panel .b.alt { background: #6b7c93; }
.sortcart-panel .b.red { background: #c62828; }
.sortcart-panel .msg { min-height: 16px; margin: 6px 0 0; font-size: 12px; }
.sortcart-panel .msg.ok { color: #0b5a2b; }
.sortcart-panel .msg.err { color: #b00; }
.sortcart-panel .empty { color: #3e5570; padding: 8px 0; }
.footbar .sep { opacity: .7; font-weight: 400; }
.footbar .thanks { font-style: italic; font-weight: 500; }
body.has-shell { margin-left: 248px; padding-top: 56px; padding-bottom: 52px; }
body.has-shell .topbar, body.has-shell .footbar { left: 248px; }
body.has-shell nav { display: none !important; }
body.has-shell .topbar nav { display: flex !important; }
@media (max-width: 900px) {
  body.has-shell { margin-left: 0; padding-top: 56px; }
  body.has-shell .topbar, body.has-shell .footbar { left: 0; }
  .topbar nav a { font-size: 12px; padding: 6px; }
  .footbar .thanks, .footbar .sep { display: none; }
  .shell { transform: translateX(-105%); }
  body.shell-open .shell { transform: none; }
}
@media print {
  .shell, .side-hide, .topbar, .footbar, .sortcart-panel { display: none !important; }
  body.has-shell { margin: 0 !important; padding: 0 !important; }
}
