.customer-center-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  color: #172033;
}

.customer-center-loading,
.cc-empty {
  padding: 36px 20px;
  border: 1px dashed #cbd8e8;
  border-radius: 14px;
  color: #66758c;
  text-align: center;
  background: rgba(255,255,255,.9);
}

.cc-identity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #5e6d82;
  background: linear-gradient(110deg, #fff 0%, #f7faff 100%);
  box-shadow: var(--shadow-card);
  font-size: 13px;
}

.cc-identity-copy { display: flex; align-items: center; gap: 9px; min-width: 0; }

.cc-identity-mark {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #cfe0ff;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 14px;
  font-weight: 800;
}

.cc-identity-greeting { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 7px; min-width: 0; }
.cc-identity-greeting strong { color: #213652; font-size: 15px; }

.cc-refresh {
  flex: 0 0 auto;
  min-height: 32px;
  border-color: #c8d9f8;
  color: #2c64b7;
  background: #fff;
}

.cc-refresh:hover { border-color: #9dbced; color: var(--brand); background: var(--brand-soft); }

.cc-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 145px 145px 125px 125px 88px;
  align-items: end;
  gap: 9px;
  margin-bottom: 11px;
  padding: 9px;
  border: 1px solid #dce6f1;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(45,72,111,.05);
}

.cc-filter-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cc-filter-field > span {
  color: #63738a;
  font-size: 11px;
  font-weight: 700;
}

.cc-toolbar input,
.cc-toolbar select,
.cc-toolbar .btn {
  width: 100%;
  height: 40px;
  min-height: 40px;
}

.cc-toolbar input,
.cc-toolbar select {
  border: 1px solid #d3dce9;
  border-radius: var(--radius-sm);
  padding: 0 12px;
  outline: none;
  color: var(--text);
  background: #fcfdff;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.cc-toolbar input:hover,
.cc-toolbar select:hover { border-color: #b9c7dc; }

.cc-toolbar input:focus,
.cc-toolbar select:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: var(--focus);
}

.cc-toolbar .btn { padding-top: 0; padding-bottom: 0; }
.cc-order-list { display: grid; gap: 10px; }

.cc-order-card {
  overflow: hidden;
  border: 1px solid #d7e2ee;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(45,72,111,.055);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.cc-order-card.expanded {
  border-color: #b8d4fa;
  box-shadow: 0 8px 22px rgba(42,105,190,.09);
}

.cc-order-summary {
  display: grid;
  grid-template-columns: 70px minmax(150px, 320px) minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 8px 16px;
  border: 0;
  color: inherit;
  text-align: left;
  background: linear-gradient(180deg, #fff, #fbfdff);
  cursor: pointer;
}

.cc-order-summary:hover { background: #f7faff; }

.cc-summary-artwork {
  display: grid;
  place-items: center;
  width: 70px;
  height: 56px;
  overflow: hidden;
  border: 1px solid #dce6f1;
  border-radius: 8px;
  background: #f2f5f9;
}

.cc-summary-artwork img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef2f6;
}

.cc-summary-artwork-empty {
  color: #98a5b5;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.cc-summary-main { min-width: 0; }

.cc-summary-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.cc-order-number {
  flex: 0 0 auto;
  color: #173256;
  font-size: 19px;
  font-weight: 800;
}

.cc-customer-product-number {
  min-width: 0;
  max-width: 320px;
  overflow-wrap: anywhere;
  white-space: normal;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}

.cc-summary-meta {
  min-width: 0;
  overflow: hidden;
  color: #63738a;
  font-size: 13px;
  text-overflow: ellipsis;
}

.cc-summary-meta b { margin-right: 4px; color: #8a96a7; font-weight: 500; }
.cc-summary-style { max-width: min(30vw, 360px); }

.cc-summary-divider {
  flex: 0 0 1px;
  width: 1px;
  height: 14px;
  background: #d9e1eb;
}

.cc-current-progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #68778d;
  font-size: 12px;
  white-space: nowrap;
}

.cc-current-progress strong {
  padding: 5px 10px;
  border-radius: 999px;
  color: #1766c1;
  background: #edf5ff;
  font-size: 13px;
}

.cc-expand-icon {
  display: grid;
  place-items: center;
  color: #6b7c94;
  font-size: 20px;
  transition: transform .2s ease;
}

.cc-order-card.expanded .cc-expand-icon { transform: rotate(180deg); }

.cc-order-details {
  display: none;
  padding: 10px;
  border-top: 1px solid #edf1f6;
  background: #fbfdff;
}

.cc-order-card.expanded .cc-order-details { display: block; }

.cc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #38516f;
  background: #edf2f7;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.cc-chip.active { color: #145ea8; background: #eaf4ff; }
.cc-chip.ok { color: #0a805b; background: #e6f8f0; }
.cc-chip.payment-paid { color: #187453; background: #ebf8f1; }
.cc-chip.payment-due { color: #a56019; background: #fff2df; }

.cc-progress-panel,
.cc-content-section {
  border: 1px solid #dfe8f2;
  border-radius: 11px;
  background: #fff;
}

.cc-progress-panel { padding: 11px 13px 8px; }

.cc-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cc-section-title {
  padding-left: 9px;
  border-left: 3px solid #3387ee;
  color: #203650;
  font-size: 14px;
  font-weight: 800;
}

.cc-progress-caption,
.cc-section-link { color: #2677d8; font-size: 12px; }

.cc-progress-caption {
  padding: 4px 9px;
  border-radius: 999px;
  color: #56718e;
  background: #eef4fb;
}

.cc-timeline-wrap {
  overflow-x: auto;
  padding: 6px 2px 5px;
  scrollbar-width: thin;
}

.cc-timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(102px, 1fr);
  min-width: max-content;
}

.cc-stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 102px;
  padding: 0 6px;
  color: #7c899b;
  text-align: center;
  font-size: 11px;
}

.cc-stage::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 50%;
  left: -50%;
  height: 2px;
  background: #dfe6ef;
}

.cc-stage:first-child::before { display: none; }

.cc-stage-dot {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  border: 3px solid #c7d2df;
  border-radius: 50%;
  background: #fff;
}

.cc-stage strong { color: #526176; font-size: 12px; }
.cc-stage.done::before { background: #29bd8a; }
.cc-stage.done .cc-stage-dot { border-color: #20b985; background: #20b985; box-shadow: inset 0 0 0 3px #fff; }
.cc-stage.done strong { color: #147354; }
.cc-stage.current::before { background: linear-gradient(90deg, #29bd8a, #3a86ef); }
.cc-stage.current .cc-stage-dot { border-color: #347fe4; box-shadow: 0 0 0 4px rgba(52,127,228,.13); }
.cc-stage.current strong { color: #1f67c2; }

.cc-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 10px;
  margin-top: 10px;
}

.cc-detail-grid > :only-child { grid-column: 1 / -1; }

.cc-content-section { min-width: 0; padding: 11px; }

.cc-muted-panel {
  display: grid;
  min-height: 90px;
  place-items: center;
  padding: 12px;
  border-radius: 9px;
  color: #768398;
  background: #f5f7fa;
  text-align: center;
}

.cc-artwork-button {
  display: grid;
  width: 100%;
  padding: 7px;
  border: 1px solid #dbe5f0;
  border-radius: 9px;
  background: #f4f7fa;
  cursor: pointer;
}

.cc-artwork-button:hover { border-color: #9fc3f4; background: #f1f7ff; }

.cc-artwork-button img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  border-radius: 6px;
  background: #eef2f6;
}

.cc-detail-grid > .cc-artwork-section:only-child .cc-artwork-button img { height: 190px; }
.cc-logistics-list { display: grid; gap: 8px; }

.cc-logistics-card {
  padding: 12px;
  border: 1px solid #cce9df;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5fffb, #eefaf8);
}

.cc-logistics-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cc-tracking { margin: 8px 0 5px; color: #153958; font-size: 16px; font-weight: 800; word-break: break-all; }
.cc-address { color: #5c6e80; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.cc-ship-date { margin-top: 6px; color: #8190a3; font-size: 11px; }

.cc-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 7px 3px;
  color: #65748a;
  font-size: 12px;
}

.cc-pagination-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cc-pagination-actions select { min-width: 80px; }

@media (max-width: 1040px) {
  .cc-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc-filter-search { grid-column: 1 / -1; }
  .cc-order-summary { grid-template-columns: 66px minmax(140px, 260px) minmax(0, 1fr) auto 22px; gap: 10px; }
  .cc-summary-artwork { width: 66px; height: 54px; }
  .cc-summary-line { flex-wrap: wrap; white-space: normal; }
  .cc-summary-style { max-width: 100%; }
}

@media (max-width: 760px) {
  .app.customer-mode { grid-template-columns: minmax(0, 1fr); }
  .app.customer-mode .sidebar { display: none !important; }
  .app.customer-center-view .topbar { height: auto; padding: 8px 10px; justify-content: flex-end; }
  .app.customer-center-view .topbar .title,
  .app.customer-center-view .topbar .theme-toolbar,
  .app.customer-center-view #todayTodoBtn,
  .app.customer-center-view #healthStatus,
  .app.customer-center-view #adminUsersBtn { display: none !important; }
  .app.customer-center-view .content { padding: 7px 6px 20px; }
  .cc-identity-bar { padding: 8px 9px; }
  .cc-identity-copy { gap: 7px; }
  .cc-identity-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
  .cc-identity-greeting { gap: 1px 5px; }
  .cc-identity-greeting strong { font-size: 13px; }
  .cc-toolbar { grid-template-columns: 1fr; }
  .cc-filter-search { grid-column: auto; }
  .cc-order-summary {
    grid-template-areas: "thumb customer icon" "thumb main icon" "thumb progress icon";
    grid-template-columns: 60px minmax(0, 1fr) 20px;
    gap: 5px 9px;
    min-height: 82px;
    padding: 9px;
  }
  .cc-summary-artwork { grid-area: thumb; width: 60px; height: 60px; }
  .cc-customer-product-number { grid-area: customer; max-width: 100%; font-size: 16px; }
  .cc-summary-main { grid-area: main; }
  .cc-summary-line { gap: 5px 7px; }
  .cc-order-number { width: 100%; font-size: 16px; }
  .cc-summary-divider { display: none; }
  .cc-summary-meta { font-size: 11px; }
  .cc-summary-meta b { display: none; }
  .cc-current-progress { grid-area: progress; justify-self: start; }
  .cc-current-progress > span { display: none; }
  .cc-current-progress strong { padding: 3px 8px; font-size: 11px; }
  .cc-expand-icon { grid-area: icon; }
  .cc-order-details { padding: 7px; }
  .cc-progress-panel, .cc-content-section { padding: 10px 8px; }
  .cc-progress-caption { display: none; }
  .cc-detail-grid { grid-template-columns: 1fr; }
  .cc-artwork-button img,
  .cc-detail-grid > .cc-artwork-section:only-child .cc-artwork-button img { height: 180px; }
  .cc-pagination { align-items: flex-start; flex-direction: column; }
}
