:root {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
}
html, body {
    background-color: #fff;
    color: #636b6f;
    height: 100vh;
    margin: 0;
}

h4 {
    font-size: 1.3em;
}

.full-height {
    height: 100vh;
}

.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.position-ref {
    position: relative;
}

.top-right {
    position: absolute;
    right: 10px;
    top: 18px;
}

.content {
    display: block;
    margin: 0 auto;
    max-width: 1024px;
    text-align: center;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 5em;
}

.subtitle {
    font-size: 3em;
}

.links > a {
    color: #636b6f;
    padding: 0 25px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .1rem;
    text-decoration: none;
    text-transform: uppercase;
}

.m-b-md {
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    gap: 10px;
    flex-direction: column;
    justify-content: center;
    position: relative;
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    flex: 1;
    gap: 10px;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
}

.form-control {
    display: block;
    padding: 1rem 1rem;
    width: 30rem;
    outline: none;
    border-width: 1px;
    border-radius: 3px;
}

.form-control-error {
    color: red;
}

.button {
    outline: none;
    background: white;
    border: 1px solid #444444;
    border-radius: .4rem;
    padding: .4rem .6rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.button:focus,
.button:hover {
    background-color: #eeeeee;
}

.button-primary {
    background-color: #444444;
    color: white;
}
.button-primary:focus,
.button-primary:hover {
    background-color: white;
    color: #333333;
}

.form-button {
    padding: 1rem 2rem;
    background: #2779bd;
    color: white;
    outline: none;
    border: none;
    cursor: pointer;
}

.text {
    text-align: left;
}

.table {
    width: 100%;
    border: 1px solid black;
    border-collapse: collapse;
}

.table td, .table th {
    border: 1px solid black;
    padding: 0.5rem;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}
.flex-2 {
    flex: 2;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.items-center {
    align-items: center;
}

.gap-1 {
    gap: .5rem;
}
.gap-2 {
    gap: 1rem;
}
.gap-3 {
    gap: 1.5rem;
}
.gap-4 {
    gap: 2rem;
}
.gap-5 {
    gap: 2.5rem;
}

.panel-nav-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    padding: 1rem;
    border-width: 1px;
    border-style: solid;
    border-radius: 1rem;
    border-color: #444444;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    color: black;
    text-decoration: none;
}
.panel-nav-link:focus,
.panel-nav-link:hover {
    cursor: pointer;
    background-color: #eeeeee;
    color: black;
    text-decoration: none;
}


.handle-request-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.handle-request-list * {
    text-align: left;
}
.handle-request-row {
    display: flex;
    flex-direction: column;
    border: 1px solid #444444;
    border-radius: .5rem;
    padding: .7rem;
    gap: .5rem;
    box-shadow: 0 4px 10px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    background: white;
}
.handle-request-row__header {
    display: flex;
    justify-content: space-between;
}
.handle-request-row__header__type {
    display: inline-block;
    color: steelblue;
    font-weight: bold;
    width: 100px;
    text-align: left;
    cursor: pointer;
}
.handle-request-row__header__uuid {
    font-size: .9em;
}
.handle-request-row__footer {
    display: flex;
    flex: 1;
    justify-content: space-between;
    gap: 1rem;
}
.handle-request-row__button {
    outline: none;
    background: none;
    border: 1px solid #444444;
    border-radius: .4rem;
    padding: .4rem .6rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.handle-request-row__button:focus,
.handle-request-row__button:hover {
    background-color: #eeeeee;
}

.fields-table {
    text-align: left;
    font-size: .9rem;
    margin-bottom: 1rem;

    td {
        padding-right: 0.2rem;

        &:nth-child(odd) {
            font-weight: bold;
        }
        &:nth-child(even) {
            padding-right: 1rem;
        }
    }
}

.handle-request-row__order {

}

.handle-request-row__order-number {
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .5rem;

    list-style: none;

    li {
        display: block;
        border: 1px solid #444444;
        border-radius: 3px;
    }

    li > * {
        padding: .1rem .5rem;
        cursor: pointer;
    }

    li > a {
        text-decoration: none;
    }

    li.active {
        background-color: #333;
        color: white;
    }
}

.handle-request-filter {
    display: flex;
    margin-bottom: 1rem;
    gap: .5rem;
}

.input-group {
    position: relative;
}

input {
    outline: none;
    border: 1px solid #888888;
    border-radius: .3rem;
    padding: .7rem 1rem;
    font-size: .9rem;
    width: 100%;
    background-color: white;
    font-weight: normal;
    color: #333;
}
input::placeholder {
    color: #bbbbbb;
}

select {
    outline: none;
    border: 1px solid #888888;
    border-radius: .3rem;
    padding: .54rem 1rem;
    background-color: white;
    color: #333;
    width: 100%;
    font-size: .9rem;
    appearance: base-select;
    display: flex;
    align-items: center;
}
select::picker-icon {
    font-size: .7rem;
    color: #666666;
}

label {
    position: absolute;
    top: -.5lh;
    left: 1rem;
    background-color: white;
    color: black;
    padding: 0 .5rem;
    font-size: .8rem;
}

body:has(dialog[open]) {
    overflow: hidden;
}
.modal {
    max-width: 70%;
    max-height: 90%;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    background-color: white;
    padding: 1rem;
    overflow: hidden;
    border-width: 0;

    .modal-content {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: white;
        position: sticky;
        top: 0;
        z-index: 1;
        padding: 0 1rem 1rem;
        text-align: left;
        border-bottom: 1px solid #ddd;
        gap: 2rem;
    }

    .modal-title {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .modal-body {
        flex: 1;
        height: 100%;
        padding-top: 1rem;
        background-color: white;
        overflow-x: hidden;
        overflow-y: auto;
    }
}

.popup {
    max-width: 70%;
    max-height: 90%;
    border-radius: 1rem;
    background-color: white;
    padding: 1rem;
    overflow: hidden;
    border-width: 0;

    .popup-content {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
    }

    .popup-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: white;
        position: sticky;
        top: 0;
        z-index: 1;
        padding-bottom: 1rem;
        text-align: left;
        border-bottom: 1px solid #ddd;
        gap: 2rem;
    }

    .popup-title {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .popup-body {
        flex: 1;
        height: 100%;
        padding-top: 1rem;
        background-color: white;
        overflow-x: hidden;
        overflow-y: auto;
    }
}

.order {

    * {
        text-align: left;
    }

    .order-checks-table {
        td, th {
            padding: .5rem 1rem;
            text-align: left;
        }
    }
}

.webhook {
    * {
        text-align: left;
    }
}

.handle-request {
    * {
        text-align: left;
    }
}

.tabs {
    .button:focus {
        background-color: #333;
        color: white;
    }
}
.tabs-content {
    display: none;

    &.active {
        display: block;
    }
}

.my-2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}
.mb-4 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 1rem;
}

.px-2 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.px-4 {
    padding-left: 2rem;
    padding-right: 2rem;
}
