:root {
  --primary: #006858;
  --primary-deep: #004d42;
  --primary-light: #2aa18a;
  --accent: #3dbda0;
  --bg: #f0faf7;
  --card: #ffffff;
  --text: #1a2e28;
  --muted: #4a6a62;
  --border: #b8ddd6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI Variable", "Segoe UI", "Roboto", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

header {
  background: var(--primary);
  color: #fff;
  padding: 1.2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 104, 88, 0.30);
  border-bottom: 3px solid var(--primary-light);
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  text-align: center;
  grid-column: 1 / -1;
}

header p {
  margin: 0.4rem 0 0.1rem;
  opacity: 0.9;
}

.brand-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  width: min(1760px, 100%);
  margin: 0 auto;
}

.brand-logo-accenture {
  width: 180px;
  max-width: 34vw;
  height: auto;
  flex-shrink: 0;
  justify-self: start;
  align-self: center;
  position: relative;
  top: 2.45rem;
}

.brand-logo-app {
  width: 240px;
  max-width: 40vw;
  height: auto;
  flex-shrink: 0;
  background: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  justify-self: end;
  align-self: center;
  position: relative;
  top: 2.45rem;
}

nav {
  margin-top: 0.4rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 0.55rem 0.9rem;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.22);
}

nav a.nav-active {
  background: rgba(255, 255, 255, 0.34);
  border: 3px solid #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

.info.header-session-info {
  position: absolute;
  top: 1.35rem;
  right: 9.4rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #e9fffa;
  background: transparent;
  border: none;
  white-space: nowrap;
  display: inline-block;
  width: auto;
  max-width: calc(100% - 12rem);
}

header nav .nav-back {
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.42);
}

header nav .nav-back:hover {
  border-color: rgba(255, 255, 255, 0.78);
}

header nav #logoutLink {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.42);
}

header nav #logoutLink:hover {
  border-color: rgba(255, 255, 255, 0.78);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 104, 88, 0.08);
}

label {
  display: block;
  font-size: 0.92rem;
  color: #2e5048;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #a8ccc5;
  border-radius: 4px;
  background: #ffffff;
  font-family: inherit;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 1px;
  border-color: var(--primary-light);
}

button,
a.btn {
  border: none;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1rem;
  cursor: pointer;
  text-decoration: none;
  background: var(--primary);
  transition: background 0.15s;
}

button:hover,
a.btn:hover {
  background: var(--primary-light);
}

button.secondary,
a.btn.secondary {
  background: #4a7a6e;
}

button.secondary:hover,
a.btn.secondary:hover {
  background: #346058;
}

.info {
  margin-top: 0.8rem;
  color: #1a3a30;
  background: #d5ede8;
  border: 1px solid #9ecdc4;
  border-radius: 6px;
  padding: 0.85rem;
  font-size: 0.92rem;
}

.subtle,
.muted {
  color: var(--muted);
}

@media (max-width: 980px) {
  .info.header-session-info {
    position: static;
    display: block;
    margin: 0.55rem 0 0;
    text-align: center;
  }

  header nav .nav-back,
  header nav #logoutLink {
    position: static;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.7rem;
}

th,
td {
  border: 1px solid #b8ddd6;
  padding: 0.55rem;
  text-align: left;
  font-size: 0.9rem;
}

th {
  background: #d5ede8;
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .brand-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand-logo-accenture,
  .brand-logo-app,
  .brand-header h1,
  .brand-header-copy {
    justify-self: center;
  }

  .brand-logo-accenture,
  .brand-logo-app {
    position: static;
  }

  .brand-logo-accenture {
    max-width: 56vw;
  }

  .brand-logo-app {
    max-width: 62vw;
  }
}
