* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 122, 140, 0.1), transparent 26rem),
    linear-gradient(135deg, #f7fbff 0%, #eef6ff 48%, #f8fbff 100%);
}

button,
input,
select {
  font: inherit;
}

.executive-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dbe8f6;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(21, 66, 128, 0.1);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  height: 56px;
  background: linear-gradient(90deg, rgba(255,255,255,0.97), rgba(237,247,255,0.96));
  border-bottom: 1px solid #d8e6f4;
  box-shadow: 0 4px 18px rgba(21, 66, 128, 0.09);
}

.brand-mark {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand-drop {
  width: 30px;
  height: 36px;
  border: 3px solid #0d5db8;
  border-radius: 55% 55% 55% 12%;
  transform: rotate(45deg);
  position: relative;
  background: linear-gradient(135deg, rgba(11, 91, 181, 0.08), rgba(31, 122, 140, 0.22));
}

.brand-drop::after {
  content: "";
  position: absolute;
  inset: 6px 10px 5px 9px;
  border-right: 3px solid #22b7d6;
  border-radius: 50%;
}

.brand-wordmark {
  color: #0b1f53;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.brand-subtitle {
  color: #0d5db8;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.sidebar-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.course-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #45617f;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.course-status span {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid #cfe1f6;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
}

.sidebar-button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.38rem 0.7rem;
  color: #12325f;
  font-size: 0.82rem;
  font-weight: 700;
  transition: 160ms ease;
  white-space: nowrap;
}

.sidebar-button:hover {
  border-color: #b7d4f6;
  background: rgba(255, 255, 255, 0.85);
}

.sidebar-button.active {
  background: linear-gradient(135deg, #0d63c7, #0750a5);
  color: white;
  box-shadow: 0 4px 14px rgba(13, 93, 184, 0.28);
}

.sidebar-button.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sidebar-icon {
  display: inline-flex;
  width: 1.3rem;
  height: 1.3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.content-shell {
  min-width: 0;
  flex: 1;
  padding: 1.35rem 1.6rem;
}

.hero-panel {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 84% 18%, rgba(31, 122, 140, 0.16), transparent 18rem),
    linear-gradient(135deg, #f8fbff, #e9f3ff);
  border: 1px solid #dbe8f6;
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(21, 66, 128, 0.12);
}

.welcome-offshore {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(4, 22, 63, 0.9) 0%, rgba(5, 31, 79, 0.78) 42%, rgba(5, 31, 79, 0.2) 76%),
    url("./vendor/offshore.jpeg");
  background-size: cover;
  background-position: center;
  border-color: #b9d8f5;
}

.welcome-offshore::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 42%),
    radial-gradient(circle at 18% 82%, rgba(34, 183, 214, 0.22), transparent 22rem);
}

.feature-card {
  min-height: 190px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dbe8f6;
  background: white;
  box-shadow: 0 16px 32px rgba(21, 66, 128, 0.08);
}

.feature-visual {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1f53;
  font-size: 2rem;
  font-weight: 900;
}

.feature-visual.blue {
  background: linear-gradient(135deg, #d9ecff, #9bd1ff);
}

.feature-visual.teal {
  background: linear-gradient(135deg, #d7f6f7, #92d8e3);
}

.feature-visual.orange {
  background: linear-gradient(135deg, #ffe5cf, #f6a36a);
}

.feature-visual.indigo {
  background: linear-gradient(135deg, #e2e5ff, #a9b3eb);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.flow-node {
  border: 1px solid #cfe1f6;
  border-radius: 999px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.55rem;
  color: #0d5db8;
  background: #f3f8ff;
  font-weight: 800;
}

.value-strip {
  background: linear-gradient(90deg, rgba(221, 237, 255, 0.8), rgba(241, 247, 255, 0.95));
  border: 1px solid #dbe8f6;
  border-radius: 12px;
}

.data-table th {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #52616b;
  text-align: left;
  font-weight: 700;
}

.data-table td,
.data-table th {
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid #e5edf4;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.round-matrix {
  border-collapse: separate;
  border-spacing: 0;
}

.round-matrix th,
.round-matrix td {
  min-width: 78px;
  padding: 0.65rem 0.55rem;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #e5edf4;
}

.round-matrix thead th {
  background: #f8fbff;
  color: #52616b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.round-matrix-team-header,
.round-matrix-team {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 180px !important;
  padding-left: 1.2rem !important;
  text-align: left !important;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 8px 0 12px -12px rgba(20, 33, 61, 0.35);
}

.round-matrix-team-header {
  z-index: 2;
  background: #f8fbff;
}

.round-matrix-active-header,
.round-matrix-cell-active {
  background: #edf8fb !important;
  box-shadow: inset 1px 0 #74c6d3, inset -1px 0 #74c6d3;
}

.round-matrix tr:last-child td,
.round-matrix tr:last-child th {
  border-bottom: 0;
}

.round-matrix-disabled-row {
  opacity: 0.7;
}

.round-status {
  display: inline-flex;
  min-width: 3.85rem;
  min-height: 1.7rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0.2rem 0.42rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

button.round-status {
  cursor: pointer;
}

button.round-status:hover {
  filter: brightness(0.96);
  box-shadow: 0 0 0 2px rgba(31, 122, 140, 0.16);
}

.round-status-submitted {
  border-color: #a9dbc3;
  background: #e7f7ed;
  color: #216448;
}

.round-status-submitted::before {
  content: "✓";
  margin-right: 0.22rem;
  font-size: 0.8rem;
}

.round-status-missing-current {
  border-color: #f2c2bc;
  background: #fff0ee;
  color: #b73e33;
}

.round-status-missing-past {
  border-color: #f3d8a9;
  background: #fff8e7;
  color: #936214;
}

.round-status-future {
  min-width: 2rem;
  border-color: #dbe4ef;
  background: #f5f7fa;
  color: #94a3b8;
}

.round-status-disabled {
  min-width: auto;
  border-color: #d9dee8;
  background: #f1f3f6;
  color: #687386;
}

.recharts-wrapper text {
  font-family: inherit;
}

@media (max-width: 900px) {
  .app-topbar {
    height: auto;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
  }

  .sidebar-nav {
    width: 100%;
    order: 3;
    flex-wrap: nowrap;
    gap: 0.2rem;
  }

  .course-status {
    margin-left: auto;
  }

  .sidebar-button {
    padding: 0.3rem 0.55rem;
    font-size: 0.76rem;
  }

  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
