@import url("open-iconic/font/css/open-iconic-bootstrap.min.css");

html,
body,
p,
.rz-text-body1,
.rz-text-subtitle2,
.rz-text-subtitle1,
.rz-text-subtitle15,
.rz-text-subtitle3,
.rz-text-subtitle4,
.rz-text-subtitle6 {
  font-family: "Poppins", Helvetica, Arial, sans-serif !important;
}

html {
  -webkit-overflow-scrolling: touch;
  height: calc(100vh - env(safe-area-inset-bottom)); /* Adjust for iPhone safe areas */
  scroll-behavior: smooth;
  background-color: white;
}

* {
  box-shadow: none !important;
  -ms-overflow-style: none; /* Hide scrollbars in Internet Explorer and Edge (legacy) */
  scrollbar-width: none; /* Hide scrollbars in Firefox */
  touch-action: manipulation;
}

  /* Webkit browsers (Chrome, Safari, Edge) scrollbar hide */
  *::-webkit-scrollbar {
    display: none; /* Hides the scrollbar in WebKit browsers */
  }

.rz-button.rz-primary.rz-shade-default {
  text-transform: capitalize;
}

.rz-text-body1 {
  color: var(--C-Black, #000) !important;
  margin-bottom: 0px;
}

.change-btn {
  width: auto !important;
}

h1:focus {
  outline: none;
}

a,
.btn-link {
  color: #0071c1;
}

  .btn:focus,
  .btn:active:focus,
  .btn-link.nav-link:focus,
  .form-control:focus,
  .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
  }

.content {
  padding-top: 1.1rem;
}

.valid.modified:not([type="checkbox"]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: #dc3545 !important;
  margin-top: 15px !important;
  font-size: 14px !important;
}

.rz-spinner input[type=number], .rz-spinner input[type=text] {
  font-size: 15px !important;
}

.rz-card.rz-variant-filled {
  padding: 0px 10px;
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

  #blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
  }

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

  .blazor-error-boundary::after {
    content: "An error has occurred.";
  }

.loading-progress {
  position: relative;
  display: block;
  width: 8rem;
  height: 8rem;
  margin: 20vh auto 1rem auto;
}

  .loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
  }

    .loading-progress circle:last-child {
      stroke: #1b6ec2;
      stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
      transition: stroke-dasharray 0.05s ease-in-out;
    }

.loading-progress-text {
  position: absolute;
  text-align: center;
  font-weight: bold;
  inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

  .loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
  }

.pac-container {
  z-index: 1050 !important;
}

.primary-button {
  height: 51px !important;
  border-radius: 15px !important;
  text-transform: none !important;
  padding: 13.5px 30px 13.5px 30px !important;
  box-shadow: unset !important;
  letter-spacing: unset !important;
  background-color: var(--C-Black, #000) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 400 !important;
}

.primary-button-width,
.secondary-button-width {
  width: 279px;
}

.secondary-button {
  border-radius: 15px;
  border: 1px solid var(--C-Black, #000) !important;
  display: flex;
  height: 51px;
  padding: 13.5px 30px;
  justify-content: center;
  align-items: center;
  background-color: unset !important;
  color: var(--C-Black, #000) !important;
  font-weight: 400 !important;
}

.rz-button {
  text-transform: capitalize !important;
}

.styled-dialog {
  border-radius: 15px !important;
}

/* Yellow Shades */
.yellow-100 {
  background-color: #fdb121 !important;
}

.yellow-80 {
  background-color: rgba(253, 177, 33, 0.8) !important;
}

.yellow-60 {
  background-color: rgba(253, 177, 33, 0.6) !important;
}

.yellow-40 {
  background-color: rgba(253, 177, 33, 0.4) !important;
}

.yellow-20 {
  background-color: rgba(253, 177, 33, 0.2) !important;
}

/* Blue Shades */
.blue-100 {
  background-color: #699ad4 !important;
}

.blue-80 {
  background-color: rgba(105, 138, 212, 0.8) !important;
}

.blue-60 {
  background-color: rgba(105, 138, 212, 0.6) !important;
}

.blue-40 {
  background-color: rgba(105, 138, 212, 0.4) !important;
}

.blue-20 {
  background-color: rgba(105, 138, 212, 0.2) !important;
}

/* Orange Shades */
.orange-100 {
  background-color: #ff783e !important;
}

.orange-80 {
  background-color: rgba(255, 120, 62, 0.8) !important;
}

.orange-60 {
  background-color: rgba(255, 120, 62, 0.6) !important;
}

.orange-40 {
  background-color: rgba(255, 120, 62, 0.4) !important;
}

.orange-20 {
  background-color: rgba(255, 120, 62, 0.2) !important;
}

/* Teal Shades */
.teal-100 {
  background-color: #04a190 !important;
}

.teal-80 {
  background-color: rgba(4, 161, 144, 0.8) !important;
}

.teal-60 {
  background-color: rgba(4, 161, 144, 0.6) !important;
}

.teal-40 {
  background-color: rgba(4, 161, 144, 0.4) !important;
}

.teal-20 {
  background-color: rgba(4, 161, 144, 0.2) !important;
}

/* Black */
.black-100 {
  background-color: #000000 !important;
}

.black-10 {
  background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Gray Shades */
.gray-100 {
  background-color: #555555 !important;
}

.gray-80 {
  background-color: rgba(85, 85, 85, 0.8) !important;
}

.gray-60 {
  background-color: rgba(85, 85, 85, 0.6) !important;
}

.gray-40 {
  background-color: rgba(85, 85, 85, 0.4) !important;
}

.gray-20 {
  background-color: rgba(85, 85, 85, 0.2) !important;
}

/* Light Gray Shades */
.light-gray-100 {
  background-color: #eaeaea !important;
}

.light-gray-80 {
  background-color: rgba(234, 234, 234, 0.8) !important;
}

.light-gray-60 {
  background-color: rgba(234, 234, 234, 0.6) !important;
}

.light-gray-40 {
  background-color: rgba(234, 234, 234, 0.4) !important;
}

.light-gray-20 {
  background-color: rgba(234, 234, 234, 0.2) !important;
}

/* Lightest Gray */
.lightest-gray-100 {
  background-color: #f7f5f5 !important;
}

.lightest-gray-80 {
  background-color: rgba(247, 245, 245, 0.8) !important;
}

.lightest-gray-60 {
  background-color: rgba(247, 245, 245, 0.6) !important;
}

.lightest-gray-40 {
  background-color: rgba(247, 245, 245, 0.4) !important;
}

.lightest-gray-20 {
  background-color: rgba(247, 245, 245, 0.2) !important;
}

/* White */
.white {
  background-color: #fafafa !important;
}

/* Black Text */
.black-text-100 {
  color: #000000 !important;
}

.black-text-10 {
  color: rgba(0, 0, 0, 0.1) !important;
}

/* Gray Text Shades */
.gray-text-100 {
  color: #555555 !important;
}

.gray-text-80 {
  color: rgba(85, 85, 85, 0.8) !important;
}

.gray-text-60 {
  color: rgba(85, 85, 85, 0.6) !important;
}

.gray-text-40 {
  color: rgba(85, 85, 85, 0.4) !important;
}

.gray-text-20 {
  color: rgba(85, 85, 85, 0.2) !important;
}

/* Light Gray Text Shades */
.light-gray-text-100 {
  color: #eaeaea !important;
}

.light-gray-text-80 {
  color: rgba(234, 234, 234, 0.8) !important;
}

.light-gray-text-60 {
  color: rgba(234, 234, 234, 0.6) !important;
}

.light-gray-text-40 {
  color: rgba(234, 234, 234, 0.4) !important;
}

.light-gray-text-20 {
  color: rgba(234, 234, 234, 0.2) !important;
}

/* Lightest Gray Text */
.lightest-gray-text-100 {
  color: #f7f5f5 !important;
}

.lightest-gray-text-80 {
  color: rgba(247, 245, 245, 0.8) !important;
}

.lightest-gray-text-60 {
  color: rgba(247, 245, 245, 0.6) !important;
}

.lightest-gray-text-40 {
  color: rgba(247, 245, 245, 0.4) !important;
}

.lightest-gray-text-20 {
  color: rgba(247, 245, 245, 0.2) !important;
}

.white-text {
  color: #fafafa !important;
}

.bold-text {
  font-weight: 500 !important;
}

.w-10 {
  width: 10%;
}

.w-20 {
  width: 20%;
}

.w-30 {
  width: 30%;
}

.w-40 {
  width: 40%;
}

.w-44 {
  width: 44%;
}

.w-50 {
  width: 50%;
}

.w-56 {
  width: 56%;
}

.w-60 {
  width: 60%;
}

.w-70 {
  width: 70%;
}

.w-80 {
  width: 80%;
}

.w-90 {
  width: 90%;
}

.w-100 {
  width: 100%;
}

/*Utility Margins*/
.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mx-20 {
  margin: 0px 20px;
}

.mr-20 {
  margin-right: 20px;
}

.ml-20 {
  margin-left: 20px;
}

.m-20 {
  margin: 20px;
}

.change-card-dialog .rz-dialog-content {
  padding: 0px !important;
}

.billing-card .rz-dialog-content,
.Subscription-card .rz-dialog-content {
  flex-grow: 1 !important;
  display: flex;
  padding: 10px;
}

.rz-dialog-content .styled-ra-dialog {
  padding: 16px 24px 24px;
}

.rz-dialog-content:not(.rz-dialog-confirm):not( .rz-dialog-alert ).styled-ra-dialog {
  padding: 16px;
  display: flex;
  height: 100%;
  flex-direction: row;
}

.rz-text-body1.styled-ra-dialog {
  flex-grow: 1;
}

.rz-dialog.time-manager-confirm-popup > div.rz-dialog-content {
  padding: 0px 30px 30px 30px !important;
  margin-top: -10px;
  border-radius: 0px !important;
  width: 396px;
}

.rz-dialog-titlebar {
  padding: 20px;
}

.rz-notification-message {
  top: 15% !important;
}

@media (max-width: 768px) {
  .rz-dialog.time-manager-confirm-popup > div.rz-dialog-content {
    width: 100%;
  }

  .rz-widget-content {
    padding-bottom: 20px;
  }

  .rz-dialog-wrapper {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); /* For Safari */
  }

  .rz-dialog:not(.rz-dialog-confirm):not(.rz-dialog-alert).styled-dialog {
    position: fixed;
    bottom: 0;
    top: auto !important;
    height: auto !important;
    border-radius: 20px !important;
    border-bottom-right-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    min-height: 500px !important;
    padding: 45px 20px 20px 20px !important;
  }

  .rz-dialog:not(.rz-dialog-confirm):not(.rz-dialog-alert).add-company-dialog, .rz-dialog:not(.rz-dialog-confirm):not(.rz-dialog-alert).time-manager-confirm-popup {
    position: absolute;
    width: 85% !important;
    max-width: 416px;
    top: auto !important;
  }

  .rz-dialog:not(.rz-dialog-confirm):not(.rz-dialog-alert).calendar-dialog {
    position: absolute;
    width: fit-content !important;
    top: auto !important;
  }

  .rz-dialog:not(.rz-dialog-confirm):not(.rz-dialog-alert).styled-ra-dialog {
    height: -webkit-fill-available !important;
    margin: 40px 0px 0px !important;
    width: 100% !important;
    border-radius: 12px !important;
    border-bottom-right-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    position: relative;
  }

  body:has(.rz-dialog.styled-ra-dialog) {
    position: relative;
  }

    body:has(.rz-dialog.styled-ra-dialog)::before {
      content: "";
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 50px;
      background: rgba(255, 255, 255, 0.6);
      backdrop-filter: blur(2px);
      z-index: 998;
    }

  .rz-dialog-content {
    padding: 20px;
    padding-bottom: 80px;
  }
}

@media (max-width: 400px) {
  .rz-button-md {
    letter-spacing: 0 !important;
  }
}

.time-dialog {
  max-height: 90%;
  min-height: 90%;
}

  .time-dialog .rz-dialog-content {
    padding-bottom: 100px;
  }

@media (max-width: 768px) {
  .time-dialog .rz-dialog-content {
    padding-top: 0px;
    padding-bottom: 150px;
  }
}

.time-dialog .button-section {
  position: absolute;
  left: 0;
  bottom: 0px;
  padding-bottom: 40px;
  padding-left: 40px;
  padding-right: 40px;
  background-color: #fff;
}

@media (max-width: 768px) {
  .time-dialog .button-section {
    position: absolute;
    bottom: 0;
    padding: 0 20px 20px;
  }
}

.preview-template-modal .rz-dialog-content {
  padding: unset !important;
}

.preview-template-modal .rz-dialog-titlebar-icon {
  position: absolute !important;
  right: -40px !important;
  top: 5px !important;
}

.preview-template-modal {
  overflow: unset !important;
}

  .preview-template-modal .rz-dialog-titlebar-close .rzi-times {
    color: white !important;
  }

@media (max-width: 768px) {

  .rz-dialog.preview-template-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, 20%) !important;
    margin: 0 !important;
    width: 90% !important;
    max-width: 90vw !important;
    max-height: 70vh !important;
    border-radius: 15px !important;
    bottom: auto !important;
    overflow: unset !important;
    padding: 0 !important;
  }

  .preview-template-modal .rz-dialog-titlebar {
    padding: 0px !important;
  }

  .preview-template-modal .rz-dialog-titlebar-icon {
    right: 10px !important;
    top: -40px !important;
  }
}

/* Center currency in invoice deposit dropdown - scoped to avoid regression */
.rz-popup[id*="popup-Step5"][id*="DepositCurrencyDropdown"] .rz-dropdown-item,
.rz-popup[id*="popup-Step5"][id*="DiscountCurrencyDropdown"] .rz-dropdown-item {
  background-color: #ffffff !important;
  color: #000000 !important;
}

  .rz-popup[id*="popup-Step5"][id*="DepositCurrencyDropdown"] .rz-dropdown-item span,
  .rz-popup[id*="popup-Step5"][id*="DiscountCurrencyDropdown"] .rz-dropdown-item span {
    width: 100%;
    background-color: #ffffff !important;
    color: #000000 !important;
    display: block;
  }

/* Ensure dropdown button itself has white background and black text */
[id*="Step5"][id*="DepositCurrencyDropdown"].invoice-dropdown,
[id*="Step5"][id*="DiscountCurrencyDropdown"].invoice-dropdown {
  background-color: #ffffff !important;
  color: #000000 !important;
}

  /* Fix inner elements of deposit/discount dropdowns */
  [id*="Step5"][id*="DepositCurrencyDropdown"].invoice-dropdown .rz-dropdown-label,
  [id*="Step5"][id*="DepositCurrencyDropdown"].invoice-dropdown .rz-dropdown-label-container,
  [id*="Step5"][id*="DiscountCurrencyDropdown"].invoice-dropdown .rz-dropdown-label,
  [id*="Step5"][id*="DiscountCurrencyDropdown"].invoice-dropdown .rz-dropdown-label-container {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

/* Target the dropdown panel/popup for white background */
.rz-popup[id*="popup-Step5"][id*="DepositCurrencyDropdown"],
.rz-popup[id*="popup-Step5"][id*="DiscountCurrencyDropdown"] {
  background-color: #ffffff !important;
}

  .rz-popup[id*="popup-Step5"][id*="DepositCurrencyDropdown"] .rz-dropdown-items,
  .rz-popup[id*="popup-Step5"][id*="DiscountCurrencyDropdown"] .rz-dropdown-items {
    background-color: #ffffff !important;
  }

  /* Override any highlight/selected states */
  .rz-popup[id*="popup-Step5"][id*="DepositCurrencyDropdown"] .rz-dropdown-item.rz-state-highlight,
  .rz-popup[id*="popup-Step5"][id*="DiscountCurrencyDropdown"] .rz-dropdown-item.rz-state-highlight {
    background-color: #ffffff !important;
    color: #000000 !important;
  }

  /* Hover state should be light gray, not purple */
  .rz-popup[id*="popup-Step5"][id*="DepositCurrencyDropdown"] .rz-dropdown-item:hover,
  .rz-popup[id*="popup-Step5"][id*="DiscountCurrencyDropdown"] .rz-dropdown-item:hover {
    background-color: #F7F5F5 !important;
    color: #000000 !important;
  }

/* Center text in invoice dropdown specifically */
.invoice-dropdown .rz-dropdown-label {
  margin: 0 auto !important;
  color: #000000 !important;
}

/* VAT Option dropdown styling - scoped to avoid regression */
.vat-dropdown.card-input,
.vat-dropdown.card-input .rz-dropdown-label,
.vat-dropdown.card-input .rz-dropdown-label-container {
  background-color: #F7F5F5 !important;
  color: #000000 !important;
}

/* VAT dropdown popup items - base state */
.rz-popup .rz-dropdown-item,
.rz-popup .rz-dropdown-item span {
  background-color: #ffffff !important;
  color: #000000 !important;
}

  /* VAT dropdown selected/highlight state */
  .rz-popup .rz-dropdown-item.rz-state-highlight,
  .rz-popup .rz-dropdown-item.rz-state-highlight span {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-radius: 4px !important;
  }

  /* VAT dropdown hover state - light gray background */
  .rz-popup .rz-dropdown-item:hover:not(.rz-state-highlight),
  .rz-popup .rz-dropdown-item:hover:not(.rz-state-highlight) span {
    background-color: #F7F5F5 !important;
    color: #000000 !important;
  }

/* More specific VAT dropdown targeting */
.rz-dropdown.vat-dropdown + .rz-popup .rz-dropdown-item,
.rz-dropdown.vat-dropdown + .rz-popup .rz-dropdown-item.rz-state-highlight {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* VAT dropdown popup panel */
.rz-popup {
  background-color: #ffffff !important;
}

  .rz-popup .rz-dropdown-items {
    background-color: #ffffff !important;
  }

/* Override ALL Radzen highlight states globally for invoice page */
.rz-state-highlight,
.rz-state-active,
.rz-dropdown-item.rz-state-highlight,
.rz-dropdown-item.rz-state-active {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #ff783e !important;
  border-radius: 4px !important;
}

/* Hover should be light gray without border */
.rz-dropdown-item:hover {
  background-color: #F7F5F5 !important;
  color: #000000 !important;
}

/* Ensure non-selected items have no border */
.rz-dropdown-item:not(.rz-state-highlight):not(.rz-state-active) {
  border: none !important;
}

/* Orange focus border for all invoice dropdowns when clicked/focused */
.invoice-dropdown:focus,
.invoice-dropdown.rz-state-focus,
.invoice-dropdown:focus-within,
.vat-dropdown:focus,
.vat-dropdown.rz-state-focus,
.vat-dropdown:focus-within,
.rz-dropdown:focus,
.rz-dropdown.rz-state-focus,
.rz-dropdown:focus-within {
  border-color: #ff783e !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(255, 120, 62, 0.2) !important;
}

/* Remove default purple/blue focus styles */
.rz-dropdown:focus,
.rz-dropdown.rz-state-focus {
  border-color: #ff783e !important;
}

/* Orange focus border for all invoice dropdowns when clicked/focused */
.invoice-dropdown:focus,
.invoice-dropdown.rz-state-focus,
.invoice-dropdown:focus-within,
.vat-dropdown:focus,
.vat-dropdown.rz-state-focus,
.vat-dropdown:focus-within,
.rz-dropdown:focus,
.rz-dropdown.rz-state-focus,
.rz-dropdown:focus-within {
  border-color: #ff783e !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(255, 120, 62, 0.2) !important;
}

/* Remove default purple/blue focus styles */
.rz-dropdown:focus,
.rz-dropdown.rz-state-focus {
  border-color: #ff783e !important;
}

/* Specifically target deposit, discount, and VAT dropdowns */
[id*="DepositCurrencyDropdown"]:focus,
[id*="DepositCurrencyDropdown"].rz-state-focus,
[id*="DiscountCurrencyDropdown"]:focus,
[id*="DiscountCurrencyDropdown"].rz-state-focus,
.card-input.vat-dropdown:focus,
.card-input.vat-dropdown.rz-state-focus {
  border-color: #ff783e !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(255, 120, 62, 0.2) !important;
}

/* Placeholder dissolve on focus for all input fields */
input:focus::placeholder,
textarea:focus::placeholder {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Ensure smooth reappearance when blurred and empty */
input:not(:focus):not(:placeholder-shown)::placeholder,
textarea:not(:focus):not(:placeholder-shown)::placeholder {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ========================================
   Profile Menu Tooltip/Popup Styling
   ======================================== */
/* Radzen renders tooltips/popups as portals at document root,
   so they need global styles (not component-scoped) */

/* Outer tooltip/popup container */
.rz-tooltip.rz-popup {
  border-radius: 15px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
  background: transparent !important;
}

/* Context menu wrapper */
.rz-context-menu {
  background: #ffffff !important;
  border-radius: 15px !important;
}
