* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  background: linear-gradient(180deg, #f4f7fb 0%, #eef2f8 100%);
  color: #1f2937;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px 1fr;
}

.sidebar {
  padding: 32px 24px;
  background: linear-gradient(160deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand h1,
.panel h2,
.panel h3 {
  margin: 0;
}

.brand p,
.panel-header p,
.hint-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
  letter-spacing: 1px;
}

.hint-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(5, 21, 56, 0.18);
}

.hint-title {
  font-size: 14px;
  opacity: 0.8;
}

.hint-value {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
}

.main {
  padding: 32px;
}

.panel {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

.login-panel {
  max-width: 560px;
}

.panel-header {
  margin-bottom: 24px;
}

.panel-header p {
  color: #64748b;
}

.compact {
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #334155;
}

input,
select,
button,
textarea {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #dbe2ea;
  background: #f8fafc;
  outline: none;
}

input:focus,
select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

button {
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

button:active {
  transform: scale(0.98);
}

.primary-button,
.action-button {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
}

.ghost-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
}

.message {
  margin-top: 16px;
  min-height: 24px;
  color: #dc2626;
}

.dashboard.hidden {
  display: none;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  gap: 24px;
}

.orders-list {
  display: grid;
  gap: 14px;
}

.order-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  cursor: pointer;
}

.order-card.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.order-card-header,
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.order-card-header {
  margin-bottom: 10px;
  font-weight: 700;
}

.order-card p,
.timeline-item p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-assigned {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-service {
  background: #dcfce7;
  color: #166534;
}

.status-completed {
  background: #e2e8f0;
  color: #334155;
}

.order-detail {
  display: grid;
  gap: 18px;
}

.detail-grid {
  display: grid;
  gap: 12px;
}

.detail-row {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.detail-label {
  color: #64748b;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.empty-state {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: #f8fafc;
  border-radius: 22px;
}

@media (max-width: 1120px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}
