﻿:root {
      --bg: #f4f7fb;
      --card: #ffffff;
      --text: #1d2735;
      --muted: #5f6b7a;
      --brand: #0c6b58;
      --brand-2: #0a5849;
      --line: #d8e0ea;
      --danger: #b92c2c;
    }
    * { box-sizing: border-box; }
    
      padding-top: 68px;
    }
    .topbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      z-index: 1000;
      background: #ffffff;
      border-bottom: 1px solid var(--line);
    }
    .topbar-inner {
      padding: 12px clamp(12px, 2vw, 28px);
      display: flex;
      gap: 14px;
      align-items: center;
      flex-wrap: wrap;
    }
    .brand {
      font-weight: 700;
      color: var(--brand);
      margin-right: 10px;
    }
    .nav {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .nav a {
      text-decoration: none;
      color: var(--text);
      border: 1px solid var(--line);
      padding: 6px 10px;
      border-radius: 8px;
      background: #fff;
      font-size: 14px;
    }
    .nav a:hover { border-color: var(--brand); }
    .nav a[aria-current="page"] {
      background: var(--brand);
      color: #fff;
      border-color: var(--brand);
      pointer-events: none;
      cursor: default;
    }
    main {
      margin: 24px auto;
      padding: 20px clamp(12px, 2vw, 28px) 28px;
      display: grid;
      gap: 14px;
    }
    .panel {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 18px;
    }
    h1, h2 {
      margin: 0 0 10px;
    }
    p {
      margin: 0 0 12px;
      color: var(--muted);
    }
    .row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 10px;
      align-items: end;
    }
    label {
      display: block;
      font-size: 13px;
      margin-bottom: 4px;
      color: #294455;
      font-weight: 600;
    }
    input, select {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 8px 10px;
      font-size: 14px;
      background: #fff;
    }
    .btn {
      text-decoration: none;
      background: var(--brand);
      color: #fff;
      border: 0;
      border-radius: 8px;
      padding: 8px 12px;
      font-size: 14px;
      display: inline-block;
      cursor: pointer;
    }
    .btn:hover { background: var(--brand-2); }
    .btn-danger {
      background: var(--danger);
    }
    .btn-danger:hover {
      background: #982424;
    }
    .status {
      margin-top: 10px;
      font-size: 14px;
      font-weight: 600;
      color: #1f6d3a;
    }
    .status.error {
      color: var(--danger);
    }
    .table-wrap {
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      margin-top: 10px;
    }
    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 880px;
    }
    th, td {
      text-align: left;
      padding: 9px 10px;
      border-bottom: 1px solid #e8edf4;
      font-size: 14px;
      white-space: nowrap;
    }
    th {
      background: #f6faf9;
      color: #1f3a33;
      font-weight: 700;
    }


/* Stable fixed navigation across pages */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}
.topbar-inner {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.brand {
  flex-shrink: 0;
}
.nav {
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav a {
  flex-shrink: 0;
}

/* Navigation hard lock (prevent any bleed behind nav) */
.topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2147483000 !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--line) !important;
  isolation: isolate;
}
.topbar-inner {
  position: relative;
  z-index: 1;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.brand { flex-shrink: 0; }
.nav { flex-wrap: nowrap !important; white-space: nowrap; }
.nav a { flex-shrink: 0; }
body { padding-top: 74px !important; }
