/*
 * 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.
 */

.vh-100 {
  height: 100vh;
  min-height: 100vh;
}

html[data-sidebar="collapsed"] .sidebar-title {
  display: none !important;
}

html[data-sidebar="collapsed"] .sidebar-container {
  width: 80px !important;
  max-width: 80px !important;
  min-width: 80px !important;
}

html[data-sidebar="collapsed"] .sidebar {
  min-width: 80px !important;
  max-width: 80px !important;
}

html[data-sidebar="collapsed"] .main-content {
  width: calc(100vw - 80px) !important;
  max-width: calc(100vw - 80px) !important;
}

html[data-sidebar="collapsed"] .page-content {
  margin-left: 80px !important;
  width: calc(100vw - 80px) !important;
  max-width: calc(100vw - 80px) !important;
}

html[data-sidebar="collapsed"] .breadcrumbs-bar {
  width: calc(100vw - 80px) !important;
  max-width: calc(100vw - 80px) !important;
  left: 80px !important;
  right: 0 !important;
}

html[data-sidebar="collapsed"] .main-footer {
  width: calc(100vw - 80px) !important;
  max-width: calc(100vw - 80px) !important;
}

.badge-button {
  height: 32px !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
}

.sidebar-container {
  width: 300px !important;
  max-width: 300px !important;
  min-width: 300px !important;
}

.form-sidebar {
  height: calc(100vh - 200px) !important;
  min-height: calc(100vh - 200px) !important;
}

.sidebar {
  overflow-y: auto;
  min-width: 300px !important;
  max-width: 300px !important;
  min-height: 100vh;
}

.main-content {
  width: calc(100vw - 300px) !important;
  max-width: calc(100vw - 300px) !important;
}

a em {
  background: yellow;
  padding: 0 2px;
}

.breadcrumbs-bar {
  width: calc(100vw - 300px) !important;
  max-width: calc(100vw - 300px) !important;
  height: 60px !important;
  right: 0;
  left: 300px;
  z-index: 200;
}

.page-content {
  margin-left: 300px !important;
  margin-top: 60px !important;
  height: calc(100vh - 120px) !important;
  max-height: calc(100vh - 120px) !important;
  width: calc(100vw - 320px) !important;
  max-width: calc(100vw - 320px) !important;
  padding: 10px;
  overflow-y: scroll;
}

.main-footer {
  background: var(--bs-body-bg);
  z-index: 100;
  padding: 8px 40px;
  height: 60px;
  width: calc(100vw - 300px) !important;
  max-width: calc(100vw - 300px) !important;
  left: 300px;
  right: 0 !important;
  bottom: 0 !important;
  margin-bottom: -10px;
}

.sidebar hr {
    border: 0;
    border-top: 1px solid #ccc !important;
    margin: 10px 0;
}

a {
    text-decoration: none !important;
}

.bottom-0 {
    position: fixed;
    bottom: 0;
}

.w-100 {
    width: 100%;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

/* Webkit browsers (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Dark mode variant (optional - add this class to body or specific containers) */
.dark-scrollbar *::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
}

.dark-scrollbar *::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.dark-scrollbar * {
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}


hr {
    border: 0;
    border-top: 1px solid #202020 !important;
    margin: 10px 0;
}

.field_with_errors {
    display: inline;
    width: 90%;
}

.field_with_errors label {
    color: red;
}

.field_with_errors .form-control {
    border-color: red;
    border: 1px solid red;
}

.field_with_errors .input-group {
    width: 100%;
    display: flex;
}

.was-validated .form-control:valid,
.form-control.is-valid {
  background-image: none !important;
  padding-right: 0 !important;
}

.form-select.is-valid:not([multiple]):not([size]), 
.form-select.is-valid:not([multiple])[size="1"], 
.was-validated .form-select:valid:not([multiple]):not([size]), 
.was-validated .form-select:valid:not([multiple])[size="1"] {
  background-image: none !important;
  padding-right: 0 !important;
}
.ts-wrapper.multi .ts-control > div.active {
  background: black !important;
}

.ts-control {
  min-height: 48px;
}

.card {
  border: 1px solid lightgray !important;
}

.thanks-container {
  height: 100vh;
  width: 100vw;
  position: absolute;
  background: rgba(0,0,0, 0.5);
  z-index: 100;
  filter: blur(12);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items:center;
}

.thanks {
  width: 80%;
  padding: 8px;
}

.thanks-content {
  min-height: calc(100% - 48px);
}

.thanks-footer {
  padding: 8px;
  margin-top: 8px;
  height: 48px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.signature {
  position: absolute;
  bottom: 100px;
  right: 0px;
  left: 0px;
  margin: 0 auto;
  height: 100px;
}

.nav-link.active {
  font-weight: bold;
}

td {
  padding: 10px !important;
}

.form-check.form-switch {
  min-height: calc(1.5em + 0.75rem + 2px); /* Match Bootstrap input height */
  display: flex;
  flex-direction: column;
  padding-left: 0;
}

.form-check.form-switch .form-check-label {
  margin-bottom: 0.5rem;
  padding-left: 0;
  font-weight: normal;
}

.form-check.form-switch .form-check-input {
  margin-left: 0;
  margin-top: 10px;
  width: 100%;
  max-width: 60px;
  height: 28px;
  border-radius: 14px;
}

/* Ensure the switch container has consistent spacing */
.form-check.form-switch {
  position: relative;
}

.form-check.form-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.row {
  margin-right: 0 !important;
}

.tr-success {
  border-left: 8px solid green;
}

.tr-inactive {
  border-left: 8px solid lightgray;
}

.tr-danger {
  border-left: 8px solid red;
}

/* direct_uploads.css */

.direct-upload {
  display: inline-block;
  position: relative;
  padding: 2px 4px;
  margin: 0 3px 3px 0;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  font-size: 11px;
  line-height: 13px;
}

.direct-upload--pending {
  opacity: 0.6;
}

.direct-upload__progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  opacity: 0.2;
  background: #0076ff;
  transition: width 120ms ease-out, opacity 60ms 60ms ease-in;
  transform: translate3d(0, 0, 0);
}

.direct-upload--complete .direct-upload__progress {
  opacity: 0.4;
}

.direct-upload--error {
  border-color: red;
}

input[type=file][data-direct-upload-url][disabled] {
  display: none;
}

.ts-control {
  white-space: nowrap;
}

/* Style the individual selected item to truncate text */
.ts-control > div.item {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}

.check-inline {
  border-bottom: 1px solid silver;
}

.check-inline .form-check {
  display: inline-block !important;
  margin-right: 10px !important;
  width: 100%;
}

.check-inline .form-check-label {
  margin-bottom: 0 !important;
  margin-left: 10px;
  margin-top: 12px;
  width: 80%;
}

dialog.drawer {
  position: fixed;
  display: block; /* << allow transitions */
  pointer-events: none; /* closed: not interactive */
  bottom: 0;
  top: auto;
  right: 0;
  left: 0;
  height: 100vh;
  min-height: 100vh;
  width: 100vw;
  min-width: 100vw;
  max-width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: -4px 0 24px rgba(0,0,0,0.2);
  overflow: auto;

  /* start off-screen below, invisible */
  transform: translateY(100%);
  opacity: 0;

  /* animate slide up + fade */
  transition: transform .26s cubic-bezier(.22,.9,.19,1), opacity .2s ease;
  will-change: transform, opacity;
  transform-origin: bottom center;

  background: #fff;
}

/* nested dialog sizing */
dialog.drawer dialog {
  min-height: calc(100vh - 40px * 1) !important;
  height: calc(100vh - 40px * 1) !important;
}
dialog.drawer dialog dialog {
  min-height: calc(100vh - 40px * 2) !important;
  height: calc(100vh - 40px * 2) !important;
}
dialog.drawer dialog dialog dialog {
  min-height: calc(100vh - 40px * 3) !important;
  height: calc(100vh - 40px * 3) !important;
}
dialog.drawer dialog dialog dialog dialog {
  min-height: calc(100vh - 40px * 4) !important;
  height: calc(100vh - 40px * 4) !important;
}
dialog.drawer dialog dialog dialog dialog dialog {
  min-height: calc(100vh - 40px * 5) !important;
  height: calc(100vh - 40px * 5) !important;
}
/* fallback for deeper nesting */
dialog.drawer dialog dialog dialog dialog dialog dialog,
dialog.drawer dialog dialog dialog dialog dialog dialog dialog {
  min-height: calc(100vh - 40px * 6) !important;
  height: calc(100vh - 40px * 6) !important;
}

/* when opened, slide into view & fade in */
dialog.drawer[open] {
  transform: translateY(0);
  pointer-events: auto; 
  opacity: 1;
}

/* backdrop fade */
dialog.drawer::backdrop {
  background: rgba(0, 0, 0, 0);
  transition: background .18s ease;
}
dialog.drawer[open]::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

/* inner drawer sits above outer */
#inner_dialog.drawer {
  width: 320px;
  z-index: 1001;
}

@font-face {
  font-family: 'Rubik';
  src: font_url("/assets/Rubik-Regular-d84250a6.ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rubik';
  src: font_url("/assets/Rubik-Medium-b4954e10.ttf");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rubik';
  src: font_url("/assets/Rubik-Bold-75e35619.ttf");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rubik';
  src: font_url("/assets/Rubik-Italic-dca520cc.ttf");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

* {
    font-family: 'Rubik', sans-serif !important;
}

@view-transition {
  navigation: auto;
}

.on-top {
  z-index: 3000 !important;
}

.topbar {
  isolation: isolate;
}

.main-content {
  isolation: isolate;
  view-transition-name: app;
}

.page-content {
  view-transition-name: page-content;
}

@keyframes slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

::view-transition-old(page-content) {
  opacity: 0;
  animation: slide-up 0.1s ease-in-out reverse;
}

::view-transition-new(page-content) {
  animation: slide-up 0.1s ease-in-out;
}