@import ".tailwind.css";
:root {
    --primary: #005ca9;
    --primary-hover: #0170ca;
    --primary-transparent: #3aa6ff34;
    --active-transparent: #97d0ffa6;
    --primary-active: #003f7f;
    --text-on-primary: #fff;
    --focus: #005ca9;
    --text: #172738;
    --dark: #2c3e50;
    --black: #000;
    --white: #fff;
    --border: #d1d5db;
    --primary-lighter: #bbe1ff;
    --gray: #95A5A6;
    --gray-light: #aababb;
    --red: #C03946;
    --red-light: #e74c3c;
}

.shadow-custom {
    border: 1px var(--border) solid;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chip {
    padding: 0.15rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    line-height: 1rem;
    font-weight: bold;
}

.chip-success {
    background-color: var(--primary-lighter);
    color: var(--primary);
    border: 1px var(--primary) solid;
}

.chip-danger {
    background-color: #ffe9e9;
    color: #eb4d4b;
    border: 1px #eb4d4b solid;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-direction: row;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    background-color: var(--primary);
    /* Azul padronizado */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-edit{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-direction: row;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    background-color: var(--gray);
    /* Azul padronizado */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-large {
    padding: 1rem 2rem;
}

.btn-primary.hasright:disabled {
    background-color: #c2c7cc;
    border: 1px #959ca3 solid;
    color: #495159;
}

.icon-button {
    background-color: var(--primary);
    border-radius: 0.5rem;
    padding: 0.5rem;
    transition: all ease-in-out 0.1s;
    outline: 0 transparent;
    outline-offset: 2px;
}

.icon-button:hover {
    background-color: var(--primary-hover);
    outline-offset: 2px;
}

.icon-button:active {
    outline: 2px solid var(--primary-lighter);
    outline-offset: 2px;
}

.icon-button:focus-within {
    outline: 2px solid var(--primary-lighter);
    outline-offset: 2px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    aspect-ratio: 1;
    background-color: var(--primary);
    border-radius: 50%;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    aspect-ratio: 1;
    background-color: var(--primary);
    border-radius: 50%;
}

.icon-edit-btn {
    border-radius: 0.5rem;
    padding: 0.5rem;
    transition: all ease-in-out 0.1s;
    outline: 0 transparent;
    outline-offset: 2px;
    background-color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-delete-btn {
    border-radius: 0.5rem;
    padding: 0.5rem;
    transition: all ease-in-out 0.1s;
    outline: 0 transparent;
    outline-offset: 2px;
    background-color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover, .icon-btn:active {
    background-color: #003d80;
    transition: background-color 0;
    /* Azul ainda mais escuro no hover */
}

.icon-edit-btn:hover, .icon-edit-btn:active {
    background-color: var(--gray-light);
    transition: background-color 0;
}

.icon-delete-btn:hover, .icon-delete-btn:active {
    background-color: var(--red-light);
    transition: background-color 0;
}

.btn:focus, .icon-btn:focus {
    outline: 2px solid #86c1ff;
    outline-offset: 2px;
}


.btn:disabled, .icon-btn:disabled {
    background-color: #8b949e;
    cursor: not-allowed;
}

.btn:active, .icon-btn:active {
    outline: 2px solid #86c1ff;
    background-color: #2171c7;
    outline-offset: 2px;
}

.btn2 {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: var(--primary);
    /* Azul padronizado */
    border: 1px var(--primary) solid;
    border-radius: 5px;
    cursor: pointer;
}

.btn2:hover {
    color: #003d80;
    border-color: #003d80;
    /* Azul ainda mais escuro no hover */
}

.search-btn {
    color: var(--primary);
    position: absolute;
    top: 8px;
    right: 8px;
}

.search-btn:hover {
    color: #000;
}

.error-message {
    color: #ff4d4d;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

.container {
    padding: 16px;
    background-color: var(--white);
    border: 1px var(--border) solid;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container.wide {
    width: 100%;
}

.container.p-lg {
    padding: 24px;
}

.modal-bg {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    inset: 0px;
    z-index: 50;
}

.overflow-table {
    overflow-x: auto;
}

.alert {
    padding: 10px;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Modal forms */
.modal-content label {
    text-transform: uppercase;
    font-weight: bold;
}

.modal-content input, .modal-content textarea, .modal-content select {
    padding: 0.7rem 0.5rem;
    border: 2px #d1d5db solid;
    border-radius: 0.5rem;
    resize: none;
}

input::focus, textarea::focus, select::focus {
    border-color: var(--focus);
}

.hide-on-mobile {
         display: block;
     }

     .table-container {
         display: flex;
         flex-direction: column;
         width: 100%;
     }

     @media (max-width: 768px) {
         .table-container {
             display: none;
         }

         .hide-on-mobile {
             display: none;
    }
}

/* Scrollbar */
@media (min-width: 768px){
    *::-webkit-scrollbar {
        height: 8px;
        width: 8px;
        /* width of the entire scrollbar */
    }
    
    *::-webkit-scrollbar-track {
        background: transparent;
        border-radius: 20px;
        /* color of the tracking area */
    }
    
    *::-webkit-scrollbar-thumb {
        margin-left: 10px;
        background-color: #CED6E0;
        /* color of the scroll thumb */
        border-radius: 20px;
        /* roundness of the scroll thumb */
        border: 3px solid #CED6E0;
    }
    
    *::-webkit-scrollbar-thumb:hover {
        background-color: #8b949e;
        border-color: #8b949e;
    }
}

/* Tables */
th {
    background-color: #f9fafb;
    color: #495159;
    border-bottom: 1px var(--border) solid;
    text-transform: uppercase;
    overflow: clip;
}

tbody tr {
    border-bottom: 1px var(--border) solid;
}

th, td {
    text-align: left;
    padding: 1rem 0.5rem;
    vertical-align: middle;
}

/* Tabs de precatório */
.tab-active, .tab-inactive {
    display: block;
    padding: 0.75rem;
    text-transform: uppercase;
}

.tab-active {
    cursor: default;
    color: var(--primary);
    border-bottom: 2px var(--primary) solid;
    font-weight: bold;
}

.tab-inactive {
    cursor: pointer;
    color: #495159;
    font-weight: 300;
}

@media(max-width: 768px) {
    .tab-active, .tab-inactive {
        width: 100%;
        padding: 0.25rem 0rem 0.25rem 0.75rem;
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

    .tab-active {
        cursor: default;
        color: var(--primary);
        border-left: 2px var(--primary) solid;
        border-bottom: none;
        font-weight: bold;
    }
}

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

.scrollable-table-input {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}
.scrollable-table-input thead {
    position: sticky;
    top: 0;
}