* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter' !important;
    font-size: 16px;
    background-color: #f9fafb;
}


a {
    color: #000;
    text-decoration: none;
}

.bold {
    font-weight: bold;
}

.sidebar {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    top: 0;
    bottom: 0;
    left: 0;
    width: 300px;
    background-color: #fff;
    padding: 20px;
    border-right: 1px solid #e5e7eb;
}

.sidebar a.logo {
    display: block;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
}

.sidebar .link-group {
    display: flex;
    flex-direction: column;
}

.sidebar .link-group .link {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
}

.sidebar .link-group .link span {
    padding: 5px;
}

.sidebar .link-group .link img {
    width: 20px;
}

.sidebar .link.current,
.sidebar .link:hover {
    background-color: #f9fafb;
    color: #4f46e5;
}

.sidebar .link.current,
.sidebar .link:hover img {
    filter: brightness(0) saturate(100%) invert(24%) sepia(83%) saturate(3627%) hue-rotate(230deg) brightness(92%) contrast(92%);
}

.popup {
    display: none;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.7);
    inset: 0;
    z-index: 1000;
    padding: 20px;

    & .box {
        width: 100%;
        max-width: 600px;
        margin: auto;
        position: relative;
        top: 20%;
    }
}

.wrap-content {
    max-width: 1200px;
    margin-inline: auto;
}

.noscroll {
    overflow: hidden;
}

.page-content {
    margin-left: 300px;
    padding: 40px;

    & .breadcrumb {
        font-size: 14px;
        margin-bottom: 30px;
        text-decoration: none;
    }

    & .breadcrumb a {
        text-decoration: none;
        color: #777;
    }

    & .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    & .header .title-input {
        flex-grow: 1;
    }
}

.content-small {
    max-width: 800px;
    margin-inline: auto;
}

.box {
    background-color: white;
    border-radius: 10px;
    border: 1px solid #e5e7eb;

    /*overflow: hidden;*/
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 15px;

    height: fit-content;
}

.box .box-header {
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.box .box-header h2 {
    text-wrap: nowrap;
}

.box .box-content {
    padding: 20px;
}

.box hr {
    margin-block: 10px;
    width: 100%;
}


.box .infos {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box .infos .big-number {
    font-size: 45px;
}

.box .infos .price {
    font-size: 18px;
}

.box .full-width-input {
    width: 100%;
    border: none;
    border-radius: 0;
    border-block: 1px solid #e5e7eb;
    padding: 20px;
}

.clickable:hover {
    cursor: pointer;
}

.btn {
    display: inline-block;
    background-color: #4f46e5;
    border: none;
    color: white;
    text-decoration: none;
    font-family: 'Inter' !important;
    width: fit-content;
    border-radius: 5px;
}

.btn.btn-md {
    padding: 10px 25px;
    font-size: 16px;
}

.btn.btn-sm {
    padding: 5px 15px;
    font-size: 14px;
}

.btn.round {
    display: inline-block;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}



.btn.btn-letter {
    padding: 5px 10px;
    font-size: 14px;
}

.btn.btn-letter.active {
    background-color: #312c92;
}


.btn:hover {
    cursor: pointer;
    background-color: #312c92;
}

.btn-danger {
    border-radius: 5px;
    border: 1px solid red;
    background-color: #fff;
    color: red;
}

.btn-danger:hover {
    background-color: #f00;
    color: #fff;
}


.mono {
    font-family: 'RobotoMono';
    font-size: 14px;
}

hr {
    margin-block: 20px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
}

.grey {
    color: #777;
}

.green {
    color: green;
}

.red {
    color: red;
}

.blue {
    color: #312c92;
}

a.blue-hover:hover {
    color: #312c92;
}


.warn {
    font-style: italic;
    color: red;
    font-size: 14px;
    text-align: right;
}

.btn-group {
    display: flex;
    width: 100%;
    align-items: center;
}

.btn-group .btn {
    flex-grow: 1;
    flex-basis: 0;
    border-radius: 0;
    border: 1px solid #4f46e5;
    background-color: #fff;
    color:#4f46e5;
}

.btn-group .btn.selected {
    background-color: #4f46e5;
    color: #fff;
}

.btn-group .btn:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.btn-group .btn:last-child{
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* -------------------------------------------------- *\
|  TITLES
\* -------------------------------------------------- */


/* -------------------------------------------------- *\
|  TABLE
\* -------------------------------------------------- */

.box-table table {
    width: 100%;
    border-collapse: collapse;
    text-wrap: nowrap;
}

.box-table table tr th {
    text-align: left;
    padding: 10px 15px;
    border-bottom: 1px solid #e5e7eb;
}

.box-table table tr td {
    padding: 10px 15px;
    border-bottom: 1px solid #e5e7eb;
}

.box-table table tr td.colsep {
    border-left: 1px dashed #e5e7eb;
}

.box-table table tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.box-table table tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.box-table table tr:last-child td {
    border-bottom: none;
}

.box-table table.clickable .clickable-row:hover {
    cursor: pointer !important;
    background-color: #f9fafb;
}

.box-table table .min {
    width: 1%;
}

.box-table table .right {
    text-align: end !important;
}

.box-table table .center {
    text-align: center !important;
}

.pagination.no-pad,
.box-header .pagination {
    padding: 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 20px;
    justify-content: end
}

.pagination .btn.btn-icon {
    padding: 3px;
    text-align: center;
    line-height: 0;
}

.pagination .btn.btn-icon img {
    width: 22px;
    height: 22px;
    display: inline-block;
}

/* -------------------------------------------------- *\
|  FORM
\* -------------------------------------------------- */

input,
textarea,
select,
.placeholder-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: #fff;
    border-radius: 3px;
    border: 1px solid #dedede;
    font-family: 'Inter' !important;

    &:focus {
        outline: none;
    }
}

.placeholder-input {
    display: flex;
    padding: 0;
}

.placeholder-input .placeholder {
    padding: 10px;
    text-wrap: nowrap;
}

.placeholder-input input {
    border: none;
    padding: 10px;
    flex-grow: 1;
    text-align: right;
}

.inline-inputs {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.inline-inputs .item,
.inline-inputs .ss-main {
    flex-basis: 0;
    flex-grow: 1;
}

.ss-main {
    padding: 10px !important;
}


/* -------------------------------------------------- *\
|  SEARCH PAGE
\* -------------------------------------------------- */

#search-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#search-page #search-animals img {
    height: 23px;
}

#search-animals .search-result-lot {
    text-decoration: none;
    align-items: center;
    border-radius: 5px;
    padding: 5px 10px;
    gap: 10px;
    transition: 0.3s;
    border: 1px solid #e5e7eb;
    ;
}

#search-animals .search-result-lot:hover {
    background-color: #e5e7eb;
}

/* -------------------------------------------------- *\
|  HOME PAGE
\* -------------------------------------------------- */

#home-page .home-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

#home-page .home-btns .box {
    flex-grow: 1;
    flex-basis: 0;
}

#home-page .home-btns .home-btn {
    color: white;
    padding: 40px 20px;
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    border-radius: 10px;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

#home-page .home-btns .home-btn.red {
    background-color: #f9ca24;
}

#home-page .home-btns .home-btn.green {
    background-color: #6ab04c;
}

#home-page .home-btns .home-btn.blue {
    background-color: #686de0;

}

#home-page .home-btns .home-btn:hover {
    cursor: pointer;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

/* -------------------------------------------------- *\
|  PURCHASE LOTS PAGE
\* -------------------------------------------------- */

#purchase-lots-page,
#sale-lots-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-box {
    display: flex;
    gap: 20px;
}

.action-box {
    display: flex;
    gap: 20px;
}

.box-header .box-actions {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.action-box .inline-inputs {
    min-width: 260px;
}

.action-box .box-actions .btn {
    text-wrap: nowrap;
}

.animal-ids-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* -------------------------------------------------- *\
|  PURCHASE LOT PAGE
\* -------------------------------------------------- */

#purchase-lot-page {

    display: flex;
    flex-direction: column;
    gap: 20px;


    & .base-infos {
        display: flex;
        width: 100%;
        gap: 30px;
    }

    & .base-infos .left-part {
        display: grid;
        grid-template-columns: 1fr 4fr;
        width: 100%;
        height: fit-content;
        align-items: baseline;
        gap: 10px 30px;
    }

    & .base-infos .right-part {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

}

.animal-content-form {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 10px 20px;
    align-items: baseline;
}

.form-actions {
    display: flex;
    width: 100%;
    margin-top: 20px;
    justify-content: end;
}

/* -------------------------------------------------- *\
|  SALE LOT PAGE
\* -------------------------------------------------- */

#sale-lot-page {

    display: flex;
    flex-direction: column;
    gap: 20px;


    & .base-infos {
        display: flex;
        width: 100%;
        gap: 30px;
    }

    & .base-infos .left-part {
        display: grid;
        grid-template-columns: 1fr 4fr;
        width: 100%;
        height: fit-content;
        align-items: baseline;
        gap: 10px 30px;
    }

    & .base-infos .right-part {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .two-cols {
        display: flex;
        gap: 20px;
    }

    .two-cols .box {
        flex-grow: 1;
        flex-basis: 0;
    }
}

/* -------------------------------------------------- *\
|  SALE LOT PAGE
\* -------------------------------------------------- */

#contact-detail-page {

    display: flex;
    flex-direction: column;
    gap: 20px;

    & .base-infos {
        display: flex;
        width: 100%;
        gap: 30px;
    }

    & .base-infos .left-part {
        display: grid;
        grid-template-columns: 1fr 4fr;
        width: 100%;
        height: fit-content;
        align-items: baseline;
        gap: 10px 30px;
    }

    & .base-infos .right-part {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    & .box .action-header {
        display: flex;
        width: 100%;
        flex-direction: row;
        gap: 20px;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }

    .two-cols {
        display: flex;
        gap: 20px;
    }

    .two-cols .box {
        flex-grow: 1;
        flex-basis: 0;
    }

}

/* -------------------------------------------------- *\
|  ANMIAL ITEM
\* -------------------------------------------------- */

.animal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.animal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.05);
}

.animal-item:hover {
    cursor: pointer;
    background-color: #eee;
}

/* -------------------------------------------------- *\
|  STATEMENTS ITEM
\* -------------------------------------------------- */

#statement-page {


    & .lists {
        display: flex;
        flex-direction: row;
        gap: 20px;
        margin-top: 40px;
    }


    & .lists .box{
        flex-grow: 2;
        flex-basis: 0;
    }

    & .lists .box .filters-box {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    & .lists .box .filters-box .filter {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    & .lists .box.list{
        flex-grow: 3;
    }

    & .lists .box .totals{
        font-size: 18px;
    }

    & .lists .box .btn {
        align-self: end;
    }

    & .date-actions {
        display: flex;
        gap: 10px;
        align-items: center;
    }


    & .date-actions .btn{
        flex-grow: 1;
        text-align: center;
        padding-block: 5px;
    }

}

/* -------------------------------------------------- *\
|  CONTACT PAGE
\* -------------------------------------------------- */
#contacts-page .hidden-div {
    display: none;
}


#contacts-page .first-phone {
    position: relative;
}

#contacts-page .first-phone .phone-wrapper {
    display: flex;
    flex-direction: column;
}

#contacts-page .first-phone:hover .hidden-phones-box {
    display: block !important;
    text-align: left;
    position: absolute;
    bottom: -10px;
    right: 10px;
    transform: translateY(100%);
    background-color: #fff;
    padding: 10px;
    z-index: 10;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

#contacts-page .first-phone:hover .hidden-phones-box:hover {
    pointer-events: none;
}

#contacts-page .first-phone:hover .hidden-phones-box::after {
    content: "";
    display: block;
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #fff;
    transform: rotate(-45deg) translate(50%, 50%);
    top: -7px;
    right: 30px;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-left: none;
}

#contacts-page .first-phone:hover .hidden-phones-box .phones-list {
    display: grid !important;
    margin-top: 10px;
    grid-template-columns: min-content 1fr;
    column-gap: 10px;
}


#contacts-page .letter-filter {
    padding-inline: 20px;
    padding-bottom: 20px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* -------------------------------------------------- *\
|  CONTACT DETAIL PAGE
\* -------------------------------------------------- */
#contact-detail-page #phone-numbers {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#contact-detail-page #phone-numbers .number {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-basis: auto;
}

#contact-detail-page #phone-numbers .number .btn {
    min-width: 30px;
}

.contact-content-form {
    display: grid;
    grid-template-columns: min-content 1fr;
    gap: 10px 30px;
    align-items: baseline;
}

@media screen and (max-width: 1200px) {

    .hide-md {
        display: none;
    }

}

@media screen and (max-width: 900px) {

    .hide-small {
        display: none;
    }

}


@media print {

    body {
        background-color: #fff;

    }

    .page-content {
        margin-inline: 0;
    }

    .box {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .box-header.box-content {
        padding-inline: 0;
        padding-top: 0;
    }

    .box-body.box-content {
        padding: 0;
    }

    .btn,
    .breadcrumb,
    .sidebar,
    .no-print,
    .pagination,
    #home-page .header {
        display: none;
    }

    .base-infos {
        flex-direction: column;
    }

    input {
        border: none;
    }

    .home-btns .infos {
        flex-direction: column;
        align-items: start;
    }
}