.order-sidebar {
  font-family: 'Krub', 'Sarabun', sans-serif;
  background: linear-gradient(180deg, #fcfdff 0%, #f6f8fc 100%);
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.ops-sidebar-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  background:
    radial-gradient(circle at top right, rgba(74, 111, 165, 0.11), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 252, 0.98) 100%);
}

.ops-sidebar-summary {
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.98) 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.75);
}

.ops-sidebar-summary__empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(74, 111, 165, 0.28);
  background: rgba(74, 111, 165, 0.05);
  color: #516177;
}

.ops-sidebar-summary__empty i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 111, 165, 0.12);
  color: #3b6fbf;
}

.ops-sidebar-summary__empty strong,
.ops-summary-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #132033;
  line-height: 1.2;
}

.ops-sidebar-summary__empty span,
.ops-summary-subline {
  display: block;
  font-size: 11.5px;
  color: #5d6b7d;
  line-height: 1.45;
}

.ops-summary-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ops-summary-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #4a6fa5 0%, #365983 100%);
  box-shadow: 0 10px 24px rgba(74, 111, 165, 0.24);
}

.ops-summary-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ops-summary-avatar.platform-line {
  box-shadow: 0 10px 24px rgba(6, 199, 85, 0.2);
  border: 2px solid rgba(6, 199, 85, 0.28);
}

.ops-summary-avatar.platform-facebook {
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.2);
  border: 2px solid rgba(24, 119, 242, 0.26);
}

.ops-summary-meta {
  min-width: 0;
  flex: 1;
}

.ops-summary-subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ops-platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(74, 111, 165, 0.1);
  color: #355f95;
  border: 1px solid rgba(74, 111, 165, 0.16);
}

.ops-platform-chip.platform-line {
  background: rgba(6, 199, 85, 0.1);
  border-color: rgba(6, 199, 85, 0.18);
  color: #09924a;
}

.ops-platform-chip.platform-facebook {
  background: rgba(24, 119, 242, 0.1);
  border-color: rgba(24, 119, 242, 0.18);
  color: #1d63c2;
}

.ops-summary-meta-id {
  font-size: 10.5px;
  font-weight: 600;
  color: #6b7a8f;
}

.ops-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ops-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: #eef2f7;
  color: #4b5b72;
  border: 1px solid rgba(75, 91, 114, 0.12);
}

.ops-status-pill.is-primary {
  background: rgba(74, 111, 165, 0.1);
  color: #355f95;
  border-color: rgba(74, 111, 165, 0.18);
}

.ops-status-pill.is-success {
  background: rgba(45, 143, 111, 0.12);
  color: #187150;
  border-color: rgba(45, 143, 111, 0.18);
}

.ops-status-pill.is-warning {
  background: rgba(223, 169, 75, 0.15);
  color: #97640b;
  border-color: rgba(223, 169, 75, 0.2);
}

.ops-status-pill.is-danger {
  background: rgba(210, 85, 90, 0.12);
  color: #ac3640;
  border-color: rgba(210, 85, 90, 0.18);
}

.ops-status-pill.is-muted {
  background: rgba(100, 116, 139, 0.12);
  color: #58677d;
  border-color: rgba(100, 116, 139, 0.18);
}

.ops-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ops-summary-metric {
  padding: 8px 8px 7px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  min-width: 0;
}

.ops-summary-metric__label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #73839a;
}

.ops-summary-metric__value {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #132033;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(250, 252, 255, 0.96);
}

.ops-sidebar-tab {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: #536276;
  padding: 8px 8px 7px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.ops-sidebar-tab:hover {
  border-color: rgba(74, 111, 165, 0.24);
  transform: translateY(-1px);
}

.ops-sidebar-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.16);
}

.ops-sidebar-tab.is-active {
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.16), rgba(61, 127, 193, 0.08));
  color: #1c3b63;
  border-color: rgba(74, 111, 165, 0.22);
  box-shadow: 0 10px 22px rgba(74, 111, 165, 0.12);
}

.ops-sidebar-tab__count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.07);
  color: inherit;
}

.ops-sidebar-tab.is-active .ops-sidebar-tab__count {
  background: rgba(255, 255, 255, 0.62);
}

.ops-sidebar-panels {
  display: flex;
  flex: 1;
  min-height: 0;
  background: transparent;
}

.ops-sidebar-panel {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.ops-sidebar-panel.is-active {
  display: flex;
}

.ops-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.ops-panel-heading {
  min-width: 0;
}

.ops-panel-eyebrow {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7b8aa0;
  margin-bottom: 4px;
}

.ops-panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #132033;
}

.ops-panel-link,
.ops-panel-icon-btn {
  flex-shrink: 0;
}

.ops-panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(74, 111, 165, 0.1);
  border: 1px solid rgba(74, 111, 165, 0.14);
  color: #355f95;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.ops-panel-link:hover {
  background: rgba(74, 111, 165, 0.16);
}

.ops-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ops-panel-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 111, 165, 0.1);
  border: 1px solid rgba(74, 111, 165, 0.16);
  color: #355f95;
  font-size: 11px;
  font-weight: 700;
}

.ops-panel-icon-btn {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(74, 111, 165, 0.16);
  background: rgba(74, 111, 165, 0.08);
  color: #355f95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ops-panel-icon-btn:hover {
  background: rgba(74, 111, 165, 0.16);
}

.ops-panel-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.ops-panel-scroll::-webkit-scrollbar {
  width: 6px;
}

.ops-panel-scroll::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.2);
  border-radius: 999px;
}

.ops-panel-compose {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(251, 252, 255, 0.96);
}

.ops-empty-state,
.order-empty-state,
.info-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(100, 116, 139, 0.2);
  background: rgba(255, 255, 255, 0.82);
  color: #66758a;
}

.ops-empty-state i,
.order-empty-icon,
.info-empty-ico {
  font-size: 18px;
  color: rgba(74, 111, 165, 0.5);
}

#customerQuickBody,
#orderContent,
#bookingContent {
  min-height: 100%;
}

.ops-profile-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ops-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.ops-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ops-card__title {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #708097;
}

.ops-card__body {
  padding: 12px;
}

.ops-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ops-data-cell {
  padding: 9px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(246, 248, 252, 0.94), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(15, 23, 42, 0.06);
  min-width: 0;
}

.ops-data-cell__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a899d;
}

.ops-data-cell__value {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: #162132;
  word-break: break-word;
}

.ops-preview-text {
  padding: 12px;
  border-radius: 14px;
  background: rgba(74, 111, 165, 0.06);
  border: 1px solid rgba(74, 111, 165, 0.12);
  color: #243347;
  font-size: 12.5px;
  line-height: 1.55;
}

.ops-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ops-chip,
.customer-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  background: rgba(246, 248, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #415166;
}

.ops-chip:hover,
.customer-tag:hover {
  border-color: rgba(74, 111, 165, 0.18);
  color: #355f95;
}

.ops-chip.is-empty,
.customer-tag.is-empty {
  color: #7a899d;
}

.ops-mini-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ops-mini-action {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(243, 246, 252, 0.96));
  color: #223247;
  font-size: 11.5px;
  font-weight: 700;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.ops-mini-action:hover {
  border-color: rgba(74, 111, 165, 0.2);
  color: #355f95;
}

.ops-mini-action i {
  color: #3b6fbf;
}

.ops-linked-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ops-linked-item,
.customer-callout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 13px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(247, 249, 253, 0.95);
  font-size: 11.5px;
  color: #344156;
}

.ops-linked-item strong {
  display: block;
  color: #162132;
  font-size: 12.5px;
  font-weight: 700;
}

.ops-linked-item__meta {
  display: block;
  margin-top: 4px;
  color: #728197;
}

.ops-linked-item__action {
  flex-shrink: 0;
}

.ops-inline-alert,
.customer-updated {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 11.5px;
  line-height: 1.55;
  border: 1px solid rgba(74, 111, 165, 0.12);
  background: rgba(74, 111, 165, 0.08);
  color: #2f4665;
}

.ops-inline-alert.is-warning {
  border-color: rgba(223, 169, 75, 0.22);
  background: rgba(255, 250, 235, 0.95);
  color: #865707;
}

.ops-inline-alert.is-muted {
  border-color: rgba(100, 116, 139, 0.14);
  background: rgba(248, 250, 252, 0.95);
  color: #5a677c;
}

.ops-inline-alert i {
  margin-top: 2px;
}

.notes-list,
.order-content,
#bookingContent {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  padding: 12px;
}

.note-item.pinned {
  border-color: rgba(223, 169, 75, 0.24);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.95), rgba(255, 255, 255, 0.95));
}

.note-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.note-pin-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(223, 169, 75, 0.14);
  color: #94620d;
  font-size: 10px;
  font-weight: 700;
}

.note-content {
  font-size: 12.5px;
  line-height: 1.6;
  color: #1f2a3a;
  white-space: pre-wrap;
  word-break: break-word;
}

.note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #708197;
  font-size: 10.5px;
  font-weight: 600;
}

.note-actions {
  margin-top: 10px;
}

.note-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.note-tools .btn {
  border-radius: 10px;
  font-size: 11px;
  padding: 5px 9px;
}

.notes-composer {
  margin-top: 0;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.notes-composer-input {
  min-height: 76px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 12.5px;
  padding: 10px 11px;
  resize: vertical;
}

.notes-composer-bar {
  margin-top: 8px;
}

.pin-check {
  font-size: 11px;
  font-weight: 700;
}

.notes-add-btn {
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 11px;
}

.order-card,
.booking-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.order-card {
  padding: 12px;
}

.order-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(100, 116, 139, 0.12);
  color: #59697e;
}

.order-status-badge.pending {
  background: rgba(223, 169, 75, 0.16);
  color: #8f600f;
}

.order-status-badge.confirmed,
.order-status-badge.completed {
  background: rgba(45, 143, 111, 0.14);
  color: #1c7956;
}

.order-status-badge.shipped {
  background: rgba(61, 127, 193, 0.14);
  color: #255e93;
}

.order-status-badge.cancelled {
  background: rgba(210, 85, 90, 0.14);
  color: #aa3841;
}

.order-date {
  font-size: 10.5px;
  font-weight: 600;
  color: #73839a;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: start;
  font-size: 12px;
  color: #263649;
}

.order-item-name {
  font-weight: 600;
}

.order-item-quantity,
.order-item-price {
  color: #68788f;
  font-weight: 600;
}

.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
  font-size: 11px;
  font-weight: 700;
  color: #68788f;
}

.order-total-amount {
  color: #142132;
  font-size: 13px;
}

.order-total-amount.free {
  color: #2d8f6f;
}

.order-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.order-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11px;
  color: #536276;
}

.order-meta-item i {
  color: #3b6fbf;
  margin-top: 2px;
}

.order-meta-label {
  font-weight: 700;
  color: #314156;
}

.order-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-order-action {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(246, 248, 252, 0.96);
  color: #314156;
  font-size: 11px;
  font-weight: 700;
}

.btn-order-action:hover {
  border-color: rgba(74, 111, 165, 0.18);
  color: #355f95;
}

.btn-order-action.btn-delete:hover {
  border-color: rgba(210, 85, 90, 0.18);
  color: #aa3841;
}

.booking-card {
  padding: 12px;
}

.booking-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.booking-card-date {
  font-size: 12px;
  font-weight: 700;
  color: #162132;
}

.booking-card-type {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(74, 111, 165, 0.1);
  border: 1px solid rgba(74, 111, 165, 0.14);
  color: #355f95;
  font-size: 10.5px;
  font-weight: 700;
}

.booking-card-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  color: #59697e;
}

.booking-card-detail span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.booking-card-detail i {
  color: #3b6fbf;
}

.sheet-body {
  padding-bottom: 28px;
}

.sheet-ops-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.sheet-ops-summary {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.98));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.sheet-ops-profile {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sheet-ops-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #4a6fa5 0%, #365983 100%);
}

.sheet-ops-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-ops-meta {
  min-width: 0;
  flex: 1;
}

.sheet-ops-name {
  font-size: 16px;
  font-weight: 700;
  color: #132033;
  line-height: 1.2;
}

.sheet-ops-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 12px;
  color: #6a7990;
}

.sheet-ops-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.sheet-ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.sheet-ops-metric {
  padding: 8px;
  border-radius: 12px;
  background: rgba(246, 248, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.sheet-ops-metric strong {
  display: block;
  font-size: 13px;
  color: #132033;
}

.sheet-ops-metric span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #7b8aa0;
}

.sheet-ops-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.sheet-ops-tab {
  min-width: 0;
  padding: 9px 8px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  color: #59697e;
  display: inline-flex;
  justify-content: center;
  gap: 5px;
}

.sheet-ops-tab.is-active {
  color: #1c3b63;
  border-color: rgba(74, 111, 165, 0.2);
  background: rgba(74, 111, 165, 0.12);
}

.sheet-ops-tab__count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.07);
  font-size: 10px;
}

.sheet-ops-tab.is-active .sheet-ops-tab__count {
  background: rgba(255, 255, 255, 0.72);
}

.sheet-ops-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.sheet-ops-panel.is-active {
  display: flex;
}

.sheet-ops-card {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.sheet-ops-card__title {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #74849a;
  margin-bottom: 8px;
}

.sheet-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sheet-ops-grid > div {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(246, 248, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.sheet-ops-grid label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a899d;
}

.sheet-ops-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #162132;
  word-break: break-word;
}

.sheet-ops-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: #223247;
}

.sheet-ops-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sheet-ops-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(246, 248, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #415166;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.sheet-ops-note,
.sheet-order,
.sheet-booking {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sheet-ops-note.pinned {
  background: rgba(255, 251, 235, 0.96);
  border-color: rgba(223, 169, 75, 0.24);
}

.sheet-ops-note__meta,
.sheet-booking__meta,
.sheet-order-meta {
  margin-top: 8px;
  font-size: 10.5px;
  color: #73839a;
}

.sheet-order {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sheet-order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sheet-order-items,
.sheet-order-total,
.sheet-booking__row {
  font-size: 11.5px;
  color: #536276;
}

.sheet-booking__title {
  font-size: 12.5px;
  font-weight: 700;
  color: #162132;
}

.sheet-ops-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(74, 111, 165, 0.16);
  background: rgba(74, 111, 165, 0.1);
  color: #355f95;
  font-size: 11px;
  font-weight: 700;
}

#orderSidebarOverlay {
  display: none;
}

@media (min-width: 1280px) {
  .chat-app {
    grid-template-columns: 300px minmax(0, 1fr) 336px;
  }

  .order-sidebar {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (min-width: 768px) and (max-width: 1279.98px) {
  .order-sidebar {
    width: 348px;
    right: 0;
    top: 0;
    height: 100dvh;
    transform: translateX(100%);
    transition: transform 240ms ease;
    z-index: 540;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  }

  .order-sidebar.show {
    transform: translateX(0);
  }

  #orderSidebarOverlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(18, 25, 38, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    z-index: 530;
  }

  #orderSidebarOverlay.show {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 767.98px) {
  .sheet-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .sheet-actions {
    margin-bottom: 0;
  }

  .sheet-action-btn {
    border-radius: 14px;
    background: rgba(246, 248, 252, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.06);
    min-height: 68px;
  }

  .sheet-action-btn span {
    font-size: 11px;
    font-weight: 700;
  }

  .sheet-ops-metrics,
  .sheet-ops-tabs,
  .sheet-ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
