@tailwind base;
@tailwind components;
@tailwind utilities;

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/


/* Custom LT CSS */

.lt-splash a {
    text-decoration: underline;
    text-underline: #1d232a;
    color: red;
}

.lt-sub-banner {
    position: sticky;
    top: 69px;
    z-index: 1;
}

.tableFixHead {
  overflow-y: auto;
  max-height: 60vh;
}
.tableFixHead35 {
  overflow-y: auto;
  max-height: 35vh;
}
.tableFixHead50 {
  overflow-y: auto;
  max-height: 50vh;
}
.tableFixHead20 {
  overflow-y: auto;
  max-height: 20vh;
}

.tableFixTail60 {
  overflow-y: auto;
  max-height: 60vh;
}

.tableFixTail60 tbody tr:last-child td, .tableFixTail60 tbody tr:last-child th {
  position: sticky;
  bottom: -17px;
}

.tableFixTail60 tbody tr:nth-last-child(2) td, .tableFixTail60 tbody tr:nth-last-child(2) th {
  position: sticky;
  bottom: 1px;
}

.tableFixHead thead, .tableFixHead50 thead, .tableFixHead35 thead, .tableFixHead20 thead {
  position: sticky;
  top: 0;
}
.tableFixHead tbody tr:nth-child(even) td, .tableFixHead50 tbody tr:nth-child(even) td, .tableFixHead35 tbody tr:nth-child(even) td, .tableFixHead20 tbody tr:nth-child(even) td {
  background-color: #b6b6b6;
}
.impersonation {
	position:fixed;
	top: 80px;
	right: 5px;
}

.flash_msg {
  z-index: 10;
  position: fixed;
  left: 0;
  right: 0;
  margin: auto;
}

.flash_msg_long {
  z-index: 10;
  position: fixed;
  left: 0;
  right: 0;
  margin: auto;
}

.flash_center_msg {
  z-index: 10;
  position: fixed;
  top: 35%;
  left: 0;
  right: 0;
  margin: auto;  
}

.flash_center_profile_msg {
  z-index: 10;
  position: fixed;
  top: 30%;
  left: 0;
  right: 0;
  margin: auto;
}

.flash_partial_container {
    position: relative;
}

.flash_partial_msg {
    position: absolute;
    top: 35px;
    left: -125px;
    z-index: 10;
}

hr.thinsep {
  border-top: 1px solid #e4e4e4;
  border-radius: 0px;
}

.datatable-header {
  color: #546E7A;
}

.datatable-body {
  color: #546E7A;
  word-wrap: break-word;
}

.lt-tile-stat {  
  background-color: #7481a1;
  color: #980036;
}
.lt-tile-job {  
  background-color: #74a17e;
  color: #980036;
}
.lt-tile-other {  
  background-color: #a17481;
  color: #980036;
}

/*** Accordion / Filter Start ***/
.lt-accordion {
  cursor: pointer;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  transition: 0.4s;
}

.lt-filter {
  cursor: pointer;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  transition: 0.4s;
}

.lt-active {
  font-weight: bold;
  font-size: 1.125rem;
}

.lt-accordion:after {
  content: 'See details - help improve';
  color: #081F59;
  font-weight: bold;
  float: right;
}

.lt-filter:after {
  content: '\002B';
  color: #e4e4e4;
  font-weight: bold;
  float: right;
  font-size: 1.25rem;
}

.lt-active:after {
  content: "\2212";
}

.lt-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.lt-filter-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}
/*** Accordion / Filter End ***/


/*** Chart Table ***/ 
/*col-span-2 border-b border-info font-bold pb-2*/
.lt-datatable-header .lt-th-important {
  font-weight: bold;
  text-align: start;
}

.lt-datatable-header .lt-th {
  font-weight: normal;
  text-align: right;
  padding-right: 8px;
}

.lt-datatable-body .lt-td-label {
  font-weight: bold;
  vertical-align: top;
  text-align: left;
}

.lt-datatable-body .lt-td {
  font-weight: normal;
  vertical-align: top;
  text-align: left;
  padding-right: 8px;
}

.lt-datatable-body .lt-div-important {
  font-weight: bold;
  text-align: right;
}

.lt-datatable-body .lt-div {
  font-weight: normal;
  text-align: right;
}

.lt-datatable-body .lt-div-faded {
  font-weight: normal;
  text-align: right;
  opacity: 0.50;
}

.lt-chart-axis-text {
  color: #546E7A;
}

@keyframes dashOffset {
  to {
    stroke-dashoffset: -11;
  }
}

/*** Chart Table End ***/

/*** Network Chart ***/
.lt-network-links line {  
  stroke-opacity: 0.4;
}

.lt-network-nodes circle {
  stroke: #fff;
  stroke-width: 1.5px;
}

.lt-network-label {
  font-family: sans-serif;
  font-size: 14px;
}

.lt-network-empty {
  fill: #081F59;
  font-size: 20px;
}

#lt-network-loader {
  height: 200px;
  margin-top: 10vh;
}
/*** Network Chart End ***/

/*** Feedback ***/
#openContactForm {
    position: fixed;
    right: -50px;
    bottom: 50px;
    transform: rotate(270deg);
}
/*** Feedback End ***/


/* Pagination CSS */
.pagy-nav{
  @apply flex space-x-2;
}

.pagy-nav .page a,
.pagy-nav .page.active,
.pagy-nav .page.prev.disabled,
.pagy-nav .page.next.disabled {
  @apply block rounded-lg px-3 py-1 text-sm font-semibold shadow-md bg-base-100 text-accent; /* When an action can be taken */
  &:hover{
    @apply bg-error text-accent-content; /* Hover an action that can be taken */
  }
  &:active{
    @apply bg-error text-accent; /* On click colors */
  }
}

.pagy-nav .page.prev.disabled,
.pagy-nav .page.next.disabled {
  @apply text-gray-400 cursor-default;
  &:hover {
    @apply text-gray-400 bg-gray-200;
  }
  &:active {
    @apply text-gray-400 bg-gray-200;
  }
}

.pagy-nav .page.active {
  @apply cursor-default bg-error text-accent; /* Active tab */
  &:hover {
    @apply bg-success text-accent-content;
  }
  &:active {
    @apply bg-error text-accent;
  }
}

@supports (-webkit-touch-callout: none) {
  .h-screen {
    height: 100vh;
    max-height: -webkit-fill-available !important;
  }
}

/* Select2 Dropdowns CSS */

/* 
 To set a custom width size
 1)   style="width: 85%;" on the select html object

 To set the height of the result frame
 1)   create a unique classname and set a max-height property (look at .select2dropdownh40 below). NOTE: appears like the classname cannot contain dashes?
 2)   class="... select2-dropdown-h40 ..."  on the select html object

*/

.select2dropdownh25 .select2-results>.select2-results__options {
  max-height: 25vh !important;
}
.select2dropdownh40 .select2-results>.select2-results__options {
  max-height: 40vh !important;
}
.select2dropdownh60 .select2-results>.select2-results__options {
  max-height: 60vh !important;
}
/******* END CUSTOM SELECT2 ********/

.select2.select2-container.select2-container--filter {
  width: 100% !important;
}

.select2.select2-container .select2-selection {
  border: 1px solid #ccc;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  height: 34px;
  margin-bottom: 15px;
  outline: none !important;
  transition: all .15s ease-in-out;
}

.select2.select2-container .select2-selection .select2-selection__rendered {
  color: #333;
  line-height: 32px;
  padding-right: 33px;
}

.select2.select2-container .select2-selection .select2-selection__arrow {
  background: #f8f8f8;
  border-left: 1px solid #ccc;
  -webkit-border-radius: 0 3px 3px 0;
  -moz-border-radius: 0 3px 3px 0;
  border-radius: 0 3px 3px 0;
  height: 32px;
  width: 33px;
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--single {
  background: #f8f8f8;
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--single .select2-selection__arrow {
  -webkit-border-radius: 0 3px 0 0;
  -moz-border-radius: 0 3px 0 0;
  border-radius: 0 3px 0 0;
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--multiple {
  border: 1px solid #34495e;
}

.select2.select2-container .select2-selection--multiple {
  height: auto;
  min-height: 34px;
}

.select2.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
  margin-top: 0;
  height: 32px;
}

.select2.select2-container .select2-selection--multiple .select2-selection__rendered {
  display: block;
  padding: 0 4px;
  line-height: 29px;
}

.select2.select2-container .select2-selection--multiple .select2-selection__choice {
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  margin: 4px 4px 0 0;
  padding: 0 6px 0 22px;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  position: relative;
}

.select2.select2-container .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  width: 22px;
  margin: 0;
  text-align: center;
  color: #e74c3c;
  font-weight: bold;
  font-size: 16px;
}

.select2-container .select2-dropdown {
  background: transparent;
  border: none;
  margin-top: -5px;
}

.select2-container .select2-dropdown .select2-search {
  padding: 0;
}

.select2-container .select2-dropdown .select2-search input {
  outline: none !important;
  border: 1px solid #34495e !important;
  border-bottom: none !important;
  padding: 4px 6px !important;
}

.select2-container .select2-dropdown .select2-results {
  padding: 0;
}

.select2-container .select2-dropdown .select2-results ul {
  background: #fff;
  border: 1px solid #34495e;
}

.select2-container .select2-dropdown .select2-results ul .select2-results__option--highlighted[aria-selected] {
  background-color: #3498db;
}

.ss-content{
  font-size: 12px;
}

/* Loader / Spinner */
:root {
  --spinner-width: 88.8px;
  --spinner-height: 88.8px;
  --spinner-translate: 44.4px;
}

.spinner {
  width: var(--spinner-width);
  height: var(--spinner-height);
  animation: spinner-y0fdc1 2.4s infinite ease;
  transform-style: preserve-3d;
  position: fixed;
  top: 35%;
  left: 50%;
  right: 50%;
}

.spinner > div {
  background-color: rgba(8,31,89,0.2);
  height: 100%;
  position: absolute;
  width: 100%;
  border: 2.2px solid #081f59;
}

.spinner div:nth-of-type(1) {
  transform: translateZ(var(--spinner-translate)) rotateY(180deg);
}

.spinner div:nth-of-type(2) {
  transform: rotateY(-270deg) translateX(50%);
  transform-origin: top right;
}

.spinner div:nth-of-type(3) {
  transform: rotateY(270deg) translateX(-50%);
  transform-origin: center left;
}

.spinner div:nth-of-type(4) {
  transform: rotateX(90deg) translateY(-50%);
  transform-origin: top center;
}

.spinner div:nth-of-type(5) {
  transform: rotateX(-90deg) translateY(50%);
  transform-origin: bottom center;
}

.spinner div:nth-of-type(6) {
  transform: translateZ(var(--spinner-translate));
}

@keyframes spinner-y0fdc1 {
  0% {
     transform: rotate(45deg) rotateX(-25deg) rotateY(25deg);
  }
  50% {
     transform: rotate(45deg) rotateX(-385deg) rotateY(25deg);
  }
  100% {
     transform: rotate(45deg) rotateX(-385deg) rotateY(385deg);
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) 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
 * 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.
 *


 */
