/* Admin Orders — management dashboard page */

.admin-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.filter-btn:hover { color: var(--fg); border-color: var(--fg-muted); }
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  border-bottom-width: 2px;
}

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  padding: 0.65rem 1rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }

.client-name {
  font-weight: 500;
  font-size: 0.88rem;
}
.client-email {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.order-total {
  font-weight: 600;
  color: var(--accent);
}

/* Status select */
.status-select {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238a8799'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 1.8rem;
}
.status-select:focus { border-color: var(--accent); }

/* Save indicator */
.save-indicator {
  font-size: 0.75rem;
  font-family: 'DM Mono', monospace;
  margin-left: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.save-indicator.visible { opacity: 1; }
.save-indicator.ok { color: var(--green); }
.save-indicator.err { color: var(--red); }

/* Login wall */
.login-wall {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem;
}
.login-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
}
.login-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.login-sub {
  color: var(--fg-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.login-input {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.15s;
}
.login-input::placeholder { color: var(--fg-muted); }
.login-input:focus { border-color: var(--accent); }
.login-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: opacity 0.15s;
}
.login-btn:hover { opacity: 0.85; }
.login-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.login-error {
  color: var(--red);
  font-size: 0.8rem;
  display: none;
}
.login-error.visible { display: block; }
.login-forgot {
  display: block;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.login-forgot:hover { color: var(--accent); }

/* Dashboard wrapper */
.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dashboard-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Table wrapper */
.table-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

/* Empty row */
.empty-row td {
  text-align: center;
  color: var(--fg-muted);
  padding: 3rem 1rem;
  font-size: 0.9rem;
}

/* Order number mono */
.order-num-mono {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
}
