/* Golden Dragon modal theme — headers & primary buttons (Cage Balance gold) */

body:has(.gd-sidebar) .modal .modal-header:not(.guest-portal-header):not(.passport-details-header) {
  background: linear-gradient(160deg, #f1d48a 0%, #c8a24c 100%) !important;
  border-bottom: 1px solid rgba(58, 46, 18, 0.25) !important;
  color: #3a2e12;
}

body:has(.gd-sidebar) .modal .modal-header:not(.guest-portal-header):not(.passport-details-header) .modal-title,
body:has(.gd-sidebar) .modal .modal-header:not(.guest-portal-header):not(.passport-details-header) h5,
body:has(.gd-sidebar) .modal .modal-header:not(.guest-portal-header):not(.passport-details-header) .text-white {
  color: #3a2e12 !important;
}

body:has(.gd-sidebar) .modal .modal-header:not(.guest-portal-header):not(.passport-details-header) .btn-close,
body:has(.gd-sidebar) .modal .modal-header:not(.guest-portal-header):not(.passport-details-header) .btn-close-white {
  filter: none;
  opacity: 0.65;
}

body:has(.gd-sidebar) .modal .modal-header:not(.guest-portal-header):not(.passport-details-header) .btn-close:hover,
body:has(.gd-sidebar) .modal .modal-header:not(.guest-portal-header):not(.passport-details-header) .btn-close-white:hover {
  opacity: 1;
}

body:has(.gd-sidebar) #modal-account-details .modal-header.bg-primary:not(.guest-portal-header) {
  background: linear-gradient(160deg, #f1d48a 0%, #c8a24c 100%) !important;
  border-bottom: 1px solid rgba(58, 46, 18, 0.25) !important;
  color: #3a2e12;
}

body:has(.gd-sidebar) #modal-house-expense-edit-history .house-expense-edit-history-header,
body:has(.gd-sidebar) #modal-house-expense-edit-history .house-expense-edit-history-header .modal-title,
body:has(.gd-sidebar) #modal-house-expense-edit-history .house-expense-edit-history-header .fa,
body:has(.gd-sidebar) #modal-house-expense-edit-history .house-expense-edit-history-header .text-white,
body:has(.gd-sidebar) #modal-house-expense-edit-history .house-expense-edit-history-header span {
  color: #3a2e12 !important;
}

body:has(.gd-sidebar) .modal .block-header.bg-primary-dark {
  background: linear-gradient(160deg, #f1d48a 0%, #c8a24c 100%) !important;
  border-bottom: 1px solid rgba(58, 46, 18, 0.25);
  color: #3a2e12;
}

body:has(.gd-sidebar) .modal .block-header.bg-primary-dark .block-title,
body:has(.gd-sidebar) .modal .block-header.bg-primary-dark .btn-block-option {
  color: #3a2e12;
}

body:has(.gd-sidebar) .modal .btn-primary,
body:has(.gd-sidebar) .modal .btn-primary-subtle {
  color: #fff !important;
  background: linear-gradient(135deg, #52525b 0%, #71717a 100%) !important;
  border-color: transparent !important;
  font-weight: 600;
  box-shadow: none;
}

body:has(.gd-sidebar) .modal .btn-primary:disabled,
body:has(.gd-sidebar) .modal .btn-primary.disabled,
body:has(.gd-sidebar) .modal .btn-primary-subtle:disabled,
body:has(.gd-sidebar) .modal .btn-primary-subtle.disabled {
  opacity: 0.55;
}

body:has(.gd-sidebar) .modal .expense-cat-panel-add-btn {
  border-color: transparent !important;
  background: linear-gradient(135deg, #52525b 0%, #71717a 100%) !important;
  color: #fff !important;
}

body:has(.gd-sidebar) .modal .expense-cat-panel-add-btn:disabled {
  opacity: 0.45;
}

/* House expense form labels — gold text (not blue) */
body:has(.gd-sidebar) #modal-new-house-expense .form-label,
body:has(.gd-sidebar) #modal-edit-house-expense .form-label,
body:has(.gd-sidebar) #modal-new-return-money .form-label,
body:has(.gd-sidebar) #modal-edit-return-money .form-label,
body:has(.gd-sidebar) #modal-house-expense-add-category .form-label,
body:has(.gd-sidebar) #modal-house-expense-edit-category .form-label,
body:has(.gd-sidebar) #modal-house-expense-add-vehicle .form-label,
body:has(.gd-sidebar) #modal-house-expense-edit-vehicle .form-label,
body:has(.gd-sidebar) #modal-gi-manual-game .form-label,
body:has(.gd-sidebar) #house-expense-new-cat-preset-label {
  color: #3a2e12 !important;
}

/* Modal Close / dismiss — white background only */
body:has(.gd-sidebar) .modal .modal-footer .btn[data-bs-dismiss="modal"]:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning),
body:has(.gd-sidebar) .modal .modal-footer .btn-alt-secondary[data-bs-dismiss="modal"],
body:has(.gd-sidebar) .modal .modal-footer .btn-secondary[data-bs-dismiss="modal"] {
  color: #212529 !important;
  background: #fff !important;
  border: 1px solid #dee2e6 !important;
  box-shadow: none !important;
}

body:has(.gd-sidebar) .modal .modal-footer .btn[data-bs-dismiss="modal"]:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):hover,
body:has(.gd-sidebar) .modal .modal-footer .btn-alt-secondary[data-bs-dismiss="modal"]:hover,
body:has(.gd-sidebar) .modal .modal-footer .btn-secondary[data-bs-dismiss="modal"]:hover {
  color: #212529 !important;
  background: #f8f9fa !important;
  border-color: #ced4da !important;
  box-shadow: none !important;
}
