* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #172026;
  background: #ffffff;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 24px;
  gap: 22px;
}

.panel {
  width: min(100%, 440px);
  background: #ffffff;
  border: 1px solid #d8e2dc;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(22, 42, 35, 0.12);
}

.dashboard {
  width: min(100%, 1180px);
  background: #ffffff;
  border: 0;
  border-radius: 0;
  padding: 12px 20px 28px;
  box-shadow: none;
}

.hidden,
.listBox.hidden,
.menuGroup.hidden {
  display: none;
}

.dashboardHeader {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
  min-height: 320px;
}

.userSummary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.userRow {
  display: flex;
  align-items: center;
  gap: 28px;
}

.clubLogo {
  display: block;
  height: 110px;
  max-width: 340px;
  object-fit: contain;
}

.avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border: 6px solid #12a9d4;
  border-radius: 50%;
}

.avatar.hasImage::before,
.avatar.hasImage::after {
  display: none;
}

.profileAvatarImage {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
}

.profileAvatarImage.hidden {
  display: none;
}

.avatarUpload {
  position: absolute;
  left: 50%;
  bottom: -34px;
  z-index: 4;
  width: max-content;
  margin: 0;
  padding: 6px 10px;
  transform: translateX(-50%);
  border: 1px solid #cfcfcf;
  background: #ffffff;
  color: #008db8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.avatarUpload input {
  display: none;
}

.avatar::before {
  content: "";
  position: absolute;
  left: 38px;
  top: 18px;
  width: 38px;
  height: 48px;
  background: #12a9d4;
  border-radius: 42px 42px 34px 34px;
}

.avatar::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: 14px;
  width: 72px;
  height: 44px;
  background: #12a9d4;
  border-radius: 68px 68px 28px 28px;
}

.userIdentity span {
  display: block;
  font-size: 28px;
  text-transform: uppercase;
}

.userIdentity strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  text-transform: uppercase;
}

.sessionName {
  display: block;
  margin-top: 6px;
  color: #222;
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.guardHeaderDetails {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.guardHeaderDetails.hidden {
  display: none;
}

.guardHeaderDetails strong,
.guardHeaderDetails span {
  font-size: 14px;
  font-weight: 700;
}

.topActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 38px;
  color: #444;
  font-size: 14px;
}

.topButton {
  width: auto;
  margin: 0;
  border-radius: 0;
  padding: 9px 24px;
  background: #07a9d7;
  color: #11232b;
  text-transform: uppercase;
  font-size: 16px;
}

.topButton:hover {
  background: #008db8;
}

.dashboardWorkspace {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 0;
  align-items: start;
}

.workspaceContent {
  min-height: 570px;
  border-left: 1px solid #b9b9b9;
  padding-left: 42px;
}

.tabs {
  display: grid;
  gap: 0;
  align-content: start;
  border: 0;
  margin: 0;
  padding-right: 18px;
}

.tabButton {
  width: 100%;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: #222;
  border: 0;
  border-bottom: 1px solid #b9b9b9;
  padding: 8px 16px;
  text-align: left;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 400;
}

.menuGroup {
  display: grid;
}

.menuTitle {
  position: relative;
  padding: 8px 16px 5px;
  border-bottom: 1px solid #b9b9b9;
  color: #222;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.menuTitle::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: #172d7a;
  font-size: 10px;
  top: 11px;
}

.menuTitleButton {
  color: #008db8;
}

.subMenu {
  padding-left: 34px;
  color: #999;
  text-transform: uppercase;
}

.subMenu::before {
  content: "- ";
}

.tabButton:hover,
.tabButton.active {
  background: #f2f8fa;
  color: #087fa4;
  border-color: #b9b9b9;
}

h2,
h3 {
  margin: 0;
}

h2 {
  font-size: 26px;
}

.sectionTitle {
  margin-bottom: 46px;
  color: #606060;
  font-size: 26px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  font-size: 18px;
}

h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.wide {
  grid-column: span 2;
}

.tool {
  border: 0;
  border-radius: 0;
  padding: 16px;
  background: #ffffff;
}

.adminGrid {
  grid-template-columns: minmax(420px, 1.7fr) minmax(260px, 0.8fr);
  align-items: start;
}

.tool p {
  min-height: 44px;
  font-size: 14px;
}

.inlineActions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 12px 0;
}

.miniForm {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.miniForm label {
  display: grid;
  gap: 6px;
  margin-top: 0;
}

select,
textarea {
  width: 100%;
  border: 1px solid #b8c8bf;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  background: #ffffff;
}

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

.checkRow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.checkRow input {
  width: auto;
}

.secondary {
  width: auto;
  background: #eef4f0;
  color: #244533;
  border: 1px solid #c9d8ce;
}

.secondary:hover {
  background: #dfece4;
}

.danger {
  width: auto;
  background: #fff0f0;
  color: #8a1f1f;
  border: 1px solid #edcaca;
}

.danger:hover {
  background: #f8dddd;
}

.full {
  width: 100%;
  margin-top: 10px;
}

.listBox {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.compact {
  max-height: 300px;
}

.statusTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.statusButton,
.subStatusButton,
.filterButton {
  width: auto;
  margin: 0;
  background: #eef4f0;
  color: #244533;
  border: 1px solid #c9d8ce;
}

.statusButton.active,
.subStatusButton.active,
.filterButton.active {
  background: #2f6f4e;
  color: #ffffff;
  border-color: #2f6f4e;
}

.loginHelp {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: #5b6b63;
  font-size: 14px;
}

.linkButton,
.backButton {
  width: auto;
  margin: 0;
  padding: 7px 10px;
  font-size: 14px;
  background: #eef4f0;
  color: #244533;
  border: 1px solid #c9d8ce;
}

.linkButton:hover,
.backButton:hover {
  background: #dfece4;
}

.backButton {
  margin-bottom: 14px;
}

.demoAccess {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demoDivider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.demoDivider::before,
.demoDivider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d8e2dc;
}

.demoDivider span {
  font-size: 12px;
  color: #8a9a90;
  white-space: nowrap;
}

.demoButton {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px dashed;
  transition: background 0.15s;
}

.demoMaster {
  border-color: #b8860b;
  background: #fffbeb;
  color: #8b6914;
}

.demoMaster:hover {
  background: #fef3c7;
}

.demoAdmin {
  border-color: #6366f1;
  background: #eef2ff;
  color: #4f46e5;
}

.demoAdmin:hover {
  background: #e0e7ff;
}

.demoSocio {
  border-color: #2f6f4e;
  background: #ecfdf5;
  color: #2f6f4e;
}

.demoSocio:hover {
  background: #d1fae5;
}

.demoVigilante {
  border-color: #d97706;
  background: #fffbeb;
  color: #b45309;
}

.demoVigilante:hover {
  background: #fef3c7;
}

.familyHeader {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.familyList {
  display: grid;
  gap: 10px;
}

.familyItem {
  border: 1px solid #d8e2dc;
  border-radius: 6px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.sectionDivider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
}

.sectionDivider::before,
.sectionDivider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d8e2dc;
}

.sectionDivider span {
  font-size: 13px;
  font-weight: 600;
  color: #5b6b63;
  white-space: nowrap;
}

.docChecklist {
  display: grid;
  gap: 8px;
}

.docCheck {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #172026;
  cursor: pointer;
  padding: 8px 10px;
  border: 1px solid #d8e2dc;
  border-radius: 6px;
  background: #f8faf9;
  transition: background 0.15s;
}

.docCheck:hover {
  background: #ecfdf5;
}

.docCheck input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2f6f4e;
}

.contractDates {
  margin-top: 4px;
}

.contractDates label {
  display: grid;
  gap: 4px;
}

.contractDates input[type="date"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d8e2dc;
  border-radius: 6px;
  font-size: 14px;
}

.announcementList {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.announcementItem {
  border: 1px solid #cfcfcf;
  padding: 14px;
  background: #ffffff;
}

.announcementItem h4 {
  margin: 0 0 6px;
  color: #222;
}

.announcementItem p {
  min-height: 0;
  margin: 0 0 10px;
}

.announcementItem img {
  display: block;
  width: min(100%, 360px);
  max-height: 240px;
  object-fit: contain;
  border: 1px solid #ddd;
}

.requestImage {
  display: block;
  width: min(100%, 320px);
  max-height: 220px;
  margin-top: 10px;
  object-fit: contain;
  border: 1px solid #cfcfcf;
}

.requestResponse {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 10px;
  border-left: 4px solid #07a9d7;
  background: #f2f8fa;
}

.requestResponseForm {
  margin-top: 14px;
  max-width: 620px;
}

.incidentEvidenceGallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 180px));
  gap: 10px;
  margin-top: 12px;
}

.incidentEvidenceGallery img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border: 1px solid #cfcfcf;
}

.tableWrap {
  width: 100%;
  overflow: auto;
  margin-top: 14px;
}

.dataTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dataTable th,
.dataTable td {
  border: 1px solid #cfcfcf;
  padding: 7px 8px;
  text-align: left;
}

.dataTable th {
  background: #fafafa;
  font-weight: 400;
}

.dataTable td:first-child,
.dataTable th:first-child,
.dataTable td:nth-last-child(1),
.dataTable td:nth-last-child(2),
.dataTable th:nth-last-child(1),
.dataTable th:nth-last-child(2) {
  text-align: center;
}

.dataTable input[type="checkbox"] {
  width: auto;
}

.rolePeriod {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 18px 0 28px;
  font-size: 13px;
}

.shiftRoleContent {
  display: grid;
  gap: 54px;
}

.shiftBlock h3 {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}

.shiftActions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.shiftActions textarea {
  min-height: 50px;
}

.shiftButtons {
  display: grid;
  gap: 8px;
}

.shiftButtons button {
  margin: 0;
  min-width: 106px;
  padding: 9px 12px;
  font-size: 13px;
}

.shiftDayCell {
  width: 42px;
  height: 24px;
  padding: 0;
  text-align: center;
}

.shiftDayCell input {
  display: none;
}

.shiftDayCell label {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

.shiftDayCell:has(input:checked) {
  background: #07a9d7;
}

.shiftRequestSection {
  max-width: 720px;
  margin-top: 36px;
}

.shiftRequestSection .sectionTitle {
  margin-bottom: 14px;
}

.shiftRequestSection p {
  color: #222;
  font-size: 13px;
  line-height: 1.4;
}

.tagInstructions {
  margin: 14px 0 18px;
  padding-left: 18px;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
}

.memberProfileGrid {
  grid-template-columns: minmax(360px, 1fr) minmax(240px, 280px);
  gap: 22px 30px;
}

.memberProfileGrid > .memberSection:nth-of-type(1) {
  grid-column: 1 / -1;
  order: 1;
}

.memberProfileGrid > .memberSection:nth-of-type(2) {
  order: 3;
}

.memberProfileGrid > .memberSection:nth-of-type(3) {
  order: 5;
}

.memberProfileGrid > .memberSection:nth-of-type(4) {
  order: 2;
}

.memberProfileGrid > .memberSection:nth-of-type(5) {
  order: 4;
}

.profileDetails {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  font-size: 13px;
}

.profileSummary {
  border-bottom: 1px dotted #999;
}

.tagRequestPanel > h3 {
  text-transform: uppercase;
}

#tagAmount {
  color: #222;
  font-weight: 700;
}

.noticeText {
  max-width: 760px;
  color: #777;
  line-height: 1.35;
  margin-bottom: 34px;
}

.thirdPartyForm {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  max-width: 820px;
  margin-bottom: 32px;
}

.thirdPartyForm input:nth-child(1),
.thirdPartyForm input:nth-child(2) {
  grid-column: span 3;
}

.thirdPartyForm input:nth-child(3),
.thirdPartyForm input:nth-child(4),
.thirdPartyForm input:nth-child(5) {
  grid-column: span 2;
}

.thirdPartyForm select,
.thirdPartyForm input:nth-child(7) {
  grid-column: span 2;
}

.thirdPartyPhoto {
  grid-column: 1 / span 3;
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 14px;
}

.thirdPartyActions {
  grid-column: 4 / span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 50px;
}

.thirdPartyFormMessage {
  grid-column: 1 / -1;
  min-height: 38px;
  padding: 10px 12px;
  background: #f2f8fa;
  color: #35515d;
  font-size: 14px;
}

.thirdPartyFormMessage.success {
  background: #edf8f0;
  color: #1f6b3a;
}

.thirdPartyFormMessage.error {
  background: #fff0f0;
  color: #a32020;
}

#createUserFormMessage:empty {
  display: none;
}

.thirdPartyActions button {
  margin: 0;
}

.thirdPartyList {
  max-width: 820px;
  border-top: 1px dotted #777;
  padding-top: 22px;
  display: grid;
  gap: 18px;
}

.thirdPartyGroup h3 {
  color: #777;
  font-size: 16px;
  margin-bottom: 8px;
}

.thirdPartyItem {
  border: 0;
  background: transparent;
  color: #777;
  text-align: left;
  padding: 6px 0;
  margin: 0;
  text-decoration: underline;
  font-size: 15px;
}

.thirdPartyItem:hover {
  background: transparent;
  color: #008db8;
}

.thirdPartyDetail {
  margin: 8px 0 14px 16px;
  color: #111;
}

.thirdPartyPhotoDetail {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.thirdPartyPhotoPreview {
  width: min(100%, 320px);
  max-height: 240px;
  object-fit: contain;
  border: 1px solid #cfcfcf;
}

.thirdPartyMeta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-weight: 700;
  margin-bottom: 12px;
}

.visitList {
  display: grid;
  gap: 8px;
}

.visitList div::before {
  content: "■";
  color: #e60000;
  font-size: 10px;
  margin-right: 8px;
}

.eventsLayout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 36px;
}

.eventsLayout aside {
  display: grid;
  gap: 14px;
}

.eventCards {
  display: grid;
  gap: 0;
  max-width: 360px;
  border: 1px solid #cfcfcf;
}

.eventCard {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #cfcfcf;
  background: #f8f8f8;
  padding: 13px 14px;
  color: #222;
  margin: 0;
  text-align: left;
}

.eventCard:last-child {
  border-bottom: 0;
}

.eventCard:hover {
  background: #eaf7fb;
}

.eventDetail {
  margin-top: 28px;
}

.eventDetail h3 {
  margin-bottom: 14px;
  text-transform: uppercase;
}

.eventDetail h4 {
  margin: 0 0 34px;
  font-size: 18px;
  text-transform: uppercase;
}

.eventRegistration > p {
  max-width: 820px;
  color: #111;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 16px;
}

.eventForm {
  display: grid;
  grid-template-columns: 240px minmax(360px, 1fr);
  gap: 42px;
  align-items: start;
  margin-top: 34px;
}

.eventReserveBox,
.eventGuestBox {
  display: grid;
  gap: 10px;
}

.eventReserveBox h4,
.eventGuestBox h4 {
  margin: 0 0 4px;
  font-size: 16px;
}

.guestEntryBox {
  border: 1px solid #d5d5d5;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.guestEntryBox label,
.eventReserveBox label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
}

.guestEntryBox input,
.eventReserveBox input,
.eventReserveBox select {
  font-size: 13px;
  padding: 8px;
}

.subTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.debtFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.filterButton {
  padding: 8px 10px;
  font-size: 13px;
}

.moduleSubmenu {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: -28px 0 24px;
}

.moduleButton {
  width: auto;
  margin: 0;
  background: #eef4f0;
  color: #244533;
  border: 1px solid #c9d8ce;
  text-transform: none;
}

.moduleButton.active {
  background: #07a9d7;
  color: #ffffff;
  border-color: #07a9d7;
}

.subStatusButton {
  padding: 9px 12px;
  font-size: 14px;
}

.rowItem {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dce7e1;
  border-radius: 6px;
  background: #ffffff;
}

.alertUnread {
  background: #fffbeb;
  border-color: #fbbf24;
}

.alertUnread::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #d97706;
  border-radius: 6px 0 0 6px;
}

.readBadge {
  font-size: 11px;
  color: #5b6b63;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.requestCard {
  overflow: hidden;
  padding-top: 42px;
}

.requestStatusBanner {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 180px;
  padding: 11px 18px;
  color: #ffffff;
  background: #07a9d7;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.requestStatusApproved {
  background: #07a9d7;
}

.requestStatusPending {
  background: #6f8790;
}

.requestStatusDenied {
  background: #d93025;
}

.rowItem span {
  display: block;
  margin-top: 4px;
  color: #5b6b63;
  font-size: 14px;
}

.rowActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rowActions button {
  width: auto;
  margin: 0;
  padding: 9px 11px;
  font-size: 14px;
}

.output {
  margin-top: 18px;
  min-height: 90px;
  padding: 14px;
  border-radius: 6px;
  background: #172026;
  color: #f3faf5;
  white-space: pre-wrap;
  overflow: auto;
  display: none;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #2f6f4e;
  color: #ffffff;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

p {
  margin: 4px 0 0;
  color: #5b6b63;
}

.form {
  display: grid;
  gap: 10px;
}

label {
  font-weight: 700;
  margin-top: 8px;
}

input {
  width: 100%;
  border: 1px solid #c8c8c8;
  border-radius: 0;
  padding: 9px;
  font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(47, 111, 78, 0.18);
  border-color: #2f6f4e;
}

button {
  margin-top: 14px;
  border: 0;
  border-radius: 0;
  padding: 11px 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: #ffffff;
  background: #07a9d7;
}

@media (max-width: 900px) {
  .adminGrid {
    grid-template-columns: 1fr;
  }

  .memberProfileGrid {
    grid-template-columns: 1fr;
  }

  .eventsLayout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .eventForm {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feriaAdminGrid {
    grid-template-columns: 1fr;
  }

  .thirdPartyForm {
    grid-template-columns: 1fr 1fr;
  }

  .thirdPartyForm input:nth-child(1),
  .thirdPartyForm input:nth-child(2) {
    grid-column: span 1;
  }

  .thirdPartyForm input:nth-child(3),
  .thirdPartyForm input:nth-child(4),
  .thirdPartyForm input:nth-child(5) {
    grid-column: span 1;
  }

  .thirdPartyForm select,
  .thirdPartyForm input:nth-child(7) {
    grid-column: span 1;
  }

  .thirdPartyPhoto {
    grid-column: 1 / -1;
  }

  .thirdPartyActions {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .dashboardHeader {
    min-height: auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .userSummary {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .userRow {
    flex-direction: column;
    gap: 22px;
  }

  .clubLogo {
    height: 80px;
  }

  .avatar {
    width: 120px;
    height: 120px;
    border-width: 5px;
  }

  .avatar::before {
    left: 38px;
    top: 18px;
    width: 38px;
    height: 48px;
  }

  .avatar::after {
    left: 22px;
    bottom: 14px;
    width: 72px;
    height: 44px;
  }

  .userIdentity span {
    font-size: 18px;
  }

  .userIdentity strong {
    font-size: 20px;
  }

  .dashboardWorkspace {
    grid-template-columns: 1fr;
  }

  .workspaceContent {
    border-left: 0;
    padding-left: 0;
    padding-top: 22px;
  }

  .tabs {
    padding-right: 0;
    display: flex;
    overflow-x: auto;
    gap: 0;
    -webkit-overflow-scrolling: touch;
  }

  .tabButton {
    white-space: nowrap;
    border-bottom: 0;
    border-right: 1px solid #b9b9b9;
    padding: 10px 18px;
    font-size: 14px;
  }

  .tabButton:last-child {
    border-right: 0;
  }

  .wide {
    grid-column: span 1;
  }

  .inlineActions {
    grid-template-columns: 1fr;
  }

  .rowItem {
    align-items: stretch;
    flex-direction: column;
  }

  .rowActions {
    justify-content: flex-start;
  }

  .topActions {
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 14px;
  }

  .shiftActions {
    grid-template-columns: 1fr;
  }

  .shiftButtons {
    flex-direction: row;
  }

  .rolePeriod {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .thirdPartyForm {
    grid-template-columns: 1fr;
  }

  .thirdPartyForm input:nth-child(1),
  .thirdPartyForm input:nth-child(2),
  .thirdPartyForm input:nth-child(3),
  .thirdPartyForm input:nth-child(4),
  .thirdPartyForm input:nth-child(5),
  .thirdPartyForm select,
  .thirdPartyForm input:nth-child(7) {
    grid-column: span 1;
  }

  .thirdPartyPhoto,
  .thirdPartyActions,
  .thirdPartyFormMessage {
    grid-column: 1 / -1;
  }

  .thirdPartyActions {
    margin-top: 0;
    grid-template-columns: 1fr;
  }

  .eventsLayout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .eventCards {
    max-width: 100%;
  }

  .eventForm {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .memberProfileGrid {
    grid-template-columns: 1fr;
  }

  .invitadoRow {
    grid-template-columns: 1fr;
  }

  .feriaAdminGrid {
    grid-template-columns: 1fr;
  }

  .feriaAreaRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sectionTitle {
    font-size: 20px;
    margin-bottom: 28px;
  }

  .dashboard {
    padding: 12px 14px 20px;
  }

  .moduleSubmenu {
    flex-wrap: wrap;
  }

  .statusTabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .statusButton,
  .subStatusButton,
  .filterButton {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 12px;
  }

  .panel {
    padding: 20px;
  }

  .dashboard {
    padding: 10px;
  }

  .clubLogo {
    height: 64px;
  }

  .avatar {
    width: 90px;
    height: 90px;
    border-width: 4px;
  }

  .avatar::before {
    left: 28px;
    top: 14px;
    width: 30px;
    height: 38px;
  }

  .avatar::after {
    left: 16px;
    bottom: 11px;
    width: 56px;
    height: 34px;
  }

  .userIdentity span {
    font-size: 15px;
  }

  .userIdentity strong {
    font-size: 17px;
  }

  .sessionName {
    font-size: 14px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 16px;
  }

  .sectionTitle {
    font-size: 17px;
    margin-bottom: 22px;
  }

  .topButton {
    padding: 8px 16px;
    font-size: 14px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .rowItem span {
    font-size: 13px;
  }

  .rowActions button {
    font-size: 13px;
    padding: 8px 10px;
  }

  .buttonRow {
    flex-direction: column;
  }

  .buttonRow button {
    flex: auto;
  }

  .feriaStandBtn {
    width: 46px;
    height: 46px;
    font-size: 12px;
  }

  .feriaLeyenda {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .feriaModalBox {
    padding: 20px;
  }

  .form {
    gap: 8px;
  }

  input, select, textarea {
    font-size: 16px;
  }

  .demoButton {
    font-size: 13px;
    padding: 9px;
  }

  .output {
    font-size: 12px;
    padding: 10px;
  }

  .dataTable {
    font-size: 12px;
  }

  .dataTable th,
  .dataTable td {
    padding: 5px 6px;
  }

  .tabButton {
    font-size: 13px;
    padding: 8px 14px;
  }
}

button:hover {
  background: #008db8;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.result {
  margin-top: 20px;
  padding: 14px;
  border-radius: 6px;
  background: #edf4ef;
  color: #30453a;
  word-break: break-word;
  min-height: 54px;
}

.result.error {
  background: #fff0f0;
  color: #8a1f1f;
}

.result.success {
  background: #edf8f0;
  color: #1f6b3a;
}

/* ─── FERIAS ─────────────────────────────────────────────────────────────── */

.feriasList {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 8px;
}

.feriaCard {
  border: 1px solid #c8ddd2;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
  text-align: left;
}

.feriaCard:hover {
  border-color: #07a9d7;
  box-shadow: 0 4px 16px rgba(7,169,215,0.12);
  background: #f4fbfe;
}

.feriaCard h3 {
  font-size: 17px;
  color: #172026;
  margin-bottom: 6px;
}

.feriaCardFechas {
  font-size: 13px;
  color: #5b6b63;
  margin-bottom: 8px;
}

.feriaCardDesc {
  font-size: 13px;
  color: #777;
  line-height: 1.4;
}

.feriaCardBadge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.feriaMap {
  display: block;
  width: 100%;
  max-width: 860px;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid #cfcfcf;
  margin: 14px 0 24px;
  background: #f8f8f8;
}

.feriaAreaSection {
  margin: 28px 0;
}

.feriaAreaHeader {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.feriaAreaTitle {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #244533;
  letter-spacing: 0.04em;
}

.feriaAreaPrecio {
  font-size: 13px;
  color: #777;
}

.feriaStandGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  background: #f5f7f6;
  border: 1px solid #dde8e2;
  border-radius: 8px;
}

.feriaStandBtn {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1.1;
  transition: transform 0.1s;
}

.feriaStandBtn:hover {
  transform: scale(1.08);
}

.feriaStandBtn .standPrecio {
  font-size: 10px;
  font-weight: 400;
  margin-top: 2px;
}

.feriaStandBtn.libre {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.feriaStandBtn.libre:hover {
  background: #b8dfc4;
}

.feriaStandBtn.separado {
  background: #fff3cd;
  border-color: #ffc107;
  color: #7d5700;
}

.feriaStandBtn.separado-mio {
  background: #ffe082;
  border-color: #f59f00;
  color: #5a3e00;
  box-shadow: 0 0 0 3px rgba(255,193,7,0.35);
}

.feriaStandBtn.tomado {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.feriaLeyenda {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px 0 28px;
  padding: 14px 18px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
}

.feriaLeyendaItem {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.feriaLeyendaBox {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.feriaLeyendaBox.libre   { background: #d4edda; border-color: #28a745; }
.feriaLeyendaBox.separado{ background: #fff3cd; border-color: #ffc107; }
.feriaLeyendaBox.tomado  { background: #f8d7da; border-color: #dc3545; }

.feriaReservaPanel {
  max-width: 600px;
  margin-top: 32px;
  padding: 20px 24px;
  border: 2px solid #07a9d7;
  border-radius: 8px;
  background: #f2f9fc;
}

.feriaReservaPanel h3 {
  color: #087fa4;
  margin-bottom: 6px;
}

.feriaCountdown {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 5px 12px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #7d5700;
}

.feriaCancelBtn {
  background: #fff0f0;
  color: #8a1f1f;
  border: 1px solid #edcaca;
  width: auto;
  margin-top: 10px;
  padding: 9px 14px;
  font-size: 14px;
}

.feriaCancelBtn:hover {
  background: #f8dddd;
}

/* Admin ferias */
.feriaAdminGrid {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(340px, 1fr);
  gap: 24px;
  align-items: start;
}

.feriaAdminList {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.feriaAdminCard {
  border: 1px solid #c8ddd2;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.feriaAdminCard:hover,
.feriaAdminCard.selected {
  border-color: #07a9d7;
  box-shadow: 0 2px 10px rgba(7,169,215,0.12);
}

.feriaAdminCard h4 {
  margin-bottom: 4px;
  color: #172026;
}

.feriaAdminCard .feriaAdminStats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.feriaAdminStat {
  font-size: 12px;
  color: #5b6b63;
}

.feriaAdminStat strong {
  color: #172026;
}

.feriaManagementPanel {
  display: grid;
  gap: 20px;
}

.feriaManagementTabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 16px;
}

.feriaManagementTab {
  width: auto;
  margin: 0;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  color: #555;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  cursor: pointer;
}

.feriaManagementTab:hover {
  background: #f2f8fa;
  color: #087fa4;
}

.feriaManagementTab.active {
  color: #07a9d7;
  border-bottom-color: #07a9d7;
  background: transparent;
}

.feriaAreaRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #dde8e2;
  border-radius: 6px;
  background: #fff;
  margin-bottom: 8px;
}

.feriaAreaRowInfo strong { font-size: 15px; }
.feriaAreaRowInfo span  { font-size: 13px; color: #777; display: block; margin-top: 2px; }

.feriaReservaCard {
  border: 1px solid #dce7e1;
  border-radius: 6px;
  padding: 14px;
  background: #fff;
  margin-bottom: 10px;
}

.feriaReservaCard h4 { margin-bottom: 6px; font-size: 15px; }
.feriaReservaCard span { display: block; font-size: 13px; color: #5b6b63; margin-top: 3px; }
.feriaReservaCard .rowActions { margin-top: 10px; }

/* Modal stand tomado */
.feriaModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 16px;
}

.feriaModal.hidden { display: none; }

.feriaModalBox {
  background: #fff;
  border-radius: 10px;
  padding: 28px 32px;
  min-width: 280px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.feriaModalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.feriaModalHeader h3 {
  color: #172026;
  font-size: 18px;
}

.feriaModalClose {
  width: auto;
  margin: 0;
  padding: 4px 12px;
  font-size: 20px;
  font-weight: 400;
  background: transparent;
  color: #888;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.feriaModalClose:hover { background: #f0f0f0; color: #333; }

.feriaModalContent { font-size: 15px; color: #333; line-height: 1.5; margin: 0; }

/* Feria card image and body */
.feriaCard { display: flex; flex-direction: column; }
.feriaCardImg { width: 100%; max-height: 160px; object-fit: cover; border-radius: 6px 6px 0 0; }
.feriaCardBody { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.feriaCardBody strong { font-size: 15px; }
.feriaCardBody span { font-size: 12px; color: #555; }

/* Checkbox group and button row */
.checkGroup { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; }
.checkGroup label { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 14px; cursor: pointer; }
.checkGroup input[type="checkbox"] { width: auto; margin: 0; }

.buttonRow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.buttonRow button { flex: 1 1 120px; }

/* ── Áreas Comunes ── */
.areaSelector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: .5rem;
}

.areaBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  background: #f5f7f6;
  border: 2px solid #d8e2dc;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #3a5a4a;
  transition: background .15s, border-color .15s, box-shadow .15s;
  min-width: 90px;
  width: auto;
  margin: 0;
}

.areaBtn:hover {
  background: #e8f5ee;
  border-color: #5aab78;
}

.areaBtn.active {
  background: #d4edda;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40,167,69,.18);
  color: #155724;
}

.areaIcon { font-size: 26px; line-height: 1; }

/* Estado badges */
.estadoBadge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.estadoPendiente  { background: #fff3cd; color: #856404; }
.estadoAprobada   { background: #d4edda; color: #155724; }
.estadoRechazada  { background: #f8d7da; color: #721c24; }
.estadoCancelada  { background: #e2e3e5; color: #495057; }

/* ── Áreas Comunes — formularios específicos ── */
.areaPanel { margin-top: 1.4rem; }

.reglamento {
  background: #f0f7f2;
  border: 1px solid #c3dece;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 1rem;
  font-size: 13px;
}
.reglamento summary {
  cursor: pointer;
  font-weight: 700;
  color: #2d6a4f;
  font-size: 14px;
  padding: 2px 0;
  list-style: none;
}
.reglamento summary::-webkit-details-marker { display: none; }
.reglamento ul { margin: 10px 0 4px 0; padding-left: 18px; line-height: 1.8; color: #3a4a42; }

.checkFieldset {
  border: 1px solid #d8e2dc;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 6px 0;
  background: #f8faf9;
}
.checkFieldset legend {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  padding: 0 4px;
}
.checkFieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 13.5px;
  padding: 2px 0;
  cursor: pointer;
  width: 100%;
}
.checkFieldset input[type="checkbox"],
.checkFieldset input[type="radio"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

.costoPreview {
  background: #e8f5ee;
  border: 1px solid #b7dfc9;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  color: #1a5232;
  margin: 8px 0 4px;
}
.costoPreview strong { font-size: 16px; }

.invitadoRow {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 6px;
}
.invitadoRow label { margin: 0; }
.invitadoRow .removeInvBtn {
  width: auto;
  padding: 6px 10px;
  margin: 0;
  font-size: 13px;
  align-self: end;
}

/* Badge área inactiva */
.areaBtn.inactiva { opacity: .5; }
.areaBadgeInactiva {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #dc3545;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-top: 2px;
}

/* Checkbox label en línea (para "Área activa") */
.checkboxLabel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}
.checkboxLabel input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* ═══ SEDE SELECTOR ═══ */
.sedeSelectorList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1rem 0;
}
.sedeOption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 16px;
  border: 2px solid #d8e2dc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-size: 14px;
  text-align: left;
}
.sedeOption:hover {
  border-color: #4a7c59;
  background: #f0f7f2;
}
.sedeOption strong {
  font-size: 15px;
  color: #172026;
}
.sedeOption span {
  font-size: 12px;
  color: #556b60;
}

/* ═══ SESSION SEDE INDICATOR ═══ */
.sessionSede {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: #4a7c59;
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.sessionSede.hidden {
  display: none;
}

/* ═══ DASHBOARD DEMOGRAFICO DEL ADMIN ═══ */
.dashGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.dashGrid .tool h4 {
  margin: 14px 0 6px;
  font-size: 13px;
  color: #4a7c59;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.statCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.statCard {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  background: #f4f8f5;
  border: 1px solid #d8e2dc;
  border-radius: 8px;
}
.statValue {
  font-size: 26px;
  line-height: 1.1;
  color: #1f3d2e;
}
.statLabel {
  font-size: 11.5px;
  color: #5b6f63;
}
td.num,
th.num {
  text-align: right;
}

/* ═══ COMITÉS ═══ */
.comitesIntro {
  max-width: 720px;
  margin: 0 0 10px;
  font-size: 14px;
  color: #556b60;
  line-height: 1.6;
}
.comitesList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.comiteCard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid #d8e2dc;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.comiteCard h3 {
  margin: 0;
  font-size: 16px;
  color: #1f3d2e;
}
.comiteDesc {
  margin: 0;
  font-size: 13px;
  color: #556b60;
  line-height: 1.5;
}
.comiteDirectorio {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: #2d4436;
}
.comiteDirectorio li {
  margin-bottom: 2px;
}
.comiteVocales {
  margin: 0;
  font-size: 13px;
  color: #2d4436;
}
.comiteContact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #eef3ef;
  font-size: 13px;
  color: #46604f;
}
.comiteContact span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
