/* invoice-detail.css - Számla részletei oldal specifikus stílusok */

.invoice-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Summary Widget Styles */
.summary-widget {
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.summary-widget .card-header {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  padding: 1rem 1.25rem;
}

.summary-header-info {
  font-size: 0.9rem;
}

/* Summary Columns */
.summary-col-content {
  padding: 1.5rem;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* First Column - Amount Column */
.summary-col-amount {
  border-right: 1px solid #dee2e6;
  background-color: #ffffff;
}

.summary-type-label {
  width: 100%;
}

.summary-type-label-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.summary-amount-main {
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.summary-amount-main .h3 {
  margin: 0;
  font-weight: 700;
}

.summary-amount-expense .h3 {
  color: #d97706;
}

.summary-amount-income .h3 {
  color: #059669;
}

.summary-amount-secondary {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.summary-status {
  margin-top: 0.5rem;
}

.summary-status .badge {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

/* Second Column - Partners */
.summary-col-partners {
  border-right: 1px solid #dee2e6;
  background-color: #ffffff;
}

.summary-partner {
  margin-bottom: 1.5rem;
  width: 100%;
}

.summary-partner:last-child {
  margin-bottom: 0;
}

.summary-partner-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.summary-partner-name {
  font-size: 1rem;
  color: #212529;
  margin-bottom: 0.25rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.summary-partner-name:hover {
  color: #007bff;
}

.summary-partner-name a {
  color: #212529;
}

.summary-partner-name a:hover {
  color: #007bff;
}

.summary-partner-tax {
  font-size: 0.85rem;
  color: #6c757d;
}

.summary-categories-label {
  width: 100%;
}

.summary-categories-label-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Third Column - Categories */
.summary-col-categories {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-col-categories .summary-col-content {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.summary-col-categories .category-badge {
  font-size: 0.8rem;
  padding: 0.4rem 0.65rem;
  display: inline-block;
  margin: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .summary-col-amount,
  .summary-col-partners {
    border-right: none;
    border-bottom: 1px solid #dee2e6;
  }

  .summary-col-content {
    min-height: auto;
    padding: 1.25rem;
  }

  .summary-amount-main {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .summary-widget .card-header {
    padding: 0.75rem 1rem;
  }

  .summary-header-info {
    font-size: 0.85rem;
  }

  .summary-col-content {
    padding: 1rem;
    min-height: 150px;
  }

  .summary-amount-main {
    font-size: 1.25rem;
  }

  .summary-amount-main .h3 {
    font-size: 1.5rem;
  }

  .summary-amount-secondary {
    font-size: 0.9rem;
  }

  .summary-partner-name {
    font-size: 0.95rem;
  }

  .summary-status .badge,
  .summary-type .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.65rem;
  }
}

/* Supplier kártya hover effekt */
.supplier-card {
  transition: all 0.3s ease;
  border: 1px solid #dee2e6;
}

.supplier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

.supplier-card:hover .card-header {
  background-color: #f8f9fa;
}

.supplier-card:hover .fas.fa-external-link-alt {
  color: #007bff !important;
}

.partner-extra div {
  line-height: 1.4;
}

.partner-extra {
  margin-top: 0.5rem;
}

.partner-link-results {
  min-height: 200px;
  max-height: 420px;
  overflow-y: auto;
  background-color: #fff;
}

.partner-link-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.partner-link-result-item:last-child {
  border-bottom: none;
}

.partner-link-result-item:hover {
  background-color: #f8f9fa;
}

.partner-link-result-info {
  flex: 1;
  margin-right: 1rem;
}

.partner-link-result-info h6 {
  margin-bottom: 0.25rem;
}

.partner-link-result-meta {
  font-size: 0.85rem;
  color: #6c757d;
}

.partner-link-result-meta span + span {
  margin-left: 1rem;
}

.partner-link-results .loading-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.submit-loading .spinner-border {
  vertical-align: middle;
}

.partner-link-results .badge {
  font-size: 0.75rem;
}

/* Edit modal stílusok */
#editModal .modal-xl {
  max-width: 1200px;
}

#editModal .form-label {
  font-weight: 600;
  color: #495057;
}

#editModal .form-select,
#editModal .form-control {
  border-radius: 8px;
  border: 1px solid #ced4da;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

#editModal .form-select:focus,
#editModal .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#editModal h6 {
  color: #6c757d;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

#editModal hr {
  border-color: #e9ecef;
  margin: 2rem 0;
}

/* Custom email input stílusok */
#custom_email_input {
  animation: fadeIn 0.3s ease-in-out;
}

#custom_email_input .form-control {
  border-left: 3px solid #007bff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Invoice Data card stílusok */
.invoice-data-card h6 {
  color: #6c757d;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.amount-details .bg-light {
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.amount-details .bg-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.amount-details .bg-primary {
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Inline editing styles */
.editable-price,
.editable-field {
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 2px 4px;
}

.editable-price:hover,
.editable-field:hover {
  background-color: rgba(0, 123, 255, 0.1);
  transform: scale(1.02);
}

.editable-price input,
.editable-field input {
  border: 2px solid #007bff !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.editable-price .btn,
.editable-field .btn {
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

/* Nettó és bruttó mezők stílusai */
.net-amount {
  color: #28a745;
  font-weight: 600;
}

.gross-amount {
  color: #6c757d;
  font-weight: 600;
}

.vat-amount {
  color: #17a2b8;
  font-weight: 500;
}

.net-unit-price {
  color: #28a745;
  font-weight: 500;
}

.gross-unit-price {
  color: #6c757d;
  font-weight: 500;
}

/* Táblázat oszlopok szélessége */
.invoice-items-table .net-unit-price-column {
  min-width: 120px;
}

.invoice-items-table .gross-unit-price-column {
  min-width: 120px;
}

.invoice-items-table .net-amount-column {
  min-width: 120px;
}

.invoice-items-table .gross-amount-column {
  min-width: 120px;
}

.invoice-items-table .vat-amount-column {
  min-width: 100px;
}

/* Responsive design */
@media (max-width: 1200px) {
  .invoice-items-table .net-unit-price-column,
  .invoice-items-table .gross-unit-price-column,
  .invoice-items-table .net-amount-column,
  .invoice-items-table .gross-amount-column,
  .invoice-items-table .vat-amount-column {
    min-width: 100px;
  }
}

@media (max-width: 992px) {
  .invoice-items-table .net-unit-price-column,
  .invoice-items-table .gross-unit-price-column,
  .invoice-items-table .net-amount-column,
  .invoice-items-table .gross-amount-column,
  .invoice-items-table .vat-amount-column {
    min-width: 80px;
    font-size: 0.9em;
  }
}

/* Transaction Details Card Styles */
.transaction-details-card {
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.transaction-details-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  padding: 1rem 1.25rem;
  cursor: pointer;
}

.transaction-details-card .card-header:hover {
  background-color: #f0f0f0;
}

.transaction-details-header-info {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.transaction-details-card .card-header button {
  flex-shrink: 0;
}

/* Transaction Details Card mobil nézet - Edit gomb ne lógjon ki */
@media (max-width: 768px) {
  .transaction-details-card .card-header {
    padding: 0.75rem 1rem;
  }

  .transaction-details-card .card-header > .d-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .transaction-details-card .card-header > .d-flex > button:first-child {
    width: 100%;
    min-width: 0;
  }

  .transaction-details-card .card-header > .d-flex > button:last-child {
    flex-shrink: 0;
    margin-left: 0 !important;
    align-self: flex-end;
    width: auto;
  }

  .transaction-details-card .card-header button.btn-link {
    padding-right: 0;
  }

  .transaction-details-card .card-header h5 {
    padding-right: 0;
    width: 100%;
  }

  .transaction-details-card .card-header h5 .d-flex {
    width: 100%;
  }
}

/* Payment Information Section */
.payment-information-section {
  padding: 0.5rem 0;
}

.payment-info-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background-color: #ffffff;
  height: 100%;
  transition: all 0.3s ease;
}

.payment-info-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.payment-info-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 150px;
}

.payment-info-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.payment-info-card-value {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.payment-info-card-value.h4 {
  font-size: 1.5rem;
}

.payment-info-card-value.h5 {
  font-size: 1.25rem;
}

.payment-info-card-secondary {
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.payment-info-card-status {
  margin-bottom: 0.5rem;
}

.payment-info-card-status .badge {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.payment-info-card-status-row {
  width: 100%;
  margin-bottom: 0.5rem;
}

.payment-info-card-status-row:last-child {
  margin-bottom: 0;
}

.payment-info-card-detail {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0;
  white-space: nowrap;
}

.payment-info-card-detail i {
  width: 16px;
}

/* Expense and Income text colors */
.text-expense {
  color: #d97706; /* Orange for Expense */
}

.text-income {
  color: #059669; /* Green for Income */
}

/* Responsive adjustments for payment info cards */
@media (max-width: 992px) {
  .payment-info-card-content {
    min-height: 120px;
    padding: 1.25rem;
  }

  .payment-info-card-value.h4 {
    font-size: 1.25rem;
  }

  .payment-info-card-value.h5 {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .payment-info-card-content {
    min-height: 100px;
    padding: 1rem;
  }

  .payment-info-card-value.h4 {
    font-size: 1.1rem;
  }

  .payment-info-card-value.h5 {
    font-size: 1rem;
  }

  .payment-info-card-label {
    font-size: 0.7rem;
  }

  .payment-info-card-secondary {
    font-size: 0.85rem;
  }
}

/* Parties Section Styles */
.parties-section {
  padding: 0.5rem 0;
}

.party-widget {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.party-widget:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.party-widget .card-header {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  padding: 0.75rem 1rem;
}

.party-widget .card-header h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.party-widget-content {
  padding: 0.5rem 0;
}

.party-name-tax {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.party-name {
  font-size: 1.1rem;
  color: #212529;
  display: inline-block;
  transition: color 0.2s ease;
}

.party-name:hover {
  color: #007bff;
}

.party-tax-inline {
  font-size: 0.85rem;
  color: #6c757d;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.party-extra {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.party-detail {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.party-detail i {
  width: 20px;
  text-align: center;
}

/* Responsive adjustments for parties section */
@media (max-width: 768px) {
  .party-widget .card-header {
    padding: 0.5rem 0.75rem;
  }

  .party-widget .card-header h6 {
    font-size: 0.9rem;
  }

  .party-name {
    font-size: 1rem;
  }

  .party-tax {
    font-size: 0.85rem;
  }
}

/* Categories and Tags Section Styles */
.categories-tags-section {
  padding: 0.5rem 0;
}

.category-widget {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.category-widget:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.category-widget .card-header {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  padding: 0.75rem 1rem;
}

.category-widget .card-header h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.category-widget .card-body {
  padding: 1rem;
}

.hierarchical-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.hierarchical-badges .category-badge {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  display: inline-flex;
  align-items: center;
}

.tag-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tag-badges .tag-badge {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  display: inline-flex;
  align-items: center;
}

.tag-hidden {
  display: none !important;
}

.category-hidden {
  display: none !important;
}

/* Responsive adjustments for categories and tags section */
@media (max-width: 768px) {
  .category-widget .card-header {
    padding: 0.5rem 0.75rem;
  }

  .category-widget .card-header h6 {
    font-size: 0.9rem;
  }

  .category-widget .card-body {
    padding: 0.75rem;
  }

  .hierarchical-badges .category-badge,
  .tag-badges .tag-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
  }
}

/* Additional Information Section Styles */
.additional-information-section {
  padding: 0.5rem 0;
}

.additional-information-section h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #6c757d;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
}

.additional-information-section .table {
  margin-bottom: 0;
}

.additional-information-section .table td {
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}

.additional-information-section .table td:first-child {
  width: 40%;
  font-weight: 600;
  color: #495057;
}

.additional-information-section code {
  font-size: 0.85rem;
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.additional-information-section .small {
  font-size: 0.9rem;
  line-height: 1.6;
}

.additional-information-section .small div {
  margin-bottom: 0.25rem;
}

/* Responsive adjustments for additional information section */
@media (max-width: 768px) {
  .additional-information-section .table td {
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
  }

  .additional-information-section .table td:first-child {
    width: 45%;
  }
}

/* Edit Modal Styles */
.edit-modal-body {
  padding: 1rem;
  height: calc(100vh - 120px);
  overflow: hidden;
}

.edit-modal-document-column {
  height: 100%;
}

.edit-modal-form-column {
  height: 100%;
}

.edit-modal-scrollable {
  height: 100%;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.edit-modal-scrollable::-webkit-scrollbar {
  width: 8px;
}

.edit-modal-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.edit-modal-scrollable::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.edit-modal-scrollable::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.edit-modal-document-card {
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  max-height: calc(100vh - 140px);
  position: relative;
}

.edit-modal-document-column .card-body {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  max-height: 100%;
}

.edit-modal-document-viewer {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.edit-modal-document-viewer .invoice-image,
.edit-modal-document-viewer img.img-fluid {
  display: block;
}

.edit-modal-document-pin-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #e9ecef;
  background-color: #ffffff;
  color: #6c757d;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.edit-modal-document-pin-btn:hover {
  background-color: #f8f9fa;
  color: #212529;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

.edit-modal-document-pin-btn:active {
  transform: translateY(1px);
}

.edit-modal-document-pin-btn i {
  pointer-events: none;
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}

.edit-modal-document-pin-btn.is-active {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.edit-modal-document-pin-btn.is-active i {
  transform: rotate(-45deg);
}

.edit-modal-document-column iframe {
  min-height: 500px;
}

.edit-modal-document-column img {
  max-width: 100%;
  height: auto;
}

/* Edit modal form styles */
.edit-modal-form-column .form-label.small {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.edit-modal-form-column .form-control-sm,
.edit-modal-form-column .form-select-sm {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
}

.edit-modal-form-column .card {
  border: 1px solid #dee2e6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.edit-modal-form-column .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
}

.edit-modal-form-column .card-header h5 {
  font-size: 1rem;
  margin: 0;
}

.edit-modal-form-column .card-body {
  padding: 1rem;
}

/* Responsive adjustments for edit modal - mobil nézet */
@media (max-width: 991px) {
  /* A teljes modal body legyen görgethető mobilon (a desktop overflow:hidden helyett) */
  .edit-modal-body {
    overflow-y: auto !important;
    height: auto !important;
    max-height: calc(100vh - 120px);
    position: relative;
    isolation: isolate;
  }

  /* A row ne legyen fix magasságú, hanem a tartalom határozza meg */
  .edit-modal-body > .row {
    height: auto !important;
  }

  /* Dokumentum oszlop: ne legyen fix magasságú */
  .edit-modal-document-column {
    margin-bottom: 1rem;
    height: auto !important;
  }

  /* A dokumentum kártya: max magasság, overflow kezelés, sticky kikapcsolása */
  .edit-modal-document-column .card {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
    max-height: 50vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .edit-modal-document-column.is-pinned-mobile {
    position: sticky;
    top: 0.5rem;
    z-index: 2100 !important;
    align-self: flex-start;
    width: 100%;
  }

  .edit-modal-document-column.is-pinned-mobile .edit-modal-document-card {
    position: relative;
    z-index: 2101 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  }

  /* Card-body: görgethető, az inline max-height felülírása */
  .edit-modal-document-column .card-body {
    overflow: hidden !important;
    max-height: none !important;
    flex: 1;
    min-height: 0;
  }

  /* Form oszlop: ne legyen fix magasságú */
  .edit-modal-form-column {
    height: auto !important;
  }

  /* A form scrollable rész mobilon nem kell külön scroll, a body maga görget */
  .edit-modal-scrollable {
    height: auto !important;
    overflow-y: visible !important;
  }
}

/* Partner Link Modal positioning - offset to right to avoid overlapping document */
#partnerLinkModal .modal-dialog {
  margin-right: 20px;
  margin-left: auto;
}

@media (min-width: 992px) {
  #partnerLinkModal .modal-dialog {
    margin-right: 40px;
  }
}

/* Readonly input styling in edit modal */
.edit-modal-form-column input[readonly] {
  background-color: #f8f9fa;
  cursor: not-allowed;
}

/* Page header responsive styles - mobil nézetben az action gombokat az Invoice Details felirat alá tesszük */
@media (max-width: 768px) {
  .page-header .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .page-header .page-title {
    width: 100%;
    margin-bottom: 0;
  }

  .page-header .page-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .page-header .page-actions .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.25rem);
    margin-left: 0 !important;
  }

  .page-header .page-actions .btn:first-child {
    flex: 1 1 100%;
    min-width: 100%;
  }
}
