:root {
  --bg: #eef3f7;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --line: #d9e3eb;
  --text: #102233;
  --muted: #6a7886;
  --blue: #1687d9;
  --blue-dark: #075a9b;
  --green: #12875d;
  --red: #c73535;
  --amber: #b76b00;
  --shadow: 0 16px 40px rgba(18, 41, 61, 0.08);
  font-family: "Inter", "Noto Sans Devanagari", "Nirmala UI", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

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

.supervisor-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.hero,
.login-card,
.entry-card,
.log-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

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

.brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 25px;
}

.brand p,
.section-heading p,
.login-card p,
small {
  color: var(--muted);
}

.dashboard-link,
button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button.secondary {
  background: var(--surface-soft);
  color: var(--blue-dark);
  border: 1px solid var(--line);
}

button.danger {
  height: 30px;
  background: #ffe9e8;
  color: var(--red);
  border: 1px solid #ffc7c3;
  padding: 0 10px;
  font-size: 12px;
}

.login-card {
  max-width: 430px;
  padding: 20px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 10px 11px;
}

textarea {
  resize: vertical;
}

.entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.entry-card,
.log-card {
  padding: 18px;
  min-width: 0;
}

.section-heading {
  margin-bottom: 6px;
}

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

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 11px 9px;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.status.Breakdown {
  background: #ffe9e8;
  color: var(--red);
}

.status.Under {
  background: #fff2d8;
  color: var(--amber);
}

.status.Resolved {
  background: #e7f7ef;
  color: var(--green);
}

.hidden {
  display: none;
}

@media (max-width: 860px) {
  .supervisor-shell {
    padding: 14px;
  }

  .hero,
  .entry-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: stretch;
    flex-direction: column;
  }
}
