/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *

 */

/*
 * Element defaults that Bootstrap's reboot used to supply.
 * Class utilities win on specificity, so tw-* on a heading or link still applies.
 * Exception: [hidden] keeps !important so display utilities (tw-flex, etc.) cannot
 * override the HTML hidden attribute — same as Bootstrap reboot.
 */
[hidden] {
  display: none !important;
}

body {
  color: #212529;
  background-color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-top: 0; margin-bottom: 1rem; }

/*
 * Link defaults match Bootstrap reboot: color + underline on every <a>.
 * Shared component CSS cancels underline (.custom-button, .navbar-item-link,
 * .navbar-tab-link, .custom-link) the way .btn / .nav-link did.
 */
a { color: #0d6efd; text-decoration: underline; }
a:where(:hover) { color: #0a58ca; }

/*
 * Spacing matches Bootstrap reboot. Do not set list-style-type: production
 * (f61d914) and tip both show list-style: none via Tailwind preflight; global
 * disc/decimal would bullet sidebar/nav/menu lists. Match production.
 */
ul, ol { margin-top: 0; margin-bottom: 1rem; padding-left: 2rem; }
ul ul, ol ol, ul ol, ol ul { margin-bottom: 0; }

dt { font-weight: 700; }
dd { margin-bottom: 0.5rem; margin-left: 0; }

small { font-size: 0.875em; }

pre,
code,
kbd,
samp {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1em;
}

code {
  font-size: 0.875em;
  color: #d63384;
  word-wrap: break-word;
}

a > code { color: inherit; }

pre {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  overflow: auto;
  font-size: 0.875em;
}

pre code {
  font-size: inherit;
  color: inherit;
  word-break: normal;
}

label { display: inline-block; }

/*
 * Match Bootstrap reboot: UA stylesheets center <th>; inherit keeps headers
 * aligned with body cells. Class utilities (tw-text-center / tw-text-right)
 * still win on specificity.
 */
th {
  text-align: inherit;
}

hr {
  margin: 1rem 0;
  color: inherit;
  border: 0;
  border-top: 1px solid;
  opacity: 0.25;
}

.font-bb{color: #5287FC}

.mobile_only {display: none}
@media screen and (max-width: 991px) { .mobile_only {display: block} .desktop_only {display: none !important} }

/* App shell fills the viewport. */
body {min-height: 100vh; min-height: -webkit-fill-available}

html {height: -webkit-fill-available}

main {  height: 100vh;
        height: -webkit-fill-available;
        max-height: 100vh;
        overflow-x: auto;
        overflow-y: hidden}

/* miscellaneous */
.debug_dump {
  clear: both;
  float: left;
  width: 100%;
  margin-top: 45px;
}

.onewrap {
  display: -webkit-box; /* Use this property to enable -webkit-line-clamp */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* Set the maximum number of lines you want to display */
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  max-width: 100%; /* You can set this to the desired width of the <td> cell */
}

.onewrap td > div,
td .onewrap {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.custom-modal-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(100, 100, 100, 0.5);
  backdrop-filter: blur(1.5px);
  z-index: 1999;
}

.custom-modal {
  width: 500px;
  max-width: 100dvw;
  word-break: break-word;
  border-radius: 12px;
  z-index: 2000;
}

/* Native Turbo modals (<dialog showModal>). Top-offset like Bootstrap .modal-dialog /
 * production (tw-mt-2 / lg gap), not vertically centered. Replace UA inset:0 +
 * margin:auto centering with explicit top + horizontal centering (left/right 0 +
 * margin-inline:auto). Loading modal still uses the div overlay. */
dialog.custom-modal {
  inset: auto;
  top: 0.5rem;
  right: 0;
  bottom: auto;
  left: 0;
  margin-inline: auto;
  margin-block: 0;
  max-height: calc(100dvh - 1rem);
}

@media (min-width: 576px) {
  dialog.custom-modal {
    top: 1.75rem;
    max-height: calc(100dvh - 3.5rem);
  }
}

/* File preview: fill remaining viewport under the shared top offset (not 95dvh). */
dialog.custom-modal.custom-modal--file-preview {
  height: calc(100dvh - 1rem);
  max-height: calc(100dvh - 1rem);
}

@media (min-width: 576px) {
  dialog.custom-modal.custom-modal--file-preview {
    height: calc(100dvh - 3.5rem);
    max-height: calc(100dvh - 3.5rem);
  }
}

dialog.custom-modal:modal {
  overscroll-behavior: contain;
}

dialog.custom-modal::backdrop {
  background-color: rgba(100, 100, 100, 0.5);
  backdrop-filter: blur(1.5px);
  overflow: hidden;
  overscroll-behavior: contain;
}

dialog.custom-modal[open] {
  animation: showModal 0.1s forwards;
}

@keyframes showModal {
  from {
    transform: translateY(25px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes hideModal {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(25px);
    opacity: 0;
  }
}

@keyframes showModalBackground {
  from {opacity: 0}
  to {opacity: 1}
}

@keyframes hideModalBackground {
  from {opacity: 1}
  to {opacity: 0}
}

.show-custom-modal {animation: showModal 0.1s forwards}
.hide-custom-modal {animation: hideModal 0.1s forwards}

.show-custom-modal-background {animation: showModalBackground 0.1s forwards}
.hide-custom-modal-background {animation: hideModalBackground 0.1s forwards}


::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  background: #ffffff;
}

::-webkit-scrollbar-thumb {
  background: #e4e4e4;
  border-radius: 20px;
  border: 3px solid #ffffff;
}

.hidden {
  display: none;
}

.w-320px {width: 320px}
.w-240px {width: 240px}
.w-80px {width: 80px}
.w-56px {width: 56px}
.w-48px {width: 48px}
.w-24px {width: 24px}

.text-tp-hover-grey {color: #00000000}
.text-tp-hover-grey:hover {color: #acacac}




/* virtual data room related classes */
#file-tree ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#file-tree li {
  margin: 0;
  padding: 8px 0 0 0;
}

#file-tree .collapse-indicator {
  cursor: pointer;
}

#file-tree ul ul {
  display: none;
}

.move-folder-tree ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.move-folder-tree ul ul {
  display: none;
  padding-left: 1.25rem;
}

.move-folder-tree > ul > li > ul {
  display: block;
}

.dragging {
  opacity: 0.5;
}

.drop-before {
  border-top: 1.5px solid blue;
  margin-top: -1.5px;
}

.drop-after {
  border-bottom: 1.5px solid blue;
  margin-bottom: -1.5px;
}

.drop-zone-highlight {
  background-color: #def1df;
  /* outline: 1px dashed #4CAF50; */
}

.drop-zone-hover {
  /* background-color: #c4e7c7; */
  outline: 2px dashed #4CAF50;
}

/* Drop zone styles */
.drop-zone-active {
  display: flex !important;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
