:root {
  --green: #166b50;
  --ink: #213e31;
  --line: #e4ebe6;
  --muted: #7b8e82;
}
body {
  background: #f3f6f3;
  color: var(--ink);
}
button,
input,
select {
  min-height: 46px;
  font-size: 16px;
}
button {
  font-weight: 600;
  touch-action: manipulation;
}
button.primary,
.primary {
  background: var(--green);
  color: #fff;
}
button.secondary {
  background: #eff4ef;
  color: #486153;
}
input,
select {
  background: #fbfcfa;
}
.wide {
  width: 100%;
  margin-top: 16px;
}
.card {
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px #294c3403;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 16px;
}
h2 {
  font-size: 17px;
  margin: 0;
}
p {
  margin: 10px 0;
  color: var(--muted);
}
small {
  color: var(--muted);
}
.list-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
}
.micro-note {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.mobile-empty {
  padding: 45px 20px;
  text-align: center;
  color: var(--muted);
}
.mobile-empty > span {
  display: block;
  font-size: 36px;
  color: #adc9b8;
  margin-bottom: 15px;
}
.mobile-empty h2 {
  font-size: 16px;
}
.mobile-empty p {
  font-size: 13px;
}
.order-cards {
  display: grid;
  gap: 10px;
}
.order-card {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  padding: 16px;
  font-weight: 400;
}
.order-card > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.order-card p {
  color: #546b5d;
  margin: 8px 0;
  font-size: 14px;
}
.order-card > small {
  display: block;
  font-size: 11px;
}
.order-card small span {
  float: right;
}
.order-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.order-filters input {
  min-width: 0;
  flex: 1;
}
.order-filters select {
  width: 130px;
}
.mobile-batch {
  padding: 0;
  overflow: hidden;
}
.mobile-batch > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.mobile-batch > summary h2 {
  margin-top: 5px;
}
.mobile-batch > summary:after {
  content: "⌄";
  color: var(--muted);
}
.batch-body {
  padding: 0 18px 18px;
}
.parcel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mini-parcel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf7;
  overflow: hidden;
}
.mini-parcel > button:first-child {
  display: block;
  width: 100%;
  background: none;
  color: var(--ink);
  text-align: left;
  padding: 16px;
}
.mini-parcel b,
.mini-parcel strong,
.mini-parcel span {
  display: block;
}
.mini-parcel strong {
  font-size: 31px;
  margin: 8px 0;
  font-weight: 650;
}
.mini-parcel strong small {
  font-size: 12px;
  margin-left: 5px;
  font-weight: 400;
}
.mini-parcel span {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.mini-parcel > .secondary {
  width: 100%;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: #eef4ed;
  font-size: 13px;
  min-height: 42px;
}
.add-parcel {
  border: 1px dashed #c2d4c7;
  background: transparent;
  color: #7c9b86;
  font-size: 28px;
  min-height: 150px;
}
.add-parcel small {
  display: block;
  font-size: 13px;
  font-weight: 400;
}
.batch-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}
.batch-actions button {
  flex: 1;
}
.mobile-approval details,
.setting-row,
dialog details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  margin-top: 10px;
}
.mobile-approval summary,
.setting-row summary,
dialog summary {
  cursor: pointer;
  color: #768b7c;
  font-size: 13px;
  min-height: 30px;
}
.setting-row span {
  float: right;
}
.mail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mail-row small,
.log-row small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.mail-row button {
  width: 100%;
}
.log-row b {
  font-size: 14px;
  font-weight: 500;
}
.prototype-tools {
  margin: 24px 0 10px;
  font-size: 12px;
  color: #8b9e90;
  order: 99;
}
.prototype-tools > summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
}
.prototype-tools .notice {
  margin: 10px 0;
}
.prototype-tools .demo-toolbar {
  margin: 0;
  padding: 12px;
}
.demo-toolbar p {
  display: none;
}
.mobile-nav {
  display: none;
}
.intake-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 16px;
}
.intake-context b {
  font-size: 15px;
}
.intake-context small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.text-button {
  background: none;
  color: var(--green);
  padding: 8px 0;
  font-size: 14px;
}
.intake-main {
  padding: 28px 15px 18px;
}
.intake-main .suffix-field {
  padding: 0;
  margin-bottom: 12px;
}
.intake-main legend {
  font-size: 22px;
}
.intake-main .suffix-field p {
  font-size: 13px;
  margin: 7px 0 23px;
}
.intake-main .digit-boxes {
  gap: 12px;
  margin: 0;
}
.intake-main .digit {
  width: 62px;
  height: 74px;
  border-radius: 12px;
  font-size: 32px;
}
.intake-main .verify-submit {
  background: none;
  color: var(--muted);
  font-size: 12px;
  min-height: 36px;
  padding: 6px;
  margin: 12px auto 0;
}
.intake-main #verify-result:empty {
  display: none;
}
.intake-setup h2 {
  font-size: 22px;
  margin-top: 12px;
}
.step-kicker {
  font-size: 12px;
  color: var(--green);
}
.batch-option {
  display: block;
  text-align: left;
  width: 100%;
  padding: 16px;
  background: #f1f6ef;
  color: var(--ink);
  border: 1px solid var(--line);
  margin: 12px 0;
  position: relative;
}
.batch-option small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}
.batch-option span {
  position: absolute;
  right: 16px;
  top: 24px;
  color: var(--green);
  font-size: 13px;
}
.intake-packages {
  margin: 24px 0;
}
.intake-packages h2 {
  font-size: 15px;
}
.package-chips {
  display: flex;
  gap: 10px;
  overflow: auto;
}
.package-chips > div {
  background: white;
  border: 1px solid var(--line);
  padding: 15px;
  min-width: 95px;
  border-radius: 12px;
}
.package-chips b {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.package-chips strong {
  display: block;
  font-size: 24px;
  margin-top: 7px;
}
.package-chips small {
  font-size: 12px;
  margin-left: 4px;
}
.intake-person {
  position: relative;
  background: #f5f8f1;
  padding: 16px;
  border-radius: 12px;
}
.intake-person > b {
  font-size: 19px;
}
.intake-person > span {
  float: right;
  font-size: 18px;
  color: var(--green);
}
.intake-person p {
  font-size: 13px;
  color: #647d6c;
}
.bottom-sheet .photo-strip {
  gap: 8px;
  margin: 12px 0;
}
.bottom-sheet .photo-strip img {
  width: 70px;
  height: 70px;
}
.bottom-sheet .placeholder {
  font-size: 12px;
  padding: 10px;
}
.parcel-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.parcel-choices button {
  padding: 16px;
  min-height: 120px;
}
.parcel-choices b {
  font-size: 14px;
}
.parcel-choices strong {
  font-size: 28px;
}
.parcel-choices small {
  font-size: 12px;
}
.parcel-choices span {
  font-size: 11px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7faf5;
  border-radius: 10px;
  padding: 12px;
}
.check-label input {
  width: 22px;
  min-height: 22px;
  height: 22px;
  accent-color: var(--green);
}
.shipping-check .task {
  font-size: 13px;
}
.shipping-check span {
  max-width: 75%;
  overflow-wrap: anywhere;
}
dialog .section-head {
  margin-bottom: 20px;
  flex-wrap: nowrap;
}
dialog .section-head h2 {
  font-size: 18px;
}
dialog [data-close] {
  font-size: 13px;
  min-height: 40px;
}
.toast {
  bottom: 100px;
  width: max-content;
  max-width: 90vw;
  white-space: normal;
  text-align: center;
}
.demo-help {
  border: 0;
  margin: 20px 0;
  color: #94a297;
}
.wf-item {
  padding: 12px;
  background: #e0ebdb;
  border: 1px solid #c8d9c1;
}
.wf-item label {
  margin: 10px 0;
}
.wf-item input[type="file"] {
  font-size: 13px;
}
#new-registration .action-row {
  position: sticky;
  bottom: 85px;
  padding: 10px 0;
  background: white;
  z-index: 2;
}
#new-registration .action-row button {
  flex: 1;
}
.title-row .eyebrow {
  display: none;
}
@media (max-width: 900px) {
  .layout {
    display: block;
    min-height: 100dvh;
  }
  .layout > aside {
    display: none;
  }
  header {
    position: sticky;
    top: 0;
    z-index: 5;
    height: 58px;
    padding: 0 20px;
    background: #f3f6f3f2;
    border: 0;
    backdrop-filter: blur(10px);
  }
  header > span {
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
  }
  header select {
    font-size: 12px;
    min-height: 34px;
    padding: 5px 8px;
    background: #e9efe8;
    border: 0;
    border-radius: 18px;
  }
  .content {
    display: flex;
    flex-direction: column;
    padding: 8px 18px calc(100px + env(safe-area-inset-bottom));
    max-width: 650px;
  }
  .content > * {
    flex-shrink: 0;
  }
  .title-row {
    margin: 2px 0 20px;
    display: block;
  }
  .title-row h1 {
    font-size: 27px;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.6px;
  }
  .title-row .badge {
    display: none;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fffefcf5;
    backdrop-filter: blur(15px);
    border-top: 1px solid #e3eae2;
    z-index: 10;
    margin: 0;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    height: calc(76px + env(safe-area-inset-bottom));
    gap: 4px;
    overflow: visible;
  }
  .mobile-nav a,
  .mobile-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 55px;
    padding: 0;
    margin: 0;
    background: none;
    color: #8b9c8e;
    font-size: 11px;
    font-weight: 500;
    border-radius: 12px;
  }
  .mobile-nav a.active {
    color: var(--green);
    background: #edf4e9;
  }
  .mobile-nav span {
    font-size: 22px;
    line-height: 26px;
  }
  .content .form {
    width: 100%;
    max-width: none;
  }
  .content .card {
    margin-left: 0;
    margin-right: 0;
  }
  .bottom-sheet {
    position: fixed;
    inset: auto 0 0;
    margin: 0 auto;
    width: 100%;
    max-width: 650px;
    max-height: 88dvh;
    border-radius: 24px 24px 0 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    border: 0;
    overscroll-behavior: contain;
  }
  .bottom-sheet::backdrop {
    background: #1e362951;
    backdrop-filter: blur(2px);
  }
  .order-filters select {
    font-size: 13px;
    width: 123px;
  }
  .intake-main {
    margin-bottom: 0;
  }
  .photo-strip figcaption {
    font-size: 11px;
  }
  .point-options {
    display: block;
  }
  .point-options label {
    margin: 8px 0;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .demo-toolbar .action-row button {
    font-size: 12px;
    padding: 8px;
  }
  .badge {
    font-size: 11px;
  }
  .prototype-tools {
    margin-top: 24px;
  }
  .list-heading {
    margin-top: 4px;
  }
  .order-card b {
    font-size: 15px;
  }
  .form label {
    font-size: 13px;
  }
  .mobile-return h2 small {
    font-weight: 400;
    font-size: 12px;
  }
  .mobile-return > p,
  .mobile-approval > p {
    font-size: 12px;
  }
  .intake-context {
    padding-top: 0;
  }
  .prototype-tools .notice {
    font-size: 11px;
  }
}
@media (min-width: 901px) {
  .content {
    max-width: 1100px;
    display: flex;
    flex-direction: column;
  }
  .order-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .parcel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .intake-main,
  .intake-context,
  .intake-packages {
    width: min(600px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
  .order-card .badge {
    font-size: 11px;
  }
  .bottom-sheet {
    width: min(600px, 92vw);
  }
}
@media (max-width: 350px) {
  .content {
    padding-left: 12px;
    padding-right: 12px;
  }
  .intake-main .digit {
    width: 54px;
    height: 65px;
  }
  .intake-main .digit-boxes {
    gap: 9px;
  }
  .parcel-choices {
    grid-template-columns: 1fr;
  }
}
.organizer-sheet {
  max-height: 90dvh;
  overscroll-behavior: contain;
}
.organizer-caption {
  font-size: 12px;
  margin: 0 0 14px;
  color: #758c7c;
}
.organizer-targets {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  position: sticky;
  top: -24px;
  z-index: 3;
  background: #fff;
  padding: 10px 0 14px;
  scrollbar-width: thin;
}
.organizer-targets > div {
  flex: 1;
  min-width: 86px;
  padding: 12px;
  border: 2px solid #e1ebe1;
  background: #f4f8f1;
  border-radius: 12px;
  text-align: center;
}
.organizer-targets b,
.organizer-targets span {
  display: block;
  font-size: 13px;
}
.organizer-targets span {
  color: #6a8473;
  margin-top: 4px;
}
.organizer-board {
  display: grid;
  gap: 14px;
}
.organizer-parcel {
  padding: 14px;
  border: 2px solid #e6ede5;
  border-radius: 14px;
  background: #f8faf6;
  min-height: 130px;
  transition:
    background 0.12s,
    border-color 0.12s;
}
.organizer-parcel h3 {
  font-size: 16px;
  margin: 0;
}
.organizer-parcel .list-heading {
  margin: 0 0 12px;
}
.organizer-parcel .list-heading small {
  font-size: 11px;
}
.sort-card {
  display: flex;
  align-items: stretch;
  border: 1px solid #dce7db;
  background: white;
  border-radius: 12px;
  margin: 10px 0;
  overflow: hidden;
}
.sort-card-info {
  flex: 1;
  min-width: 0;
  background: none;
  color: #244635;
  text-align: left;
  padding: 15px;
  font-weight: 400;
}
.sort-card-info > b {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.sort-card-info > span {
  float: right;
  color: #477a5c;
  font-size: 13px;
  margin-left: 8px;
}
.sort-card-info p {
  font-size: 13px;
  margin: 6px 0;
}
.sort-card-info small {
  font-size: 11px;
}
.sort-card-controls {
  width: 52px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid #edf1e9;
}
.sort-grip {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
  font-size: 26px;
  background: #f4f8f0;
  color: #789d83;
  border-radius: 0;
  min-height: 53px;
  padding: 3px;
  flex: 1;
}
.sort-grip:active {
  cursor: grabbing;
}
.sort-move {
  background: none;
  color: #568466;
  font-size: 11px;
  border-radius: 0;
  min-height: 36px;
  padding: 5px;
  font-weight: 400;
}
.empty-parcel-drop {
  text-align: center;
  color: #9aac9a;
  padding: 25px 12px;
  font-size: 13px;
  border: 1px dashed #d1dfcc;
  border-radius: 10px;
}
.organizer-sheet .drop-active {
  border-color: #1b8054;
  background: #dfefdb;
  box-shadow: 0 0 0 2px #b6d9b4;
}
.sort-card.is-dragging {
  opacity: 0.3;
}
.sort-ghost {
  position: fixed !important;
  pointer-events: none !important;
  z-index: 20;
  opacity: 0.95;
  box-shadow: 0 12px 35px #183d3338;
  transform: rotate(-2deg);
  margin: 0 !important;
}
.sorting-active,
.sorting-active * {
  user-select: none;
  -webkit-user-select: none;
}
.sorting-active {
  cursor: grabbing;
}
@media (min-width: 901px) {
  .organizer-sheet {
    width: min(900px, 94vw);
  }
  .organizer-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (max-width: 900px) {
  .organizer-sheet {
    max-height: 92dvh;
  }
  .organizer-targets {
    top: -24px;
  }
  .organizer-sheet .section-head {
    margin-bottom: 12px;
  }
}
.shipping-alert {
  max-width: 430px;
  border-radius: 20px;
  margin: auto;
  inset: 0;
  height: fit-content;
  max-height: 80dvh;
}
.shipping-alert h2 {
  margin-bottom: 18px;
}
.shipping-alert #shipping-alert-list {
  max-height: 40dvh;
  overflow: auto;
}
.shipping-alert #shipping-alert-list p {
  padding: 12px 14px;
  background: #fff6e6;
  border-radius: 9px;
  color: #926e2c;
  margin: 8px 0;
}
.parcel-card-tools {
  display: flex;
  border-top: 1px solid var(--line);
}
.parcel-card-tools .secondary {
  flex: 1;
  border-radius: 0;
  font-size: 13px;
  min-height: 42px;
  padding: 8px;
  background: #eef4ed;
}
.parcel-card-tools .delete-empty {
  background: #f8f1eb;
  border-radius: 0;
  color: #a36a50;
  font-size: 12px;
  min-height: 42px;
  padding: 8px 12px;
  font-weight: 400;
}
@media (max-width: 900px) {
  body.mobile-input-active .mobile-nav {
    display: none;
  }
  body.mobile-input-active .content {
    padding-bottom: 24px;
  }
  body.mobile-input-active #new-registration .action-row {
    position: static;
  }
  body.mobile-input-active .toast {
    bottom: 16px;
  }
}
.wf-item {
  position: relative;
  padding-top: 48px;
}
.garment-delete {
  position: absolute;
  right: 10px;
  top: 8px;
  background: #f9e3df;
  color: #b23c35;
  border: 1px solid #eac0b9;
  padding: 6px 14px;
  min-height: 38px;
  font-size: 13px;
}
.garment-delete-confirm {
  background: #b9473f;
  color: white;
}

.registration-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 2px;
  color: #637b68;
}
.registration-total b {
  font-size: 24px;
  color: #176c55;
}
.sale-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #e4ebe6;
  padding: 12px 0;
}
.sale-price-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sale-price-row input {
  width: 130px;
}
.registration-receipt {
  text-align: center;
  padding: 8px 0;
}
.receipt-check {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e1f1dc;
  color: #287a49;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 30px;
  margin: 0 auto 15px;
}
.receipt-amount {
  background: #f0f6eb;
  border-radius: 16px;
  padding: 22px 12px;
  margin: 18px 0;
}
.receipt-amount > span {
  display: block;
  font-size: 14px;
  color: #688363;
}
.receipt-amount strong {
  display: block;
  font-size: 52px;
  font-weight: 750;
  line-height: 1.3;
  color: #176c55;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.receipt-time {
  font-size: 13px;
  color: #778c76;
  margin-top: 22px;
}
.receipt-time b {
  display: block;
  font-size: 27px;
  letter-spacing: 2px;
  color: #b37c38;
  font-variant-numeric: tabular-nums;
  margin: 7px 0;
}
.delete-empty-batch {
  display: block;
  background: none;
  color: #b04b42;
  font-size: 12px;
  font-weight: 400;
  margin: 12px auto 0;
  min-height: 40px;
  padding: 8px 14px;
}
.sales-item-list {
  margin: 18px 0;
}
.sales-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e2eadf;
  margin: 0;
}
.sales-quantity b,
.sales-quantity small {
  display: block;
}
.sales-quantity small {
  font-size: 11px;
  margin-top: 4px;
}
.sales-quantity input {
  width: 78px;
  text-align: center;
  flex-shrink: 0;
}
.sales-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
.sales-summary > div {
  padding: 14px 9px;
  background: white;
  border: 1px solid #e2eadf;
  border-radius: 12px;
  font-size: 11px;
  color: #7c917b;
}
.sales-summary b {
  display: block;
  font-size: 20px;
  color: #215d40;
  overflow-wrap: anywhere;
  margin-top: 8px;
}
#sales-cards {
  margin-top: 16px;
}
.prepaid-card {
  border: 1px solid #b7d8ad;
  background: #eef8e7;
  padding: 14px;
  border-radius: 12px;
  margin-top: 15px;
  font-size: 13px;
}
.prepaid-card > b {
  color: #267a4a;
  font-size: 16px;
}
.prepaid-card p {
  font-size: 12px;
}
.prepaid-card .check-label {
  font-size: 13px;
  background: white;
}
.prepaid-card .refund-note {
  color: #a06e31;
}
.prepayment-lines {
  font-size: 12px;
}
.prepayment-lines .task {
  flex-wrap: wrap;
  gap: 5px;
}
#prepayment-refund-form {
  margin-top: 20px;
}
.sales-point-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sales-point-row label {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 12px;
}
.sales-point-row select {
  margin-top: 5px;
  padding: 10px;
  font-size: 14px;
}
.sales-default-star {
  background: #eef4e8;
  color: #c39b4c;
  font-size: 24px;
  padding: 5px;
  min-width: 44px;
  min-height: 44px;
  margin-top: 23px;
}
.sales-phone-label {
  font-size: 12px;
  margin: 18px 0 22px;
}
.sales-phone-label input {
  margin-top: 5px;
  font-size: 22px;
  letter-spacing: 1px;
  height: 54px;
}
.sales-list-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.sales-list-caption small {
  font-size: 11px;
}
.sales-mobile-form .sales-item-list {
  margin: 10px 0;
}
.sales-mobile-form .sales-quantity {
  padding: 11px 0;
  transition: background 0.12s;
}
.sales-quantity.has-quantity {
  background: #f2f7ed;
  border-radius: 10px;
  padding-left: 10px;
  padding-right: 4px;
}
.sales-mobile-form .sales-quantity small {
  font-size: 11px;
}
.quantity-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.quantity-stepper button {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #deead8;
  background: #edf4e6;
  color: #2c7350;
  border-radius: 12px;
  padding: 0;
  font-size: 23px;
  font-weight: 500;
}
.quantity-stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}
.quantity-stepper input {
  width: 38px !important;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 18px;
  font-weight: 650;
  outline-offset: -2px;
}
.sales-mini-note {
  font-size: 11px;
  margin: 12px 0;
  color: #93a18c;
}
.sales-pay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  background: white;
  padding: 14px 0;
}
.sales-pay-bar > div {
  min-width: 0;
}
.sales-pay-bar small {
  font-size: 11px;
}
.sales-pay-bar b {
  display: block;
  font-size: 26px;
  line-height: 1.3;
  color: #176c55;
}
.sales-pay-bar > div > span {
  display: block;
  font-size: 11px;
  color: #8c9e84;
}
.sales-pay-bar strong {
  font-weight: 500;
  color: #68885c;
}
.sales-pay-bar > button {
  min-width: 150px;
  padding: 14px 18px;
  font-size: 16px;
  border-radius: 14px;
}
.sales-compact-deal {
  padding: 0;
  overflow: hidden;
}
.sales-card-main {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #253e2e;
  padding: 17px;
  font-weight: 400;
}
.sales-card-main .list-heading {
  margin: 0 0 7px;
}
.sales-card-main p {
  font-size: 12px;
  margin: 6px 0 12px;
}
.sales-inline-money {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #8b9d84;
}
.sales-inline-money b {
  font-size: 17px;
  color: #2a6747;
  margin-left: 5px;
}
.sales-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eff3eb;
  padding: 0 17px;
}
.sales-card-bottom small {
  font-size: 11px;
}
.sales-card-bottom .text-button {
  min-width: 55px;
}
.sales-compact-deal .sales-card-main:hover {
  background: #fbfdf8;
}
@media (max-width: 900px) {
  .sales-mobile-form {
    padding-bottom: 105px;
  }
  .sales-mobile-form .sales-pay-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(76px + env(safe-area-inset-bottom));
    padding: 12px 20px;
    margin: 0;
    box-shadow: 0 -4px 16px #254c3510;
    border-top: 1px solid #e7ede3;
    z-index: 8;
  }
  .sales-pay-bar > button {
    min-width: 148px;
  }
  .bottom-sheet .sales-mobile-form {
    padding-bottom: 0;
  }
  .bottom-sheet .sales-pay-bar {
    position: sticky;
    left: auto;
    right: auto;
    bottom: -24px;
    box-shadow: 0 -4px 12px #254c3508;
    padding: 12px 0 20px;
    margin-top: 14px;
    z-index: 2;
  }
  .mobile-input-active .sales-pay-bar {
    display: none;
  }
  .sales-mobile-form .sales-quantity > div:first-child {
    min-width: 0;
  }
  .sales-summary {
    gap: 8px;
  }
  .sales-summary > div {
    padding: 12px 8px;
  }
  .sales-summary b {
    font-size: 19px;
  }
  .sales-default-star {
    margin-top: 22px;
  }
}
@media (max-width: 360px) {
  .sales-pay-bar > button {
    min-width: 130px;
    font-size: 14px;
  }
  .sales-inline-money {
    flex-wrap: wrap;
  }
  .quantity-stepper button {
    width: 40px;
    min-width: 40px;
  }
  .sales-mobile-form .sales-quantity small {
    font-size: 10px;
  }
}
.sales-default-star small {
  display: block;
  font-size: 10px;
  line-height: 12px;
  color: #9a895f;
  font-weight: 400;
}
.sales-default-star {
  line-height: 24px;
  min-height: 48px;
}
.sales-phone-label {
  margin: 18px 0 22px;
}
.sales-phone-label > span {
  display: block;
  font-size: 12px;
  color: #718469;
  margin-bottom: 8px;
}
.sales-phone-boxes {
  position: relative;
  width: 100%;
}
.sales-phone-digits {
  display: grid;
  grid-template-columns: 3fr 4fr 4fr;
  gap: 9px;
}
.phone-digit-group {
  display: grid;
  grid-template-columns: repeat(var(--phone-group-size, 4), minmax(0, 1fr));
  gap: 3px;
}
.phone-digit-group:first-child {
  --phone-group-size: 3;
}
.phone-digit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  aspect-ratio: 1/1.55;
  border: 1px solid #d5e1d0;
  border-radius: 6px;
  background: #f5f8f1;
  color: #215c3e;
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition:
    background 0.12s,
    border-color 0.12s;
}
.phone-digit.filled {
  background: #edf5e5;
  border-color: #bcd4b1;
}
.phone-digit.current {
  border: 2px solid #277c4e;
  background: white;
  box-shadow: 0 0 0 2px #d8eace;
}
.sales-phone-label .sales-phone-boxes input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: text;
  font-size: 16px;
  border: 0;
  border-radius: 0;
}
.sales-phone-boxes.is-focused .sales-phone-digits {
  border-radius: 7px;
}
@media (max-width: 360px) {
  .sales-phone-digits {
    gap: 7px;
  }
  .phone-digit-group {
    gap: 2px;
  }
  .phone-digit {
    font-size: 17px;
    border-radius: 5px;
  }
}
.sales-created-time {
  display: block;
  font-size: 11px;
  color: #8b9a82;
  font-weight: 400;
  margin: 0 0 12px;
  font-variant-numeric: tabular-nums;
}

.sales-search-field {
  position: relative;
}
.sales-search-field > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 21px;
  height: 21px;
  color: #78917c;
  pointer-events: none;
}
.sales-search-field > #sales-search {
  width: 100%;
  padding-left: 44px;
  margin: 0;
}

.bottom-sheet.sales-confirm-dialog {
  inset: 0;
  margin: auto;
  width: calc(100% - 40px);
  max-width: 360px;
  height: fit-content;
  max-height: 80dvh;
  border-radius: 20px;
  padding: 24px;
}
.sales-confirm-dialog .section-head {
  margin-bottom: 16px;
}
.sales-confirm-dialog p {
  font-size: 13px;
  margin: 8px 0;
}
.sales-confirm-dialog .sales-confirm-phone {
  font-size: 21px;
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sales-confirm-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0 20px;
  color: var(--muted);
  font-size: 13px;
}
.sales-confirm-amount strong {
  font-size: 30px;
  color: var(--green);
}
.sales-confirm-dialog .batch-actions {
  margin: 0;
  gap: 10px;
}
.sales-confirm-dialog .batch-actions button {
  min-height: 46px;
  padding: 10px;
  font-size: 15px;
}

.portal-login {
  max-width: 460px;
  margin: 0 auto;
  padding: 36px 20px;
  min-height: 100dvh;
}
.portal-brand {
  font-size: 24px;
  font-weight: 750;
  color: var(--green);
  display: block;
  margin-bottom: 30px;
}
.portal-login h1 {
  font-size: 24px;
}
.portal-login p {
  font-size: 13px;
}
.portal-login label {
  display: block;
  margin: 18px 0;
}
.portal-login input {
  width: 100%;
}
.portal-error {
  color: #b9473f !important;
}
.login-roles {
  display: flex;
  gap: 5px;
  background: #f1f5ee;
  padding: 5px;
  border-radius: 12px;
  margin: 20px 0;
}
.login-roles a {
  flex: 1;
  text-align: center;
  padding: 10px 2px;
  font-size: 12px;
  border-radius: 9px;
}
.login-roles a.active {
  background: #176c55;
  color: #fff;
}
.portal-logout {
  background: none;
  color: #738675;
  min-height: 40px;
  padding: 8px;
  font-size: 12px;
}
header #role {
  margin-left: auto;
}
.alumni-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(110deg, #ff6541, #ed3a66);
  color: white;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 20px;
  box-shadow: 0 6px 18px #ed3a6624;
}
.alumni-banner strong {
  display: block;
  font-size: 21px;
}
.alumni-banner small {
  display: block;
  color: #fff0dd;
  font-size: 12px;
  margin-top: 2px;
}
.alumni-icon {
  font-size: 34px;
  color: #ffed92;
}
.alumni-banner > b {
  margin-left: auto;
  font-size: 25px;
}
.case-intro {
  background: #fff0df;
  border-radius: 18px;
  padding: 25px 22px;
  margin-bottom: 18px;
}
.case-intro > span {
  font-size: 10px;
  letter-spacing: 2px;
  color: #bf6a49;
}
.case-intro h2 {
  font-size: 26px;
  color: #bc493d;
  margin: 8px 0;
}
.case-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: #8d6550;
  white-space: pre-wrap;
}
.case-feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.case-story {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
}
.case-story img {
  width: 100%;
  height: auto;
  display: block;
}
.case-story figcaption {
  padding: 16px;
  font-size: 14px;
  white-space: pre-wrap;
}
.case-edit-card {
  padding: 14px;
  background: #eff4eb;
  border-radius: 12px;
  margin: 16px 0;
}
.case-edit-card img {
  display: block;
  max-height: 220px;
  width: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}
.case-edit-card input {
  width: 100%;
}
.case-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.case-edit-actions button {
  flex: 1;
  font-size: 13px;
}
.case-upload {
  display: block;
  padding: 18px !important;
  background: #edf4e8;
  border: 1px dashed #a7bea0;
  border-radius: 12px;
  text-align: center;
  color: #176c55;
}
.case-upload input {
  display: block;
  width: 100%;
  margin-top: 10px;
  font-size: 13px;
}
#cases-editor textarea {
  font: inherit;
  width: 100%;
  border: 1px solid #d7e3d6;
  border-radius: 10px;
  padding: 12px;
  background: #fbfcfa;
}
.portal-login .card {
  padding: 24px;
}
#case-status,
#account-status {
  font-size: 13px;
  color: #176c55;
}

.case-back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  min-height: 44px;
  padding: 8px 14px;
  margin-bottom: 16px;
  border: 1px solid #dce7da;
  border-radius: 12px;
  background: white;
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
}
.case-back span {
  font-size: 22px;
  line-height: 1;
}

.admin-prepay-tabs {
  display: flex;
  padding: 4px;
  background: #eff4ec;
  border-radius: 12px;
  margin-bottom: 18px;
}
.admin-prepay-tabs button {
  flex: 1;
  background: none;
  color: #788a72;
  font-size: 14px;
  min-height: 44px;
  padding: 8px;
}
.admin-prepay-tabs button.active {
  background: #176c55;
  color: white;
}
.admin-prepay-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.admin-prepay-selects label {
  font-size: 12px;
  margin: 0 0 14px;
}
.admin-prepay-selects select {
  width: 100%;
  margin-top: 5px;
  font-size: 14px;
  padding: 8px;
}
#admin-prepay-phone {
  width: 100%;
  font-size: 15px;
}
.admin-prepay-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-prepay-metrics > div {
  padding: 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
  color: var(--muted);
}
.admin-prepay-metrics b {
  display: block;
  color: var(--green);
  font-size: 23px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.seller-drill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: none;
  color: var(--ink);
  padding: 0;
  text-align: left;
}
.seller-drill span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.admin-seller-card > p {
  font-size: 12px;
}
.seller-money {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.seller-money b {
  display: block;
  color: var(--green);
  font-size: 19px;
  margin-top: 3px;
}
@media (min-width: 901px) {
  .admin-prepay-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .admin-prepay-list,
  .admin-seller-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }
}

.commission-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #176c55;
  color: white;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.commission-entry span {
  font-size: 12px;
  color: #d4e7d4;
}
.commission-date-card p {
  font-size: 12px;
  margin: 0 0 14px;
}
.commission-dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.commission-dates label {
  font-size: 12px;
  margin: 0;
  min-width: 0;
}
.commission-dates input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 8px;
  font-size: 14px;
  margin-top: 6px;
}
.commission-dates > span {
  padding-top: 20px;
  text-align: center;
  color: #94a28d;
}
.commission-select-all {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  margin: 18px 0;
}
.commission-select-all input,
.commission-choice input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex-shrink: 0;
  accent-color: #176c55;
  margin: 0;
}
.commission-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  cursor: pointer;
}
.commission-choice > span {
  min-width: 0;
  flex: 1;
}
.commission-choice b,
.commission-choice small {
  display: block;
}
.commission-choice b {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.commission-choice small {
  font-size: 12px;
  margin-top: 4px;
}
.commission-choice strong {
  font-size: 23px;
  color: #176c55;
  white-space: nowrap;
}
.commission-person details,
.commission-sheet details {
  margin-top: 14px;
  border-top: 1px solid #e6ece2;
  padding-top: 12px;
  font-size: 12px;
  color: #819078;
}
.commission-order-lines > div {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e9eee5;
  color: #3c5944;
}
.commission-order-lines small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.commission-pay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: white;
  border: 1px solid #e1eadb;
  border-radius: 15px;
  padding: 14px 18px;
  margin-top: 20px;
}
.commission-pay-bar strong {
  display: block;
  font-size: 28px;
  color: #176c55;
}
.commission-pay-bar small {
  font-size: 12px;
}
.commission-pay-bar button {
  font-size: 16px;
  padding: 14px 20px;
}
.commission-record {
  display: block;
  width: 100%;
  text-align: left;
  color: #2a4431;
  font-weight: 400;
}
.commission-record p,
.commission-record small {
  font-size: 12px;
}
.commission-record .list-heading {
  margin: 0 0 10px;
}
.commission-record strong {
  font-size: 25px;
  color: #176c55;
}
.commission-sheet {
  border: 1px solid #e0e8da;
  background: #f7faf4;
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
}
.commission-cancel {
  display: block;
  margin: 12px 0 0 auto;
  background: none;
  color: #ab5848;
  font-size: 12px;
  min-height: 36px;
  padding: 6px;
}
.commission-page {
  padding-bottom: 20px;
}
.commission-pay-bar button:disabled {
  opacity: 0.4;
  cursor: default;
}
@media (max-width: 900px) {
  .commission-page:has(.commission-pay-bar) {
    padding-bottom: 110px;
  }
  .commission-pay-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(76px + env(safe-area-inset-bottom));
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    z-index: 8;
    box-shadow: 0 -4px 12px #254c3509;
  }
  .mobile-input-active .commission-pay-bar {
    display: none;
  }
}

.commission-record-total {
  text-align: right;
  font-size: 11px;
  color: var(--muted);
}
.commission-record-total strong {
  display: block;
}

/* Management views: task first, compact lists, details on demand. */
.manage-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #eaf0e6;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.manage-tabs button {
  flex: 1;
  white-space: nowrap;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  background: none;
  color: #7a8b72;
  border-radius: 9px;
}
.manage-tabs button.active {
  color: #176c55;
  background: white;
  font-weight: 700;
  box-shadow: 0 1px 5px #234d3210;
}
.manage-tabs small {
  color: inherit;
  font-size: 11px;
  margin-left: 5px;
}
.scope-picker {
  background: none;
  margin: 0 0 16px;
  padding: 0;
}
.scope-picker > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 12px;
  color: #819078;
  min-height: 40px;
  cursor: pointer;
}
.scope-picker > summary b {
  color: #3f5c46;
  font-size: 13px;
  font-weight: 550;
}
.scope-picker > summary > span:last-child {
  margin-left: auto;
}
.scope-picker .point-options {
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 4px;
}
.manage-hero {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 20px;
  border-radius: 18px;
  background: #176c55;
  color: white;
  margin-bottom: 12px;
}
.manage-hero strong {
  display: block;
  font-size: 22px;
  font-weight: 650;
}
.manage-hero small {
  display: block;
  font-size: 12px;
  color: #cbe3ce;
  margin-top: 5px;
}
.manage-hero > span:last-child {
  margin-left: auto;
  font-size: 23px;
}
.manage-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff19;
  border: 1px solid #ffffff26;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 29px;
  flex-shrink: 0;
}
.manage-home-links {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 18px;
}
.manage-home-links a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px;
  padding: 16px 18px;
  border-bottom: 1px solid #eff3eb;
  position: relative;
  min-height: 74px;
}
.manage-home-links a:last-child {
  border-bottom: 0;
}
.manage-home-links b {
  font-size: 15px;
}
.manage-home-links small {
  font-size: 12px;
  grid-column: 1;
}
.manage-home-links a > span {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  color: #9bab90;
  font-size: 24px;
}
.admin-home-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.admin-home-links a {
  border-right: 1px solid #eff3eb;
  padding: 16px;
  min-height: 86px;
}
.admin-home-links a:nth-child(even) {
  border-right: 0;
}
.admin-home-links a:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.manage-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px 0;
  margin-bottom: 16px;
}
.manage-stat-strip > div {
  text-align: center;
  border-right: 1px solid #dfe8d9;
}
.manage-stat-strip > div:last-child {
  border-right: 0;
}
.manage-stat-strip b {
  font-size: 25px;
  font-weight: 650;
  display: block;
  color: #2d5a3f;
  font-variant-numeric: tabular-nums;
}
.manage-stat-strip span {
  font-size: 11px;
  color: #8b9b80;
  display: block;
  margin-top: 3px;
}
.manage-recent > summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  list-style: none;
  min-height: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.manage-recent > summary span {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.manage-recent[open] > .order-cards {
  margin-top: 15px;
}
.manage-all-link {
  display: block;
  padding: 14px 0 3px;
  font-size: 13px;
  color: #176c55;
  text-align: center;
}
.manage-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
}
.manage-list-heading button {
  padding: 10px 14px;
  min-height: 44px;
  font-size: 14px;
}
.manage-batch > summary {
  padding: 16px !important;
}
.manage-batch > summary > div {
  min-width: 0;
  flex: 1;
}
.manage-batch > summary h2 {
  font-size: 16px;
  margin: 3px 0 5px;
  overflow-wrap: anywhere;
}
.manage-batch > summary small,
.manage-batch > summary div > span {
  font-size: 11px;
  color: #899c7c;
}
.manage-batch .batch-body {
  padding: 0 14px 14px;
}
.manage-batch .mini-parcel > button:first-child {
  padding: 13px 12px;
}
.manage-batch .parcel-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.manage-batch .parcel-number b {
  font-size: 14px;
}
.manage-batch .parcel-number strong {
  font-size: 25px;
  margin: 0;
  white-space: nowrap;
}
.manage-batch .mini-parcel > button > span {
  margin-top: 8px;
  font-size: 10px;
}
.manage-batch .parcel-grid {
  gap: 9px;
}
.manage-batch .parcel-card-tools button {
  min-height: 44px;
  font-size: 12px;
}
.manage-batch .batch-actions {
  gap: 9px;
  margin-top: 10px;
}
.manage-batch .batch-actions button {
  min-height: 44px;
  font-size: 14px;
  padding: 10px;
}
.manage-parcel-add {
  margin: 4px 0;
  text-align: center;
}
.manage-parcel-add button {
  min-height: 44px;
  font-size: 13px;
  width: 100%;
  border: 1px dashed #cbdac2;
  border-radius: 10px;
  margin-top: 10px;
}
.manage-batch .delete-empty-batch {
  margin: 8px auto 0;
  padding: 6px 10px;
  min-height: 36px;
  font-size: 11px;
}
.manage-order-search {
  display: flex;
  gap: 8px;
  align-items: center;
}
.manage-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  border: 1px solid #dce6d8;
  background: white;
  border-radius: 12px;
  padding: 0 12px;
}
.manage-search-field > span {
  font-size: 25px;
  line-height: 1;
  color: #84997c;
}
.manage-search-field input {
  border: 0;
  background: none;
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  font-size: 14px;
  outline-offset: 2px;
}
.manage-order-search select {
  width: 112px;
  font-size: 12px;
  min-height: 46px;
  padding: 8px;
  border-radius: 12px;
}
.manage-return-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #eef2e9;
  margin-top: 14px;
}
.manage-return-actions .primary {
  padding: 10px 18px;
  min-height: 44px;
  font-size: 14px;
}
.manage-return-actions > small {
  font-size: 11px;
}
.manage-return-reason {
  font-size: 12px;
  color: #ad6e3d;
}
.manage-mail {
  padding: 0 !important;
}
.manage-mail > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  padding: 16px;
  cursor: pointer;
  min-height: 78px;
}
.manage-mail summary b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.manage-mail summary small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.manage-mail-body {
  padding: 0 16px 16px;
  border-top: 1px solid #edf2e8;
}
.manage-mail-body p {
  font-size: 12px;
}
.manage-log-item {
  padding: 14px 0;
  border-bottom: 1px solid #eaf0e5;
}
.manage-log-item:last-child {
  border: 0;
}
.manage-log-item b {
  font-size: 13px;
  font-weight: 500;
  display: block;
  line-height: 1.7;
}
.manage-log-item small {
  font-size: 11px;
  display: block;
  margin-top: 6px;
}
.manage-settlement-entry {
  text-align: center;
  padding: 25px 20px !important;
}
.manage-settlement-entry > small {
  display: block;
}
.manage-settlement-entry strong {
  font-size: 43px;
  color: #176c55;
  display: block;
  margin: 6px 0;
  font-weight: 650;
}
.manage-settlement-entry strong span {
  font-size: 13px;
  font-weight: 400;
  margin-left: 7px;
  color: var(--muted);
}
.manage-settlement-entry .micro-note {
  font-size: 11px;
  margin-bottom: 0;
}
.manage-export {
  text-align: center;
  padding: 28px 20px !important;
}
.manage-export p {
  font-size: 13px;
}
.manage-export > small {
  font-size: 11px;
  display: block;
  margin-top: 15px;
}
.manage-export-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #edf4e8;
  border-radius: 18px;
  color: #176c55;
  font-size: 34px;
  margin: 0 auto 20px;
}
.config-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  min-height: 42px;
  cursor: pointer;
}
.config-panel > summary b {
  display: block;
  font-size: 15px;
}
.config-panel > summary small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.config-panel > summary > span {
  font-size: 12px;
  color: #7a9070;
}
.config-panel[open] > summary {
  padding-bottom: 16px;
  border-bottom: 1px solid #e9eee3;
}
.config-panel form {
  margin-top: 10px;
}
.manage-more section {
  margin-bottom: 18px;
}
.manage-more h3 {
  font-size: 11px;
  font-weight: 500;
  color: #8ca27e;
  margin: 0 0 8px;
}
.manage-more a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 10px 14px;
  background: #f5f8f0;
  border-bottom: 1px solid #e8eee1;
  font-size: 14px;
}
.manage-more a:first-of-type {
  border-radius: 10px 10px 0 0;
}
.manage-more a:last-child {
  border-radius: 0 0 10px 10px;
  border: 0;
}
.manage-more a:only-of-type {
  border-radius: 10px;
}
.manage-more a > b {
  font-weight: 400;
  font-size: 20px;
  color: #92a786;
}
.manage-report-filter {
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
}
.manage-report-filter > summary {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  color: #718768;
  cursor: pointer;
}
.manage-report-filter .admin-prepay-selects {
  padding-top: 8px;
}
.manage-case-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  min-height: 60px;
  cursor: pointer;
}
.manage-case-summary > img {
  width: 62px !important;
  height: 62px !important;
  border-radius: 9px !important;
  object-fit: cover !important;
  flex-shrink: 0;
}
.manage-case-summary > span {
  font-size: 13px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.manage-case-summary small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.manage-case-summary > b {
  color: #8ba17f;
}
.case-edit-card details {
  margin: 0;
  padding: 0;
  border: 0;
}
.case-edit-card details[open] > summary {
  margin-bottom: 14px;
}
.case-edit-card {
  padding: 12px;
}
.case-edit-card label {
  font-size: 12px;
}
body:is([data-manage-role="admin"], [data-manage-role="staff"])
  .content
  > .card {
  padding: 16px;
}
body:is([data-manage-role="admin"], [data-manage-role="staff"]) .order-card {
  padding: 14px;
}
body:is([data-manage-role="admin"], [data-manage-role="staff"]) .order-card p {
  font-size: 13px;
  margin: 7px 0;
}
body:is([data-manage-role="admin"], [data-manage-role="staff"])
  .order-card
  > small {
  font-size: 10px;
}
body:is([data-manage-role="admin"], [data-manage-role="staff"])
  .commission-entry {
  background: white;
  color: #176c55;
  border: 1px solid #dce7d7;
  padding: 12px 16px;
}
body:is([data-manage-role="admin"], [data-manage-role="staff"])
  .commission-entry
  span {
  color: #889d7c;
}
body:is([data-manage-role="admin"], [data-manage-role="staff"])
  .admin-prepay-metrics
  > div {
  padding: 12px 14px;
}
body:is([data-manage-role="admin"], [data-manage-role="staff"])
  .admin-prepay-metrics
  b {
  font-size: 22px;
}
@media (max-width: 900px) {
  body:is([data-manage-role="admin"], [data-manage-role="staff"]) .title-row {
    margin-bottom: 16px;
  }
  body:is([data-manage-role="admin"], [data-manage-role="staff"])
    .title-row
    h1 {
    font-size: 24px;
  }
  body:is([data-manage-role="admin"], [data-manage-role="staff"]) .content {
    padding-top: 8px;
  }
  body:is([data-manage-role="admin"], [data-manage-role="staff"]) header {
    gap: 8px;
  }
  body:is([data-manage-role="admin"], [data-manage-role="staff"])
    .mobile-approval
    .list-heading
    h2 {
    font-size: 16px;
  }
  body:is([data-manage-role="admin"], [data-manage-role="staff"]) .intake-main {
    padding: 24px 12px 16px;
  }
  body:is([data-manage-role="admin"], [data-manage-role="staff"])
    .intake-setup
    h2 {
    font-size: 21px;
  }
  .manage-home-links {
    margin-bottom: 12px;
  }
}

.fixed-logistics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eff4eb;
  margin: 0 0 18px;
  color: #7b8e72;
  font-size: 13px;
}
.fixed-logistics strong {
  font-size: 16px;
  color: #2a5940;
  font-weight: 600;
}

.shipping-check .task {
  gap: 14px;
}
.shipping-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 4px 8px;
  max-width: 78%;
  padding: 10px 12px;
  background: #f1f6ed;
  color: #355d43;
  text-align: right;
  border: 1px solid #e2ebda;
  border-radius: 10px;
  min-height: 54px;
  font-weight: 400;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.shipping-check .shipping-copy > span {
  max-width: none;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.shipping-copy svg {
  width: 18px;
  height: 18px;
  color: #65865b;
}
.shipping-copy small {
  grid-column: 1/3;
  font-size: 10px;
  color: #8a9d7c;
}
.shipping-copy.pressing {
  background: #deecd5;
  border-color: #9bbd88;
}
.shipping-copy.copy-done small {
  color: #176c55;
  font-weight: 600;
}
.shipping-copy.manual-copy,
.shipping-copy.manual-copy span {
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}

.point-grants {
  border: 1px solid #e0e8da;
  border-radius: 12px;
  padding: 12px;
  margin: 18px 0;
}
.point-grants legend {
  font-size: 13px;
  color: #718469;
}
.point-grants label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin: 10px 0;
}
.point-grants input {
  width: 20px !important;
  height: 20px;
  min-height: 20px;
  accent-color: #176c55;
}
.query-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #e7f0e3;
  color: #176c55;
  font-size: 30px;
  margin-bottom: 16px;
}
.email-query h2,
.pickup-page h2 {
  margin: 0 0 10px;
}
.email-query input {
  min-width: 0;
}
.access-status {
  color: #b54737;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.email-access {
  display: grid;
  gap: 10px;
}
.email-access small,
.pickup-order small {
  color: #81927b;
}
.email-access .text-button {
  justify-self: start;
  padding-left: 0;
}
.pickup-order {
  background: #f0f5ec;
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  overflow-wrap: anywhere;
}
.pickup-order p {
  margin: 12px 0;
}
.pickup-complete {
  text-align: center;
  padding: 20px;
  color: #176c55;
}
.pickup-complete b {
  font-size: 24px;
}
.pickup-back {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: #698265;
  font-size: 14px;
}
.mail-service-status {
  padding: 14px 16px;
  background: #edf2e9;
  border-radius: 12px;
  color: #647c59;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.email-query button,
.pickup-page button {
  min-height: 48px;
}
.export-panel label {
  display: block;
  font-size: 14px;
  color: #657b6c;
}
.export-panel select,
.export-panel input[type="date"] {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin-top: 8px;
  font-size: 15px;
}
.export-periods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 24px 0 18px;
}
.export-periods button {
  padding: 10px 4px;
  background: #f1f4ed;
  color: #758571;
  font-size: 13px;
  min-height: 40px;
}
.export-periods button.active {
  background: #e0edd9;
  color: #176c55;
  font-weight: 600;
}
.export-dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
  align-items: end;
  gap: 6px;
  margin-bottom: 24px;
}
.export-dates > span {
  align-self: end;
  padding-bottom: 16px;
  color: #9aaa94;
  text-align: center;
  font-size: 12px;
}
.export-dates input[type="date"] {
  padding: 10px 6px;
  font-size: 13px;
}
.export-privacy {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #83947d;
  margin-top: 14px;
}
.export-panel .export-select-all {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 13px;
}
.export-panel input[type="checkbox"] {
  width: 20px !important;
  height: 20px;
  min-height: 20px;
  accent-color: #176c55;
  margin: 0;
  flex: none;
}
.export-batches {
  margin: 10px 0 20px;
}
.export-panel .export-batch-option {
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #e7ece3;
  padding: 18px 0;
}
.export-batch-option span {
  display: grid;
  gap: 7px;
}
.export-batch-option b {
  font-size: 15px;
  color: #284b3b;
}
.export-batch-option small {
  font-size: 12px;
  color: #82937e;
}
.export-tabs {
  margin-bottom: 20px;
}
#export-status {
  font-size: 13px;
  line-height: 1.6;
  color: #657b6c;
  overflow-wrap: anywhere;
}
.export-panel {
  padding: 22px !important;
}
.factory-entry {
  padding: 20px !important;
}
.factory-entry .scope-picker {
  margin-bottom: 0;
}
.factory-periods {
  grid-template-columns: repeat(3, 1fr);
}
.factory-record-only {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: #83947d;
}
.factory-record {
  padding: 0 !important;
  overflow: hidden;
}
.factory-record-main {
  display: block;
  width: 100%;
  padding: 22px;
  background: white;
  color: #264737;
  text-align: left;
  border-radius: 0;
  font-weight: 400;
}
.factory-record-main > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.factory-record-main strong {
  font-size: 28px;
  color: #176c55;
}
.factory-record-main p {
  font-size: 13px;
  color: #83947d;
  margin: 12px 0;
}
.factory-record-main small {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #83947d;
  font-size: 12px;
}
.factory-card-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e8eee4;
  padding: 4px 12px;
}
.factory-amount {
  display: grid;
  gap: 10px;
  background: #f0f5eb;
  border-radius: 16px;
  padding: 22px;
  margin: 20px 0;
}
.factory-amount strong {
  font-size: 34px;
  color: #176c55;
  overflow-wrap: anywhere;
}
.factory-amount small {
  color: #78916f;
  font-size: 13px;
}
.factory-breakdown {
  padding: 10px 0;
  margin: 0;
  border-top: 1px solid #e6ece2;
}
.factory-breakdown > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
  font-size: 15px;
  color: #284b3b;
  cursor: pointer;
}
.factory-breakdown > summary::-webkit-details-marker {
  display: none;
}
.factory-breakdown summary > span {
  font-size: 12px;
  color: #8a9d80;
}
.factory-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f2ec;
}
.factory-line > div {
  display: grid;
  gap: 8px;
}
.factory-line small {
  font-size: 12px;
  color: #83947d;
}
.factory-line strong {
  font-size: 15px;
  color: #176c55;
  white-space: nowrap;
}
.factory-fee-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.factory-fee-fields input {
  min-width: 0;
}
.factory-totals p {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #667e5e;
}
.factory-totals b {
  color: #284b3b;
}
.factory-export {
  margin-top: 14px;
}
.factory-breakdown .micro-note {
  display: block;
  margin-top: 8px;
}
.factory-entry #factory-status {
  font-size: 13px;
}
.factory-entry input[type="checkbox"] {
  width: 20px !important;
  height: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: #176c55;
}
.factory-breakdown > p {
  font-size: 14px;
}
.factory-record .badge {
  font-size: 12px;
}
.catalog-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: white;
  color: #284b3b;
  font-weight: 400;
  padding: 18px 0;
  border-bottom: 1px solid #e8eee4;
  border-radius: 0;
  gap: 14px;
}
.catalog-row > span:first-child {
  display: grid;
  gap: 9px;
}
.catalog-row b {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.catalog-row b small {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
}
.catalog-row small {
  font-size: 12px;
  color: #81957b;
}
.catalog-state {
  color: #176c55;
  white-space: nowrap;
  font-size: 13px;
}
.catalog-state.inactive {
  color: #9b9f95;
}
.catalog-list {
  margin: 10px 0 20px;
}
.catalog-lifecycle {
  border-top: 1px solid #e7ede3;
  margin-top: 24px;
  padding-top: 18px;
}
.catalog-lifecycle button {
  margin-bottom: 10px;
}
.catalog-unavailable {
  opacity: 0.75;
}
.catalog-unavailable b {
  color: #b75741;
}
.catalog-panel .micro-note {
  margin-top: 14px;
}
.account-card { border-bottom: 1px solid var(--line, #e1e8e3); padding: 16px 0; }
.account-card summary { display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; list-style:none; }
.account-card summary span:first-child { min-width:0; overflow-wrap:anywhere; }
.account-card small { display:block; color:var(--muted, #819187); margin-top:5px; }
.account-card .badge { white-space:nowrap; flex-shrink:0; }
.account-status-dialog { box-sizing:border-box; width:min(420px, calc(100% - 32px)); border:0; border-radius:20px; padding:24px; color:#213f32; }
.account-status-dialog::backdrop { background:#213f3266; }
.account-status-dialog [role=alert] { color:#ba3f32; }
#shipping-correction > label { display: block; margin: 16px 0; }
#shipping-correction textarea { display: block; box-sizing: border-box; width: 100%; min-height: 88px; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #f7faf8; resize: vertical; }
