/* Management Tabs Panel - Frontend
 * Extends the plugin's standard tab system (.hostpn-tabs / .hostpn-tab-content)
 * defined in hostpn.css.
 */

/* ── Block Theme Reset: only for hero header area ── */
.hostpn-mgmt-hero-header,
.hostpn-mgmt-hero-header *,
.hostpn-mgmt-hero-header *::before,
.hostpn-mgmt-hero-header *::after {
  box-sizing: border-box !important;
  margin-block: 0 !important;
  padding-block: 0 !important;
  --wp--style--block-gap: 0px !important;
}

/* Hide <br> and <p> injected by wpautop inside plugin containers */
.hostpn-mgmt-panel br,
.hostpn-mgmt-panel > p:empty,
.hostpn-mgmt-panel > .hostpn-tabs > p:empty,
.hostpn-mgmt-panel > p:not([class]),
.hostpn-accommodation-single-wrapper br,
.hostpn-accommodation-single-wrapper > p:empty,
.hostpn-accommodation-single-wrapper > p:not([class]),
.hostpn-accommodation-archive-wrapper br,
.hostpn-accommodation-archive-wrapper > p:empty,
.hostpn-accommodation-archive-wrapper > p:not([class]) {
  display: none !important;
}

.hostpn-mgmt-panel {
  margin: 0 0 30px;
  color: #0f172a;
}

/* Isolate plugin panel from block theme global styles */
.hostpn-accommodation-single-wrapper {
  color: #0f172a;
}
.hostpn-accommodation-single-wrapper a {
  color: inherit;
}
.hostpn-accommodation-single-wrapper h1,
.hostpn-accommodation-single-wrapper h2,
.hostpn-accommodation-single-wrapper h3,
.hostpn-accommodation-single-wrapper h4 {
  color: #0f172a;
}

/* Tab button overrides for management panel */
.hostpn-mgmt-panel .hostpn-tabs {
  flex-wrap: wrap;
  overflow-x: visible;
}

.hostpn-mgmt-panel .hostpn-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.hostpn-mgmt-panel .hostpn-tabs button i {
  font-size: 18px;
}

/* Override contracts block inside tab */
.hostpn-mgmt-tab-pane .hostpn-contracts-block {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

/* Loading spinner */
.hostpn-mgmt-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #888;
  padding: 30px;
  justify-content: center;
}

/* Room selector */
.hostpn-mgmt-room-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hostpn-mgmt-room-selector label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.hostpn-mgmt-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background: #fff;
  min-width: 180px;
}

.hostpn-mgmt-select:focus {
  outline: none;
  border-color: #999;
}

/* Empty state */
.hostpn-mgmt-empty {
  color: #888;
  font-style: italic;
  padding: 20px 0;
}

/* ── Cleaning ── */
.hostpn-mgmt-cleaning-areas {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hostpn-mgmt-cleaning-area {
  display: grid;
  grid-template-columns: 30px 1fr 120px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.hostpn-mgmt-cleaning-area:last-child {
  border-bottom: none;
}

.hostpn-mgmt-cleaning-check {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #000;
}

.hostpn-mgmt-cleaning-name {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.hostpn-mgmt-cleaning-name.done {
  text-decoration: line-through;
  color: #aaa;
}

.hostpn-mgmt-cleaning-date {
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
}

.hostpn-mgmt-cleaning-notes {
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  resize: none;
  min-height: 32px;
}

.hostpn-mgmt-cleaning-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

/* ── Inventory Checklist (Admin) ── */
.hostpn-mgmt-inv-checklist-category {
  margin-bottom: 20px;
}

.hostpn-mgmt-inv-checklist-category h4 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

.hostpn-mgmt-inv-checklist-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f8f8f8;
}

.hostpn-mgmt-inv-checklist-item:last-child {
  border-bottom: none;
}

.hostpn-mgmt-inv-item-name {
  font-size: 14px;
  color: #333;
}

.hostpn-mgmt-inv-status-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hostpn-mgmt-inv-status-group label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  cursor: pointer;
  color: #555;
}

.hostpn-mgmt-inv-status-group input[type="radio"] {
  accent-color: #000;
}

.hostpn-mgmt-inv-item-comment {
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  resize: none;
  min-height: 32px;
}

.hostpn-mgmt-inv-overall {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.hostpn-mgmt-inv-overall label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

.hostpn-mgmt-inv-overall textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  box-sizing: border-box;
}

.hostpn-mgmt-inv-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

/* ── Inventory Read-only (Guest) ── */
.hostpn-mgmt-inventory-guest h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px;
}

.hostpn-mgmt-inv-category {
  margin-bottom: 16px;
}

.hostpn-mgmt-inv-category h4 {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hostpn-mgmt-inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.hostpn-mgmt-inv-table th {
  text-align: left;
  padding: 8px 12px;
  background: #f8f8f8;
  border-bottom: 2px solid #e8e8e8;
  font-weight: 600;
  color: #555;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hostpn-mgmt-inv-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}

.hostpn-mgmt-inv-table tr:last-child td {
  border-bottom: none;
}

/* ── Admin inventory listing ── */
.hostpn-mgmt-inventory-listing {
  margin-top: 24px;
  border-top: 1px solid #2a2d35;
  padding-top: 20px;
}

.hostpn-mgmt-inv-room-block {
  margin-bottom: 24px;
}

.hostpn-mgmt-inv-room-block:last-child {
  margin-bottom: 0;
}

.hostpn-mgmt-inv-room-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 12px;
  cursor: pointer;
  user-select: none;
}

.hostpn-mgmt-inv-room-title .hostpn-icon-small {
  font-size: 18px;
  color: #475569;
}

.hostpn-mgmt-inv-room-title .hostpn-toggle-indicator {
  margin-left: auto;
  font-size: 20px;
  color: #94a3b8;
  transition: color 0.2s;
}

.hostpn-mgmt-inv-room-title:hover .hostpn-toggle-indicator {
  color: #475569;
}

/* ── Common buttons ── */
.hostpn-mgmt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #000;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.hostpn-mgmt-btn:hover {
  background: #333;
}

.hostpn-mgmt-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hostpn-mgmt-btn i {
  font-size: 18px;
}

.hostpn-mgmt-btn-secondary {
  background: #fff;
  color: #333;
  border-color: #ddd;
}

.hostpn-mgmt-btn-secondary:hover {
  background: #f5f5f5;
}

/* Success / Error messages */
.hostpn-mgmt-message {
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hostpn-mgmt-message-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.hostpn-mgmt-message-error {
  background: #ffebee;
  color: #c62828;
}

/* ── Financial ── */
.hostpn-mgmt-financial-content .hostpn-financial-dashboard {
  margin: 0;
  padding: 0;
}

.hostpn-mgmt-financial-unavailable {
  color: #888;
  font-style: italic;
  padding: 20px 0;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hostpn-mgmt-panel .hostpn-tabs button {
    font-size: 12px;
    padding: 10px 8px;
  }

  .hostpn-mgmt-cleaning-area {
    grid-template-columns: 30px 1fr;
    gap: 8px;
  }

  .hostpn-mgmt-cleaning-date,
  .hostpn-mgmt-cleaning-notes {
    grid-column: 2;
  }

  .hostpn-mgmt-inv-checklist-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hostpn-mgmt-room-selector {
    flex-direction: column;
    align-items: stretch;
  }

  .hostpn-mgmt-cleaning-actions,
  .hostpn-mgmt-inv-actions {
    flex-direction: column;
  }

  .hostpn-mgmt-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Shared Cleaning Styles ── */
.hostpn-mgmt-cleaning-system-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.hostpn-mgmt-system-label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.hostpn-mgmt-sys-btn-group {
  display: inline-flex;
  gap: 8px;
  background: #f5f5f5;
  padding: 4px;
  border-radius: 6px;
}

.hostpn-mgmt-sys-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hostpn-mgmt-sys-btn.active {
  background: #fff;
  color: #2c3e50;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.hostpn-mgmt-sys-btn:hover:not(.active) {
  color: #111;
}

/* Last Completed Cleaning */
.hostpn-shared-last-cleaning {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.hostpn-shared-last-cleaning-icon {
  color: #16a34a;
  font-size: 0;
}
.hostpn-shared-last-cleaning-icon i {
  font-size: 28px;
}
.hostpn-shared-last-cleaning-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hostpn-shared-last-cleaning-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #15803d;
}
.hostpn-shared-last-cleaning-detail {
  font-size: 13px;
  color: #334155;
}

/* Cleaning History List */
.hostpn-shared-history-list {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 20px;
}
.hostpn-shared-history-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.hostpn-shared-history-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.hostpn-shared-history-item:first-child {
  padding-top: 0;
}
.hostpn-shared-history-icon {
  color: #16a34a;
  flex-shrink: 0;
  line-height: 1;
}
.hostpn-shared-history-icon i {
  font-size: 20px;
}
.hostpn-shared-history-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 13px;
  color: #334155;
}
.hostpn-shared-history-room {
  font-weight: 600;
}
.hostpn-shared-history-guest {
  color: #64748b;
}
.hostpn-shared-history-date {
  color: #0f172a;
  font-weight: 500;
}
.hostpn-shared-history-by {
  color: #64748b;
  font-size: 12px;
}
.hostpn-shared-history-notes {
  width: 100%;
  color: #64748b;
  font-size: 12px;
  font-style: italic;
}
.hostpn-shared-history-delete-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 4px 6px;
  cursor: pointer;
  color: #94a3b8;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s;
}
.hostpn-shared-history-delete-btn:hover {
  color: #dc2626;
  border-color: #fca5a5;
}
.hostpn-shared-history-delete-btn i {
  font-size: 16px;
}

/* Overdue / Today Alerts */
.hostpn-shared-overdue-alert,
.hostpn-shared-today-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
}
.hostpn-shared-overdue-alert {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}
.hostpn-shared-overdue-alert i {
  color: #dc2626;
  font-size: 22px;
}
.hostpn-shared-today-alert {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}
.hostpn-shared-today-alert i {
  color: #f59e0b;
  font-size: 22px;
}

/* Date status badges */
.hostpn-shared-date-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 6px;
}
.hostpn-shared-date-badge-today {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.hostpn-shared-date-badge-overdue {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Status card color variants */
.hostpn-shared-status-today {
  border-color: #fcd34d;
  box-shadow: 0 0 0 1px #fef3c7;
}
.hostpn-shared-status-overdue {
  border-color: #fca5a5;
  box-shadow: 0 0 0 1px #fee2e2;
}

/* Queue item date styling */
.hostpn-shared-queue-date {
  color: #64748b;
  font-size: 12px;
}
.hostpn-shared-queue-date-today {
  color: #b45309;
  font-weight: 600;
}
.hostpn-shared-queue-date-overdue {
  color: #dc2626;
  font-weight: 600;
}

/* Queue item overdue/today variants */
.hostpn-shared-queue-item.is-overdue {
  border-left: 3px solid #dc2626;
}
.hostpn-shared-queue-item.is-today {
  border-left: 3px solid #f59e0b;
}

/* Shared Cleaning Status Card */
.hostpn-shared-status-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.hostpn-shared-turn-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px dashed #e0e0e0;
}

/* Shared Cleaning Status Card (Minimalist) */
.hostpn-shared-status-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: none;
}

.hostpn-shared-turn-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.hostpn-shared-turn-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 6px;
}

.hostpn-shared-turn-badge i {
  color: #334155;
  font-size: 20px;
}

.hostpn-shared-turn-info {
  display: flex;
  flex-direction: column;
}

.hostpn-shared-turn-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  font-weight: 600;
}

.hostpn-shared-turn-value {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.hostpn-shared-date-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 6px;
}

.hostpn-shared-date-box i {
  color: #334155;
  font-size: 20px;
}

.hostpn-shared-date-val {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.hostpn-shared-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.hostpn-shared-detail-item {
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.hostpn-shared-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 2px;
}

.hostpn-shared-detail-val {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

/* Stays Pills */
.hostpn-shared-stays-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.hostpn-shared-stay-pill {
  display: inline-block;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  font-weight: 500;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Rotation Queue */
.hostpn-shared-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hostpn-shared-queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.hostpn-shared-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
}

.hostpn-shared-queue-item.is-turn {
  border-left: 3px solid #0f172a;
  background: #f8fafc;
}

.hostpn-shared-queue-room {
  font-weight: 600;
  color: #0f172a;
}

.hostpn-shared-queue-guest {
  color: #64748b;
  font-size: 12px;
}

.hostpn-shared-queue-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hostpn-shared-queue-tag.active {
  background: #334155;
  color: #ffffff;
}

.hostpn-shared-queue-tag.upcoming {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* Actions bar */
.hostpn-shared-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Group Comments Section */
.hostpn-shared-comments-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 20px;
}

.hostpn-shared-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 350px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}

.hostpn-shared-comment-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: none;
}

.hostpn-shared-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 12px;
}

.hostpn-shared-comment-author {
  font-weight: 600;
  color: #0f172a;
}

.hostpn-shared-comment-room {
  background: #f1f5f9;
  color: #475569;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  margin-left: 6px;
}

.hostpn-shared-comment-date {
  color: #94a3b8;
  font-size: 11px;
}

.hostpn-shared-comment-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
  white-space: pre-wrap;
}

.hostpn-shared-comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.hostpn-shared-comment-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 4px;
  font-size: 13px;
  resize: vertical;
  min-height: 60px;
  color: #1e293b;
}

.hostpn-shared-comment-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hostpn-shared-comment-edit-btn,
.hostpn-shared-comment-delete-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: #94a3b8;
  line-height: 1;
  border-radius: 3px;
}

.hostpn-shared-comment-edit-btn:hover {
  color: #3b82f6;
  background: #f1f5f9;
}

.hostpn-shared-comment-delete-btn:hover {
  color: #ef4444;
  background: #fef2f2;
}

.hostpn-shared-comment-edit-btn .material-icons-outlined,
.hostpn-shared-comment-delete-btn .material-icons-outlined {
  font-size: 16px;
}

.hostpn-shared-comment-edit-area {
  margin-top: 6px;
}

.hostpn-shared-comment-edit-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 13px;
  resize: vertical;
  min-height: 50px;
  background: #f8fafc;
  color: #1e293b;
}

.hostpn-shared-comment-edit-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.hostpn-shared-comment-edit-actions .hostpn-mgmt-btn {
  padding: 4px 10px;
  font-size: 12px;
}

.hostpn-shared-comment-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.hostpn-shared-subscribe-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.hostpn-shared-subscribe-label .material-icons-outlined {
  font-size: 16px;
}

.hostpn-shared-subscribe-label input[type="checkbox"] {
  margin: 0;
}

.hostpn-shared-comment-form .hostpn-shared-post-comment-btn {
  justify-content: center;
  white-space: nowrap;
}

/* Config modal / panel */
.hostpn-shared-config-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
  margin-top: 16px;
}

.hostpn-shared-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.hostpn-shared-config-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hostpn-shared-config-field label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.hostpn-shared-config-field input,
.hostpn-shared-config-field textarea {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 13px;
}

/* ── Top Hero Summary Header Panel ── */
.hostpn-mgmt-panel .hostpn-mgmt-hero-header {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.hostpn-mgmt-panel .hostpn-hero-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 12px 16px !important;
  background: transparent !important;
  border: none !important;
  border-right: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  gap: 0 !important;
  line-height: 1.4 !important;
}

.hostpn-mgmt-panel .hostpn-hero-card:last-child {
  border-right: none !important;
}

.hostpn-mgmt-panel .hostpn-hero-info {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0;
  gap: 0 !important;
}

.hostpn-mgmt-panel .hostpn-hero-label {
  display: block !important;
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b !important;
  font-weight: 600;
  margin: 0 0 2px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.hostpn-mgmt-panel .hostpn-hero-val {
  display: block !important;
  font-size: 16px !important;
  font-weight: 700;
  color: #0f172a !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hostpn-mgmt-panel .hostpn-hero-sub {
  display: block !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.hostpn-mgmt-panel .hostpn-hero-progress-wrapper {
  margin: 4px 0 0 0 !important;
  padding: 0 !important;
}

@media (max-width: 600px) {
  .hostpn-mgmt-panel .hostpn-mgmt-hero-header {
    grid-template-columns: 1fr !important;
  }
  .hostpn-mgmt-panel .hostpn-hero-card {
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
  .hostpn-mgmt-panel .hostpn-hero-card:last-child {
    border-bottom: none !important;
  }
}

.hostpn-hero-progress-wrapper {
  height: 4px;
  background: #f1f5f9;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.hostpn-hero-progress-bar {
  height: 100%;
  background: #334155;
  border-radius: 2px;
}

.hostpn-unlocked-badge {
  display: inline-block;
  padding: 2px 6px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* ── Minimalist Tab Navigation ── */
.hostpn-mgmt-panel .hostpn-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  scrollbar-width: none;
}
.hostpn-mgmt-panel .hostpn-tabs::-webkit-scrollbar {
  display: none;
}

.hostpn-mgmt-panel .hostpn-tabs button {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  min-width: max-content;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: none;
  letter-spacing: normal;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hostpn-mgmt-panel .hostpn-tabs button:hover {
  color: #0f172a;
}

.hostpn-mgmt-panel .hostpn-tabs button.active {
  color: #0f172a;
  font-weight: 600;
  border-bottom-color: #0f172a;
  background: transparent;
}

/* ── Minimalist Promotions ── */
.hostpn-mgmt-promotions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hostpn-mgmt-stay-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.hostpn-mgmt-stay-badge {
  display: flex;
  flex-direction: column;
}

.hostpn-mgmt-stay-badge strong {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hostpn-mgmt-stay-badge span {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.hostpn-mgmt-stay-start {
  font-size: 13px;
  color: #475569;
}

.hostpn-mgmt-promos-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hostpn-mgmt-promo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.hostpn-mgmt-promo-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
}
.hostpn-mgmt-promo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hostpn-mgmt-promo-target a,
a.hostpn-mgmt-promo-target {
  color: #64748b;
  text-decoration: none;
}
.hostpn-mgmt-promo-target a:hover,
a.hostpn-mgmt-promo-target:hover {
  text-decoration: underline;
}
.hostpn-mgmt-promo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.hostpn-mgmt-promo-title-wrap {
  display: flex;
  flex-direction: column;
}

.hostpn-mgmt-promo-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.hostpn-mgmt-promo-target {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.hostpn-mgmt-promo-reward-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.hostpn-mgmt-promo-body {
  padding: 18px;
}

.hostpn-mgmt-promo-progress-box {
  margin-bottom: 14px;
}

.hostpn-mgmt-promo-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #334155;
  margin-bottom: 6px;
}

.hostpn-mgmt-promo-percent {
  font-weight: 600;
  color: #0f172a;
}

.hostpn-mgmt-promo-progress-track {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.hostpn-mgmt-promo-progress-fill {
  height: 100%;
  background: #334155;
  border-radius: 3px;
}

.hostpn-mgmt-promo-rem-text {
  font-size: 13px;
  color: #64748b;
}

.hostpn-mgmt-unlocked-text {
  color: #0f172a;
  font-weight: 600;
}

.hostpn-mgmt-promo-conditions {
  padding: 10px 14px;
  background: #f8fafc;
  border-left: 2px solid #cbd5e1;
  font-size: 12px;
  color: #475569;
}

.hostpn-mgmt-promo-conditions p {
  margin: 2px 0 0;
}

.hostpn-inv-item-link {
  color: #0f172a;
  text-decoration: underline;
  font-weight: 500;
}

.hostpn-inv-item-link:hover {
  color: #334155;
}

/* Financial status badges & subrow styling */
.hostpn-badge-paid {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #166534;
  color: #4ade80;
  border: 1px solid #15803d;
}

.hostpn-badge-partial {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #854d0e;
  color: #fde047;
  border: 1px solid #a16207;
}

.hostpn-badge-pending {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.hostpn-payments-subrow table tr:hover {
  background: #f8fafc;
}

/* Financial Status Icons */
.hostpn-fin-deposit-cell,
.hostpn-fin-rent-cell {
  padding: 12px 14px;
  vertical-align: top;
  color: #0f172a;
}

.hostpn-fin-status-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.hostpn-fin-amount {
  color: #0f172a;
}

.hostpn-fin-icon-paid {
  font-size: 18px;
  color: #15803d;
  cursor: pointer;
}

.hostpn-fin-icon-partial {
  font-size: 18px;
  color: #a16207;
  cursor: pointer;
}

.hostpn-fin-icon-pending {
  font-size: 18px;
  color: #b91c1c;
  cursor: pointer;
}

/* Financial Dashboard - Metric Cards Grid */
.hostpn-fin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.hostpn-fin-metric-card {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
}

.hostpn-fin-metric-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
}

.hostpn-fin-metric-value {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2px;
}

.hostpn-fin-metric-value-blue {
  color: #2563eb;
}

.hostpn-fin-metric-value-red {
  color: #dc2626;
}

.hostpn-fin-metric-value-green {
  color: #16a34a;
}

.hostpn-fin-metric-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* Financial Dashboard - Room Table Section */
.hostpn-fin-rooms-section {
  margin-bottom: 28px;
}

.hostpn-fin-section-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hostpn-fin-table-cell {
  padding: 10px 12px;
  vertical-align: top;
}

.hostpn-fin-table-cell-bold {
  font-weight: 600;
}

.hostpn-fin-table-cell-center {
  padding: 12px 14px;
  text-align: center;
  vertical-align: top;
}

.hostpn-fin-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}

.hostpn-fin-action-link {
  color: #0284c7;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
}

.hostpn-fin-action-link-blue {
  color: #2563eb;
}

.hostpn-fin-action-link-gray {
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.hostpn-fin-available {
  color: #64748b;
  font-style: italic;
}

.hostpn-fin-payment-day {
  font-size: 11px;
  color: #94a3b8;
}

/* Payment History Subrow */
.hostpn-payments-subrow-content {
  padding: 14px 18px;
}

.hostpn-payments-subrow-header {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hostpn-payments-empty {
  font-size: 12px;
  color: #64748b;
  font-style: italic;
}

.hostpn-payments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.hostpn-payments-table thead tr {
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #475569;
  text-align: left;
}

.hostpn-payments-table th {
  padding: 8px 10px;
  font-weight: 600;
}

.hostpn-payments-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
}

.hostpn-payments-table td {
  padding: 8px 10px;
}

/* Expenses Section */
.hostpn-expenses-section {
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 18px;
  color: #1e293b;
}

.hostpn-expenses-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.hostpn-expenses-subtitle {
  font-size: 11px;
  color: #64748b;
}

.hostpn-expenses-empty {
  font-size: 12px;
  color: #64748b;
  font-style: italic;
  padding: 10px 0;
}

.hostpn-expenses-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #334155;
}

.hostpn-expenses-table thead tr {
  background: #f1f5f9;
  color: #475569;
  text-align: left;
}

.hostpn-expenses-table th {
  padding: 8px 10px;
}

.hostpn-expenses-table tbody tr {
  border-bottom: 1px solid #eeeeee;
}

.hostpn-expenses-table td {
  padding: 8px 10px;
}

.hostpn-expense-category {
  background: #eeeeee;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.hostpn-expense-amount {
  color: #f87171;
  font-weight: 700;
}

.hostpn-expense-attachment {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.hostpn-expense-no-attachment {
  color: #64748b;
  font-style: italic;
}

/* CSV Import Section */
.hostpn-csv-import-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #eeeeee;
  border-radius: 6px;
  padding: 16px;
}

.hostpn-csv-import-title {
  display: block;
  font-size: 13px;
  color: #1e293b;
}

.hostpn-csv-import-subtitle {
  font-size: 11px;
  color: #94a3b8;
}

/* Chart Wrapper */
.hostpn-fin-chart-container {
  margin-bottom: 20px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #1e293b;
}

.hostpn-fin-chart-header {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hostpn-fin-chart-canvas-wrapper {
  position: relative;
  height: 200px;
  width: 100%;
}

/* Shared Cleaning */
.hostpn-shared-detail-item-full {
  grid-column: 1 / -1;
}

.hostpn-shared-instructions-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.hostpn-shared-instructions-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.hostpn-shared-instructions-content {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ── Bookings Tab ── */

.hostpn-booking-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.hostpn-booking-filter-btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hostpn-booking-filter-btn:hover {
  color: #0f172a;
  border-color: #cbd5e1;
}

.hostpn-booking-filter-btn.active {
  background: #334155;
  color: #f8fafc;
  border-color: #334155;
}

.hostpn-booking-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.hostpn-booking-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.hostpn-booking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.hostpn-booking-guest-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.hostpn-booking-status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hostpn-booking-status-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.hostpn-booking-status-confirmed {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.hostpn-booking-status-cancelled {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.hostpn-booking-status-completed {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #a5b4fc;
}

.hostpn-booking-card-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 12px 14px;
}

.hostpn-booking-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hostpn-booking-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hostpn-booking-detail > span:last-child {
  font-size: 13px;
  color: #0f172a;
  font-weight: 500;
}

.hostpn-booking-card-actions {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
  background: #fafafa;
}

.hostpn-btn-danger {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fca5a5 !important;
}

.hostpn-btn-danger:hover {
  background: #fecaca !important;
}

/* Icon-only action buttons (edit/delete in tables) */
.hostpn-utility-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  color: #94a3b8;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.hostpn-utility-icon-btn:hover {
  background: #f1f5f9;
}

.hostpn-utility-icon-btn.hostpn-utility-icon-edit:hover {
  color: #2563eb;
}

.hostpn-utility-icon-btn.hostpn-utility-icon-delete:hover {
  color: #dc2626;
}

.hostpn-utility-icon-btn .material-icons-outlined {
  font-size: 18px;
}

.hostpn-utility-actions-cell {
  white-space: nowrap;
  text-align: right;
}

.hostpn-utility-actions-cell .hostpn-utility-icon-btn {
  margin-left: 2px;
}

/* Inline edit row */
.hostpn-utility-edit-row input,
.hostpn-utility-edit-row select {
  padding: 3px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.82rem;
  background: #fffbeb;
  width: 100%;
  box-sizing: border-box;
}

.hostpn-utility-edit-row input[type="number"] {
  width: 80px;
}

.hostpn-utility-edit-row input[type="month"] {
  width: 120px;
}

.hostpn-booking-create-section {
  margin-bottom: 20px;
}

.hostpn-booking-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 16px 0 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hostpn-booking-seasonal-section,
.hostpn-booking-ical-section {
  margin-bottom: 16px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.hostpn-booking-seasonal-table,
.hostpn-booking-ical-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.hostpn-booking-seasonal-table thead tr,
.hostpn-booking-ical-table thead tr {
  background: #f1f5f9;
  color: #475569;
  text-align: left;
}

.hostpn-booking-seasonal-table th,
.hostpn-booking-ical-table th {
  padding: 8px 10px;
  font-weight: 600;
}

.hostpn-booking-seasonal-table td,
.hostpn-booking-ical-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.hostpn-booking-ical-url {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hostpn-booking-ical-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ── Block Theme Isolation ── */
.hostpn-mgmt-panel,
.hostpn-accommodation-single-wrapper {
  color: #0f172a;
}

.hostpn-accommodation-single-wrapper a {
  color: inherit;
}

.hostpn-accommodation-single-wrapper h1,
.hostpn-accommodation-single-wrapper h2,
.hostpn-accommodation-single-wrapper h3,
.hostpn-accommodation-single-wrapper h4 {
  color: #0f172a;
}

/* ── Monthly Expenses / Utilities Tab ── */

.hostpn-mgmt-expenses-wrapper {
  color: #334155;
}

.hostpn-mgmt-expenses-wrapper select,
.hostpn-mgmt-expenses-wrapper option,
.hostpn-mgmt-expenses-wrapper input,
.hostpn-mgmt-expenses-wrapper label,
.hostpn-mgmt-expenses-wrapper button,
.hostpn-mgmt-expenses-wrapper th,
.hostpn-mgmt-expenses-wrapper td {
  color: #334155;
}

.hostpn-mgmt-expenses-wrapper select option {
  background: #ffffff;
  color: #334155;
}

.hostpn-mgmt-expenses-wrapper input::placeholder {
  color: #94a3b8;
}

.hostpn-utility-rates-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.hostpn-utility-rates-section h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hostpn-utility-rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.hostpn-utility-rate-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hostpn-utility-rate-item label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.hostpn-utility-rate-item input {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  color: #1e293b;
  font-size: 14px;
}

.hostpn-utility-rooms-section {
  margin-bottom: 16px;
}

.hostpn-utility-room-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: visible;
}

.hostpn-utility-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
}

.hostpn-utility-room-header:hover {
  background: #f1f5f9;
}

.hostpn-badge-occupied {
  color: #22c55e;
  font-size: 10px;
  margin-left: 6px;
}

.hostpn-utility-room-body {
  padding: 0 16px 16px;
}

.hostpn-utility-room-body h4 {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 8px;
}

.hostpn-utility-devices-table,
.hostpn-utility-records-table,
.hostpn-utility-dist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #334155;
}

.hostpn-utility-devices-table thead tr,
.hostpn-utility-records-table thead tr,
.hostpn-utility-dist-table thead tr {
  background: #f1f5f9;
  color: #64748b;
}

.hostpn-utility-devices-table th,
.hostpn-utility-records-table th,
.hostpn-utility-dist-table th {
  padding: 8px 10px;
  font-weight: 600;
  text-align: left;
  color: #475569;
}

.hostpn-utility-devices-table td,
.hostpn-utility-records-table td,
.hostpn-utility-dist-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.hostpn-utility-empty {
  color: #64748b;
  font-style: italic;
  text-align: center;
  padding: 16px !important;
}

.hostpn-utility-add-device-row,
.hostpn-utility-add-record-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0;
}

.hostpn-utility-add-device-row input,
.hostpn-utility-add-device-row select,
.hostpn-utility-add-record-row input,
.hostpn-utility-add-record-row select {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  color: #1e293b;
  font-size: 13px;
  min-width: 100px;
}

.hostpn-utility-device-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.hostpn-utility-distributor {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.hostpn-utility-distributor h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hostpn-utility-dist-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hostpn-utility-dist-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hostpn-utility-dist-field label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.hostpn-utility-dist-field select,
.hostpn-utility-dist-field input {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  color: #1e293b;
  font-size: 14px;
  min-width: 120px;
}

.hostpn-utility-dist-preview {
  margin-top: 12px;
}

.hostpn-utility-chart-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.hostpn-utility-chart-container h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hostpn-utility-chart-canvas-wrapper {
  position: relative;
  height: 250px;
}

/* Resource types management table */
.hostpn-utility-resource-types-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.hostpn-utility-resource-types-table thead tr {
  background: #f1f5f9;
}

.hostpn-utility-resource-types-table th {
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  text-align: left;
}

.hostpn-utility-resource-types-table td {
  padding: 6px 10px;
  border-top: 1px solid #e2e8f0;
}

.hostpn-utility-resource-type-row input[type="text"],
.hostpn-utility-resource-type-row input[type="number"] {
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.85rem;
  background: #fff;
}

.hostpn-utility-resource-type-row input[type="text"] {
  width: 100%;
  min-width: 100px;
}

.hostpn-utility-color-input {
  width: 32px;
  height: 32px;
  padding: 1px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
}

/* Utility notice */
.hostpn-utility-notice-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.hostpn-utility-notice-section h3 {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hostpn-utility-notice-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 0.85rem;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.hostpn-utility-notice-display {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hostpn-utility-notice-display .material-icons-outlined {
  font-size: 20px;
  color: #64748b;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Global devices */
.hostpn-utility-global-devices-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.hostpn-utility-global-devices-section h3 {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hostpn-utility-global-devices-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.hostpn-utility-global-devices-table thead tr {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.hostpn-utility-global-devices-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.hostpn-utility-global-devices-table td {
  padding: 6px 10px;
  border-top: 1px solid #e2e8f0;
}

.hostpn-utility-global-devices-table input[type="text"],
.hostpn-utility-global-devices-table input[type="number"] {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #1e293b;
  padding: 4px 8px;
  font-size: 0.85rem;
}

.hostpn-utility-global-device-row {
  border-bottom: 1px solid #e2e8f0;
}

/* Mini toggle switch (for "included" column) */
.hostpn-mini-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
  vertical-align: middle;
}

.hostpn-mini-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.hostpn-mini-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  border-radius: 18px;
  transition: background-color 0.25s;
}

.hostpn-mini-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}

.hostpn-mini-switch input:checked + .hostpn-mini-slider {
  background-color: #22c55e;
}

.hostpn-mini-switch input:checked + .hostpn-mini-slider:before {
  transform: translateX(18px);
}

/* Responsive table scroll wrapper */
.hostpn-utility-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  /* Resource types table */
  .hostpn-utility-resource-types-table {
    min-width: 520px;
  }

  /* Global devices table */
  .hostpn-utility-global-devices-table {
    min-width: 320px;
  }

  /* Devices and records tables */
  .hostpn-utility-devices-table {
    min-width: 420px;
  }

  .hostpn-utility-records-table {
    min-width: 600px;
  }

  .hostpn-utility-dist-table {
    min-width: 400px;
  }

  /* Distributor form stacks */
  .hostpn-utility-dist-form {
    flex-direction: column;
    align-items: stretch;
  }

  .hostpn-utility-dist-field select,
  .hostpn-utility-dist-field input {
    width: 100%;
    min-width: unset;
    box-sizing: border-box;
  }

  /* Add device/record rows stack */
  .hostpn-utility-add-device-row,
  .hostpn-utility-add-record-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hostpn-utility-add-device-row input,
  .hostpn-utility-add-device-row select,
  .hostpn-utility-add-record-row input,
  .hostpn-utility-add-record-row select {
    width: 100%;
    min-width: unset;
    box-sizing: border-box;
  }

  /* Action buttons stack */
  .hostpn-utility-device-actions {
    flex-wrap: wrap;
  }
}

/* ── Minimalist utility buttons ── */
.hostpn-mgmt-expenses-wrapper .hostpn-btn-mini {
  font-weight: 400;
  font-size: 12px;
  padding: 5px 12px;
  letter-spacing: 0.3px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  border-radius: 4px;
  transition: background 0.15s, border-color 0.15s;
}

.hostpn-mgmt-expenses-wrapper .hostpn-btn-mini:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* ── Financial Dashboard Admin (light theme) ── */
.hostpn-fin-metrics-grid-admin { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:14px; margin-bottom:24px; }
.hostpn-fin-card-admin { background:#ffffff; color:#0f172a; border:1px solid #e2e8f0; border-radius:8px; padding:16px; box-shadow:0 1px 3px rgba(0,0,0,0.04); }
.hostpn-fin-card-label-admin { font-size:11px; text-transform:uppercase; color:#64748b; font-weight:600; letter-spacing:0.5px; }
.hostpn-fin-card-value-admin { font-size:20px; font-weight:700; color:#0f172a; margin-top:4px; }
.hostpn-fin-card-sub-admin { font-size:11px; color:#64748b; margin-top:4px; font-weight:500; }
.hostpn-fin-card-value-sky { color:#0284c7; }
.hostpn-fin-card-value-blue { color:#2563eb; }
.hostpn-fin-card-value-red { color:#dc2626; }
.hostpn-fin-card-value-green { color:#16a34a; }

/* Chart wrapper admin */
.hostpn-fin-chart-admin { margin-bottom:24px; padding:20px; background:#ffffff; border:1px solid #e2e8f0; border-radius:8px; color:#0f172a; box-shadow:0 1px 3px rgba(0,0,0,0.04); }
.hostpn-fin-chart-title-admin { font-size:12px; font-weight:700; color:#334155; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:14px; }
.hostpn-fin-chart-canvas-admin { position:relative; height:200px; width:100%; }

/* Room table admin */
.hostpn-fin-rooms-wrap-admin { margin-bottom:28px; }
.hostpn-fin-rooms-heading-admin { margin:0 0 14px; font-size:14px; font-weight:700; color:#0f172a; text-transform:uppercase; letter-spacing:0.5px; }
.hostpn-fin-table-admin { width:100%; border-collapse:collapse; font-size:13px; background:#ffffff; color:#0f172a; border:1px solid #e2e8f0; border-radius:8px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,0.03); }
.hostpn-fin-table-admin thead tr { background:#f8fafc; color:#475569; border-bottom:1px solid #e2e8f0; font-size:12px; text-transform:uppercase; }
.hostpn-fin-table-admin th { padding:12px 14px; text-align:left; font-weight:600; }
.hostpn-fin-table-admin th.hostpn-fin-th-center { text-align:center; }
.hostpn-fin-table-admin tbody tr { border-bottom:1px solid #f1f5f9; }
.hostpn-fin-td { padding:12px 14px; vertical-align:top; }
.hostpn-fin-td-bold { font-weight:600; color:#0f172a; }
.hostpn-fin-td-center { text-align:center; }
.hostpn-fin-guest-available { color:#94a3b8; font-style:italic; }
.hostpn-fin-actions-bar { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; align-items:center; margin-bottom:6px; }
.hostpn-fin-action-admin { color:#0284c7; font-weight:600; font-size:12px; text-decoration:none; }
.hostpn-fin-action-deposit { color:#2563eb; }
.hostpn-fin-action-history { color:#475569; font-weight:600; font-size:12px; text-decoration:none; display:inline-flex; align-items:center; gap:2px; }

/* Payment subrow admin */
.hostpn-fin-subrow-admin { display:none; background:#f8fafc; border-bottom:1px solid #e2e8f0; }
.hostpn-fin-subrow-td { padding:14px 18px; }
.hostpn-fin-subrow-header { font-size:12px; font-weight:700; color:#334155; margin-bottom:10px; display:flex; justify-content:space-between; align-items:center; }
.hostpn-fin-subrow-empty { font-size:12px; color:#64748b; font-style:italic; }
.hostpn-fin-pay-table { width:100%; border-collapse:collapse; font-size:12px; color:#334155; background:#ffffff; border:1px solid #e2e8f0; border-radius:6px; overflow:hidden; }
.hostpn-fin-pay-table thead tr { border-bottom:1px solid #e2e8f0; background:#f1f5f9; color:#475569; text-align:left; }
.hostpn-fin-pay-table th { padding:8px 10px; font-weight:600; }
.hostpn-fin-pay-table th.hostpn-fin-th-center { text-align:center; }
.hostpn-fin-pay-table tbody tr { border-bottom:1px solid #f1f5f9; }
.hostpn-fin-pay-td { padding:8px 10px; }
.hostpn-fin-pay-date { color:#0f172a; font-weight:500; }
.hostpn-fin-pay-type-badge { background:#f1f5f9; color:#334155; padding:2px 8px; border-radius:4px; font-size:11px; border:1px solid #e2e8f0; font-weight:500; }
.hostpn-fin-pay-month { color:#475569; }
.hostpn-fin-pay-amount { color:#0284c7; font-weight:700; }
.hostpn-fin-pay-notes { font-style:italic; color:#64748b; }
.hostpn-fin-pay-actions { text-align:center; }
.hostpn-fin-icon-btn { text-decoration:none; display:inline-block; }
.hostpn-fin-icon-btn-edit { margin-right:8px; }
.hostpn-fin-icon-edit { font-size:16px; color:#475569; vertical-align:middle; }
.hostpn-fin-icon-delete { font-size:16px; color:#dc2626; vertical-align:middle; }
.hostpn-fin-icon-expand { font-size:16px; vertical-align:middle; }

/* Expenses section admin */
.hostpn-fin-expenses-admin { margin-top:28px; background:#ffffff; border:1px solid #e2e8f0; border-radius:8px; padding:20px; color:#0f172a; box-shadow:0 1px 3px rgba(0,0,0,0.04); }
.hostpn-fin-expenses-header-admin { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; flex-wrap:wrap; gap:10px; }
.hostpn-fin-expenses-title-admin { margin:0; font-size:14px; font-weight:700; color:#0f172a; text-transform:uppercase; letter-spacing:0.5px; }
.hostpn-fin-expenses-desc-admin { font-size:12px; color:#64748b; }
.hostpn-fin-expenses-controls { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.hostpn-fin-period-select-admin { padding:6px 10px; font-size:12px; border:1px solid #cbd5e1; border-radius:6px; background:#ffffff; color:#334155; cursor:pointer; }
.hostpn-fin-period-summary-admin { margin-bottom:14px; padding:10px 14px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:6px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.hostpn-fin-period-label { font-size:12px; color:#475569; font-weight:500; }
.hostpn-fin-period-total-red { color:#dc2626; }
.hostpn-fin-period-count { font-size:11px; color:#94a3b8; }
.hostpn-fin-expenses-empty-admin { font-size:13px; color:#64748b; font-style:italic; padding:12px 0; }
.hostpn-fin-exp-table-admin { width:100%; border-collapse:collapse; font-size:12px; color:#334155; border:1px solid #e2e8f0; border-radius:6px; overflow:hidden; }
.hostpn-fin-exp-table-admin thead tr { background:#f8fafc; color:#475569; text-align:left; border-bottom:1px solid #e2e8f0; font-size:11px; text-transform:uppercase; }
.hostpn-fin-exp-table-admin th { padding:10px 12px; font-weight:600; }
.hostpn-fin-exp-table-admin th.hostpn-fin-th-center { text-align:center; }
.hostpn-fin-exp-table-admin tbody tr { border-bottom:1px solid #f1f5f9; }
.hostpn-fin-exp-td { padding:10px 12px; }
.hostpn-fin-exp-date { font-weight:600; color:#0f172a; }
.hostpn-fin-exp-provider { color:#0f172a; }
.hostpn-fin-exp-cat-badge { background:#f1f5f9; color:#334155; padding:2px 8px; border-radius:4px; font-size:11px; border:1px solid #e2e8f0; font-weight:500; }
.hostpn-fin-exp-rec-badge { background:#dbeafe; color:#1d4ed8; padding:2px 6px; border-radius:4px; font-size:10px; font-weight:600; margin-left:4px; }
.hostpn-fin-exp-rec-icon { font-size:11px; vertical-align:middle; }
.hostpn-fin-exp-auto-badge { background:#f0fdf4; color:#15803d; padding:2px 6px; border-radius:4px; font-size:10px; font-weight:500; margin-left:4px; }
.hostpn-fin-exp-amount { color:#dc2626; font-weight:700; }
.hostpn-fin-exp-attach { color:#0284c7; text-decoration:none; font-weight:600; }
.hostpn-fin-exp-attach-icon { font-size:14px; vertical-align:middle; }
.hostpn-fin-exp-no-attach { color:#94a3b8; font-style:italic; }
.hostpn-fin-exp-notes { font-style:italic; color:#64748b; }

/* CSV import admin */
.hostpn-fin-csv-admin { margin-top:24px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; padding:16px; box-shadow:0 1px 3px rgba(0,0,0,0.03); }
.hostpn-fin-csv-title { display:block; font-size:13px; color:#0f172a; }
.hostpn-fin-csv-sub { font-size:11px; color:#64748b; }
.hostpn-fin-csv-link { color:#0284c7; font-weight:600; font-size:12px; text-decoration:none; display:inline-flex; align-items:center; gap:4px; }

/* Period selector (positioned above metric cards) */
.hostpn-fin-period-bar { display:flex; justify-content:flex-end; align-items:center; gap:10px; margin-bottom:12px; }

/* JS frontend expense action buttons */
.hostpn-fin-exp-edit-btn { background:#334155; color:#f8fafc; border:none; border-radius:3px; padding:3px 8px; font-size:10px; cursor:pointer; margin-right:4px; }
.hostpn-fin-exp-delete-btn { background:#991b1b; color:#fca5a5; border:none; border-radius:3px; padding:3px 8px; font-size:10px; cursor:pointer; }
.hostpn-fin-add-expense-btn { background:#0284c7; color:#fff; border:none; padding:6px 14px; border-radius:4px; font-size:12px; font-weight:600; cursor:pointer; }
.hostpn-tax-summary-btn { background:#334155; color:#fff; border:none; padding:6px 14px; border-radius:4px; font-size:12px; font-weight:600; cursor:pointer; display:inline-flex; align-items:center; }
.hostpn-tax-summary-btn:hover { background:#1e293b; }

/* Payment method badges */
.hostpn-tax-method-badge { display:inline-block; padding:2px 8px; border-radius:4px; font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:0.3px; }
.hostpn-tax-method-transfer { background:#dbeafe; color:#1e40af; }
.hostpn-tax-method-cash { background:#fef3c7; color:#92400e; }
.hostpn-tax-method-bizum { background:#d1fae5; color:#065f46; }
.hostpn-tax-method-other { background:#f1f5f9; color:#475569; }

/* Tax Declaration Summary Popup */
.hostpn-tax-popup { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); z-index:999999; background:#ffffff; color:#0f172a; border:1px solid #e2e8f0; border-radius:10px; width:92%; max-width:720px; max-height:85vh; overflow-y:auto; padding:22px; box-shadow:0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05); }
.hostpn-tax-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:16px; padding:10px 12px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:6px; }
.hostpn-tax-control-group { display:flex; align-items:center; }
.hostpn-tax-cash-toggle { display:flex; align-items:center; gap:6px; font-size:13px; color:#334155; font-weight:500; cursor:pointer; }
.hostpn-tax-cash-toggle input[type="checkbox"] { width:16px; height:16px; cursor:pointer; }
.hostpn-tax-section { margin-bottom:20px; }
.hostpn-tax-section-title { margin:0 0 8px; font-size:14px; font-weight:700; color:#0f172a; text-transform:uppercase; letter-spacing:0.5px; }
.hostpn-tax-table { width:100%; border-collapse:collapse; font-size:12px; }
.hostpn-tax-table thead th { background:#f1f5f9; color:#475569; padding:8px 10px; text-align:left; font-weight:600; font-size:11px; text-transform:uppercase; letter-spacing:0.3px; border-bottom:2px solid #e2e8f0; }
.hostpn-tax-table tbody td { padding:7px 10px; border-bottom:1px solid #f1f5f9; color:#334155; }
.hostpn-tax-table tbody tr:hover { background:#f8fafc; }
.hostpn-tax-amount-cell { text-align:right; font-weight:600; font-variant-numeric:tabular-nums; }
.hostpn-tax-subtotal-row td { background:#f8fafc; border-top:2px solid #e2e8f0; padding:8px 10px; }
.hostpn-tax-row.hostpn-tax-hidden { display:none; }
.hostpn-tax-totals { background:#f8fafc; border:1px solid #e2e8f0; border-radius:6px; padding:14px 16px; }
.hostpn-tax-totals-row { display:flex; justify-content:space-between; align-items:center; padding:4px 0; font-size:13px; color:#334155; }
.hostpn-tax-net-row { border-top:1px solid #cbd5e1; margin-top:6px; padding-top:10px; font-size:15px; }
.hostpn-tax-net-positive { color:#059669; }
.hostpn-tax-net-negative { color:#dc2626; }

/* JS frontend period select (dark theme) */
.hostpn-fin-period-select-dark { padding:6px 10px; font-size:12px; border:1px solid #475569; border-radius:6px; background:#1e293b; color:#e2e8f0; cursor:pointer; }

/* JS frontend period summary (dark theme) */
.hostpn-fin-period-summary-dark { margin-bottom:14px; padding:10px 14px; background:#1e293b; border:1px solid #334155; border-radius:6px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.hostpn-fin-period-label-dark { font-size:12px; color:#94a3b8; font-weight:500; }
.hostpn-fin-period-total-pink { color:#f87171; }
.hostpn-fin-period-count-dark { font-size:11px; color:#64748b; }

/* JS frontend CSV import button */
.hostpn-fin-csv-btn-dark { background:#334155; color:#ffffff; border:1px solid #475569; padding:8px 16px; border-radius:4px; font-size:12px; font-weight:600; cursor:pointer; }

/* ── Imported Blocked Dates ── */

.hostpn-booking-blocked-card {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 6px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.hostpn-booking-blocked-dates {
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.hostpn-booking-blocked-summary {
  color: #64748b;
  font-style: italic;
}

/* ── Seasonal Prices Calendar (Management Panel) ── */

.hostpn-seasonal-calendar-wrapper {
  margin-top: 8px;
}

.hostpn-seasonal-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hostpn-seasonal-cal-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  text-transform: capitalize;
}

/* Calendar cells in management panel — light theme overrides */
.hostpn-seasonal-calendar-wrapper .hostpn-cal-seasonal {
  background: #fff3e0;
  border: 1px solid #ffcc80;
  cursor: pointer;
}

.hostpn-seasonal-calendar-wrapper .hostpn-cal-seasonal:hover {
  background: #ffe0b2;
}

.hostpn-seasonal-calendar-wrapper .hostpn-cal-seasonal .hostpn-cal-price {
  color: #e65100;
  font-weight: 600;
}

.hostpn-seasonal-calendar-wrapper .hostpn-cal-base-price {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.hostpn-seasonal-calendar-wrapper .hostpn-cal-base-price:hover {
  background: #f1f5f9;
}

.hostpn-seasonal-calendar-wrapper .hostpn-cal-price {
  color: #64748b;
}

.hostpn-seasonal-calendar-wrapper .hostpn-cal-day-num {
  color: #0f172a;
}

.hostpn-seasonal-calendar-wrapper .hostpn-cal-past .hostpn-cal-day-num {
  color: #cbd5e1;
}

.hostpn-seasonal-calendar-wrapper .hostpn-cal-past .hostpn-cal-price {
  color: #cbd5e1;
}

/* Price selection in management panel */
.hostpn-seasonal-calendar-wrapper .hostpn-cal-price-select-start,
.hostpn-seasonal-calendar-wrapper .hostpn-cal-price-select-end {
  background: #dbeafe !important;
  border-color: #3b82f6 !important;
}

.hostpn-seasonal-calendar-wrapper .hostpn-cal-price-select-start .hostpn-cal-day-num,
.hostpn-seasonal-calendar-wrapper .hostpn-cal-price-select-end .hostpn-cal-day-num {
  color: #1d4ed8 !important;
  font-weight: 700;
}

.hostpn-seasonal-calendar-wrapper .hostpn-cal-price-in-range {
  background: #e0e7ff !important;
  border-color: #a5b4fc !important;
}

/* Seasonal info popup in management panel */
.hostpn-seasonal-calendar-wrapper .hostpn-cal-seasonal-info {
  font-size: 12px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #334155;
}

/* Price panel in management panel */
.hostpn-seasonal-calendar-wrapper .hostpn-booking-price-panel {
  margin-top: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.hostpn-seasonal-calendar-wrapper .hostpn-booking-price-panel-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #334155;
}

.hostpn-seasonal-calendar-wrapper .hostpn-booking-price-panel-row label {
  font-weight: 600;
}

/* ── My Payments (guest view) ── */
.hostpn-my-payments-section {
  margin-top: 24px;
}
.hostpn-my-payments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.hostpn-my-payments-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}
.hostpn-my-payments-actions {
  display: flex;
  gap: 6px;
}
.hostpn-my-payments-actions .hostpn-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.hostpn-my-payments-actions .hostpn-btn .material-icons-outlined {
  font-size: 16px;
}

/* Ticket card */
.hostpn-payment-ticket {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
  margin-bottom: 8px;
  transition: box-shadow 0.15s ease;
}
.hostpn-payment-ticket:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.hostpn-payment-ticket-deposit {
  border-left-color: #22c55e;
}
.hostpn-payment-ticket-rent {
  border-left-color: #3b82f6;
}
.hostpn-payment-ticket-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}
.hostpn-payment-ticket-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hostpn-payment-ticket-concept {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}
.hostpn-payment-ticket-date {
  font-size: 12px;
  color: #64748b;
}
.hostpn-payment-ticket-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.hostpn-payment-ticket-amount {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}
.hostpn-payment-ticket-method {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 20px;
  padding: 2px 10px 2px 6px;
}
.hostpn-payment-ticket-method .material-icons-outlined {
  font-size: 14px;
}
.hostpn-payment-ticket-notes {
  padding: 8px 16px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* Responsive: stack on mobile */
@media (max-width: 480px) {
  .hostpn-payment-ticket-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .hostpn-payment-ticket-right {
    align-items: flex-start;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
  }
  .hostpn-my-payments-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Import prices from Booking.com ── */
.hostpn-booking-import-prices-section {
  margin-top: 16px;
  padding: 16px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}
.hostpn-booking-import-prices-section h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.hostpn-booking-import-prices-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.hostpn-booking-import-prices-form .hostpn-booking-import-url {
  flex: 1 1 300px;
  min-width: 200px;
}
.hostpn-booking-import-prices-form .hostpn-booking-import-prices-btn {
  white-space: nowrap;
}
.hostpn-booking-import-result {
  margin-top: 10px;
  font-size: 13px;
}
.hostpn-booking-import-result .hostpn-text-success {
  color: #2e7d32;
}
.hostpn-booking-import-result .hostpn-text-error {
  color: #c62828;
}

