* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f7fb;
  color: #172033;
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 44px;
  border: 1px solid #b8c4d6;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 14px;
}

button:hover {
  background: #eef3f9;
}

.primary-button {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.primary-button:hover {
  background: #1d4ed8;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border-bottom: 1px solid #d8e0ec;
}

.app-header h1 {
  margin: 0 0 4px;
  font-size: 24px;
}

.app-header p {
  margin: 0;
  color: #5b677a;
}

.app-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.tab-bar {
  display: flex;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 16px 0;
}

.tab-button {
  min-width: 140px;
}

.tab-button.active {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1e40af;
}

.screen {
  min-height: 100vh;
  padding: 24px;
}

.auth-screen {
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 420px;
  margin: 0 auto;
}

.auth-screen h1 {
  margin: 0;
  font-size: 30px;
}

.muted-text {
  margin: 0;
  color: #5b677a;
}

.error-message {
  margin: 0;
  color: #991b1b;
  font-weight: 700;
}

.panel {
  background: #ffffff;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  padding: 16px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.wide {
  grid-column: 1 / -1;
}

.hidden {
  display: none;
}

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

label {
  display: grid;
  gap: 6px;
  color: #39465a;
  font-weight: 700;
}

input,
select {
  min-height: 44px;
  width: 100%;
  border: 1px solid #b8c4d6;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  padding: 10px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  min-height: auto;
  width: 20px;
  height: 20px;
}

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

.empty {
  color: #6b7688;
}

.row-card {
  display: grid;
  gap: 7px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.alert-card {
  border-color: #f59e0b;
}

.alert-card-highlight {
  animation: alertPulse 1.1s ease-in-out 3;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.request-card {
  border-color: #c8d3e2;
}

.alerts-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.request-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.admin-form {
  margin-bottom: 16px;
}

.admin-button-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.status-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 700;
  text-transform: capitalize;
}

.online,
.delivered {
  background: #dcfce7;
  color: #166534;
}

.offline,
.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.break {
  background: #fef3c7;
  color: #92400e;
}

.pending {
  background: #e0f2fe;
  color: #075985;
}

.assigned {
  background: #dbeafe;
  color: #1e40af;
}

@keyframes alertPulse {
  0% {
    background: #fbfcfe;
  }

  50% {
    background: #eff6ff;
  }

  100% {
    background: #fbfcfe;
  }
}

@media (max-width: 760px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .button-row {
    grid-template-columns: 1fr;
  }

  .tab-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-button-row {
    grid-template-columns: 1fr;
  }
}
