* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}


body {
    display: flex;
    font-family: "Erply Ladna", "Arial", "san-serif";
    color: #1d2433;
    position: relative;
    max-width: 100%;
    height: 1080px;
    overflow-y: scroll;
    background: #ffffff;
    box-shadow: 0px 18px 28px rgba(9, 30, 66, 0.15), 0px 0px 1px rgba(9, 30, 66, 0.31);
    border-radius: 8px;
}

a {
    text-decoration: none;
    color: unset;
}

a:hover {
    color: #3D8AF6 !important;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WRAPPER */
.wrapper {
    display: flex;
    max-width: 100%;
    max-width: 1611px;
    margin: 56px auto 0;
}

/* HEADER */
header {
    background: #fff;
    display: flex;
    justify-content: space-between;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: absolute;
    width: 1611px;
    height: 56px;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Text+Icon/Secondary Black */
.btn {
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    pointer-events: visible;
    border-radius: 5px;
    cursor: pointer;
}

.button_group {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 8px;
    width: 277px;
    height: 44px;
    border-radius: 5px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.export {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 8px;
    width: 95px;
    height: 44px;
    background: rgb(241, 243, 249);
}

.arrow {
    display: flex;
    order: 0;
    flex-grow: 0;
    padding: 4px;
}

.button_label {
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    display: flex;
    align-items: center;
    text-align: center;
    letter-spacing: 0.02em;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.add_new {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    width: 78px;
    height: 40px;
    padding: 12px 16px 12px 8px;
    background: #5abb7a;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.add_new:hover {
    background-color: #2e9e54;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.plus {
    flex: none;
    order: 0;
    flex-grow: 0;
    padding: 4px 6px;
    color: #fff;
}

.more {
    display: flex;
    flex-direction: row;
    padding: 0px;
    width: 40px;
    height: 40px;
    background: rgb(241, 243, 249);
    flex: none;
    order: 2;
    flex-grow: 0;
}

.filter {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    order: 0;
    flex-grow: 0;
}

#filter-toggle:hover {
    background: rgba(29, 36, 51, 0.1);
}

-------------------------------------

/* MAIN CONTENT */
main {
    flex: 1;
    background: #fff;
    position: absolute;
    width: 1241px;
    min-height: 739px;
    left: 0px;
    top: 56px;
}

/* Main Table Invoices */
.table_invoices {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0px;
    width: 100%;
    min-width: 700px;
    /* width: 1241px; */
    height: 683px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.caption {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 1241px;
    height: 43px;
    background: #f1f3f9;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    line-height: 17px;
    padding: 10px 8px;
    gap: 4px;
}

.title_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 6px 24px;
    gap: 4px;
    width: 1611px;
    height: 56px;
    background: #e1e6ef;
}

.breadcrump {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 16px;
    width: 69px;
    height: 40px;
}

.box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 64px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.type {
    width: 200px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.date {
    width: 180px;
    flex: none;
    order: 2;
    flex-grow: 0;
}

.customer {
    width: 180px;
    flex: none;
    order: 2;
    flex-grow: 0;
}

.location {
    width: 150px;
    flex: none;
    order: 4;
    flex-grow: 0;
}

.state {
    width: 160px;
    padding: 10px 8px;
    gap: 4px;
    margin: 0px;
    flex: none;
    order: 5;
    flex-grow: 0;
}

.total {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 150px;
    flex: none;
    order: 6;
    flex-grow: 0;
}

.action {
    padding: 11px 8px;
    width: 64px;
    flex: none;
    order: 6;
    flex-grow: 0;
}

.rows {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 1241px;
    height: 64px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.cell {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 8px;
    border-bottom: 1px solid #f1f3f9;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.lead {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    margin: 0;
    display: flex;
    align-items: center;
}

.sub {
    font-weight: 400;
    font-size: 10px;
    line-height: 14px;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    color: rgba(29, 36, 51, 0.8);
}

.total_cell {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0px 4px;
    width: 150px;
    border-bottom: 1px solid #e8f1fe;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.rows.selected {
    background-color: #E8F1FE;
}

.inprogress {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    padding-top: 4px;
    padding-left: 15px;
    margin: 0px !important;
    width: 120px;
    height: 25px;
    font-weight: normal;
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #3d8af6;
    background: #e8f1fe;
    border-radius: 3px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.inprogress li {
    list-style: none;
    display: list-item;

    padding-left: 4px;
}

.inprogress li:before {
    content: "";
    border: 5px #3d8af6 solid !important;
    border-radius: 50px;
    margin-top: 3px;
    margin-left: -12px;
    display: inline-block;
    position: absolute;
}

.pending {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    padding-top: 4px;
    padding-left: 10px;
    margin: 0px !important;
    width: 92px;
    height: 25px;
    font-weight: normal;
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(29, 36, 51, 0.8);
    border-radius: 3px;
    background: #F8F9FC;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.pending li {
    list-style: none;
    display: list-item;
    padding-left: 4px;
}

.pending li:before {
    content: "";
    border: 5px rgba(3, 3, 3, 0.8) solid !important;
    border-radius: 50px;
    margin-top: 3px;
    margin-left: -6px;
    position: absolute;
}

.success {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    padding-top: 4px;
    padding-left: 10px;
    margin: 0px;
    width: 95px;
    height: 25px;
    font-weight: normal;
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #5ABB7A;
    background: #F0FFF5;
    border-radius: 3px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.success li {
    list-style: none;
    display: list-item;
    padding-left: 4px;
}

.success li:before {
    content: "";
    border: 5px #5ABB7A solid !important;
    border-radius: 50px;
    margin-top: 3px;
    margin-left: -6px;
    position: absolute;
}

.complete {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    padding-top: 4px;
    padding-left: 10px;
    margin: 0px !important;
    width: 104px;
    height: 25px;
    font-weight: normal;
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(29, 36, 51, 0.8);
    border-radius: 3px;
    background: #F8F9FC;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.complete li {
    list-style: none;
    display: list-item;
    padding-left: 4px;
}

.complete li:before {
    content: "";
    border: 5px rgba(3, 3, 3, 0.8) solid !important;
    border-radius: 50px;
    margin-top: 3px;
    margin-left: -6px;
    position: absolute;
}

.danger {
    display: flex;
    flex-direction: row;
    justify-content: space-around !important;
    align-items: center;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    text-align: center;
    margin: 0;
    padding: 2px 1px;
    gap: 2px;
    color: #e0593e;
    background: #ffefec;
    border-radius: 3px;
    flex: none;
    order: 2;
    flex-grow: 0;
}

.ago {
    width: 120px !important;
    padding: 2px 1px;
}

.unpaid {
    width: 112px !important;
    padding: 2px 2px;
}

.inprogress,
.pending,
.success,
.complete {
    position: relative;
}

img {
    width: 15px;
    height: 15px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.person_img {
    width: 20px;
    height: 20px;
}

.icon {
    width: 18px;
    height: 18px;
}


.progress {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 4px 0px;
    margin: 10px;
    width: 140px;
    height: 25px;
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: right;
    color: #3d8af6;
    background: #e8f1fe;
    border-radius: 3px;
    flex: none;
    order: 0;
    flex-grow: 0;
}


.menu {
    width: 69px;
    height: 24px;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -1px;
    color: rgba(29, 36, 51, 0.75);
    flex: none;
    order: 0;
    flex-grow: 0;
}



.invoices {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    width: 1241px;
    height: 739px;
    flex: none;
    order: 0;
    flex-grow: 1;
}

/* PAGINATION  */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    gap: 12px;
    max-width: 100%;
    min-height: 56px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.entries {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 4px;
    min-width: 120px;
    height: 32px;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    text-align: right;
    color: rgba(29, 36, 51, 0.8);
}

.entries.results {
    order: 0;
}

.nav_select {
    order: 1;
}

.entries.filter {
    order: 2;
}




/* Filter results */

.customized {
    border: 1px solid #ADBBCA;
    border-radius: 4px;
    padding: 6px 9px;
    gap: 8px;
    width: 63px;
    height: 32px;
    font-size: 14px;
    line-height: 20px;
    color: rgba(29, 36, 51, 0.75);
    background-color: #FFFFFF !important;
}

.nav_btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px;
    gap: 8px;
    width: 32px;
    height: 32px;
    background: #F8F9FC;
    border-radius: 5px;
}

.nav_select {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 12px;
    width: 93px;
    height: 32px;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    text-align: right;
    color: rgba(29, 36, 51, 0.8);
    cursor: pointer;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.input {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0px;
    gap: 8px;
    width: 200px;
    height: 32px;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    text-align: right;
    color: rgba(29, 36, 51, 0.8);
    flex: none;
    order: 2;
    flex-grow: 0;
}

.rows:hover {
    background-color: #E8F1FE;
    cursor: pointer;
}

/* FILTER  */

.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.filter-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    text-align: center;
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.filter-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.apply-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.apply-btn:hover {
    background: #0056b3;
}

.hidden {
    display: none !important;
}

.menu-toggle {
    display: none;
}

/* SIDEBAR */
/* Customers Panel */
aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 370px;
    min-width: 370px;
    min-height: 100vh;
    background: #f8f9fc;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    padding: 16px 16px;
    gap: 16px;
    overflow-y: auto;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.new_customer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0 10px;
    width: 338px;
    height: 40px;
    background: #FFF;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.new_add {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 95px;
    height: 40px;
    background: #eff2f9;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    flex: none;
    order: 1;
    flex-grow: 0;
    transition: background-color 0.3s ease;
}

.new_add:hover {
    background: #D1D5DB;
}

/* ADD-MODAL  */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.close:hover {
    color: red;
}

input {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-apply {
    background-color: #007BFF;
    color: white;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-apply:hover {
    background-color: #0056b3;
}

#customerName {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.alpha {
    padding: 0px;
    width: 338px;
    height: 17px;
}

/* ALPHABET  */
.alphabet {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px 4px;
    width: 338px;
    height: 17px;
}

.href {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.2em;
    color: rgba(29, 36, 51, 0.5) !important;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.search {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 4px;
    width: 338px;
    height: 40px;
    flex: none;
    order: 2;
    align-self: stretch;
    flex-grow: 0;
}

.search-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 10px;
    gap: 8px;
    width: 205px;
    height: 40px;
    background: #FFFFFF;
    border: 1px solid #BFCBD9;
    border-radius: 4px;
    flex: none;
    order: 0;
    flex-grow: 1;
}

.search_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    width: 129px;
    height: 40px;
    background: #E8F1FE;
    border: 1px solid #ACCBF6;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.search_btn:hover {
    background-color: #166EE8;
    cursor: pointer;
}

.btn_label {
    text-align: center;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 0.02em;
    color: #166EE8;
}

.search_btn:hover .btn_label {
    color: #FFFFFF;
}

.customer_list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    padding-bottom: 40px;
    width: 338px;
    height: 420px;
    flex: none;
    order: 3;
    align-self: stretch;
    flex-grow: 0;
}

.list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0px 16px;
    width: 338px;
    height: 28px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: rgba(29, 36, 51, 0.75);
    flex: none;
    order: 0;
    flex-grow: 0;
}

.list li {
    list-style: none;
    display: list-item;
    padding-left: 5px;
}

.list_item {
    width: 338px;
    height: 28px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    position: relative;
}

.list_item ul {
    margin: 0;
}

.list_item::before {
    content: "";
    position: absolute;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #E1E6EF;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    margin-top: 11px;
    margin-left: -12px;
    padding: 0;
    position: absolute;
}

.list_item:hover::before {
    background-color: #f8f9fc;
}

.well {
    width: 338px;
    height: 182px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 338px;
    height: 182px;
    flex: none;
    order: 4;
    align-self: stretch;
    flex-grow: 0;
}

.well_box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 10px;
    width: 338px;
    height: 182px;
    background: #E1E6EF;
    border-radius: 5px;
}

.well_caption {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 0px;
    margin-right: -10px;
    gap: 10px;
    width: 290px;
    height: 24px;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -1px;
    color: rgba(29, 36, 51, 0.75);
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.well_content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 16px;
    width: 290px;
    height: 116px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.import_btn {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.import_btn_state:hover {
    background-color: #166EE8;
    cursor: pointer;
}


.import_btn_state:hover .ibt {
    color: #FFFFFF;
}

.import_btn_state {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 0px 10px 16px;
    width: 199px;
    height: 40px;
    background: #E8F1FE;
    border: 1px solid #ACCBF6;
    border-radius: 5px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.ibt {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px 24px 0px 4px;
    gap: 10px;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 0.02em;
    color: #166EE8;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* ADAPTIVE STYLES */
@media (max-width: 1200px) {
    aside {
        width: 280px;
    }
}

@media (max-width: 992px) {
    .wrapper {
        flex-direction: column;
        padding: 5px;
    }

    .title_bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
    }

    .button_group {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .button_group button {
        min-width: 80px;
    }

    aside {
        width: 100%;
        height: auto;
        box-shadow: none;
        display: none;
    }

    .menu-toggle {
        display: block;
        background: #8cb9f9;
        color: white;
        padding: 10px;
        text-align: center;
        cursor: pointer;
        border-radius: 5px;
    }

    .menu-active {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 8px;
    }

    .wrapper {
        padding: 8px;
    }

    .table_invoices {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .table_invoices table {
        min-width: 600px;
    }

    .filter-content {
        width: 90%;
    }

    .search-box {
        width: 100%;
    }

    aside {
        display: none;
    }
}

@media (max-width: 575px) {
    .menu-toggle {
        text-align: left;
    }

    .breadcrump {
        justify-content: flex-start;
        width: 100%;
    }

    .invoice-title {
        margin-left: 0;
        text-align: left;
    }
}