:root {
  color-scheme: light;
  font: 14px/1.4 system-ui, sans-serif;
  color: #1e2c3a;
  background: #edf1f5;
  --navy: #263a4f;
  --blue: #175687;
  --line: #cbd5df;
  --muted: #475a6d;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--blue); }
a:hover { color: #0d395c; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #0876c2;
  outline-offset: 2px;
}

.app-header {
  border-bottom: 3px solid #68849b;
  background: var(--navy);
  color: #fff;
}
.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1440px;
  min-height: 53px;
  margin: auto;
  padding: 0 28px;
}
.app-name {
  color: inherit;
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
}
.app-name:hover { color: inherit; text-decoration: underline; }
.site { font-weight: 650; white-space: nowrap; }
.site span { color: #cedae4; margin-right: 5px; font-size: 12px; }

main { max-width: 1440px; margin: auto; padding: 24px 28px; }
.page-title { padding-bottom: 15px; }
.page-title p { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
h1, h2, h3 { margin: 0; }
h1 { font-size: 25px; font-weight: 650; }
h2, h3 { font-size: 15px; font-weight: 650; }

.tabs { display: flex; gap: 2px; }
.tabs a {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: #e0e7ee;
  color: #29425a;
  font-weight: 600;
  text-decoration: none;
}
.tabs a[href]:hover { background: #f4f8fb; }
.tabs a[aria-current="page"] {
  position: relative;
  background: #fff;
  box-shadow: inset 0 3px var(--blue);
}
.tabs a[aria-current="page"]::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: #fff;
  content: "";
}
.tabs a[aria-disabled="true"] { color: #586a7b; }

.panel { overflow: hidden; margin: 0; border: 1px solid var(--line); background: #fff; }
.notice { padding: 16px; }
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
}
.detail-header { border-bottom: 1px solid var(--line); }
#search-form, .search-controls { display: flex; align-items: center; gap: 8px; }
#search-form { flex-wrap: wrap; }
#search-form label { color: var(--muted); font-size: 12px; font-weight: 600; }
input, button {
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid #a8b7c5;
  border-radius: 3px;
  background: #fff;
  color: inherit;
  font: inherit;
}
input { width: 250px; max-width: 100%; }
button { background: #f2f5f8; cursor: pointer; }
button:hover:enabled { background: #e1e9f0; }
button:disabled { opacity: .55; cursor: default; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td {
  padding: 9px 16px;
  border-bottom: 1px solid #dce3eb;
  text-align: left;
  white-space: nowrap;
}
th {
  border-top: 1px solid var(--line);
  border-bottom-color: var(--line);
  background: #e3ebf3;
  color: #294159;
}
tbody tr:nth-child(even) { background: #f6f8fb; }
tbody tr:hover { background: #eef5fa; }
td a { font-weight: 650; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.table-footer { margin: 0; padding: 8px 16px; color: var(--muted); font-size: 12px; }

.fields {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin: 0;
  padding: 14px 16px;
}
.fields dt { margin-bottom: 3px; color: var(--muted); font-size: 12px; font-weight: 600; }
.fields dd { margin: 0; }
.logged-hours dd { color: var(--navy); font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; }
.section-header { padding: 10px 16px; border-top: 1px solid var(--line); background: #f2f6fa; }

@media (max-width: 600px) {
  .app-bar { padding: 0 14px; }
  main { padding: 18px 12px; }
  .panel-header, .fields, .notice, .section-header, .table-footer { padding-left: 12px; padding-right: 12px; }
  #search-form, .search-controls { width: 100%; }
  .search-controls input { flex: 1; min-width: 0; }
}
