@import "colors.css";

:root {
    --rad-none: 0px;
    --rad-sm  : 0.125rem;
    --rad-base: 0.25rem;
    --rad-md  : 0.375rem;
    --rad-lg  : 0.5rem;
    --rad-xl  : 0.75rem;
    --rad-2xl : 1rem;
    --rad-3xl : 1.5rem;
    --rad-full: 9999px;

    --pad-half: 0.125rem;
    --pad-1   : 0.25rem;
    --pad-2   : 0.50rem;
    --pad-3   : 0.75rem;
    --pad-4   : 1rem;
    --pad-5   : 1.25rem;
    --pad-6   : 1.50rem;
}

html, body {
    height: 100%;
    overflow: hidden;
}

/* ====================================
    NAVIGATION
   ====================================
*/
ul.nav > li {
    margin-bottom: 0.25rem;
}

ul.nav > li.active {
    background-color: var(--gray-100);
    color: var(--red-700);
    font-weight: 450;
}

ul.nav > li:not(active):hover {
    background-color: var(--gray-100);
    color: var(--red-700);
}

/* ====================================
    TABLE
   ====================================
*/
table {
    border-collapse: separate;
    border-spacing: 0 0.25rem;
}

table.ws-nowrap th,
table.ws-nowrap td {
    white-space: nowrap;
}

th {
    background-color: var(--gray-200);
    padding: var(--pad-2) var(--pad-3);
    text-align: left;
}

th:first-child {
    border-top-left-radius: var(--rad-md);
    border-bottom-left-radius: var(--rad-md);
    padding-left: var(--pad-4);
}

th:last-child {
    border-top-right-radius: var(--rad-md);
    border-bottom-right-radius: var(--rad-md);
    padding-right: var(--pad-4);
}

td {
    padding-top: var(--pad-2);
    padding-bottom: var(--pad-2);
    padding-right: var(--pad-6);
    border: 1px solid var(--gray-400);
}

td:first-child {
    padding-right: var(--pad-3);
    padding-left: var(--pad-4);
    border-top-left-radius: var(--rad-md);
    border-bottom-left-radius: var(--rad-md);
    border-color: transparent;
}

td:last-child {
    padding-left: var(--pad-3);
    padding-right: var(--pad-4);
    border-top-right-radius: var(--rad-md);
    border-bottom-right-radius: var(--rad-md);
    border-color: transparent;
}

table td:not(:first-child):not(:last-child) {
    padding: var(--pad-1) var(--pad-3);
}

table.hover td:not(:first-child):not(:last-child) {
    border-color: transparent;
}

table.hover tbody tr:hover td:not(:first-child):not(:last-child) {
    border: 1px solid var(--gray-200);
    border-left-color: transparent;
    border-right-color: transparent;
}

table.hover tbody tr:hover td:first-child:not(:only-child) {
    border: 1px solid var(--gray-200);
    border-right-color: transparent;
}

table.hover tbody tr:hover td:last-child:not(:only-child) {
    border: 1px solid var(--gray-200);
    border-left-color: transparent;
}

table.hover tr:hover td:only-child {
    border: 1px solid var(--gray-200);
}

table.hover-select tbody tr:hover {
    cursor: pointer;
}

.show-on-tr-hover {
    color: transparent;
}

tr:hover .show-on-tr-hover {
    color: inherit;
}

td.font-mono,
td .font-mono {
    line-height: 1.15rem;
}

table.mini td {
    padding-top: var(--pad-1);
    padding-bottom: var(--pad-1);
    padding-right: var(--pad-2);
}

/* ====================================
    INPUT
   ====================================
*/
.input-group input {
    border-radius: 0px;
    border: 1px solid var(--gray-300);
    border-bottom-color: transparent;
}

.input-group input:first-child {
    border-top-left-radius: var(--rad-md);
    border-top-right-radius: var(--rad-md);
}

.input-group input:last-child {
    border-bottom: 1px solid var(--gray-300);
    border-bottom-left-radius: var(--rad-md);
    border-bottom-right-radius: var(--rad-md);
}

.input-group input:disabled {
    border-style: dashed;
    background-color: var(--gray-100);
}

/* .input-group input:focus {
    border-color: theme('colors.sky.500');
    box-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) theme('colors.sky.500');
} */

textarea {
    min-height: 3.75rem;
    max-height: 15rem;
}

.input-extn {
    min-width: 52px;
    width: 52px;
}

input.is-invalid {
    color: var(--red-700);
    background-color: var(--red-50);
}

.ws-nowrap {
    white-space: nowrap;
}

.ws-normal {
    white-space: normal;
    text-align: justify;
    display: inline-block;
}

/* ====================================
    ALERTS
   ====================================
*/
.alert {
    border: 1px solid var(--gray-200);
    border-radius: var(--rad-lg);
    padding: var(--pad-4);
}

.alert-danger {
    border-color: var(--red-200);
    background-color: var(--red-50);
    color: var(--red-700);
}

.alert-warning {
    border-color: var(--amber-200);
    background-color: var(--amber-50);
    color: var(--amber-700);
}

/* A */
a[disabled] {
    pointer-events: none;
    border: 1px dashed var(--gray-300);
    background-color: var(--gray-100);
    color: var(--gray-400);
}

/* MODAL */
.modal {
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 10;
  width: 100%;
  height: 100%;
}
.model-inner {
  background-color: white;
  border-radius: 0.5em;
  max-width: 600px;
  padding: 2em;
  margin: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid black;
}

[x-cloak] {
  display: none !important;
}

.overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: black;
  opacity: 0.75;
}