/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

trix-editor {
  min-height: 14rem;
  background-color: var(--tblr-bg-surface);
  color: var(--tblr-body-color);
  border-color: var(--tblr-border-color);
}

trix-toolbar .trix-button-group {
  border-color: var(--tblr-border-color);
}

.app-navbar-brand {
  min-width: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.75rem;
}

.navbar-company {
  max-width: clamp(10rem, 18vw, 18rem);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  min-width: 0;
  margin-right: 1rem;
}

.navbar-company-switcher {
  max-width: clamp(10rem, 18vw, 18rem);
  min-width: 0;
  margin-right: 1rem;
}

.navbar-company-link {
  min-width: 0;
  max-width: 100%;
}

.navbar-company-link > span {
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
}

@media (max-width: 991.98px) {
  .navbar-company,
  .navbar-company-switcher {
    max-width: 100%;
    margin-right: 0;
  }

  .navbar-company {
    display: none;
  }
}

@media (min-width: 992px) {
  :host,
  :root {
    margin-left: 0;
  }
}

/* Form footers should stretch to the edges of their container (card body on
   standalone pages, modal body in modals) instead of sitting inset. */
.card-body > form > .card-footer:last-child {
  margin-right: calc(var(--tblr-card-spacer-x, 1.25rem) * -1);
  margin-bottom: calc(var(--tblr-card-spacer-y, 1rem) * -1);
  margin-left: calc(var(--tblr-card-spacer-x, 1.25rem) * -1);
}

.modal-body > form > .card-footer:last-child {
  margin-right: calc(var(--tblr-modal-padding, 1.5rem) * -1);
  margin-bottom: calc(var(--tblr-modal-padding, 1.5rem) * -1);
  margin-left: calc(var(--tblr-modal-padding, 1.5rem) * -1);
  padding: 1rem var(--tblr-modal-padding, 1.5rem);
  background-color: var(--tblr-modal-footer-bg, var(--tblr-bg-surface-tertiary));
  border-top: var(--tblr-modal-footer-border-width, 1px) solid var(--tblr-modal-footer-border-color, var(--tblr-border-color));
  border-bottom-right-radius: var(--tblr-modal-inner-border-radius);
  border-bottom-left-radius: var(--tblr-modal-inner-border-radius);
}

.invoice-print-page {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.invoice-print-frame {
  border: 0;
  display: block;
  height: calc(100vh - 12rem);
  min-height: 900px;
  width: 100%;
}

@media print {
  .invoice-print-frame {
    height: 100vh;
    min-height: 0;
  }
}
