/* Corte do mar: da luz na superfície ao fundo. Arte vetorial local. */
.sidebar { background: #07374f url('1-Imagens/ocean-depth.svg') center top / 100% 100% no-repeat; overflow: hidden; }
.sidebar > * { position: relative; z-index: 1; }
.sidebar .brand { text-shadow: 0 2px 12px #06364e; }
.sidebar .brand small { color: #e1faf8; }
.sidebar .nav-item { color: #e1f6f8; text-shadow: 0 1px 4px #05324b; background: #032c4640; }
.sidebar .nav-item:hover, .sidebar .nav-item.active { background: #03283bbf; color: #fff; }
.sidebar-note, .profile-card { background: #021b2d91; }
.sidebar-note { border-color: #83ccd145; }
.sidebar-note small, .profile-card small { color: #acd6df; }
.agenda-local-note { color: #54777d; font-size: 12px; line-height: 1.6; background: #e5f2f3; border-left: 3px solid #3c9caa; border-radius: 0 8px 8px 0; padding: 12px 14px; }
.alerts-button { position: relative; display: inline-grid; place-items: center; }
.alerts-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.alerts-button span { position: absolute; right: -5px; top: -6px; min-width: 19px; height: 19px; padding: 2px; border-radius: 20px; font: 700 10px/15px Arial; background: #d25b3c; color: white; }
.alerts-button span[hidden] { display: none; }
.agenda-card { background: #fff; border: 1px solid #d1e3e6; border-radius: 16px; overflow: hidden; box-shadow: 0 9px 25px #08456108; }
.agenda-card.decision-confirmed { border-color: #65b08e; }
.agenda-card.decision-cancelled { border-color: #d37d79; }
.event-decision { display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: #fff1d8; color: #805217; border-bottom: 1px solid #e7d7b5; }
.event-decision > span { flex: 0 0 30px; font: 800 27px/1 Arial; }
.event-decision strong { display: block; font: 800 15px/1.35 Manrope,Arial; letter-spacing: .07em; }
.event-decision small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.5; }
.event-decision.confirmed { background: #116342; color: #fff; border-color: #116342; }
.event-decision.cancelled { background: #a83136; color: #fff; border-color: #a83136; }
.event-decision > div { min-width: 0; overflow-wrap: anywhere; }
.agenda-tag.cancelled { background: #fce5e5; color: #a83136; }
.agenda-tag.type-tag { letter-spacing: .08em; background: #e6f2f6; color: #165b73; }
.decision-confirm-btn { background: #116342; }
.decision-cancel-btn { color: #a83136; border-color: #cc7b7b; }
.training-fields[hidden] { display: none; }
.agenda-dialog textarea { width: 100%; min-width: 0; resize: vertical; border: 1px solid #c8dee1; border-radius: 8px; padding: 12px; font: 13px/1.6 Arial; color: #134354; background: #fff; }
.agenda-preview-label { display: block; font-size: 12px; margin: 12px 0 8px; }
#agendaExportPreview { background: #f6fafb; min-height: 190px; }
#agendaExportError { color: #a83136; font-size: 12px; }
.month-action { display: flex; align-items: flex-end; }
.whatsapp-share { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; background: #116342; text-align: center; }
.whatsapp-share[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.agenda-export-actions { flex-wrap: wrap; }
.backup-details { margin-top: 20px; padding-top: 14px; border-top: 1px solid #d8e7ea; }
.backup-details summary { cursor: pointer; font-size: 12px; color: #557b84; }
.agenda-card-head { display: flex; gap: 18px; padding: 22px; align-items: flex-start; }
.agenda-date { flex: 0 0 62px; padding: 12px 7px; border-radius: 12px; background: #e5f3f5; color: #0d5974; text-align: center; }
.agenda-date b { font: 800 26px/1.2 Manrope,Arial; display: block; }
.agenda-date small { font-size: 10px; }
.agenda-card h3 { font: 700 18px Manrope,Arial; margin: 0 0 7px; }
.agenda-card p { margin: 5px 0; font-size: 12px; color: #557980; line-height: 1.5; }
.agenda-card-summary { flex: 1; min-width: 0; }
.agenda-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; }
.agenda-tag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 30px; padding: 6px 10px; background: #eef3f5; color: #4b6976; }
.agenda-tag.open, .agenda-tag.confirmed { color: #15694b; background: #e2f4e9; }
.agenda-tag.waiting, .agenda-tag.pending { color: #885918; background: #fff2d9; }
.agenda-tag.scheduled { background: #e7efff; color: #345c92; }
.agenda-price { color: #0d5974; font-size: 18px; font-weight: 800; white-space: nowrap; }
.agenda-price small { display: block; color: #6b848c; font-size: 10px; font-weight: 400; }
.agenda-card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #f7fafb; border-top: 1px solid #e3ecee; padding: 14px 22px; }
.agenda-capacity { font-size: 12px; color: #4e737d; }
.agenda-card-actions, .organizer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.agenda-dialog { width: min(850px,94vw); }
.agenda-dialog .dialog-head, .agenda-dialog .dialog-actions { position: sticky; background: #fff; z-index: 3; }
.agenda-dialog .dialog-head { top: 0; }
.agenda-dialog .dialog-actions { bottom: 0; }
.agenda-dialog .dialog-body { max-height: 65vh; max-height: 65dvh; }
.agenda-dialog .dialog-body h3 { font: 700 15px Manrope,Arial; color: #135970; margin: 22px 0 12px; }
.agenda-dialog .dialog-body h3:first-child { margin-top: 0; }
.agenda-dialog input, .agenda-dialog select { min-width: 0; min-height: 38px; }
.agenda-dialog .form-grid label { font-size: 11px; letter-spacing: 0; text-transform: none; }
.agenda-dialog .form-grid label small { display: block; font-size: 10px; font-weight: 400; margin: 4px 0; color: #68828b; }
.agenda-dialog .agenda-check { display: flex; gap: 9px; align-items: center; padding: 10px 0; text-transform: none; letter-spacing: 0; font-size: 12px; }
.agenda-dialog .agenda-check input { min-height: 20px; height: 20px; width: 20px; flex: 0 0 20px; accent-color: #0c6a70; }
.rental-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 18px; }
.rental-choice { border: 1px solid #d7e5e8; border-radius: 8px; padding: 0 10px; }
.rental-choice .agenda-check { justify-content: flex-start; }
.rental-choice small { margin-left: auto; color: #0d5974; font-size: 12px; }
.gear-details { padding: 16px; background: #f0f7f8; border-radius: 10px; margin: 12px 0; }
.gear-details[hidden] { display: none; }
.quote-box { background: #0b4456; color: #fff; border-radius: 12px; margin-top: 18px; padding: 18px; }
.quote-row { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 12px; }
.quote-total { border-top: 1px solid #ffffff45; margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 18px; }
.quote-box p { color: #bbdce1; font-size: 11px; line-height: 1.5; margin-bottom: 0; }
#eventFormError, #bookingError { color: #a13b2c; font-size: 12px; white-space: normal; }
.participant-list, #alertsList { display: grid; gap: 10px; }
.participant { border: 1px solid #d6e5e8; padding: 15px; border-radius: 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
.participant h4 { margin: 0 0 7px; font-size: 14px; }
.participant p { color: #60818a; font-size: 12px; margin: 5px 0; line-height: 1.5; }
.participant .participant-actions { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; }
.organizer-panel { background: #eef5f7; border-radius: 10px; padding: 16px; margin: 20px 0; }
.organizer-panel p { color: #597982; font-size: 12px; line-height: 1.5; }
.alert-item { padding: 15px; border-radius: 10px; border: 1px solid #d4e3e7; }
.alert-item.unread { background: #eff8f9; border-left: 4px solid #16809a; }
.alert-item h3 { margin: 0 0 7px !important; }
.alert-item p { font-size: 12px; line-height: 1.5; color: #577980; }
.agenda-card h3, .agenda-card p, .participant h4, .participant p { overflow-wrap: anywhere; }
.agenda-date b, .agenda-price { overflow-wrap: normal; }
@media screen and (max-width:980px) { .sidebar { background-size: auto 100%; } }
@media screen and (min-width:681px) and (max-width:980px) { .sidebar .nav-item { font-size: 0; } }
@media screen and (max-width:680px) {
  body { min-width: 0; }
  .sidebar { background: linear-gradient(180deg,#12556d,#042637); }
  .agenda-card-head { padding: 16px; display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 12px; }
  .event-decision { padding: 14px 16px; gap: 9px; }
  .event-decision strong { font-size: 13px; letter-spacing: .04em; }
  .agenda-dialog textarea { font-size: 16px; }
  .agenda-export-actions > * { flex: 1 1 100%; }
  .agenda-date { padding: 12px 4px; }
  .agenda-date b { font-size: 22px; white-space: nowrap; }
  .agenda-card h3 { font-size: 16px; }
  .agenda-card .agenda-price { margin-left: 0; grid-column: 2; }
  .agenda-card-bottom { padding: 14px 16px; }
  .agenda-card-actions { width: 100%; }
  .agenda-card-actions button { flex: 1; }
  .agenda-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); }
  .agenda-dialog input, .agenda-dialog select { font-size: 16px; min-height: 44px; }
  .rental-grid { grid-template-columns: minmax(0,1fr); }
  .participant { grid-template-columns: minmax(0,1fr); }
  .participant .participant-actions { align-items: stretch; flex-direction: row; flex-wrap: wrap; }
  .participant-actions button { flex: 1; }
  .organizer-actions { flex-direction: column; }
  .top-actions { flex-wrap: wrap; }
}
