:root { color-scheme: light; font: 16px/1.5 Manrope, "Noto Sans KR", system-ui, sans-serif; color: #233047; background: #f5f6f8; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; background: #fff; border: 1px solid #d8dfea; color: inherit; padding: .45rem .8rem; border-radius: 7px; }
button:focus-visible, input:focus-visible { outline: 2px solid #165bc3; outline-offset: 2px; }
button:disabled { cursor: wait; opacity: .6; }
.top { background: #17223b; color: white; display: flex; align-items: center; gap: 1rem; padding: .65rem 1.2rem; border-bottom: 3px solid #547cb4; }
.brand { position: relative; display: block; overflow: hidden; background: #fcfcfc; }
.brand img { position: absolute; height: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.brand-horizontal { width: 10.8rem; height: 2.15rem; flex: none; border-radius: 5px; }
.brand-horizontal img { width: 11.7rem; }
.brand-stacked { width: min(100%, 15rem); height: 4.25rem; margin: 0 auto 1.05rem; }
.brand-stacked img { width: 16rem; }
.top span { font-size: .9rem; color: #dae3f1; }
.environment { margin-left: auto; }
[hidden] { display: none !important; }
.top button { color: #233047; }
.sign-in { width: min(90%, 30rem); margin: 14vh auto 0; background: white; border: 1px solid #e0e5ee; border-radius: 10px; padding: 1.6rem; }
.sign-in p { color: #a51f2d; }
.sign-in button { background: #205cb1; border-color: #205cb1; color: white; }
.sign-in #open-staff-signup { color: #205cb1; background: #fff; border-color: #cbdaf4; }
.signup-fields { display: grid; gap: .65rem; }
.signup-fields label { display: grid; gap: .22rem; }
.signup-fields select { max-width: 19rem; padding: .5rem .7rem; border: 1px solid #d8dfea; border-radius: 7px; font: inherit; }
.layout { display: grid; grid-template-columns: 12.75rem minmax(0, 1fr); min-height: calc(100vh - 54px); }
aside { background: #f9fbff; border-right: 1px solid #dae2ee; padding: .85rem .65rem; }
nav { display: grid; gap: .12rem; }
.group { margin-top: .7rem; padding: .3rem .62rem; color: #4d607b; font-size: .81rem; font-weight: 750; }
.group:first-child { margin-top: 0; }
nav button { text-align: left; background: transparent; border-color: transparent; padding: .37rem .65rem; }
nav button[aria-pressed=true] { background: #dfeaff; color: #144581; border-color: #d0dff8; font-weight: 750; }
#social-configuration { display: grid; gap: .6rem; max-width: 38rem; }
#social-configuration label { display: grid; gap: .2rem; }
#social-configuration fieldset { display: grid; gap: .5rem; border: 1px solid #d8dfea; border-radius: 7px; }
#social-configuration > button { justify-self: start; }
#social-dialog { width: min(94vw, 60rem); }
.social-toolbar { display: flex; gap: .4rem; flex-wrap: wrap; margin-block: .65rem; }
.social-toolbar button[aria-pressed=true], #social-threads button[aria-pressed=true] { background: #dfeaff; color: #144581; }
.social-inbox { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr); gap: 1rem; }
#social-threads, #social-messages { list-style: none; padding: 0; max-height: 45vh; overflow: auto; }
#social-threads button { width: 100%; text-align: left; overflow-wrap: anywhere; margin-bottom: .3rem; }
#social-messages li { background: #f5f8fe; border-radius: 8px; padding: .55rem; margin-bottom: .35rem; white-space: pre-wrap; overflow-wrap: anywhere; }
#social-messages li[data-outgoing] { background: #dfeaff; margin-inline-start: 1.2rem; }
#social-messages time { display: block; color: #455a79; font-size: .8rem; }
#social-reply { display: grid; gap: .45rem; }
#social-reply textarea { font: inherit; width: 100%; padding: .5rem; }
main { padding: 1.2rem clamp(.75rem, 2vw, 1.8rem); min-width: 0; }
.title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
h1 { margin: 0 0 .85rem; font-size: 1.55rem; }
h2 { margin: 0; font-size: 1.25rem; }
.panel { background: #fff; border: 1px solid #e0e5ee; border-radius: 10px; overflow: hidden; }
.toolbar { padding: .55rem .85rem; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .875rem; }
.toolbar button { padding: .35rem .63rem; }
.status-tabs { display: flex; flex-wrap: wrap; gap: .3rem; padding: .75rem .85rem; border-bottom: 1px solid #dde7f6; background: #f5f8fe; }
.status-tabs button { font-size: .82rem; white-space: nowrap; padding: .28rem .58rem; }
.status-tabs button[aria-pressed=true], #filters button[type=submit], #create-order {
  background: #205cb1; border-color: #205cb1; color: #fff; font-weight: 700;
}
#filters { border-bottom: 1px solid #e1e8f2; padding-block: .65rem; }
#order-actions, #box-tools { background: #f9fbff; border-top: 1px solid #e7edf6; }
.list-totals { display: flex; flex-wrap: wrap; gap: .35rem 1rem; justify-content: space-between;
  padding: .65rem .85rem; border-top: 1px solid #dbe5f3; color: #455a79; font-size: .82rem; }
.toolbar label { font-size: .88rem; font-weight: 650; }
.toolbar select { color: inherit; background: #fff; border: 1px solid #d8dfea; border-radius: 7px; padding: .5rem .65rem; font: inherit; }
input[type=checkbox] { width: auto; }
#change-fields { display: grid; gap: .7rem; padding: 1rem 0; }
#change-fields label { display: grid; gap: .25rem; }
#change-fields select { font: inherit; padding: .45rem; }
#operations-fields { display: grid; gap: .65rem; padding: .75rem 0; }
#operations-fields label { display: grid; gap: .25rem; }
#box-settings-dialog { width: min(62rem, 95vw); }
#box-settings-fields { min-width: 0; margin: .8rem 0; }
#box-settings-rows { display: grid; gap: .65rem; margin-bottom: .8rem; }
.box-setting-row { display: grid; grid-template-columns: 5rem 1fr 1fr 1.5fr 6rem auto; gap: .5rem; align-items: end; }
.box-setting-row label { display: grid; gap: .25rem; min-width: 0; }
.box-setting-row input { width: 100%; min-width: 0; }
@media (max-width: 720px) {
  .box-setting-row { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid #d4dce6; padding-bottom: .65rem; }
}
#editor-fields { display: grid; gap: .55rem; padding: .75rem 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
#editor-fields label { display: grid; gap: .25rem; }
#operations-list { padding-inline-start: 1.3rem; }
#operations-list li { margin-block: .4rem; overflow-wrap: anywhere; }
#change-error { color: #a51f2d; }
#operation-message { margin: .5rem 1rem; color: #18563b; }
.period { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; width: 100%; }
.period input { width: auto; max-width: 100%; }
input { border: 1px solid #d8dfea; border-radius: 7px; padding: .5rem .7rem; width: min(100%, 19rem); }
#summary { color: #233047; }
#error { color: #a51f2d; margin: .6rem 1rem; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; white-space: nowrap; }
th, td { padding: .46rem .62rem; border-top: 1px solid #e4eaf4; }
th { background: #eaf0fa; color: #334967; text-align: left; }
tbody tr:nth-child(even) { background: #f8faff; }
tbody tr:hover { background: #f0f6ff; }
.address-cell { min-width: 13rem; max-width: 21rem; white-space: pre-line; overflow-wrap: anywhere; }
td button { padding: .1rem 0; border: 0; color: #2258a7; text-decoration: underline; }
.status { display: inline-block; border-radius: 6px; padding: .14rem .4rem; background: #e5f4ed; color: #18563b; }
.pagination { display: flex; justify-content: center; padding: .7rem; }
.pagination:has(button[hidden]) { display: none; }
dialog { width: min(90vw, 34rem); max-height: 85vh; border: 0; border-radius: 12px; padding: 1.25rem; color: inherit; }
dialog::backdrop { background: #18294488; }
dl { display: grid; grid-template-columns: 6.5rem 1fr; gap: .45rem .8rem; }
dt { color: #4d5d75; } dd { margin: 0; overflow-wrap: anywhere; }
#pickup-labels article { border: 1px solid #d8dfea; border-radius: 8px; margin-top: 1rem; padding: 1rem; }
#pickup-labels h3 { margin: 0 0 .5rem; }
#pickup-labels dl { margin: 0; }
@media print {
  body.printing-labels > :not(#pickup-label-dialog) { display: none !important; }
  #pickup-label-dialog::backdrop { display: none; }
  body.printing-labels #pickup-label-dialog {
    display: block; position: static; width: auto; max-width: none; max-height: none;
    margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0;
  }
  body.printing-labels #pickup-label-dialog > :not(#pickup-labels) { display: none !important; }
  body.printing-labels { background: white; color: black; }
  #pickup-labels article { break-inside: avoid; break-after: page; border: 1px solid black; border-radius: 0; margin: 0; padding: 5mm; }
  #pickup-labels article:last-child { break-after: auto; }
  #pickup-labels h3 { margin: 0 0 3mm; font-size: 15pt; }
  #pickup-labels dl { margin: 0; }
  #pickup-labels dt { color: black; }
}
@media (max-width: 660px) {
  .top { gap: .55rem; padding-inline: .75rem; }
  .top > span:nth-child(2) { display: none; }
  .layout { grid-template-columns: 1fr; }
  aside { border-right: 0; border-bottom: 1px solid #e0e5ee; padding: .5rem; }
  nav { display: flex; flex-wrap: wrap; }
  nav .group { display: none; }
  nav .social-group { display: block; flex-basis: 100%; margin-top: .3rem; }
  .social-inbox { grid-template-columns: 1fr; }
  #social-threads { max-height: 22vh; }
}

#homepage-admin { width: min(44rem, calc(100% - 2rem)); }
#homepage-fields { display: grid; gap: .75rem; margin: 1rem 0; }
#homepage-fields label { display: grid; gap: .35rem; }
#homepage-fields input, #homepage-fields textarea { width: 100%; font: inherit; }

.homepage-rich-editor { min-height: 10rem; max-height: 22rem; overflow: auto; padding: .8rem; border: 1px solid #aab7c5; border-radius: .35rem; overflow-wrap: anywhere; }
.homepage-rich-editor img { max-width: 100%; height: auto; }
#homepage-fields > p { margin: 0; font-weight: 700; }
#homepage-section { max-width: 100%; }
