/* diveBriefing.css - Resizable HTML Floating Panel Styles */

.dive-briefing-panel {
  position: fixed;
  top: 70px;
  right: 25px;
  width: 540px;
  min-width: 380px;
  max-width: calc(100vw - 40px);
  height: 680px;
  min-height: 400px;
  max-height: calc(100vh - 90px);
  background: #ffffff;
  color: #0f172a;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  border: 1px solid #cbd5e1;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  resize: both;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
}

.briefing-header {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
  border-bottom: 1px solid #334155;
}

.briefing-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.briefing-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.briefing-brand-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #f8fafc;
}

.briefing-title-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.briefing-site-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.briefing-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.briefing-btn {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #475569;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.briefing-btn:hover {
  background: #334155;
}

.briefing-btn.primary {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

.briefing-btn.primary:hover {
  background: #0369a1;
}

.briefing-btn.close-btn {
  background: transparent;
  border-color: transparent;
  font-size: 14px;
  padding: 2px 6px;
  color: #94a3b8;
}

.briefing-btn.close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.briefing-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 16px;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.4;
}

.briefing-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: #64748b;
  margin-bottom: 8px;
}

.briefing-charter {
  color: #0284c7;
  font-weight: 600;
  max-width: 55%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.briefing-trip-dates {
  font-weight: 600;
  color: #0284c7;
}

.briefing-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0f172a;
  margin: 12px 0 8px 0;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 3px;
}

.briefing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-bottom: 8px;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.briefing-table th,
.briefing-table td {
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.briefing-table th {
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
  font-size: 10px;
}

.briefing-id-table td.b-label {
  background: #f1f5f9;
  font-weight: 600;
  color: #334155;
  width: 25%;
}

.briefing-id-table td.b-val {
  width: 25%;
}

.briefing-survey-box {
  background: #ffffff;
  border-left: 3px solid #0284c7;
  padding: 6px 10px;
  font-size: 10.5px;
  color: #475569;
  margin-bottom: 8px;
  border-radius: 0 4px 4px 0;
}

.briefing-astro-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 10.5px;
  color: #334155;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.briefing-slack-table th {
  background: #1e293b;
  color: #00e676;
}

.briefing-slack-table th .b-profile-sub {
  font-weight: 500;
  font-size: 9px;
  color: #94a3b8;
  white-space: nowrap;
}

.briefing-slack-table td.b-slack-num {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.briefing-slack-table td.b-time {
  white-space: nowrap;
}

.briefing-slack-table td.b-profile {
  font-family: monospace;
  font-size: 10px;
  color: #0284c7;
  white-space: nowrap;
}

.b-unit-nowrap {
  white-space: nowrap;
}

.b-mobile-planned-window {
  display: none;
}

.b-profile-stacked {
  display: none;
}

.briefing-checklist {
  margin: 0;
  padding-left: 18px;
  font-size: 10.5px;
  color: #475569;
}

.briefing-checklist li {
  margin-bottom: 3px;
}

.briefing-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  font-size: 10px;
  color: #94a3b8;
}

.briefing-footer-gen {
  color: #64748b;
  font-weight: 500;
}

@media (max-width: 768px) {
  .dive-briefing-panel {
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    resize: none;
  }

  .briefing-site-name {
    max-width: 130px;
  }

  .briefing-body {
    padding: 10px 12px;
  }

  .b-mobile-planned-window {
    display: block;
  }

  .briefing-slack-table {
    display: table;
    width: 100%;
  }

  .briefing-slack-table th,
  .briefing-slack-table td {
    padding: 4px 5px;
    font-size: 10px;
  }

  .briefing-slack-table th {
    font-size: 9.5px;
  }

  .briefing-slack-table .b-col-planned-window,
  .briefing-slack-table .b-profile-sub,
  .briefing-slack-table .b-profile-inline {
    display: none;
  }

  .briefing-slack-table td.b-slack-num {
    white-space: nowrap;
  }

  .briefing-slack-table th .b-unit-nowrap {
    display: block;
  }

  .briefing-slack-table td.b-profile {
    white-space: normal;
    font-size: 9.5px;
  }

  .briefing-slack-table .b-profile-stacked {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
  }

  .briefing-slack-table .b-profile-stacked > span {
    display: flex;
    justify-content: space-between;
    gap: 6px;
  }

  .briefing-slack-table .b-p-lbl {
    color: #64748b;
    font-weight: 600;
    font-family: system-ui, -apple-system, sans-serif;
  }
}

@media print {
  .briefing-section-title {
    margin-top: 14px;
    margin-bottom: 8px;
    padding-bottom: 3px;
  }

  .b-col-planned-window {
    display: table-cell !important;
  }

  .b-mobile-planned-window,
  .b-profile-stacked {
    display: none !important;
  }

  .b-profile-inline {
    display: inline !important;
  }
}

/* Multi-site switcher & card dividers inside Dive Briefing Panel */
.briefing-site-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.briefing-site-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.briefing-site-select {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 320px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.briefing-site-select:focus {
  outline: none;
  border-color: #0284c7;
}

.briefing-multi-site-heading {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.briefing-card-divider {
  border: none;
  border-top: 2px dashed #cbd5e1;
  margin: 18px 0;
}
