:root {
  --dark: #173b31;
  --nav: #173a31;
  --cream: #f5f6f1;
  --surface: #fff;
  --ink: #253b31;
  --muted: #7a8780;
  --line: #e6eae3;
  --gold: #b19a70;
  --green: #2c6450;
  --red: #b25647;
  --shadow: 0 4px 20px rgba(28, 61, 46, 0.035);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f6f7f3;
  color: var(--ink);
  font:
    14px "DM Sans",
    Arial,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  text-decoration: none;
  color: inherit;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #79b494;
  outline-offset: 2px;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 52% 48%;
  background: #fff;
}
.auth-photo {
  background:
    linear-gradient(180deg, rgba(12, 26, 21, 0.05), rgba(10, 37, 28, 0.85)),
    url("/assets/images/sunset-lounge.webp") center/cover;
  position: relative;
  color: #fff;
}
.auth-photo-content {
  position: absolute;
  bottom: 9%;
  left: 12%;
  max-width: 540px;
}
.auth-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #e2cfa8;
}
.auth-photo h1 {
  font:
    500 clamp(40px, 4.2vw, 68px) / 0.98 "Cormorant Garamond",
    Georgia,
    serif;
  max-width: 510px;
  margin: 26px 0 22px;
}
.auth-photo p {
  max-width: 370px;
  line-height: 1.85;
  color: #e9f0e8;
  font-size: 13px;
}
.auth-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 80px clamp(35px, 9vw, 150px);
  position: relative;
}
.auth-back {
  position: absolute;
  top: 35px;
  left: clamp(35px, 9vw, 150px);
  font-size: 12px;
  color: var(--muted);
}
.auth-back:hover {
  text-decoration: underline;
}
.auth-logo {
  width: 188px;
  height: 146px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 20px;
  filter: drop-shadow(0 2px 2px #b8c2b6);
}
.auth-tag,
.small-caption {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.1px;
  color: #7f8f84;
}
.auth-card h2 {
  font:
    500 52px/0.95 "Cormorant Garamond",
    Georgia,
    serif;
  margin: 20px 0 14px;
}
.auth-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 33px;
}
.auth-card form {
  width: 100%;
  max-width: 430px;
}
.auth-card label,
.panel label,
.dialog-panel label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 19px;
  color: #34483d;
}
.auth-card input,
.panel input,
.panel select,
.panel textarea,
.dialog-panel input,
.dialog-panel textarea,
.dialog-panel select {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dbe2da;
  background: #fff;
  border-radius: 6px;
  color: #263d31;
  outline: 0;
  min-width: 0;
  transition: border-color 0.2s;
}
.auth-card input:focus,
.panel input:focus,
.panel select:focus,
.panel textarea:focus,
.dialog-panel input:focus,
.dialog-panel textarea:focus,
.dialog-panel select:focus {
  border-color: #5d9672;
  box-shadow: 0 0 0 3px rgba(93, 150, 114, 0.1);
}
.auth-card input {
  padding: 16px 15px;
}
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: var(--green);
  border: 1px solid var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 17px 21px;
  border-radius: 5px;
  transition: background 0.2s;
  white-space: nowrap;
}
.primary-action:hover {
  background: #214a3b;
}
.auth-card form .primary-action {
  width: 100%;
  margin-top: 8px;
}
.primary-action:disabled {
  opacity: 0.58;
  cursor: wait;
}
.primary-action.compact {
  padding: 12px 17px;
}
.auth-foot {
  color: #94a196;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 30px;
}
.error-text {
  color: #8e241e;
  background: #fff1ee;
  padding: 12px;
  border-radius: 5px;
  margin: 12px 0;
  font-size: 12px;
}
.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #193b31;
  color: #eef6f0;
  padding: 15px 12px 25px;
  overflow: auto;
}
.sidebar-brand {
  padding: 15px 17px 28px;
  border-bottom: 1px solid #35554b;
  display: flex;
  flex-direction: column;
}
.sidebar-brand img {
  width: 160px;
  height: 112px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}
.sidebar-brand span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.3px;
  color: #aecebd;
}
.sidebar-group-title {
  padding: 25px 19px 12px;
  color: #9eb6a8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
.sidebar-group-title--second {
  padding-top: 28px;
}
.side-nav {
  display: flex;
  flex-direction: column;
}
.nav-item {
  color: #d0e0d6;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 14px 17px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  font-weight: 600;
}
.nav-item:hover {
  background: #244a3d;
}
.nav-item.active {
  background: #315b4a;
  color: #fff;
}
.nav-glyph {
  font-size: 18px;
  width: 23px;
  text-align: center;
  font-weight: 400;
  color: #c9dbce;
}
.count-chip {
  background: #dbc29a;
  color: #324634;
  margin-left: auto;
  padding: 2px 7px;
  font-size: 9px;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 15px 0;
  border-top: 1px solid #35554b;
  display: grid;
  gap: 14px;
}
.sidebar-bottom a,
.sidebar-bottom button {
  color: #c9dcd0;
  font-size: 12px;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 4px 0;
}
.sidebar-bottom button:hover,
.sidebar-bottom a:hover {
  color: #fff;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 80px;
  padding: 0 clamp(25px, 4vw, 64px);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-path {
  font-size: 12px;
  color: #818e85;
}
.topbar-path span {
  margin: 0 9px;
  color: #c1c9c2;
}
.topbar-path b {
  font-weight: 600;
  color: #314c3f;
}
.status-pill {
  padding: 7px 10px;
  color: #39654a;
  background: #eaf2e9;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50px;
}
.status-pill i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #66a977;
  margin-right: 5px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e3e9df;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
}
.admin-email {
  font-size: 11px;
  color: #627266;
}
.mobile-menu {
  display: none;
  border: 0;
  background: transparent;
  font-size: 23px;
}
.content-area {
  max-width: 1590px;
  margin: 0 auto;
  padding: 47px clamp(25px, 4vw, 64px) 90px;
}
.heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 32px;
}
.heading-row h1 {
  font:
    500 clamp(36px, 3.2vw, 53px) / 1 "Cormorant Garamond",
    Georgia,
    serif;
  margin: 14px 0 12px;
}
.heading-row p {
  margin: 0;
  color: #87938a;
  font-size: 13px;
}
.outline-action,
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d4ded5;
  background: #fff;
  border-radius: 5px;
  padding: 11px 14px;
  color: #305d43;
  font-size: 12px;
  font-weight: 700;
}
.text-action {
  border: 0;
  background: transparent;
  padding: 8px 0;
}
.outline-action:hover {
  background: #eef4ee;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 23px;
  min-height: 135px;
}
.stat-card .meta {
  color: #7e9287;
  font-size: 11px;
  font-weight: 600;
}
.stat-card strong {
  font:
    500 47px/1 "Cormorant Garamond",
    Georgia,
    serif;
  display: block;
  margin-top: 21px;
}
.stat-card .foot {
  display: block;
  margin-top: 7px;
  color: #9eaaa0;
  font-size: 10px;
}
.stat-card.primary {
  background: var(--nav);
  border-color: var(--nav);
  color: #fff;
}
.stat-card.primary .meta {
  color: #c6dfd0;
}
.stat-card.primary .foot {
  color: #abc9b7;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 23px;
  margin-bottom: 23px;
}
.panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  min-width: 0;
}
.panel > h2,
.panel-heading h2 {
  font-size: 16px;
  color: #324b3f;
  margin: 0 0 8px;
  font-weight: 700;
}
.panel > p,
.panel-heading p {
  margin: 0 0 23px;
  color: #9aa69c;
  font-size: 11px;
  line-height: 1.7;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.traffic-chart {
  height: 207px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 15px 0 0;
  border-bottom: 1px solid #e4eae3;
}
.traffic-chart .bar-col {
  flex: 1;
  min-width: 2px;
  position: relative;
  height: 100%;
  display: flex;
  align-items: end;
}
.traffic-chart .bar {
  width: 100%;
  background: linear-gradient(0deg, #c0d4c5, #59836d);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.traffic-chart .bar-col:hover:after {
  content: attr(data-title);
  position: absolute;
  top: 0;
  left: 0;
  min-width: 110px;
  background: #233c30;
  color: #fff;
  font-size: 9px;
  padding: 6px;
  z-index: 2;
  border-radius: 4px;
}
.next-actions button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 17px 2px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid #eef0eb;
  color: #31483a;
  font-size: 12px;
  font-weight: 600;
}
.next-actions button:last-child {
  border: 0;
}
.next-actions button span {
  font-size: 15px;
  color: #8bad92;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
  min-width: 700px;
}
.data-table th {
  font-size: 9px;
  letter-spacing: 1.1px;
  font-weight: 700;
  color: #98a69a;
  background: #fafcf9;
  padding: 16px 13px;
  white-space: nowrap;
  border-bottom: 1px solid #e5eae5;
}
.data-table td {
  padding: 15px 13px;
  border-bottom: 1px solid #edf0eb;
  color: #52675a;
  vertical-align: middle;
}
.data-table tbody tr:hover {
  background: #fafbf9;
}
.data-table strong {
  font-weight: 700;
  color: #294334;
}
.data-table small {
  display: block;
  font-size: 10px;
  color: #9aa99e;
  margin-top: 5px;
}
.data-table td button {
  background: transparent;
  color: #356950;
  border: 0;
  font-weight: 700;
  padding: 6px;
}
.table-scroller {
  overflow: auto;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: #99a69c;
  font-size: 12px;
}
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50px;
  padding: 6px 10px;
  color: #846a3a;
  background: #f9f0dc;
  white-space: nowrap;
}
.badge.em_contacto {
  background: #e9f2f9;
  color: #3f7095;
}
.badge.confirmado {
  background: #e3f4e8;
  color: #3b774e;
}
.badge.concluido {
  background: #e6ede8;
  color: #47645a;
}
.badge.cancelado {
  background: #fae9e7;
  color: #97544c;
}
.warning-banner {
  background: #fff9ea;
  border: 1px solid #f0e3c3;
  color: #806d45;
  padding: 16px 19px;
  margin-bottom: 21px;
  border-radius: 5px;
  line-height: 1.7;
  font-size: 11px;
}
.request-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.request-toolbar input {
  flex: 1;
}
.request-toolbar select {
  max-width: 220px;
}
.request-toolbar input,
.request-toolbar select {
  margin: 0;
}
.table-footer {
  padding: 17px 4px 0;
  margin: 0;
  color: #8d9d91;
  font-size: 11px;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.content-grid .panel:nth-child(3) {
  grid-column: 1 / -1;
}
.panel textarea {
  resize: vertical;
  min-height: 65px;
}
.panel label {
  margin-top: 20px;
}
.hero-img-preview {
  width: min(390px, 100%);
  height: 175px;
  border-radius: 6px;
  overflow: hidden;
  background: #dee9e1;
  margin: 18px 0 8px;
}
.hero-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}
.gallery-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.upload-panel {
  position: sticky;
  top: 25px;
}
.upload-panel h2 {
  margin-top: 15px;
}
.upload-icon {
  display: grid;
  place-items: center;
  background: #edf4ea;
  color: #2b5d46;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 29px;
}
.gallery-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.gallery-edit {
  border: 1px solid #e3ebe2;
  border-radius: 6px;
  overflow: hidden;
}
.gallery-edit img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.gallery-edit-body {
  padding: 13px;
}
.gallery-edit-body label {
  font-size: 10px;
  margin: 10px 0;
}
.gallery-edit-body input,
.gallery-edit-body select {
  padding: 9px;
  font-size: 11px;
}
.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.gallery-controls input[type="checkbox"] {
  width: auto;
}
.gallery-controls label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.gallery-controls button {
  border: 1px solid #cedccc;
  border-radius: 4px;
  background: #f9fbf9;
  color: #346348;
  font-size: 10px;
  font-weight: 700;
  padding: 9px;
}
.gallery-controls .remove-img {
  color: #a94f45;
  border-color: #f0d7d4;
}
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.security-line {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #e9eee7;
  padding: 18px 0;
  font-size: 11px;
}
.security-line span {
  color: #899a8e;
}
.security-line strong {
  color: #395143;
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 35, 25, 0.56);
  z-index: 300;
  display: flex;
  justify-content: flex-end;
}
.dialog-panel {
  background: #fff;
  min-height: 100%;
  height: 100%;
  overflow: auto;
  width: min(550px, 100%);
  padding: 49px 39px;
  position: relative;
  box-shadow: -9px 0 30px #0002;
}
.dialog-panel h2 {
  font:
    500 42px/1 "Cormorant Garamond",
    Georgia,
    serif;
  margin: 17px 0 27px;
}
.dialog-close {
  position: absolute;
  right: 25px;
  top: 20px;
  font-size: 30px;
  color: #5b6e60;
  background: transparent;
  border: 0;
}
.detail-list {
  margin-bottom: 24px;
}
.detail-row {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #ebefeb;
  font-size: 12px;
}
.detail-row span {
  color: #91a093;
}
.detail-row strong {
  color: #344a3c;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-weight: 600;
}
.dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.danger-action {
  padding: 11px 14px;
  border: 1px solid #edd8d5;
  color: #a54841;
  background: #fff7f5;
  border-radius: 5px;
  font-weight: 700;
  font-size: 11px;
}
.flash {
  position: sticky;
  top: 10px;
  z-index: 40;
  margin: 0 0 20px;
  padding: 14px 20px;
  background: #e6f5e8;
  border: 1px solid #c9e6d0;
  color: #355b43;
  border-radius: 6px;
  font-size: 12px;
}
.flash.error {
  background: #fff0ed;
  border-color: #f1d2cc;
  color: #a5483d;
}
@media (max-width: 1250px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-layout {
    grid-template-columns: 260px 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1000px) {
  .admin-app {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .sidebar {
    padding: 15px 8px;
  }
  .sidebar-brand {
    padding: 6px 1px 25px;
    align-items: center;
  }
  .sidebar-brand img {
    width: 63px;
    height: 55px;
  }
  .sidebar-brand span,
  .sidebar-group-title,
  .nav-item:not(.active) .count-chip,
  .sidebar-bottom {
    display: none;
  }
  .nav-item {
    justify-content: center;
    padding: 15px 8px;
    font-size: 0;
    gap: 0;
  }
  .nav-glyph {
    font-size: 21px;
  }
  .nav-item .count-chip {
    display: none;
  }
}
@media (max-width: 730px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-photo {
    display: none;
  }
  .auth-card {
    min-height: 100vh;
    padding: 100px 28px 55px;
  }
  .auth-back {
    left: 28px;
  }
  .admin-app {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 101;
    top: 65px;
    bottom: 0;
    left: 0;
    width: 250px;
    height: calc(100vh - 65px);
    transform: translateX(-100%);
    transition: transform 0.24s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-brand img {
    width: 145px;
    height: 105px;
  }
  .sidebar-brand span,
  .sidebar-group-title,
  .sidebar-bottom {
    display: block;
  }
  .nav-item {
    justify-content: flex-start;
    font-size: 12px;
    gap: 11px;
    padding: 14px;
  }
  .nav-glyph {
    font-size: 18px;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .mobile-menu {
    display: block;
  }
  .topbar-right .admin-email,
  .status-pill {
    display: none;
  }
  .content-area {
    padding: 29px 18px 65px;
  }
  .heading-row h1 {
    font-size: 39px;
  }
  .heading-row {
    align-items: flex-start;
  }
  .stats-grid {
    gap: 9px;
  }
  .stat-card {
    padding: 18px;
    min-height: 115px;
  }
  .stat-card strong {
    font-size: 39px;
  }
  .dashboard-grid {
    gap: 14px;
  }
  .panel {
    padding: 19px;
  }
  .content-grid,
  .security-grid,
  .gallery-layout {
    grid-template-columns: 1fr;
  }
  .content-grid .panel:nth-child(3) {
    grid-column: auto;
  }
  .upload-panel {
    position: static;
  }
  .gallery-list {
    grid-template-columns: 1fr 1fr;
  }
  .heading-row .outline-action {
    padding: 10px;
  }
  .request-toolbar {
    flex-wrap: wrap;
  }
  .request-toolbar input {
    flex-basis: 100%;
  }
  .request-toolbar select {
    flex: 1;
    max-width: none;
  }
  .dialog-panel {
    padding: 48px 24px;
  }
  .warning-banner {
    font-size: 11px;
  }
}
@media (max-width: 440px) {
  .gallery-list {
    grid-template-columns: 1fr;
  }
  .heading-row h1 {
    font-size: 36px;
  }
  .heading-row {
    flex-wrap: wrap;
  }
  .auth-card h2 {
    font-size: 45px;
  }
  .detail-row {
    grid-template-columns: 105px 1fr;
  }
}

/* Peter's World · polish v4: crisp navigation icons, low-noise interface. */
.modern-nav-icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  display: inline-block;
}
.nav-glyph {
  width: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: start;
}
.media-card {
  background: white;
  border: 1px solid #e4e8e4;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 6px 18px #173b2e08;
}
.media-card > img {
  display: block;
  width: 100%;
  height: 185px;
  object-fit: cover;
  background: #edf0e8;
}
.media-body {
  padding: 16px;
}
.media-body h3 {
  font-size: 15px;
  color: #203d30;
  margin: 0 0 8px;
}
.media-body small {
  display: block;
  color: #6d8076;
  margin-bottom: 14px;
  min-height: 27px;
}
.media-card input[type="file"] {
  display: block;
  max-width: 100%;
  font-size: 13px;
  margin: 12px 0;
}
.media-card button {
  background: #275e4b;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 14px;
  cursor: pointer;
}
.media-card button:disabled {
  opacity: 0.5;
  cursor: wait;
}
#extra-content-panel {
  margin: 24px 0;
}
.extra-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}
.extra-fields-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #315242;
}
.extra-fields-grid textarea {
  width: 100%;
  resize: vertical;
  min-height: 82px;
  background: white;
  border: 1px solid #d9e1db;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 400;
  color: #263b33;
}
@media (max-width: 760px) {
  .extra-fields-grid {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
}

/* Eventos, pagamentos e controlo de entradas */
.event-admin-grid {
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(420px, 1.1fr);
  gap: 20px;
  align-items: start;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.event-admin-card {
  width: 100%;
  text-align: left;
  border: 1px solid #e3e9e2;
  background: #fbfcf9;
  border-radius: 7px;
  padding: 18px;
  margin: 0 0 12px;
  color: #30493d;
}
.event-admin-card:hover {
  border-color: #8eae99;
  background: #f5f8f3;
}
.event-admin-card > strong,
.event-admin-card > small,
.event-admin-card > div {
  display: block;
}
.event-admin-card > strong {
  font:
    500 25px/1.1 "Cormorant Garamond",
    Georgia,
    serif;
  margin: 12px 0 8px;
}
.event-admin-card > small {
  color: #7f9186;
  margin-bottom: 13px;
}
.event-admin-card > div {
  padding-top: 12px;
  border-top: 1px solid #e4e9e3;
  font-size: 11px;
  color: #61766a;
}
.event-admin-card b {
  color: #275541;
}
.badge.draft {
  background: #eeeae0;
  color: #76694f;
}
.badge.published {
  background: #e2f1e6;
  color: #367249;
}
.badge.closed {
  background: #e8ecea;
  color: #54665d;
}
.badge.approved {
  background: #e2f1e6;
  color: #367249;
}
.badge.rejected,
.badge.refunded {
  background: #fae9e7;
  color: #97544c;
}
.payment-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.payment-actions a,
.payment-actions button {
  border: 1px solid #cedbcf;
  background: #f8fbf7;
  color: #315e47;
  padding: 7px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.payment-actions .reject {
  border-color: #eed3cf;
  color: #a14d44;
  background: #fff7f5;
}
.payment-actions > span {
  font-size: 10px;
  color: #9aa59d;
}
.checkin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(400px, 1.28fr);
  gap: 20px;
  align-items: start;
}
.checkin-form input {
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: 0.08em;
}
.checkin-result {
  min-height: 325px;
}
.checkin-result h2 {
  font:
    500 38px/1.05 "Cormorant Garamond",
    Georgia,
    serif;
  margin: 20px 0;
}
.checkin-state {
  display: inline-block;
  padding: 8px 11px;
  border-radius: 4px;
  background: #e1f2e5;
  color: #35734b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.checkin-state.used {
  background: #fff0dc;
  color: #986a2d;
}
.checkin-state.cancelled,
.checkin-state.invalid {
  background: #fdeae7;
  color: #a34c43;
}
@media (max-width: 1050px) {
  .event-admin-grid,
  .checkin-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}
.event-admin-grid {
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(420px, 1.1fr);
  gap: 20px;
  align-items: start;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.event-admin-card {
  width: 100%;
  text-align: left;
  border: 1px solid #e3e9e2;
  background: #fbfcf9;
  border-radius: 7px;
  padding: 18px;
  margin: 0 0 12px;
  color: #30493d;
}
.event-admin-card:hover {
  border-color: #8eae99;
  background: #f5f8f3;
}
.event-admin-card > strong,
.event-admin-card > small,
.event-admin-card > div {
  display: block;
}
.event-admin-card > strong {
  font:
    500 25px/1.1 "Cormorant Garamond",
    Georgia,
    serif;
  margin: 12px 0 8px;
}
.event-admin-card > small {
  color: #7f9186;
  margin-bottom: 13px;
}
.event-admin-card > div {
  padding-top: 12px;
  border-top: 1px solid #e4e9e3;
  font-size: 11px;
  color: #61766a;
}
.event-admin-card b {
  color: #275541;
}
.badge.draft {
  background: #eeeae0;
  color: #76694f;
}
.badge.published {
  background: #e2f1e6;
  color: #367249;
}
.badge.closed {
  background: #e8ecea;
  color: #54665d;
}
.badge.approved {
  background: #e2f1e6;
  color: #367249;
}
.badge.rejected,
.badge.refunded {
  background: #fae9e7;
  color: #97544c;
}
.payment-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.payment-actions a,
.payment-actions button {
  border: 1px solid #cedbcf;
  background: #f8fbf7;
  color: #315e47;
  padding: 7px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.payment-actions .reject {
  border-color: #eed3cf;
  color: #a14d44;
  background: #fff7f5;
}
.payment-actions > span {
  font-size: 10px;
  color: #9aa59d;
}
.checkin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(400px, 1.28fr);
  gap: 20px;
  align-items: start;
}
.checkin-form input {
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: 0.08em;
}
.checkin-result {
  min-height: 325px;
}
.checkin-result h2 {
  font:
    500 38px/1.05 "Cormorant Garamond",
    Georgia,
    serif;
  margin: 20px 0;
}
.checkin-state {
  display: inline-block;
  padding: 8px 11px;
  border-radius: 4px;
  background: #e1f2e5;
  color: #35734b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.checkin-state.used {
  background: #fff0dc;
  color: #986a2d;
}
.checkin-state.cancelled,
.checkin-state.invalid {
  background: #fdeae7;
  color: #a34c43;
}
.scanner-action {
  width: 100%;
  margin: 14px 0 4px;
  border: 1px solid #89a896;
  background: #eef5ef;
  color: #25513d;
  padding: 13px;
  font-weight: 700;
}
.qr-scanner {
  position: relative;
  margin: 15px 0;
  background: #102a22;
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 48px;
}
.qr-scanner video {
  display: block;
  width: 100%;
  min-height: 250px;
  object-fit: cover;
}
.qr-frame {
  position: absolute;
  inset: 28px 18%;
  border: 3px solid #f0d29b;
  border-radius: 12px;
  box-shadow: 0 0 0 999px #09221a55;
  pointer-events: none;
}
.qr-scanner .outline-action {
  position: absolute;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  background: #fff;
  white-space: nowrap;
}
.scanner-status {
  min-height: 20px;
  color: #6a7c72;
  font-size: 11px;
}
.scanner-status.error {
  color: #a34c43;
}
.staff-access-card {
  border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-top: 16px;
}
.staff-card-head { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; margin-bottom: 8px; }
.staff-card-head strong { display: block; }
.staff-card-head small { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; }
.staff-toggle { flex-direction: row !important; align-items: center !important; }
.staff-toggle input, .staff-events input { width: auto !important; }
.staff-events { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 12px 0 20px; }
.staff-events label { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; padding: 10px; background: #f7f9f6; border-radius: 6px; font-weight: 600; }
.staff-events small { margin-left: auto; color: var(--muted); font-size: 9px; }
@media (max-width: 1050px) {
  .event-admin-grid,
  .checkin-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .staff-events { grid-template-columns: 1fr; }
}
