@charset "UTF-8";

.shop-shell-page {
  width: 100%;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.shop-shell-layout {
  width: 100%;
  height: 100vh;
}

.shop-shell-main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  background: #fff;
  overflow: hidden;
}

.shop-frame-stack {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.shop-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease;
  will-change: opacity;
}

.shop-frame.is-visible {
  visibility: visible;
}

.shop-frame.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.shop-shell-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 253, 0.98));
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease;
}

.shop-shell-main.is-loading .shop-shell-loader {
  opacity: 1;
  visibility: visible;
}

.shop-shell-loader-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 280px;
  padding: 24px 28px;
  border: 1px solid #dde5ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(37, 47, 63, 0.12);
  text-align: center;
}

.shop-shell-loader-card img {
  width: 64px;
  height: auto;
}

.shop-shell-loader-card strong {
  font-family: "Youth", "Jeju Gothic", "Malgun Gothic", sans-serif;
  font-size: 18px;
  color: #1c2430;
}

.shop-shell-loader-card span {
  font-size: 14px;
  color: #6b7684;
}

@font-face {
  font-family: "Youth";
  src: url("../fonts/Youth.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jeju Gothic";
  src: url("../fonts/JejuGothic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nanum Gothic";
  src: url("../fonts/NanumGothic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #222;
  font-family: "Jeju Gothic", "Malgun Gothic", sans-serif;
  background: #fff;
}

input,
select,
textarea {
  font-family: "Jeju Gothic", "Malgun Gothic", sans-serif;
}

button,
input[type="button"],
input[type="submit"],
.order-button {
  font-family: "Youth", "Jeju Gothic", "Malgun Gothic", sans-serif;
}

.shop-sidebar,
.shop-sidebar a,
h1,
h2,
h3,
.detail-title,
.detail-store-name,
.detail-order-no,
.menu-title,
.list-menu,
.order-state {
  font-family: "Youth", "Jeju Gothic", "Malgun Gothic", sans-serif;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef2f6;
}

.login-shell {
  width: min(100%, 420px);
  max-width: 420px;
}

.login-panel {
  padding: 34px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(35, 47, 62, 0.12);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.login-brand img {
  width: 72px;
  height: auto;
}

.login-panel h1 {
  margin: 0;
  font-size: 24px;
  text-align: left;
}

.login-panel label {
  display: block;
  margin: 14px 0 7px;
  font-size: 14px;
  color: #175cd3;
}

.login-panel input[type="text"],
.login-panel input[type="password"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #c5ced8;
  border-radius: 6px;
  font-size: 15px;
}

.login-panel input[type="password"] {
  font-family: "Nanum Gothic", "NaverGothic", "Jeju Gothic", "Malgun Gothic", sans-serif;
}

.password-field {
  position: relative;
}

.password-field input[type="password"],
.password-field input[type="text"] {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #78879a;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle:hover {
  color: #405266;
}

.password-toggle:focus-visible {
  outline: 2px solid #175cd3;
  outline-offset: 2px;
  border-radius: 6px;
}

.password-field input::-ms-reveal,
.password-field input::-ms-clear {
  display: none;
}

.login-checks {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 22px;
  color: #4d5966;
  font-size: 14px;
}

.login-checks label {
  margin: 0;
  color: inherit;
}

.login-checks input[type="checkbox"] {
  position: relative;
  top: 2px;
}

.login-message {
  min-height: 20px;
  color: #c4320a;
  text-align: center;
}

.login-panel .primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.primary-button,
.secondary-button,
.order-button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 400;
}

.primary-button,
.secondary-button {
  display: block;
  width: 100%;
  height: 44px;
  line-height: 44px;
  text-align: center;
  text-decoration: none;
}

.primary-button {
  color: #fff;
  background: #c72f66;
}

.secondary-button {
  margin-top: 10px;
  color: #175cd3;
  background: #edf4fb;
}

.shop-page {
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

.shop-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.shop-layout > main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.shop-sidebar {
  display: flex;
  flex-direction: column;
  width: 192px;
  flex: 0 0 192px;
  height: 100vh;
  padding: 8px;
  border-right: 1px solid #f2f2f2;
  background: #fff;
  overflow: hidden;
}

.sidebar-toggle {
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  place-content: center;
  width: 38px;
  height: 34px;
  margin: 0 0 8px;
  border: 1px solid #d6dce7;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #444;
}

.sidebar-menu-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.shop-sidebar nav {
  display: grid;
  gap: 0;
  min-width: 0;
}

.shop-sidebar a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 0 4px;
  border-radius: 5px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
}

.shop-sidebar a[data-menu-key="home"] {
  justify-content: space-between;
  gap: 6px;
}

.shop-home-menu-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.shop-home-app-ver {
  flex: 0 0 auto;
  margin-left: auto;
  color: #888;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.shop-sidebar.collapsed .shop-home-app-ver {
  display: none !important;
}

.menu-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}

.shop-sidebar a:hover {
  color: #175cd3;
  background: #f6f9ff;
}

.shop-sidebar a.active {
  color: #c72f66;
  font-weight: 400;
}

.menu-separator {
  display: block;
  height: 1px;
  margin: 7px 0;
  overflow: hidden;
  border-top: 1px solid #f2f2f2;
}

.shop-sidebar.collapsed {
  width: 72px;
  flex-basis: 72px;
  padding: 8px 5px;
}

.shop-sidebar.collapsed .sidebar-toggle {
  margin: 0 auto 8px;
}

.shop-sidebar.collapsed .sidebar-menu-scroll {
  scrollbar-gutter: stable both-edges;
}

.shop-sidebar.collapsed nav {
  grid-template-columns: 1fr;
  width: 100%;
}

.shop-sidebar.collapsed a {
  justify-content: center;
  gap: 0;
  width: 100%;
  min-height: 32px;
  padding: 0;
  font-size: 0;
}

.shop-sidebar.collapsed .menu-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.shop-sidebar.collapsed .menu-separator {
  margin: 8px 6px;
}

body.shop-shell-embedded .shop-sidebar {
  display: none !important;
}

body.shop-shell-embedded .shop-layout {
  height: 100vh;
}

body.shop-shell-embedded .shop-layout > main {
  min-width: 0;
}

.orders-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  padding: 10px 18px 18px;
  background: #fff;
  overflow: hidden;
}

.orders-toolbar {
  display: grid;
  grid-template-rows: 36px 62px;
  gap: 6px;
  flex: 0 0 auto;
  width: 100%;
  margin: 0 0 10px;
  align-items: center;
}

.orders-toolbar-head {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.orders-toolbar h2 {
  margin: 0;
  color: #b54708;
  font-size: 21px;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0;
  white-space: nowrap;
}

.orders-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.orders-cash-balance {
  color: #333;
  font-family: "Youth", "Nanum Gothic", sans-serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0;
}

.orders-surcharge-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: #175cd3;
  font-family: "Youth", "Jeju Gothic", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.orders-surcharge-badge[hidden] {
  display: none !important;
}

.orders-toolbar-tools {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  align-items: center;
}

.filter-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px;
  align-items: start;
  overflow: visible;
}

.filter-group {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
  align-items: start;
}

.filter-type-group {
  justify-content: start;
  grid-auto-columns: 90px;
}

.filter-status-group {
  justify-content: end;
  grid-template-columns: repeat(8, minmax(48px, 60px));
  grid-auto-flow: initial;
}

.filter-item {
  min-width: 0;
  display: grid;
  grid-template-rows: 30px 28px;
  gap: 3px;
}

.filter-button {
  min-width: 0;
  width: 100%;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 4px;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #444;
  background: #f6f6f6;
  cursor: pointer;
  font-family: "Jeju Gothic", "Malgun Gothic", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.filter-button img {
  display: block;
  width: 14px;
  height: 14px;
  filter: brightness(0) saturate(100%) invert(27%) sepia(5%) saturate(761%) hue-rotate(177deg) brightness(93%) contrast(88%);
  object-fit: contain;
}

.filter-count {
  width: 100%;
  height: 28px;
  min-width: 0;
  border: 1px solid #dbe3ef;
  border-radius: 5px;
  padding: 0 3px;
  color: #223aa2;
  background: #f8fbff;
  font-family: "Jeju Gothic", "Malgun Gothic", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  pointer-events: none;
}

.call-reception-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 61px;
  gap: 5px;
  padding: 0 5px;
  border: 1px solid #b54708;
  border-radius: 6px;
  color: #fff;
  background: #b54708;
  cursor: pointer;
  font-family: "Youth", "Malgun Gothic", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.call-reception-button img {
  display: block;
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.call-reception-button:hover,
.call-reception-button:focus-visible {
  border-color: #93370d;
  background: #93370d;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 100, 26, 0.22);
}

.filter-button.active {
  color: #fff;
  border-color: #333;
  background: #333;
}

.filter-button.active img {
  filter: brightness(0) invert(1);
}

.filter-button.active:hover {
  color: #fff;
  border-color: #0f766e;
  background: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.22);
}

.filter-button.active:hover img {
  filter: brightness(0) invert(1);
}

.filter-button:hover:not(.active) {
  color: #9a4d00;
  border-color: #f59e0b;
  background: #fff3d6;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.20);
}

.filter-button:hover:not(.active) img {
  filter: brightness(0) saturate(100%) invert(35%) sepia(72%) saturate(1177%) hue-rotate(10deg) brightness(90%) contrast(93%);
}

.search-row {
  display: flex;
  justify-self: start;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.order-search-select,
.order-search-input,
.search-button {
  min-height: 32px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
}

.order-search-select {
  min-width: 112px;
  padding: 0 24px 0 8px;
  color: #333;
  background: #fff;
  cursor: pointer;
}

.order-search-input {
  width: 150px;
  min-width: 120px;
  padding: 0 10px;
  color: #222;
  background: #fff;
}

.order-search-input:focus,
.order-search-select:focus {
  border-color: #175cd3;
  outline: 2px solid rgba(26, 124, 255, 0.18);
  outline-offset: 0;
}

.search-button {
  padding: 0 14px;
  color: #fff;
  border-color: #175cd3;
  background: #175cd3;
  cursor: pointer;
}

.search-button:hover {
  background: #0f68dd;
}

.call-board {
  display: flex;
  gap: 8px;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: auto;
  margin: 0;
  align-items: stretch;
}

.call-list-pane {
  flex: 0 0 232px;
  width: 232px;
  min-width: 232px;
  max-width: 232px;
  height: 100%;
  overflow-y: auto;
  padding: 0;
  background: #fff;
}

.call-detail-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.call-detail-pane:empty {
  border-color: #e5e5e5;
  background: #fbfbfb;
}

.call-detail-pane.order-alert-r {
  border-color: #ff8040;
}

.orders-list,
.call-list {
  display: grid;
  gap: 10px;
}
.order-list-item .list-dispatch-delay {grid-column:1/-1;display:block;padding:5px 8px;color:#7b421b;background:#fff1de;border-top:1px solid #e2c9a9;text-align:left;font:normal 16px "Jeju Gothic",sans-serif;}
html[data-shop-theme="night"] .order-list-item .list-dispatch-delay {color:#f1dcc2;background:#3b342c;border-color:#655848;}

.empty-orders {
  display: grid;
  place-items: center;
  min-height: 200px;
  border: 1px solid #b54708;
  border-radius: 7px;
  color: #c72f66;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.order-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 6px 8px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 8px 9px;
  border: 1px solid #c5c5c5;
  border-radius: 7px;
  color: #333;
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.shop-page:not(.mobile-page) .order-list-item {
  grid-template-rows: auto auto;
  gap: 5px;
  min-height: 102px;
  margin: 0;
}

.order-list-item:focus-visible {
  outline: 2px solid rgba(26, 124, 255, 0.38);
  outline-offset: -2px;
}

.order-list-item.order-alert-r {
  border-color: #ff8040;
  background: #ffe6d9;
}

.order-list-item.active,
.order-list-item:hover {
  border-color: #175cd3;
  box-shadow: 0 0 0 2px rgba(26, 124, 255, 0.12);
}

.order-list-item.active {
  border-width: 3px;
  border-color: #005bd8;
  background: #eaf3ff;
  box-shadow: inset 0 0 0 1px rgba(0, 91, 216, 0.2), 0 0 0 2px rgba(0, 91, 216, 0.16);
}

.order-list-item.active .list-state {
  border-color: #005bd8;
  color: #005bd8;
  background: #fff;
}

.list-origin-row {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.list-origin-row:focus-visible,
.list-order-body:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(26, 124, 255, 0.42);
  outline-offset: 1px;
}

.list-origin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 23px;
  padding: 0 5px;
  border: 1px solid #8ca9c7;
  border-radius: 4px;
  color: #335d84;
  background: #f4f8fc;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.list-store {
  min-width: 0;
  overflow: hidden;
  color: #222;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-order-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 55px;
  height: 27px;
  padding: 0 6px;
  border: 1px solid #147544;
  border-radius: 4px;
  color: #fff;
  background: #1d8752;
  font-family: "Youth", "Nanum Gothic", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.list-order-edit[hidden] {
  display: none;
}

.list-origin-row:hover .list-order-edit:not(.is-disabled) {
  border-color: #0f6338;
  background: #147544;
}

.list-order-edit.is-disabled {
  border-color: #c9ced3;
  color: #858b91;
  background: #eef0f2;
}

.list-order-edit.is-cancel:not(.is-disabled) {
  border-color: #a73a38;
  background: #b64643;
}

.list-origin-row:hover .list-order-edit.is-cancel:not(.is-disabled) {
  border-color: #8e2f2d;
  background: #a23b38;
}

.list-order-body {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 6px 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.list-head {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.list-time {
  min-width: 0;
  color: #555;
  font-size: 14px;
  font-weight: 700;
}

.list-state,
.order-state {
  display: inline-block;
  padding: 1px 4px 0;
  border: 1px solid #ff8040;
  border-radius: 5px;
  color: #ff8040;
  background: rgba(255, 128, 64, 0.2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.list-menu {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  color: #222;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-meta {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  max-width: 76px;
  color: #555;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.list-price {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  color: #c72f66;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.order-detail-card {
  min-height: 100%;
  padding: 0;
  background: transparent;
}

.detail-scroll-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
}

.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 100px 166px;
  gap: 7px;
  align-items: center;
  justify-items: start;
  margin-bottom: 12px;
}

.detail-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.detail-title strong,
.payment-label,
.detail-store-name,
.detail-order-no {
  display: inline-block;
  box-sizing: border-box;
  padding: 4px 9px 3px;
  border-radius: 5px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.order-state {
  grid-column: 2;
  box-sizing: border-box;
  width: 82px;
  padding: 4px 9px 3px;
  font-size: 17px;
  text-align: center;
}

.detail-head > .order-state {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
}

.order-copy-button {
  grid-column: 3;
  justify-self: stretch;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #16835f;
  border-radius: 5px;
  color: #fff;
  background: #16835f;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.order-copy-button:hover,
.order-copy-button:focus-visible {
  border-color: #0f684b;
  background: #0f684b;
  outline: none;
}

.order-copy-button:active {
  transform: translateY(1px);
}

.detail-title strong,
.detail-store-name {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  white-space: nowrap;
  border: 1px solid #ff8040;
  color: #ff8040;
  background: rgba(255, 128, 64, 0.2);
}

.detail-title strong {
  width: 240px;
}

.detail-store-name {
  width: 100%;
}

.detail-order-no {
  grid-column: 4;
  justify-self: end;
  width: 166px;
  padding-right: 6px;
  padding-left: 6px;
  font-size: 15px;
  text-align: center;
  border: 1px solid #cbd5e1;
  color: #475569;
  background: #f8fafc;
  white-space: nowrap;
}

.payment-label {
  border: 1px solid #a7cea6;
  color: #087a55;
  background: #f2ffee;
}

.order-actions {
  display: grid;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 10px;
  border: 1px solid #c72f66;
  border-radius: 7px;
  background: #fff;
}

.order-actions:empty {
  display: none;
}

.order-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.order-actions-row > * {
  width: 100%;
  min-width: 0;
}

.approve-row {
  margin: 6px 0;
}

.cancel-row select {
  width: 100%;
  text-align: center;
  text-align-last: center;
}

.cancel-row select option {
  font-size: 19px;
}

.order-actions select,
.time-field input {
  height: 44px;
  border: 1px solid #c5c5c5;
  border-radius: 5px;
  color: #555;
  font-size: 18px;
}

.time-field {
  display: grid;
  grid-template-columns: minmax(62px, 1fr) 46px 50px auto 46px;
  gap: 4px;
  align-items: center;
  min-width: 0;
  width: 100%;
  color: #555;
  font-size: 18px;
  font-weight: 700;
}

.time-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  top: 2px;
  white-space: nowrap;
}

.time-field input {
  justify-self: center;
  width: 50px;
  padding: 0 6px;
  color: red;
  -moz-appearance: textfield;
  appearance: textfield;
  text-align: center;
  text-align-last: center;
}

.time-field input::-webkit-outer-spin-button,
.time-field input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.time-unit {
  font-size: 17px;
  position: relative;
  top: 2px;
  white-space: nowrap;
}

.time-step {
  width: 46px;
  height: 44px;
  padding: 2px 0 0;
  border: 1px solid #175cd3;
  border-radius: 5px;
  color: #175cd3;
  background: #eef6ff;
  font-size: 22px;
  line-height: 1;
}

.order-button {
  min-height: 48px;
  padding: 0 16px;
  color: #fff;
  background: #175cd3;
  font-size: 18px;
}

.order-button.danger {
  background: #c72f66;
}

.detail-sections {
  display: grid;
  gap: 16px;
}

.detail-section {
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.detail-section h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 14px 14px 12px;
  color: #222;
  font-size: 22px;
  font-weight: 700;
  background: #f7f7f7;
}

.detail-title-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.print-slip-button,
.rider-call-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #175cd3;
  border-radius: 6px;
  color: #fff;
  background: #175cd3;
  font-family: "Youth", sans-serif;
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 100ms ease, filter 100ms ease, background-color 160ms ease, border-color 160ms ease;
}

.print-slip-button:active:not(:disabled),
.rider-call-button:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
  filter: brightness(0.88);
}

.print-slip-button.is-sending {
  border-color: #667085;
  background: #667085;
  cursor: wait;
}

.print-slip-button.is-success {
  border-color: #16803c;
  background: #16803c;
}

.print-slip-button.is-failed {
  border-color: #c93655;
  background: #c93655;
}

.rider-call-button {
  border-color: #b54708;
  background: #b54708;
}

.detail-section-body {
  display: grid;
  gap: 0;
  align-content: start;
  max-height: none;
  overflow: visible;
  padding: 12px 14px 14px;
}

.detail-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  min-height: 42px;
  align-items: start;
  padding: 8px 0;
}

.detail-row + .detail-row {
  border-top: 1px dotted #cbd5e1;
}

.detail-label {
  color: #555;
  font-size: 20px;
  font-weight: 700;
}

.detail-value {
  color: #444;
  font-size: 20px;
  line-height: 1.45;
  word-break: keep-all;
}

.detail-delivery-photo {
  padding: 10px 0 2px;
}

.detail-delivery-photo a {
  display: grid;
  gap: 8px;
  color: #1a67b7;
  text-align: center;
  text-decoration: none;
}

.detail-delivery-photo img {
  display: block;
  width: 100%;
  max-height: 360px;
  border: 1px solid #d9e2ec;
  border-radius: 7px;
  object-fit: contain;
  background: #eef3f8;
}

.detail-delivery-photo span {
  font-size: 17px;
}

.delivery-fee-control {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.delivery-fee-amount {
  flex: 0 0 auto;
  color: #222;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.delivery-fee-add-buttons {
  min-width: 0;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
}

.delivery-fee-add-button {
  flex: 0 0 auto;
  min-width: 48px;
  height: 34px;
  padding: 0 7px;
  border: 1px solid #b54708;
  border-radius: 5px;
  color: #fff;
  background: #b54708;
  font-size: 15px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
}

.delivery-fee-add-button:hover,
.delivery-fee-add-button:focus-visible {
  border-color: #93370d;
  background: #93370d;
}

.delivery-fee-add-button:disabled {
  border-color: #bbb;
  color: #667085;
  background: #ddd;
  cursor: default;
}

.detail-empty {
  margin: 12px 0;
  color: #667085;
  font-size: 18px;
  text-align: center;
}

.history-list {
  display: grid;
  gap: 0;
  min-width: 0;
}

.history-row {
  display: grid;
  grid-template-columns: 86px 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #444;
  font-size: 18px;
  line-height: 1.35;
}

.history-row + .history-row {
  border-top: 1px dotted #cbd5e1;
}

.history-time,
.history-status {
  white-space: nowrap;
}

.history-status {
  text-align: center;
}

.history-detail {
  min-width: 0;
  word-break: keep-all;
}

.detail-message {
  display: grid;
  place-items: center;
  height: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 7px;
  color: #c72f66;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.detail-section:nth-child(1) {
  border-color: #ff91b7;
}

.detail-section:nth-child(1) h3 {
  background: #ffeef2;
}

.detail-section:nth-child(2) {
  border-color: #cccc48;
}

.detail-section:nth-child(2) h3 {
  background: #f7f7e3;
}

.detail-section:nth-child(2) .detail-section-body {
  overflow: visible;
}

.detail-section:nth-child(3) {
  border-color: #6cabff;
}

.detail-section:nth-child(3) h3 {
  background: #e8f0fd;
}

.detail-section:nth-child(4) {
  border-color: #c5c5c5;
}

.detail-section:nth-child(4) h3 {
  background: #f2f2f2;
}

.detail-scroll-spacer {
  height: 0;
  pointer-events: none;
}

.menu-grid {
  align-self: start;
  display: grid;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8d37a;
  border-radius: 6px;
  background: #fff;
}

.menu-grid-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 44px 90px;
  min-width: 0;
}

.menu-grid-row + .menu-grid-row {
  border-top: 1px solid #ece8ae;
}

.menu-grid-option-row {
  border-top: 0 !important;
}

.menu-grid-head {
  color: #555;
  background: #f7f7e3;
  font-size: 17px;
  font-weight: 700;
}

.menu-grid-head .menu-grid-cell:nth-child(n + 2) {
  text-align: center;
}

.menu-grid-cell {
  min-width: 0;
  padding: 8px 6px;
  border-left: 1px solid #ece8ae;
  color: #333;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.menu-grid-cell:first-child {
  border-left: 0;
}

.menu-grid-name {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.menu-title {
  min-width: 0;
  color: #222;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.menu-badge {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: #c72f66;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.menu-grid-option-row .menu-title {
  padding-left: 10px;
  color: #666;
  font-size: 16px;
  font-weight: 600;
}

.menu-grid-money,
.menu-grid-qty {
  color: #175cd3;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.menu-grid-qty {
  color: #333;
  text-align: center;
}

.menu-grid-total {
  background: #f7f7e3;
}

.menu-grid-total-label,
.menu-grid-total-qty,
.menu-grid-total-money {
  color: #222;
  font-size: 19px;
  font-weight: 700;
}

.menu-grid-total-money {
  color: #c72f66;
}

.detail-nav {
  flex: 0 0 auto;
  display: flex;
  overflow: hidden;
  margin: 0;
  border: 1px solid #d6dce7;
  border-radius: 6px;
  background: #4b526a;
}

.detail-nav button,
.detail-nav span {
  flex: 1;
  min-height: 60px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: transparent;
  font-size: 21px;
  font-weight: 400;
  text-align: center;
}

.detail-nav button {
  cursor: pointer;
}

.detail-nav button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.detail-nav .detail-nav-section.active {
  color: #fff;
  background: #636b83;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.detail-nav .detail-nav-section.active:hover {
  background: #636b83;
}

.detail-nav button:nth-last-child(-n+2) {
  flex: 0 0 76px;
}

.detail-nav .detail-nav-arrow {
  flex: 0 0 76px;
  font-size: 24px;
}

.detail-nav .detail-nav-arrow:disabled {
  opacity: 0.42;
  cursor: default;
}

.detail-nav .detail-nav-arrow:disabled:hover {
  background: transparent;
}

.detail-nav span {
  display: grid;
  place-items: center;
  max-width: 76px;
}

.call-detail-pane,
.call-detail-pane strong,
.call-detail-pane b,
.call-detail-pane h3,
.call-detail-pane button,
.call-detail-pane .detail-label,
.call-detail-pane .detail-title strong,
.call-detail-pane .detail-store-name,
.call-detail-pane .detail-order-no,
.call-detail-pane .payment-label,
.call-detail-pane .order-state,
.call-detail-pane .history-time,
.call-detail-pane .history-status,
.call-detail-pane .menu-title,
.call-detail-pane .menu-badge,
.call-detail-pane .menu-grid-head,
.call-detail-pane .menu-grid-money,
.call-detail-pane .menu-grid-qty,
.call-detail-pane .menu-grid-total-label,
.call-detail-pane .menu-grid-total-qty,
.call-detail-pane .menu-grid-total-money {
  font-weight: 400;
}

.call-detail-pane .detail-section-title,
.call-detail-pane .detail-section-title span {
  font-size: 17px;
  font-weight: 700;
}

h1,
h2,
h3,
.list-menu,
.order-state,
.detail-title {
  font-weight: 700;
}

.shop-history-page .shop-layout {
  min-width: 0;
}

.shop-history-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: grid;
  padding: 12px;
  background: #f3f6fa;
}

.shop-history-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr) 34px;
  gap: 8px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.shop-history-page[data-shop-history="balance"] .shop-history-panel {
  grid-template-rows: 78px minmax(0, 1fr) 34px 48px;
}

.shop-history-head {
  min-width: 0;
  display: grid;
  grid-template-rows: 30px 28px;
  gap: 6px;
  align-items: center;
  border-bottom: 0;
  padding: 6px 8px;
  background: transparent;
}

.shop-history-title-row {
  min-width: 0;
  min-height: 30px;
  display: grid;
  grid-template-columns: 78px auto minmax(122px, 1fr);
  gap: 4px;
  align-items: center;
}

.shop-history-title-row h2 {
  min-width: 0;
  margin: 0;
  color: #263548;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.shop-history-filter-row input,
.shop-history-filter-row select {
  width: 100%;
  min-width: 0;
  height: 28px;
  border: 1px solid #d5deea;
  border-radius: 5px;
  padding: 0 6px;
  outline: none;
  background: #fff;
  color: #253143;
  font-family: "Jeju Gothic", "Malgun Gothic", sans-serif;
  font-size: 12px;
  font-weight: 400;
}

.shop-history-filter-row input:focus,
.shop-history-filter-row select:focus {
  border-color: #3149b7;
  box-shadow: 0 0 0 3px rgba(49, 73, 183, .10);
}

.shop-history-filter-row button {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #3149b7;
  border-radius: 5px;
  padding: 0;
  color: #fff;
  background: #3149b7;
  font-family: "Youth", "Jeju Gothic", "Malgun Gothic", sans-serif;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.shop-history-filter-row button:hover {
  border-color: #223aa2;
  background: #223aa2;
  cursor: pointer;
}

.shop-history-filter-row .shop-history-excel-button {
  border-color: #36785b;
  background: #36785b;
}

.shop-history-filter-row .shop-history-excel-button:hover {
  border-color: #286448;
  background: #286448;
}

.shop-history-filter-row .shop-history-email-button {
  border-color: #526b8f;
  background: #526b8f;
}

.shop-history-filter-row .shop-history-email-button:hover {
  border-color: #405a7d;
  background: #405a7d;
}

.shop-history-filter-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 50px 64px 104px 10px 104px 68px minmax(68px, 1fr) 78px 74px 78px;
  gap: 4px;
  align-items: center;
}

.shop-history-year,
.shop-history-md-field select {
  text-align: center;
}

.shop-history-md-field {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.shop-history-filter-row em {
  color: #7d8798;
  font-style: normal;
  text-align: center;
}

.shop-history-quick {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(12, 48px);
  gap: 3px;
  align-items: center;
}

.shop-history-quick button {
  width: 100%;
  height: 28px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  padding: 0;
  color: #3a4960;
  background: #e7edf6;
  font-family: "Youth", "Jeju Gothic", "Malgun Gothic", sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.shop-history-quick button:hover {
  color: #fff;
  background: #65758d;
  cursor: pointer;
}

.shop-history-head-total,
.shop-settle-head-total {
  min-width: 0;
  justify-self: end;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  color: #4d5a6e;
  font-family: "Youth", "Jeju Gothic", "Malgun Gothic", sans-serif;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.shop-history-head-total strong,
.shop-settle-head-total strong {
  color: #174f91;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.shop-history-content {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: auto;
  background: transparent;
}

.shop-history-content.loading::after {
  content: "조회 중";
  position: sticky;
  left: 50%;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 58px;
  margin-left: -29px;
  border: 1px solid #d8e1ec;
  border-radius: 5px;
  color: #4e5b72;
  background: rgba(255, 255, 255, .94);
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(31, 44, 71, .10);
}

.shop-history-empty {
  height: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #7a8598;
  font-size: 13px;
}

.shop-history-grid {
  min-width: 877px;
  display: grid;
  align-content: start;
  padding: 5px 6px;
}

.shop-history-grid.balance {
  min-width: 900px;
}

.shop-history-card-list {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 6px 7px;
}

.shop-history-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 7px;
  align-items: stretch;
  border: 1px solid #dfe6ef;
  border-radius: 6px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 44, 71, .05);
  cursor: pointer;
}

.shop-history-card:hover {
  border-color: #b9c8da;
}

.shop-history-card:focus-visible {
  outline: 2px solid #3149b7;
  outline-offset: 1px;
}

.shop-history-card:nth-child(even) {
  background: #fbfdff;
}

.shop-history-card-seq {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #edf1f6;
  color: #344258;
  font-family: "Youth", "Jeju Gothic", sans-serif;
  font-size: 14px;
}

.shop-history-card-body {
  min-width: 0;
  display: grid;
  grid-template-rows: 30px 50px;
  gap: 4px;
}

.shop-history-card.expanded .shop-history-card-body {
  grid-template-rows: 30px 50px auto;
}

.shop-history-card.ledger .shop-history-card-body {
  grid-template-rows: 30px;
}

body:not(.mobile-page) .shop-history-card-list.balance .shop-history-card-body {
  grid-template-rows: 30px 46px 50px;
}

body:not(.mobile-page) .shop-history-card-list.balance .shop-history-card.expanded .shop-history-card-body {
  grid-template-rows: 30px 46px 50px auto;
}

body:not(.mobile-page) .shop-history-card-list.balance .shop-history-card.ledger .shop-history-card-body {
  grid-template-rows: 30px 46px;
}

body:not(.mobile-page) .shop-history-card-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 8px;
  align-items: center;
  border: 1px solid #e2e9f3;
  border-radius: 5px;
  padding: 4px 10px;
  background: #f8fbff;
}

body:not(.mobile-page) .shop-history-card-summary > span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

body:not(.mobile-page) .shop-history-card-summary em {
  color: #697589;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

body:not(.mobile-page) .shop-history-card-summary b {
  min-width: 0;
  overflow: hidden;
  color: #263548;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.mobile-page) .shop-history-card-summary .amount-increase b { color: #1d5fd1; }
body:not(.mobile-page) .shop-history-card-summary .amount-decrease b { color: #b42318; }

.shop-history-card-top {
  min-width: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 150px 112px 118px;
  gap: 6px;
  align-items: center;
  border: 1px solid #e2e9f3;
  border-radius: 5px;
  padding: 0 5px;
  background: #f8fbff;
}

.shop-history-card-top span {
  min-width: 0;
  overflow: hidden;
  color: #263548;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-history-card-top .time {
  text-align: center;
}

.shop-history-card-top .store {
  text-align: left;
}

.shop-history-card-top .order-no {
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.shop-history-card-top .customer-phone {
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.shop-history-card-top .cash-target {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.shop-history-card-top .balance-flow {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 6px;
  color: #000;
  font-weight: 700;
}

.shop-history-card-top .balance-flow[hidden] {
  display: none;
}

.shop-history-card-top .balance-flow b {
  min-width: 0;
  overflow: hidden;
  color: #000;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
}

.shop-history-card-top .balance-flow i {
  flex: 0 0 auto;
  color: #7a8697;
  font-size: 15px;
}

.shop-history-card-top .balance-flow.increase,
.shop-history-card-top .balance-flow.decrease,
.shop-history-card-top .balance-flow.neutral,
.shop-history-card-top .balance-flow.increase i,
.shop-history-card-top .balance-flow.decrease i,
.shop-history-card-top .balance-flow.neutral i {
  color: #000;
}

.shop-history-card-top .method {
  color: #1f6b45;
  font-weight: 700;
  text-align: center;
}

.shop-history-card-top .balance-tags {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: stretch;
  gap: 4px;
  overflow: visible;
}

.shop-history-card-top .balance-tags[hidden] {
  display: none;
}

.shop-history-card-top .balance-tags b {
  min-width: 0;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.shop-history-card-top .balance-tags b.income {
  border: 1px solid #8fb6ed;
  color: #1d5fd1;
  background: #eef5ff;
}

.shop-history-card-top .balance-tags b.expense {
  border: 1px solid #efafbf;
  color: #b4234d;
  background: #fff1f4;
}

.shop-history-card-top .balance-action {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border-left: 1px solid #dfe7f1;
  padding-left: 5px;
  color: #344258;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
}

.shop-history-card.order .shop-history-card-top {
  grid-template-columns: 82px 50px minmax(64px, 1fr) 118px 104px 56px 82px 82px;
  background: #f8fbff;
}

.shop-history-card.order .status-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-history-card.order .shop-history-order-status {
  color: #fff;
}

.shop-history-card.order .payway {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #147247;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-history-card.order .delivery-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.shop-history-card.order .delivery-type i {
  flex: 0 0 auto;
  font-size: 13px;
}

.shop-history-card.order .delivery-type b {
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-history-card.order .order-total {
  color: #000;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
}

.shop-history-card-bottom {
  min-width: 0;
  display: grid;
  grid-template-columns: .78fr .78fr .78fr .82fr .86fr 1.08fr 1.08fr 1.18fr 1.18fr;
  gap: 3px;
  border: 1px solid #e5ddcc;
  border-radius: 5px;
  padding: 4px;
  background: #fffdf8;
}

.shop-history-card-field {
  min-width: 0;
  display: grid;
  grid-template-rows: 20px 18px;
  align-items: center;
  border-right: 1px solid #edf1f6;
  padding: 0 2px;
}

.shop-history-card-field:last-child {
  border-right: 0;
}

.shop-history-card-field em {
  min-width: 0;
  overflow: hidden;
  color: #657289;
  font-size: 10px;
  font-style: normal;
  line-height: 1.12;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
}

.shop-history-card-field b {
  min-width: 0;
  overflow: hidden;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-history-card-field.amount-decrease b {
  font-weight: 800;
}

.shop-history-card-field.amount-increase b {
  font-weight: 800;
}

.shop-history-card-field.amount-point b {
  font-weight: 800;
}

.shop-history-card-field.amount-total b {
  font-weight: 800;
}

.shop-history-card-field.amount-pay b {
  font-weight: 800;
}

.shop-history-card.order .shop-history-card-bottom {
  grid-template-columns: .90fr .82fr .82fr 1.08fr .82fr .90fr .90fr .78fr;
}

.shop-history-card-list.balance .shop-history-card-bottom {
  grid-template-columns: 60px 34px 50px 48px 64px 54px 52px 52px 58px 50px 96px minmax(68px, 1fr);
}

.shop-history-card-list.balance .shop-history-card.manual-charge .shop-history-card-bottom {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.shop-history-card.manual-charge .shop-history-card-top {
  background: #f5f9ff;
}

.shop-history-card.manual-charge .shop-history-card-top .store {
  color: #1d4f91;
  font-weight: 800;
}

.shop-history-card.manual-charge .shop-history-card-field.amount-increase b {
  color: #1d5fd1;
}

.shop-history-card-list.balance .shop-history-card-bottom .shop-history-card-field b {
  font-weight: 400;
}

.shop-history-card.ledger {
  cursor: default;
}

.shop-history-card.ledger:hover {
  border-color: #dfe6ef;
}

.shop-history-card-list.orders .shop-history-card-bottom .shop-history-card-field b {
  font-weight: 400;
}

.shop-history-card-list.balance .shop-history-card-field.customer-phone b {
  font-size: 12px;
}

.shop-history-card-detail {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  border: 1px solid #ead7af;
  border-radius: 6px;
  padding: 7px 8px;
  background: #fffaf1;
}

.shop-history-card-detail > div {
  min-width: 0;
  min-height: 30px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  border: 1px solid #e5ddcc;
  border-radius: 5px;
  padding: 0 8px 0 6px;
  background: #fff;
}

.shop-history-card-detail > div.menu {
  grid-column: 1 / -1;
  border-color: #d5e0f3;
  background: #f8fbff;
}

.shop-history-card-detail > div.address {
  border-color: #d8eadf;
  background: #f8fff9;
}

.shop-history-card-detail > div.memo {
  border-color: #ead9bd;
  background: #fffaf1;
}

.shop-history-card-detail > div.rider {
  border-color: #d5e6f3;
  background: #f7fbff;
}

.shop-history-card-detail > div.delivery-photo {
  grid-column: 1 / -1;
  align-items: start;
  border-color: #cfe0ef;
  padding-top: 7px;
  padding-bottom: 7px;
  background: #f6fbff;
}

.shop-history-card-detail > div.delivery-photo > i {
  padding-top: 4px;
  color: #2878ca;
}

.shop-history-card-detail > div.delivery-photo > a {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #1a67b7;
  text-align: center;
  text-decoration: none;
}

.shop-history-card-detail > div.delivery-photo img {
  display: block;
  width: 100%;
  max-height: 280px;
  border-radius: 5px;
  object-fit: contain;
  background: #edf3f8;
}

.shop-history-card-detail > div.delivery-photo span {
  font-size: 13px;
}

.shop-history-card-detail > div.payinfo {
  grid-column: 1 / -1;
  min-height: 34px;
  border-color: #d9def1;
  background: #f9faff;
}

.shop-history-card-detail > div.shop-history-balance-stages {
  grid-column: 1 / -1;
  min-height: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border-color: #d6e0ed;
  padding: 5px;
  background: #f5f8fc;
}

.shop-history-card-detail > div.order-delivery-breakdown {
  grid-column: 1 / -1;
  min-height: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, .8fr)) minmax(0, 1.35fr);
  gap: 0;
  border-color: #d6e0ed;
  padding: 4px 5px;
  background: #f5f8fc;
}

.order-delivery-breakdown > span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-right: 1px solid #dfe6ef;
  padding: 0 5px;
  white-space: nowrap;
}

.order-delivery-breakdown > span:last-child {
  border-right: 0;
}

.order-delivery-breakdown em {
  color: #66758a;
  font-size: 10px;
  font-style: normal;
}

.order-delivery-breakdown b {
  min-width: 0;
  color: #17243a;
  font-size: 12px;
  font-weight: 400;
  text-align: right;
}

.order-delivery-breakdown .customer-cash-arrow {
  color: #718094;
  font-size: 10px;
}

.shop-settle-order-detail > div.shop-history-balance-stages {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-settle-order-detail .shop-history-balance-stages > span {
  grid-template-columns: auto auto auto auto;
  column-gap: 4px;
  padding-right: 4px;
  padding-left: 4px;
}

.shop-settle-order-detail .shop-history-balance-stages em {
  font-size: 9px;
}

.shop-settle-order-detail .shop-history-balance-stages b {
  font-size: 11px;
}

.shop-history-balance-stages .customer-cash-flow {
  border-color: #cddfda;
  background: #f9fffc;
}

.shop-history-balance-stages .customer-cash-arrow {
  color: #718094;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
}

.shop-history-balance-stages > span {
  min-width: 0;
  min-height: 26px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 12px auto minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  border: 1px solid #dde5ef;
  border-radius: 4px;
  padding: 0 6px;
  background: #fff;
}

.shop-history-balance-stages em {
  color: #66758a;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.shop-history-balance-stages b {
  min-width: 0;
  overflow: hidden;
  color: #17243a;
  font-size: 12px;
  font-weight: 400;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-history-balance-stages i {
  color: #8795a8;
  font-size: 10px;
}

.shop-history-card-detail > div.total-line {
  grid-template-columns: 20px minmax(0, 1fr) auto;
}

.shop-history-card-detail > div.total-line em {
  min-width: 64px;
  color: #000;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.shop-history-card-detail i {
  color: #6a778c;
  font-size: 12px;
  text-align: center;
}

.shop-history-card-detail .menu i { color: #3149b7; }
.shop-history-card-detail .address i { color: #147247; }
.shop-history-card-detail .rider i { color: #2563eb; }
.shop-history-card-detail .memo i { color: #b35b18; }
.shop-history-card-detail .payinfo.ok i { color: #4f5fb7; }
.shop-history-card-detail .payinfo.fail i,
.shop-history-card-detail .payinfo.cancel i { color: #b4234d; }

.shop-history-card-detail strong {
  min-width: 0;
  overflow: hidden;
  color: #263548;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-history-card-detail > div.menu,
.shop-history-card-detail > div.address,
.shop-history-card-detail > div.rider,
.shop-history-card-detail > div.memo {
  align-items: start;
  padding-top: 5px;
  padding-bottom: 5px;
}

.shop-history-card-detail > div.menu i,
.shop-history-card-detail > div.address i,
.shop-history-card-detail > div.rider i,
.shop-history-card-detail > div.memo i {
  padding-top: 3px;
}

.shop-history-card-detail > div.menu strong,
.shop-history-card-detail > div.address strong,
.shop-history-card-detail > div.rider strong,
.shop-history-card-detail > div.memo strong {
  display: -webkit-box;
  max-height: 54px;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.shop-history-row {
  min-width: 0;
  min-height: 31px;
  display: grid;
  grid-template-columns: 32px 76px 44px minmax(76px, .78fr) 54px 50px 40px 52px 50px 54px 54px 52px 52px 54px 58px;
  gap: 3px;
  align-items: center;
  border-bottom: 1px solid #edf1f6;
  color: #263548;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.shop-history-row.balance {
  grid-template-columns: 32px 70px minmax(76px, .65fr) 52px 52px 52px 52px 52px 52px 62px 62px minmax(96px, 1fr);
}

.shop-history-row:nth-child(even):not(.head) {
  background: #fbfdff;
}

.shop-history-row.head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 29px;
  color: #48627c;
  background: #f7faff;
  font-family: "Youth", "Jeju Gothic", sans-serif;
  cursor: default;
}

.shop-history-row.expanded {
  border-bottom-color: transparent;
  background: #fff7e8;
  box-shadow: inset 3px 0 0 #f59e0b;
}

.shop-history-row.expanded > div:first-child {
  color: transparent;
  background: transparent;
  box-shadow: none;
}

.shop-history-row > div {
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 3px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-history-row:not(.head) > div:not(.status-cell) {
  transform: translateY(1px);
}

.shop-history-row > div.store,
.shop-history-row.head > div.store {
  justify-content: flex-start;
  text-align: left;
  padding-left: 6px;
}

.shop-history-row > div.memo-cell,
.shop-history-row.head > div.memo-cell {
  justify-content: flex-start;
  text-align: left;
  padding-left: 8px;
}

.shop-history-row > div.money {
  font-family: inherit;
  text-align: center;
}

.shop-history-row > div.total {
  color: #000;
  font-weight: 700;
}

.shop-history-row > div.pay {
  color: #000;
  font-weight: 700;
}

.shop-history-row > div.payway {
  color: #344258;
}

.shop-history-row > div.status-cell {
  padding: 0 2px;
}

.shop-history-order-status {
  width: 42px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .30);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12);
}

.shop-history-order-status.wait { background: #8d6e63; }
.shop-history-order-status.approve { background: #b54708; }
.shop-history-order-status.accept { background: #2f7d4f; }
.shop-history-order-status.assign { background: #2563eb; }
.shop-history-order-status.pickup { background: #7c3aed; }
.shop-history-order-status.done { background: #475569; }
.shop-history-order-status.cancel { background: #b4234d; }
.shop-history-order-status.check { background: #64748b; }

.shop-history-detail-row {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 32px repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid #ead7af;
  padding: 0 8px 8px 0;
  background: #fffaf1;
}

.shop-history-detail-row > div {
  min-width: 0;
  min-height: 30px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  border: 1px solid #e5ddcc;
  border-radius: 5px;
  padding: 0 8px 0 6px;
  background: #fff;
}

.shop-history-detail-row > div.seq {
  position: absolute;
  z-index: 2;
  left: 0;
  top: -31px;
  bottom: 0;
  width: 32px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #b35b18;
  background: #fff;
  box-shadow: inset 3px 0 0 #f59e0b;
}

.shop-history-detail-row > div.seq span {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.shop-history-detail-row > div.menu {
  grid-column: 2 / -1;
  grid-row: 1;
  border-color: #d5e0f3;
  background: #f8fbff;
}

.shop-history-detail-row > div.address {
  grid-column: 2;
  grid-row: 2;
  border-color: #d8eadf;
  background: #f8fff9;
}

.shop-history-detail-row > div.memo {
  grid-column: 3;
  grid-row: 2;
  border-color: #ead9bd;
  background: #fffaf1;
}

.shop-history-detail-row > div.payinfo {
  grid-column: 2 / -1;
  grid-row: 3;
  min-height: 34px;
  border-color: #d9def1;
  background: #f9faff;
}

.shop-history-detail-row > div.total-line {
  grid-template-columns: 20px minmax(0, 1fr) auto;
}

.shop-history-detail-row > div.total-line em {
  min-width: 64px;
  color: #000;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.shop-history-detail-row i {
  color: #6a778c;
  font-size: 12px;
  text-align: center;
}

.shop-history-detail-row .menu i { color: #3149b7; }
.shop-history-detail-row .address i { color: #147247; }
.shop-history-detail-row .memo i { color: #b35b18; }
.shop-history-detail-row .payinfo.ok i { color: #4f5fb7; }
.shop-history-detail-row .payinfo.fail i,
.shop-history-detail-row .payinfo.cancel i { color: #b4234d; }

.shop-history-detail-row strong {
  min-width: 0;
  overflow: hidden;
  color: #263548;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-settle-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  padding: 12px;
  background: #f3f6fb;
}

.shop-settle-panel {
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 34px;
  gap: 8px;
}

.shop-settle-head {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 6px 8px 0;
}

.shop-settle-title-row {
  min-width: 0;
  min-height: 30px;
  display: grid;
  grid-template-columns: 78px auto minmax(122px, 1fr);
  gap: 4px;
  align-items: center;
}

.shop-settle-title-row h2 {
  margin: 0;
  color: #263548;
  font-family: "Youth", "Jeju Gothic", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.shop-settle-search-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 50px 64px 104px 10px 104px 68px minmax(68px, 1fr) 78px 74px 78px;
  gap: 4px;
  align-items: center;
}

.shop-settle-search-row select,
.shop-settle-search-row input,
.shop-settle-search-row button,
.shop-settle-type-buttons button,
.shop-settle-withdraw-request input,
.shop-settle-withdraw-request button,
.shop-settle-md-field select,
.shop-settle-quick button,
.shop-settle-pager button {
  min-width: 0;
  height: 28px;
  border: 1px solid #d8e1ec;
  border-radius: 5px;
  background: #fff;
  color: #344258;
  font-family: "Jeju Gothic", "Malgun Gothic", sans-serif;
  font-size: 12px;
  font-weight: 400;
}

.shop-settle-search-row select,
.shop-settle-search-row input,
.shop-settle-withdraw-request input,
.shop-settle-md-field select {
  padding: 0 4px;
  outline: none;
}

.shop-settle-search-row input {
  width: 100%;
}

.shop-settle-search-row > em {
  color: #6a778c;
  font-style: normal;
  text-align: center;
}

.shop-settle-search-row button,
.shop-settle-withdraw-request button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-color: #3149b7;
  color: #fff;
  background: #3149b7;
  white-space: nowrap;
}

.shop-settle-search-row button {
  height: 30px;
}

.shop-settle-search-row button span,
.shop-settle-withdraw-request button span {
  white-space: nowrap;
}

.shop-settle-search-row button:hover,
.shop-settle-withdraw-request button:hover {
  border-color: #223aa2;
  background: #223aa2;
}

.shop-settle-search-row button:disabled,
.shop-settle-withdraw-request button:disabled {
  opacity: .68;
  cursor: default;
}

.shop-settle-search-row .shop-settle-excel-button {
  border-color: #168457;
  padding-right: 3px;
  padding-left: 3px;
  background: #168457;
  white-space: nowrap;
}

.shop-settle-search-row .shop-settle-excel-button:hover {
  border-color: #0d6743;
  background: #0d6743;
}

.shop-settle-search-row .shop-settle-email-button {
  border-color: #526a85;
  padding-right: 3px;
  padding-left: 3px;
  background: #526a85;
  white-space: nowrap;
}

.shop-settle-search-row .shop-settle-excel-button span,
.shop-settle-search-row .shop-settle-email-button span {
  white-space: nowrap;
}

.shop-settle-search-row .shop-settle-email-button:hover {
  border-color: #3c526c;
  background: #3c526c;
}

.shop-settle-type-buttons {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.shop-settle-type-buttons button {
  width: 66px;
  flex: 0 0 66px;
  padding: 0 4px;
  color: #4e5c70;
  border-color: #cfd9e6;
  background: #f7f9fc;
  cursor: pointer;
  white-space: nowrap;
}

.shop-settle-type-buttons button[data-shop-settle-type-all] {
  width: 48px;
  flex-basis: 48px;
}

.shop-settle-type-buttons button:hover:not(.active) {
  color: #223aa2;
  border-color: #9eadd0;
  background: #eef3ff;
}

.shop-settle-type-buttons button.active {
  color: #fff;
  border-color: #3149b7;
  background: #3149b7;
}

.shop-settle-withdraw-request {
  min-width: 0;
  margin-left: auto;
  display: inline-grid;
  grid-template-columns: auto 104px 94px;
  gap: 5px;
  align-items: center;
}

.shop-settle-withdraw-request[hidden] {
  display: none !important;
}

.shop-settle-withdraw-request strong {
  color: #48566b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.shop-settle-withdraw-request input {
  width: 104px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.shop-settle-withdraw-request input:focus {
  border-color: #3149b7;
  box-shadow: 0 0 0 2px rgba(49, 73, 183, .12);
}

.shop-settle-withdraw-request button {
  width: 94px;
  padding: 0 5px;
  border-color: #b35b18;
  background: #b35b18;
}

.shop-settle-withdraw-request button:hover {
  border-color: #8f4510;
  background: #8f4510;
}

.shop-settle-md-field {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.shop-settle-filter-row {
  min-width: 0;
}

.shop-settle-quick {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(12, 48px);
  gap: 3px;
}

.shop-settle-quick button {
  padding: 0;
  color: #3a4960;
  background: #e7edf6;
  font-family: "Youth", "Jeju Gothic", "Malgun Gothic", sans-serif;
  font-size: 11px;
  line-height: 1;
}

.shop-settle-quick button:hover {
  color: #fff;
  border-color: #65758d;
  background: #65758d;
}

.shop-settle-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: 50px;
  gap: 4px;
}

.shop-settle-summary-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.shop-settle-summary-metrics span {
  min-width: 0;
  height: 50px;
  display: grid;
  grid-template-rows: 18px 1fr;
  align-items: center;
  gap: 0;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  padding: 2px 4px;
  background: #fff;
}

.shop-settle-summary-metrics em {
  min-width: 0;
  overflow: hidden;
  color: #6a778c;
  font-size: 11px;
  font-style: normal;
  line-height: 16px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-settle-summary-metrics b {
  min-width: 0;
  overflow: hidden;
  color: #263548;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  text-align: right;
  text-overflow: ellipsis;
  transform: translateY(1px);
  white-space: nowrap;
}

.shop-settle-status-buttons {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.shop-settle-status-buttons button,
.shop-settle-status-total {
  min-width: 0;
  height: 50px;
  display: grid;
  grid-template-rows: 18px 1fr;
  align-items: center;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  padding: 2px 4px;
  color: #263548;
  background: #fff;
  cursor: pointer;
}

.shop-settle-status-total {
  cursor: default;
}

.shop-settle-status-buttons button:hover {
  border-color: #8aa0bd;
  background: #f2f6fb;
}

.shop-settle-status-buttons button.active {
  border-color: #3149b7;
  background: #f4f7ff;
  box-shadow: inset 0 0 0 1px rgba(49, 73, 183, .20);
}

.shop-settle-status-buttons button.deposit.active {
  border-color: #188257;
  background: #f2fbf7;
  box-shadow: inset 0 0 0 1px rgba(24, 130, 87, .22);
}

.shop-settle-status-buttons em {
  min-width: 0;
  overflow: hidden;
  color: #697589;
  font-size: 11px;
  font-style: normal;
  line-height: 16px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-settle-status-buttons b {
  min-width: 0;
  overflow: hidden;
  color: #263548;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-settle-status-buttons button.active b {
  color: #223aa2;
}

.shop-settle-status-buttons button.deposit.active b {
  color: #147247;
}

.shop-settle-status-total.ad b { color: #b35b18; }
.shop-settle-status-total.withdraw b { color: #d12d52; }

.shop-settle-grid {
  min-width: 0;
  min-height: 0;
  align-content: start;
  overflow: auto;
  border: 0;
  border-radius: 0;
  padding: 6px 7px;
  background: transparent;
}

.shop-settle-grid.loading::after {
  content: "조회 중";
  position: sticky;
  left: 50%;
  top: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 58px;
  margin-left: -29px;
  border: 1px solid #d8e1ec;
  border-radius: 5px;
  color: #4e5b72;
  background: rgba(255, 255, 255, .94);
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(31, 44, 71, .10);
}

.shop-settle-row {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 3px;
  align-items: stretch;
  border-bottom: 1px solid #edf1f6;
  color: #263548;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.shop-settle-row:nth-child(even):not(.head) {
  background: #fbfdff;
}

.shop-settle-row.head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 44px;
  border: 1px solid #c4d0df;
  border-radius: 5px 5px 0 0;
  color: #314b68;
  background: #e1e9f3;
  box-shadow: none;
  font-family: "Youth", "Jeju Gothic", sans-serif;
  font-size: 11px;
  cursor: default;
}

.shop-settle-row.head > .settle-seq,
.shop-settle-row.head .shop-settle-row-main > div {
  font-size: 11px;
}

.shop-settle-row.expanded {
  border-bottom-color: transparent;
  background: #fff7e8;
}

.shop-settle-row:hover:not(.head) {
  color: #3149b7;
  background: #eef5ff;
}

.shop-settle-row > .settle-seq {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 3px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-settle-row:not(.head) > .settle-seq {
  border-right: 1px solid #edf1f6;
  font-family: "Youth", "Jeju Gothic", sans-serif;
  font-size: 14px;
}

.shop-settle-row-body {
  min-width: 0;
  display: grid;
  grid-template-rows: 44px;
  gap: 4px;
}

.shop-settle-row.expanded .shop-settle-row-body {
  grid-template-rows: 44px auto;
  padding-bottom: 4px;
}

.shop-settle-row-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 160px 100px minmax(100px, 1fr) 86px 108px 92px 54px;
  gap: 3px;
  align-items: center;
}

.shop-settle-row-main > div.state.requested { color: #b35b18; }
.shop-settle-row-main > div.state.withdrawn { color: #d12d52; }
.shop-settle-row-main > div.state.processing { color: #3149b7; }
.shop-settle-row-main > div.state.released { color: #526a85; }
.shop-settle-row-main > div.state.review,
.shop-settle-row-main > div.state.retry { color: #b42318; }
.shop-settle-row.extra { cursor: default; }
.shop-settle-row.extra.flag-sales { cursor: pointer; }
.shop-settle-row.extra .extra-split-state span {
  color: inherit;
  font-size: 16px;
  font-weight: normal;
}
.shop-settle-row.extra .settle-payment,
.shop-settle-row.extra .settle-payfee,
.shop-settle-row.extra .settle-delivery,
.shop-settle-row.extra.ad .settle-payout { color: #98a4b5; }
.shop-settle-row.extra .settle-payout.requested { color: #b35b18; }
.shop-settle-row.extra .ledger-balance { color: #263548; }
.shop-settle-row.extra .ledger-delta.increase { color: #147247; }
.shop-settle-row.extra .ledger-delta.decrease { color: #b42318; }

.shop-settle-row-main > div {
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 3px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-settle-row:not(.head) .shop-settle-row-main > div {
  transform: translateY(1px);
}

.shop-settle-row-main > div.store {
  justify-content: flex-start;
  padding-left: 6px;
  text-align: left;
}

.shop-settle-row-main > div.settle-order {
  justify-content: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.shop-settle-row:not(.head) .shop-settle-row-main > div.settle-order-customer span {
  font-size: 11px;
  font-weight: normal;
  line-height: 1.05;
}

.shop-settle-row-main > div.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: center;
  justify-content: stretch;
  line-height: 1;
}

.shop-settle-row-main > div.stack span {
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-settle-row-main > div.stack span + span {
  border-top: 0;
  padding-top: 0;
}

.shop-settle-row.head .shop-settle-row-main > div.stack span {
  font-size: 12px;
}

.shop-settle-row-main > div.datetime span {
  font-size: 12px;
}

.shop-settle-row-main > div.datetime span:last-child {
  color: #697589;
}

.shop-settle-row-main > div.money {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.shop-settle-row:not(.head) .shop-settle-row-main > div.money:not(.stack) {
  justify-content: flex-end;
  font-size: 14px;
  text-align: right;
}

.shop-settle-row:not(.head) .shop-settle-row-main > div.stack.money span {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.shop-settle-row.head .shop-settle-row-main > div.money-head:not(.stack) {
  justify-content: flex-end;
  text-align: right;
}

.shop-settle-row.head .shop-settle-row-main > div.stack.money-head span {
  text-align: right;
}

.shop-settle-row-main > div.total {
  color: #223aa2;
  font-weight: 700;
}

.shop-settle-row-main > div.fee {
  color: #b4234d;
}

.shop-settle-row-main > div.deduct {
  color: #c52850;
  font-weight: 800;
}

.shop-settle-row-main > div.deposit {
  color: #147247;
  font-weight: 800;
}

.shop-settle-row:not(.head) .shop-settle-row-main > div.state {
  font-weight: normal;
}

.shop-settle-row-main > div.state.unpaid {
  color: #b35b18;
}

.shop-settle-row-main > div.state.deposited {
  color: #223aa2;
}

.shop-settle-row-main > div.state.paid {
  color: #147247;
}

.shop-settle-detail-row {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid #ead7af;
  border-radius: 5px;
  padding: 4px;
  background: #fffaf1;
}

.shop-settle-detail-item {
  min-width: 0;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e5ddcc;
  border-radius: 4px;
  padding: 0 7px;
  background: #fff;
  white-space: nowrap;
}

.shop-settle-detail-item em {
  flex: 0 0 auto;
  color: #697589;
  font-size: 11px;
  font-style: normal;
}

.shop-settle-detail-item b {
  min-width: 0;
  flex: 1;
  color: #263548;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

.shop-settle-detail-item span {
  flex: 0 0 auto;
  color: #223aa2;
  font-size: 11px;
  font-weight: 700;
}

.shop-settle-order-detail .shop-history-payment-items {
  grid-template-columns: minmax(280px, 1.8fr) minmax(145px, 1fr) minmax(100px, .7fr) minmax(70px, .5fr);
}

.shop-settle-order-detail .shop-history-payment-items span:first-child b {
  overflow: visible;
  text-overflow: clip;
}

.shop-history-card-detail.shop-settle-order-detail > div.settle-finance {
  grid-column: 1 / -1;
  min-height: 34px;
  border-color: #d8e2ef;
  background: #f7faff;
}

.shop-history-card-detail.shop-settle-order-detail > div.settle-finance > i {
  color: #526a85;
}

.shop-settle-detail-amounts {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  white-space: nowrap;
}

.shop-settle-detail-amounts span {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.shop-settle-detail-separator {
  flex: 0 0 auto;
  color: #a0a9b7;
  font-size: 11px;
}

.shop-settle-detail-amounts em {
  color: #657289;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.shop-settle-detail-amounts b {
  flex: 0 0 auto;
  color: #263548;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.shop-settle-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: #7b8798;
  font-size: 13px;
}

.shop-settle-pager {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.shop-settle-pager button {
  width: 30px;
  padding: 0;
  color: #45556d;
  background: #fff;
}

.shop-settle-pager button:hover:not(:disabled) {
  color: #fff;
  border-color: #65758d;
  background: #65758d;
}

.shop-settle-pager button:disabled {
  color: #b8c1cf;
  background: #f2f5f9;
  cursor: default;
}

.shop-settle-pager span {
  min-width: 70px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #d8e1ec;
  border-radius: 5px;
  color: #344258;
  background: #fff;
  font-size: 12px;
}

.shop-settle-pager b,
.shop-settle-pager em {
  font-family: inherit;
  font-size: inherit;
  font-style: normal;
  font-weight: 400;
}

.shop-history-payment-items {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.shop-history-detail-row.balance .shop-history-payment-items {
  grid-template-columns: minmax(178px, 1.45fr) minmax(128px, 1fr) minmax(104px, .86fr) minmax(92px, .76fr);
}

.shop-history-payment-items span {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px;
  align-items: center;
}

.shop-history-payment-items em {
  color: #657289;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.shop-history-payment-items b {
  min-width: 0;
  overflow: hidden;
  color: #263548;
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-history-payment-items .copy-approval[data-copy-approval] {
  display: block;
  cursor: pointer;
  text-decoration: underline dotted #8d9aab;
  text-underline-offset: 3px;
}

.shop-history-payment-items .copy-approval[data-copy-approval]:focus-visible {
  border-radius: 3px;
  outline: 2px solid #536ea6;
  outline-offset: 1px;
}

.shop-history-copy-notice {
  position: fixed;
  left: 50%;
  bottom: 42px;
  z-index: 2000;
  min-width: 210px;
  border: 1px solid #536b89;
  border-radius: 5px;
  padding: 9px 15px;
  color: #fff;
  background: #344b68;
  box-shadow: 0 7px 20px rgba(28, 39, 55, .22);
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .16s ease, transform .16s ease;
}

.shop-history-copy-notice.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.shop-history-copy-notice.failed {
  border-color: #9d5b63;
  background: #7d3f47;
}

.shop-history-pager {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-top: 1px solid #e7edf5;
  background: #f8faff;
}

.shop-history-pager button {
  width: 28px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5deea;
  border-radius: 5px;
  color: #39485e;
  background: #fff;
}

.shop-history-pager button:disabled {
  opacity: .35;
  cursor: default;
}

.shop-history-pager button:not(:disabled):hover {
  color: #fff;
  border-color: #65758d;
  background: #65758d;
  cursor: pointer;
}

.shop-history-pager span {
  min-width: 68px;
  color: #41516a;
  font-size: 12px;
  text-align: center;
}

.shop-history-pager b,
.shop-history-pager em {
  font-style: normal;
  font-weight: 400;
}

.shop-cash-actions {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 173px minmax(458px, 1fr) 152px;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  border-top: 1px solid #dfe6f0;
  padding: 7px 8px;
  background: #f4f7fb;
  scrollbar-width: thin;
}

.shop-cash-action {
  min-width: 0;
  display: grid;
  gap: 3px;
  align-items: center;
}

.shop-cash-action.withdraw {
  grid-template-columns: minmax(100px, 1fr) 70px;
}

.shop-cash-action.gift {
  grid-template-columns: 52px 75px minmax(70px, 1fr) 68px 96px 64px;
  padding: 0 9px;
}

.shop-cash-action.nanum {
  grid-template-columns: minmax(90px, 1fr) 59px;
}

.shop-cash-action strong {
  color: #34445b;
  font-family: "Jeju Gothic", "Malgun Gothic", sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}

.shop-cash-action > input,
.shop-cash-action select,
.shop-cash-money {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 1px solid #cfd9e6;
  border-radius: 4px;
  background: #fff;
  color: #253143;
  font-family: "Jeju Gothic", "Malgun Gothic", sans-serif;
  font-size: 11px;
  font-weight: 400;
}

.shop-cash-action > input,
.shop-cash-action select {
  padding: 0 4px;
  outline: 0;
}

.shop-cash-action select {
  cursor: pointer;
}

.shop-cash-money {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  overflow: hidden;
}

.shop-cash-money input {
  width: 100%;
  min-width: 0;
  height: 30px;
  border: 0;
  padding: 0 2px 0 4px;
  outline: 0;
  color: #263548;
  background: transparent;
  font-family: "Jeju Gothic", "Malgun Gothic", sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-align: right;
}

.shop-cash-money span {
  color: #66748a;
  font-size: 11px;
  text-align: left;
}

.shop-cash-action > input:focus,
.shop-cash-action select:focus,
.shop-cash-money:focus-within {
  border-color: #526da0;
  box-shadow: 0 0 0 2px rgba(82, 109, 160, .11);
}

.shop-cash-action button {
  width: 100%;
  min-width: 0;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #526b8f;
  border-radius: 4px;
  padding: 0 3px;
  color: #fff;
  background: #526b8f;
  font-family: "Youth", "Jeju Gothic", "Malgun Gothic", sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.shop-cash-action.gift button {
  border-color: #4f6e82;
  background: #4f6e82;
}

.shop-cash-action.nanum button {
  border-color: #557c70;
  background: #557c70;
}

.shop-cash-action button:hover:not(:disabled) {
  filter: brightness(.92);
  cursor: pointer;
}

.shop-cash-action button:disabled {
  opacity: .5;
  cursor: default;
}

.shop-cash-action.gift button.verified {
  border-color: #2f7c5c;
  color: #fff;
  background: #2f7c5c;
}

@media (max-width: 1100px) {
  .shop-sidebar:not(.collapsed) {
    width: 160px;
    flex-basis: 160px;
  }

  .shop-history-main {
    padding: 8px;
  }

  .shop-settle-main {
    padding: 8px;
  }

  .shop-history-panel {
    grid-template-rows: auto minmax(0, 1fr) 34px;
  }

  .shop-history-page[data-shop-history="balance"] .shop-history-panel {
    grid-template-rows: auto minmax(0, 1fr) 34px 48px;
  }

  .shop-history-head {
    grid-template-rows: auto auto;
  }

  .shop-history-grid,
  .shop-history-grid.balance {
    min-width: 0;
  }

  .shop-history-card-list {
    gap: 6px;
    padding: 6px 7px;
  }

  .shop-history-card.order .shop-history-card-top {
    grid-template-columns: 76px 46px minmax(52px, 1fr) 114px 100px 52px 80px 74px;
    gap: 4px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .shop-history-card.order .shop-history-card-top span {
    font-size: 12px;
  }

  .shop-history-card.order .order-total {
    font-size: 14px;
  }

  .shop-history-card-field b {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .shop-page {
    min-width: 0;
  }

  .shop-layout {
    display: flex;
  }

  .shop-sidebar,
  .shop-sidebar.collapsed,
  .shop-sidebar:not(.collapsed) {
    width: 60px;
    flex-basis: 60px;
    padding: 6px 4px;
    border-right: 1px solid #f2f2f2;
    border-bottom: 0;
  }

  .shop-sidebar .sidebar-toggle {
    margin: 0 auto 8px;
  }

  .shop-sidebar nav {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .shop-sidebar a {
    justify-content: center;
    gap: 0;
    min-height: 32px;
    padding: 0;
    font-size: 0;
  }

  body:not(.mobile-page) .shop-home-app-ver {
    display: none !important;
  }

  .shop-sidebar .menu-separator {
    grid-column: auto;
    margin: 8px 6px;
  }

  .shop-history-main {
    padding: 5px;
  }

  .shop-history-card-list {
    padding: 5px;
  }

  .shop-history-head {
    gap: 5px;
    padding: 5px 6px;
  }

  .shop-history-title-row {
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }

  .shop-history-filter-row {
    grid-template-columns: 44px 54px minmax(48px, 1fr) 8px minmax(48px, 1fr) 58px minmax(64px, 1fr) 68px 64px 68px;
    grid-template-areas: "size year start divider end type keyword search excel email";
  }

  #shopHistoryPerPage { grid-area: size; }
  #shopHistoryYear { grid-area: year; }
  .shop-history-filter-row .shop-history-md-field:first-of-type { grid-area: start; }
  .shop-history-filter-row > em { grid-area: divider; }
  .shop-history-filter-row .shop-history-md-field:last-of-type { grid-area: end; }
  #shopHistorySearchType { grid-area: type; }
  #shopHistoryKeyword { grid-area: keyword; }
  #shopHistorySearchButton { grid-area: search; }
  #shopHistoryExcelButton { grid-area: excel; }
  #shopHistoryEmailButton { grid-area: email; }

  .shop-history-quick {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .shop-history-card.order .shop-history-card-top {
    grid-template-columns: 68px 42px minmax(42px, 1fr) 108px 96px 46px 76px 66px;
    gap: 3px;
  }

  .shop-history-card:not(.order) .shop-history-card-top {
    grid-template-columns: 76px minmax(0, 1fr) 112px;
    grid-template-rows: 28px 28px;
    grid-template-areas:
      "time store phone"
      "order order action";
    gap: 3px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .shop-history-card:not(.order) .shop-history-card-top .time { grid-area: time; }
  .shop-history-card:not(.order) .shop-history-card-top .store { grid-area: store; }
  .shop-history-card:not(.order) .shop-history-card-top .customer-phone { grid-area: phone; }
  .shop-history-card:not(.order) .shop-history-card-top .order-no { grid-area: order; }
  .shop-history-card:not(.order) .shop-history-card-top .balance-action { grid-area: action; }

  .shop-history-card-list.balance .shop-history-card-body,
  .shop-history-card-list.balance .shop-history-card.expanded .shop-history-card-body {
    grid-template-rows: 59px auto auto;
  }

  .shop-history-card-list.balance .shop-history-card.ledger .shop-history-card-body {
    grid-template-rows: 59px;
  }

  .shop-history-card-list.balance .shop-history-card-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-history-card-field em {
    font-size: 9px;
  }

  .shop-history-card-field b {
    font-size: 11px;
  }

  .shop-history-card-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-history-card-detail > div,
  .shop-history-card-detail > div.menu,
  .shop-history-card-detail > div.payinfo {
    grid-column: 1;
  }

  .shop-history-card-detail > div.order-delivery-breakdown {
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-delivery-breakdown > span.customer-cash-flow {
    grid-column: 1 / -1;
  }

  .shop-history-payment-items,
  .shop-history-detail-row.balance .shop-history-payment-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-settle-order-detail .shop-history-payment-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-settle-main {
    padding: 5px;
  }

  .shop-settle-panel,
  .shop-settle-head {
    gap: 5px;
  }

  .shop-settle-title-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }

  .shop-settle-search-row {
    grid-template-columns: 44px 54px minmax(48px, 1fr) 8px minmax(48px, 1fr) 58px minmax(64px, 1fr) 68px 64px 68px;
    grid-template-areas: "size year start divider end type keyword search excel email";
  }
  #shopSettlePerPage { grid-area: size; }
  #shopSettleYear { grid-area: year; }
  .shop-settle-search-row .shop-settle-md-field:first-of-type { grid-area: start; }
  .shop-settle-search-row > em { grid-area: divider; }
  .shop-settle-search-row .shop-settle-md-field:last-of-type { grid-area: end; }
  #shopSettleSearchType { grid-area: type; }
  #shopSettleKeyword { grid-area: keyword; }
  #shopSettleSearchButton { grid-area: search; }
  #shopSettleExcelButton { grid-area: excel; }
  #shopSettleEmailButton { grid-area: email; }

  #shopSettleSearchButton,
  #shopSettleExcelButton,
  #shopSettleEmailButton {
    padding-right: 3px;
    padding-left: 3px;
  }

  .shop-settle-quick {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .shop-settle-summary {
    grid-template-rows: 50px;
  }

  .shop-settle-summary-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 50px;
  }

  .shop-settle-grid {
    overflow-x: hidden;
    padding: 5px;
  }

  .shop-settle-row,
  .shop-settle-row.head {
    min-height: 92px;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 3px;
  }

  .shop-settle-row-body {
    grid-template-rows: 92px;
  }

  .shop-settle-row.expanded .shop-settle-row-body {
    grid-template-rows: 92px auto;
  }

  .shop-settle-row-main {
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)) 56px;
    grid-template-rows: repeat(3, 30px);
    grid-template-areas:
      "order order datetime datetime state"
      "store store store payment payment"
      "payfee payfee payfee payout payout";
    gap: 1px 3px;
  }

  .shop-settle-row-main .settle-order { grid-area: order; }
  .shop-settle-row-main .settle-datetime { grid-area: datetime; }
  .shop-settle-row-main .settle-store { grid-area: store; }
  .shop-settle-row-main .settle-payment { grid-area: payment; }
  .shop-settle-row-main .settle-payfee { grid-area: payfee; }
  .shop-settle-row-main .settle-payout { grid-area: payout; }
  .shop-settle-row-main .settle-state { grid-area: state; }

  .shop-settle-row-main > div.store {
    padding-left: 4px;
  }

  .shop-settle-row:not(.head) .shop-settle-row-main > div.money:not(.stack),
  .shop-settle-row:not(.head) .shop-settle-row-main > div.stack.money span {
    font-size: 13px;
  }

  .shop-settle-detail-row {
    gap: 3px;
  }

  .shop-settle-detail-amounts {
    flex-wrap: wrap;
    justify-content: center;
  }

  .shop-settle-detail-item {
    gap: 3px;
    padding-right: 5px;
    padding-left: 5px;
  }

  .shop-settle-detail-item em,
  .shop-settle-detail-item span {
    font-size: 10px;
  }

  .shop-settle-detail-item b {
    font-size: 12px;
  }

  .orders-main {
    padding: 8px;
  }

  .call-board {
    flex-direction: column;
  }

  .call-list-pane,
  .call-detail-pane,
  .order-detail-card {
    min-height: 320px;
  }

  .call-list-pane {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .shop-sidebar,
  .shop-sidebar.collapsed,
  .shop-sidebar:not(.collapsed) {
    width: 52px;
    flex-basis: 52px;
  }

  .shop-history-title-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .shop-history-title-row h2 {
    font-size: 16px;
  }

  .shop-history-quick {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .shop-history-head-total,
  .shop-settle-head-total {
    grid-column: 1 / -1;
    font-size: 12px;
  }

  .shop-history-head-total strong,
  .shop-settle-head-total strong {
    font-size: 14px;
  }

  .shop-history-filter-row {
    grid-template-columns: 52px minmax(0, 1fr) 10px minmax(0, 1fr) 58px;
    grid-template-areas:
      "size year year year year"
      "start start divider end end"
      "type type keyword keyword search"
      "excel excel excel email email";
    row-gap: 5px;
  }

  .shop-settle-title-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .shop-settle-title-row h2 {
    font-size: 16px;
  }

  .shop-settle-search-row {
    grid-template-columns: 44px minmax(0, 1fr) 8px minmax(0, 1fr) 58px;
    grid-template-areas:
      "size year year year year"
      "start start divider end end"
      "type type keyword keyword keyword"
      "search search search excel email";
  }

  .shop-settle-quick {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .shop-settle-quick button {
    font-size: 10px;
  }

  .shop-settle-summary {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 50px 50px;
  }

  .shop-settle-row,
  .shop-settle-row.head {
    min-height: 110px;
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .shop-settle-row-body {
    grid-template-rows: 110px;
  }

  .shop-settle-row.expanded .shop-settle-row-body {
    grid-template-rows: 110px auto;
  }

  .shop-settle-row-main {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 52px;
    grid-template-rows: repeat(4, 27px);
    grid-template-areas:
      "order order order order state"
      "datetime datetime store store store"
      "payment payment payfee payfee payfee"
      "payout payout payout payout payout";
  }

  .shop-settle-detail-amounts {
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
  }

  .shop-settle-detail-row {
    gap: 2px;
  }

  .shop-settle-detail-item {
    gap: 2px;
    padding-right: 3px;
    padding-left: 3px;
  }

  .shop-settle-detail-item em,
  .shop-settle-detail-item span {
    font-size: 9px;
  }

  .shop-settle-detail-item b {
    font-size: 10px;
  }

  .shop-history-card-list {
    padding: 5px;
  }

  .shop-history-card {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 4px;
    padding: 4px;
  }

  .shop-history-card.order .shop-history-card-top {
    grid-template-columns: 64px 42px minmax(0, 1fr) 36px 72px 58px;
    grid-template-rows: 28px 28px;
    grid-template-areas:
      "time status store store pay total"
      "order order phone phone delivery delivery";
    gap: 3px;
    padding-right: 3px;
    padding-left: 3px;
  }

  .shop-history-card.order .shop-history-card-body {
    grid-template-rows: 59px 50px;
  }

  .shop-history-card.order.expanded .shop-history-card-body {
    grid-template-rows: 59px 50px auto;
  }

  .shop-history-card.order .shop-history-card-top .time { grid-area: time; }
  .shop-history-card.order .shop-history-card-top .status-wrap { grid-area: status; }
  .shop-history-card.order .shop-history-card-top .store { grid-area: store; }
  .shop-history-card.order .shop-history-card-top .order-no { grid-area: order; }
  .shop-history-card.order .shop-history-card-top .customer-phone { grid-area: phone; }
  .shop-history-card.order .shop-history-card-top .delivery-type { grid-area: delivery; }
  .shop-history-card.order .shop-history-card-top .payway { grid-area: pay; }
  .shop-history-card.order .shop-history-card-top .order-total { grid-area: total; }

  .shop-history-card-top span,
  .shop-history-card.order .delivery-type {
    font-size: 10px;
  }

  .shop-history-card.order .delivery-type {
    gap: 2px;
  }

  .shop-history-card.order .delivery-type i {
    font-size: 10px;
  }

  .shop-history-card.order .order-total {
    font-size: 11px;
  }

  .shop-history-card-field em {
    font-size: 8px;
  }

  .shop-history-card-field b {
    font-size: 9px;
  }

  .shop-history-card:not(.order) .shop-history-card-top {
    grid-template-columns: 64px minmax(0, 1fr) 108px;
    grid-template-rows: 28px 28px;
    grid-template-areas:
      "time store phone"
      "order order action";
    gap: 3px;
    padding: 0 3px;
  }

  .shop-history-card:not(.order) .shop-history-card-top .time { grid-area: time; }
  .shop-history-card:not(.order) .shop-history-card-top .store { grid-area: store; }
  .shop-history-card:not(.order) .shop-history-card-top .customer-phone { grid-area: phone; }
  .shop-history-card:not(.order) .shop-history-card-top .order-no { grid-area: order; }
  .shop-history-card:not(.order) .shop-history-card-top .balance-action { grid-area: action; }

  .shop-history-card-list.balance .shop-history-card-body,
  .shop-history-card-list.balance .shop-history-card.expanded .shop-history-card-body {
    grid-template-rows: 59px auto auto;
  }

  .shop-history-card-list.balance .shop-history-card.ledger .shop-history-card-body {
    grid-template-rows: 59px;
  }

  .shop-history-card-detail > div.shop-history-balance-stages {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-settle-order-detail > div.shop-history-balance-stages {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-history-card-top .balance-tags {
    gap: 2px;
  }

  .shop-history-card-top .balance-tags b {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 8px;
  }

  .shop-history-card-top .balance-flow {
    min-width: 0;
    justify-self: stretch;
    justify-content: center;
    gap: 3px;
  }

  .shop-history-card-top .balance-flow b,
  .shop-history-card-top .balance-flow i {
    font-size: 11px;
  }

  .shop-history-payment-items,
  .shop-history-detail-row.balance .shop-history-payment-items {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-settle-order-detail .shop-history-payment-items {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 799px) {
  html body.mobile-page.mobile-history-v2[data-shop-history="orders"] .shop-history-card-detail > div.order-delivery-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 4px;
    white-space: normal;
  }

  html body.mobile-page.mobile-history-v2[data-shop-history="orders"] .shop-history-card-detail .order-delivery-breakdown > span {
    min-width: 0;
    justify-content: space-between;
    gap: 5px;
    border: 1px solid var(--shop-mobile-line);
    border-radius: 5px;
    padding: 4px 6px;
  }

  html body.mobile-page.mobile-history-v2[data-shop-history="orders"] .shop-history-card-detail .order-delivery-breakdown > span.delivery-total {
    grid-column: 1 / -1;
    border-left: 1px solid var(--shop-mobile-line);
  }

  html body.mobile-page.mobile-history-v2[data-shop-history="orders"] .shop-history-card-detail .order-delivery-breakdown b {
    min-width: 0;
    overflow: visible;
    font-size: 11px;
    text-overflow: clip;
  }

  html body.mobile-page.mobile-history-v2 .shop-history-card-detail > div.menu strong,
  html body.mobile-page.mobile-history-v2 .shop-history-card-detail > div.address strong,
  html body.mobile-page.mobile-history-v2 .shop-history-card-detail > div.rider strong,
  html body.mobile-page.mobile-history-v2 .shop-history-card-detail > div.memo strong {
    display: block;
    max-height: none;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  html body.mobile-page.mobile-history-v2 .shop-history-card-detail .shop-history-payment-items {
    grid-template-columns: minmax(0, 1fr);
  }

  html body.mobile-page.mobile-history-v2 .shop-history-card-detail .shop-settle-detail-amounts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 4px;
    white-space: normal;
  }

  html body.mobile-page.mobile-history-v2 .shop-history-card-detail .shop-settle-detail-amounts > span {
    min-width: 0;
    justify-content: space-between;
  }

  html body.mobile-page.mobile-history-v2 .shop-history-card-detail .shop-settle-detail-separator {
    display: none;
  }

  html[data-shop-theme="night"] body.mobile-page.mobile-history-v2 .shop-history-card-detail > div,
  html[data-shop-theme="night"] body.mobile-page.mobile-history-v2 .shop-history-card-detail > div.menu,
  html[data-shop-theme="night"] body.mobile-page.mobile-history-v2 .shop-history-card-detail > div.address,
  html[data-shop-theme="night"] body.mobile-page.mobile-history-v2 .shop-history-card-detail > div.rider,
  html[data-shop-theme="night"] body.mobile-page.mobile-history-v2 .shop-history-card-detail > div.memo,
  html[data-shop-theme="night"] body.mobile-page.mobile-history-v2 .shop-history-card-detail > div.payinfo,
  html[data-shop-theme="night"] body.mobile-page.mobile-history-v2 .shop-history-card-detail > div.delivery-photo,
  html[data-shop-theme="night"] body.mobile-page.mobile-history-v2 .shop-history-card-detail > div.order-delivery-breakdown,
  html[data-shop-theme="night"] body.mobile-page.mobile-history-v2 .shop-history-card-detail > div.shop-history-balance-stages,
  html[data-shop-theme="night"] body.mobile-page.mobile-history-v2 .shop-history-card-detail > div.customer-cash-card,
  html[data-shop-theme="night"] body.mobile-page.mobile-history-v2 .shop-history-card-detail > div.settle-finance {
    border-color: var(--shop-mobile-line) !important;
    color: var(--shop-mobile-ink) !important;
    background: var(--shop-mobile-surface-soft) !important;
  }

  html[data-shop-theme="night"] body.mobile-page.mobile-history-v2 .shop-history-card-detail .shop-history-balance-stages > span {
    border-color: var(--shop-mobile-line-soft) !important;
    background: var(--shop-mobile-surface) !important;
  }

  html[data-shop-theme="night"] body.mobile-page.mobile-history-v2 .shop-history-card-detail :is(strong, .order-delivery-breakdown b, .customer-cash-card b, .shop-history-balance-stages b, .shop-history-payment-items b, .shop-settle-detail-amounts b, .total-line em) {
    color: var(--shop-mobile-ink-strong) !important;
  }

  html[data-shop-theme="night"] body.mobile-page.mobile-history-v2 .shop-history-card-detail :is(.order-delivery-breakdown em, .customer-cash-card em, .shop-history-balance-stages em, .shop-history-payment-items em, .shop-settle-detail-amounts em) {
    color: var(--shop-mobile-muted) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-frame,
  .shop-shell-loader {
    transition: none;
  }
}

/* Command controls must not become bold when selected or disabled. */
:where(button, input[type="button"], input[type="submit"], input[type="reset"], [role="button"]) {
  font-weight: 400 !important;
}
