body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f6f7f9;
  color: #111827;
}
div {
  font-size: inherit;
}


.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-top: 16px;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: #22410B;
  font-weight: 700;
}

h1 { font-size: 30px; margin-bottom: 14px; }
h2 { font-size: 20px; margin-bottom: 18px; margin-top: 12px; }
h3 { font-size: 18px; margin-bottom: 10px; }
h4 { font-size: 16px; margin-bottom: 8px; }
h5 { font-size: 14px; margin-bottom: 8px; }
h6 { font-size: 12px; margin-bottom: 8px; }

p,
ul,
ol,
label,
input,
textarea,
select,
button,
a,
table,
th,
td {
  font-size: 14px;
}

.muted {
  color: #6b7280;
  font-size: 13px;
  margin-top: 6px;
}

.label {
  display: block;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.formgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f9fafb;
  font-weight: 700;
}

.right {
  text-align: right;
}

input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.msg {
  padding: 10px 12px;
  border-radius: 8px;
  margin: 12px 0;
  border: 1px solid #e5e7eb;
}

.msg.ok {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

.msg.err {
  background: #fef2f2;
  border-color: #ef4444;
  color: #7f1d1d;
}

a {
  color: #374151;
  text-decoration: none;
  font-weight: 400;
}

a:hover {
  text-decoration: underline;
}


/* Ensure linked headings keep normal heading sizing */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

button,
.btn,
input[type="submit"],
input[type="button"],
.btn-primary,
.btn-danger,
.button-green1,
.button-green2,
.button-green3,
.button-green4,
.button-red1,
.button-orange1,
.button-grey1,
.button-blue1 {
  display: inline-block;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  box-sizing: border-box;
}

.button-red1 {
  background: #B91C1C;
  color: #fff;
  border: 1px solid #991B1B;
}
.button-red1:hover {
  background: #991B1B;
}

.button-orange1 {
  background: #F59E0B;
  color: #fff;
  border: 1px solid #D97706;
}
.button-orange1:hover {
  background: #D97706;
}

.button-grey1 {
  background: #6B7280;
  color: #fff;
  border: 1px solid #4B5563;
}
.button-grey1:hover {
  background: #4B5563;
}

.button-blue1 {
  background: #2563EB;
  color: #fff;
  border: 1px solid #1D4ED8;
}
.button-blue1:hover {
  background: #1D4ED8;
}
.button-delete {
  display: inline-block;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  box-sizing: border-box;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn-primary:hover,
.btn-danger:hover,
.button-green1:hover,
.button-green2:hover,
.button-green3:hover,
.button-green4:hover,
.button-red1:hover,
.button-orange1:hover,
.button-grey1:hover,
.button-blue1:hover,
.button-delete:hover {
  opacity: 0.92;
  text-decoration: none;
}

.btn-link {
  color: #374151;
  text-decoration: none;
  font-weight: 400;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-primary,
.button-green1 {
  background: #22410B;
}

.button-green2 {
  background: #356611;
}

.button-green3 {
  background: #81B717;
}

.button-green4 {
  background: #B3CF1A;
  color: #22410B;
}

.btn-danger,
.button-delete {
  background: #b91c1c;
}


.card-admin-flag{
  position:relative !important;
  padding-top:62px !important;
  border-top:5px solid var(--admin-flag-colour, #81B717) !important;
  overflow:visible !important;
}
.card-admin-flag > h2,
.card-admin-flag > h3.flag-header{
  position:absolute !important;
  top:7px !important;
  left:0 !important;
  margin:0 !important;
  display:inline-block !important;
  padding:10px 18px !important;
  border-radius:0 10px 10px 0 !important;
  line-height:1 !important;
  font-size:12.5px !important;
  font-weight:700 !important;
  text-transform:uppercase !important;
  color:#fff !important;
  background:var(--admin-flag-colour, #81B717) !important;
  box-shadow:0 1px 3px rgba(0,0,0,0.08) !important;
  z-index:5 !important;
  border:none !important;
}
.card-admin-flag > h2 span,
.card-admin-flag > h3.flag-header span{
  position:relative;
  top:1px;
  display:inline-block;
  color:#fff !important;
}

.section:first-of-type,
.card:first-of-type,
.white-box:first-of-type {
  margin-top: 0 !important;
}

.hide-sm {
  display: table-cell;
}

@media (max-width: 768px) {
  body,
  p,
  ul,
  ol,
  table,
  th,
  td,
  label,
  input,
  textarea,
  select,
  button,
  a {
    font-size: 12px;
  }

  button,
  .btn,
  input[type="submit"],
  input[type="button"],
  .btn-primary,
  .btn-danger,
  .button-green1,
  .button-green2,
  .button-green3,
  .button-green4,
  .button-red1,
  .button-orange1,
  .button-grey1,
  .button-blue1,
  .button-delete {
    padding: 6px 8px;
  }

  .button-green1,
  .button-green2,
  .button-green3,
  .button-green4,
  .button-red1,
  .button-orange1,
  .button-delete {
    font-size: 12px;
    line-height: 1.2;
  }

  /* If a delete button has no text (icon-only markup), show a compact label on small screens */
  .button-delete:empty::before {
    content: "Del";
    font-size: 12px;
    line-height: 1.2;
  }


  .hide-sm {
    display: none !important;
  }

  h1 { font-size: 24px; }
  h2 { font-size: 17px; }
  h3 { font-size: 16px; }
  h4 { font-size: 14px; }
  h5 { font-size: 13px; }
  h6 { font-size: 12px; }
}

@media (max-width: 410px) {
  button,
  .btn,
  input[type="submit"],
  input[type="button"],
  .btn-primary,
  .btn-danger,
  .button-green1,
  .button-green2,
  .button-green3,
  .button-green4,
  .button-red1,
  .button-orange1,
  .button-grey1,
  .button-blue1,
  .button-delete {
    padding: 5px 7px;
  }

  .button-green1,
  .button-green2,
  .button-green3,
  .button-green4,
  .button-red1,
  .button-orange1,
  .button-delete {
    font-size: 11px;
    line-height: 1.2;
  }

  .button-delete:empty::before {
    font-size: 11px;
    line-height: 1.2;
  }
}


/* Pitch1 consistent action button sizing on small screens */
@media (max-width: 768px) {
  .button-green1,
  .button-green2,
  .button-green3,
  .button-green4,
  .button-red1,
  .button-orange1,
  .button-delete {
    padding: 6px 8px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    border-radius: 8px !important;
  }
}

/* Pitch1 extra-small action button sizing */
@media (max-width: 410px) {
  .button-green1,
  .button-green2,
  .button-green3,
  .button-green4,
  .button-red1,
  .button-orange1,
  .button-delete {
    padding: 5px 7px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    border-radius: 7px !important;
  }
}

/* Pitch1 extra-small flag header text sizing */
@media (max-width: 410px) {
  .card-admin-flag > h2,
  .card-admin-flag > h3.flag-header {
    font-size: 11.5px !important;
  }
}


/* Keep dropdown text black on iOS / Apple browsers */
select,
select option {
  color: #111827;
}

/* Force native dropdown text black on iOS/Safari, including pages with local select styling */
select,
select option,
select optgroup {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}


/* Force visible dropdown text black on iOS/Safari */
select,
select option,
select optgroup,
select:focus,
select:active {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  text-decoration-color: #111827 !important;
}

select:not(.dd-select) {
  background-color: #fff !important;
  -webkit-appearance: menulist !important;
  appearance: auto !important;
}
