html {
    font-family: Arial;
}

body {
    background-color: #f6f5f9;
    line-height: 1.5;
    font-size: 16px;
}

.content {
    display: flex;
    flex: 1;
    flex-direction: column;
    position: relative;
}

.main-content {
    padding: 16px 40px 40px 40px;
}

.content-middle {
    position: relative;
}

.block-widget {
    display: inline;
}

.animate {
    width: 100%;
    display: inline-block;
}

.invoice-center {
    display: flex;
    min-width: 1000px;
    max-width: 1400px;
    width: 80%;
    /*margin: 0 auto;*/
    margin: 0 50px 0 auto;
}

.invoice-main-content {
    flex: 5;
}

.invoice-main-content:hover .input-block {
    border: 2px dashed #dee2e6;
}

.select-template-container {
    display: flex;
    position: relative;
    margin-bottom: 8px;
    width: 100%;
    justify-content: space-between;
}

.select-template-container .dropdown-container {
    /*width: 370px;*/
    width: 450px;
}

.dropdown-container {
    cursor: initial;
    position: relative;
}

.dropdown-container:after {
    border: 2px solid #6a7178;
    border-right: 0 !important;
    border-top: 0 !important;
    bottom: 0;
    box-sizing: border-box;
    content: "";
    height: 8px;
    left: auto;
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: 15px;
    transform: rotate(-45deg) translateY(0) translateX(0);
    transition: all 300ms ease-in-out;
    width: 8px;
}

.template-dropdown {
    align-items: center;
    background-color: #fff;
    border-radius: 4px;
    color: #272b30;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    height: 40px;
    padding: 0 32px 0 16px;
    position: relative;
    appearance: none;
    line-height: 1.25;
    width: 100%;
}

.card-content {
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    padding: 24px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

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

.header-container {
    margin-left: 16px;
    margin-right: 16px;
}

.columns-item {
    padding: 0 8px;
    flex: 1;
    word-break: break-word;
}

.invoice-logo {
    border: 2px solid #fff;
    border-radius: 4px;
    align-items: center;
    display: flex;
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 180ms linear;
}

.select-logo-container {
    width: 100%;
    padding: 8px;
}

.select-logo {
    align-items: center;
    display: flex;
    flex-direction: row;
}

.select-logo-icon {
    margin-right: 8px;
}

.invoice-number-and-date-container {
    text-align: right;
}

.invoice-number-and-text-container {
    display: flex;
    margin-right: 8px;
    justify-content: flex-end;
}

.invoice-number-container {
    margin-right: 8px;
    display: flex;
    justify-content: flex-end;
}

.invoice-number-text {
    align-items: center;
    display: flex;
    height: 40px;
    padding: 0 16px;
    width: 100%;
    position: relative;
}

.form-control {
    height: 40px;
    padding: 0 16px;
}

.input-invoice-number {
    margin-left: 8px;
    width: 100%;
    display: inline-block;
    box-sizing: border-box;
    border: 2px solid #fff;
    transition: all 180ms linear;
    cursor: pointer;
}

.input-block:hover {
    border: 2px solid #1e79f2 !important;
}

.input-block {
    height: 40px;
    border: 2px solid #fff;
    transition: all 180ms linear;
}

.date-container {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.date-text-container {
    display: block;
    width: 100%;
    color: #4f575e;
}

.date-text {
    margin-right: 8px;
    font-weight: 600;
    white-space: pre-wrap;
}

.date-input {
    border: 2px solid #fff;
    height: 40px;
    padding: 0 16px;
    border-radius: 4px;
    transition: all 180ms linear;
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
    appearance: none;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

.from-to-container {
    margin-top: 8px;
}

.from-to-columns-container {
    margin-left: 16px;
    margin-right: 16px;
    display: flex;
    flex-wrap: wrap;
}

.from-to-card {
    border: 2px solid #fff;
    padding: 8px;
    color: #272b30;
    transition: all 180ms linear;
}

.from-to-text {
    margin-bottom: 8px;
    font-size: 18px;
}

.from-img-placeholder {
    background-image: url('./../img/from_placeholder.png');
    background-size: cover;
    border: 2px solid #fff;
    height: 40px;
    min-width: 180px;
    cursor: pointer;
}

.from-to-input {
    border: 2px solid #fff;
    width: 60%;
    display: inline-block;
    cursor: pointer;
    transition: all 180ms linear;
    font-size: 16px;
}

.invoice-items-table {
    border: 1px solid #dee2e6;
    margin-top: 8px;
    border-radius: 4px;
    margin-left: 16px;
    margin-right: 16px;
}

.invoice-list-item-header {
    background-color: #dee2e6;
    height: 40px;
    font-weight: bold;
    text-align: center;
}

.invoice-list-item-columns {
    margin-left: 8px;
    margin-right: 8px;
    height: 100%;
    align-items: center;
    display: flex;
    flex-direction: row;
}

.invoice-list-columns-group {
    margin-left: 8px;
    margin-right: 8px;
    height: 100%;
    align-items: center;
    display: flex;
    flex-direction: row;
}

.invoice-list-item-data {
    position: relative;
    overflow: unset;
    display: block;
    width: 100%;
}

.item-row {
    border: 1px solid #dee2e6;
    padding: 8px;
}

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

.columns-item-left {
    max-width: 35%;
}

.input-textarea {
    overflow: hidden;
    resize: none;
}

.relative {
    position: relative;
}

.textarea-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 130px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 5px 5px 5px;
    color: #aaa;
    pointer-events: none;
    font-size: 18px;
    font-weight: bold;
}

.input-item-title {
    width: 100%;
}

.items-buttons-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    margin-right: 25px;
}

#removeItem {
    padding-top: 2px;
}

.items-buttons-container button {
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
    background-color: #fff;
    font-size: 20px;
    border: none;
    font-weight: bold;
}

.invoice-summary-container {
    margin-top: 16px;
    margin-bottom: 16px;
    margin-right: 8px;
}

.invoice-summary-container .columns-item:first-child {
    flex: 2;
}

.invoice-summary-container .columns-item {
    padding: 0 16px;
}

.currency-row {
    min-height: 40px;
    justify-content: space-between;
    display: flex;
    padding: 8px;
    border-radius: 4px;
    background-color: #dee2e6;
    align-items: center;
    flex-direction: row;
    font-weight: 600;
}

.currrency-select-container {
    min-width: 125px;
    cursor: pointer;
    position: relative;
}

.currrency-select-inner:after {
    color: #6a7178;
    content: "\f107";
    font-size: 20px;
    font-family: "FontAwesome";
    position: absolute;
    right: 16px;
    top: 6px;
    transform-origin: center;
    transition: all 300ms ease;
    cursor: pointer;
    pointer-events: none;
}

.currrency-select-inner {
    background-color: #dee2e6;
    border: 1px solid #adb5bd;
    border-radius: 2px;
    color: #e9ecef;
    display: inline-block;
    height: 40px;
    transition: all 180ms linear;
    vertical-align: top;
    width: 100%;
}

.currency-input {
    appearance: none;
    display: inline-block;
    vertical-align: baseline;
    width: 100%;
    height: 100%;
    background-color: #dee2e6;
    border: none;
    padding-left: 12px;
    font-size: 16px;
    cursor: pointer;
}

.data-container {
    margin-left: -8px;
    margin-right: -8px;
    margin-top: 32px;
}

.buttons-column {
    flex: 2;
    margin-top: 48px;
}

.btn {
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0 16px;
    transition: all 100ms linear
}

.btn-primary {
    background-color: #1e79f2;
    border: 1px solid #1e79f2;
    color: #fff;
}

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

.buttons-column button {
    width: 100%;
    margin-top: 16px;
    margin-left: 24px;
}

.buttons-column .buttons-container button:first-child {
    margin-top: 0 !important;
}

.btn-text {
    margin-left: 8px;
}

.logo-img {
    width: 150px;
    height: 150px;
    max-width: 100%;
}

.image-filled {
    height: unset !important;
    width: 60%;
}

.invoice-invisible-icon {
    display: none;
}

#LogoDiv:hover .invoice-invisible-icon{
    display: block;
    margin-left: auto;
    margin-right: 24px;
}

.hidden {
    display: none !important;
}


.my-trash-icon {
    transition: all 300ms linear;
}

.my-trash-icon:hover {
    font-size: 22px;
}

.input-block.input-disabled {
    border: 2px solid #fff !important;
}

.total-continer {
    margin-top: 8px;
}

.total-row {
    margin-left: -8px;
    margin-right: -8px;
    font-size: 16px;
}

.total-row .columns-item:first-child {
    flex: 1;
}

.col-2 {
    flex: 2;
}

.alight-text-right {
    text-align: right;
}

@media only screen and (max-width: 1600px){
    .invoice-center {
        min-width: 1000px;
        max-width: 1200px;
        width: 50%;
        margin: 0 auto;
    }
}

/* login page */

.login-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px 80px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    /*background-color: #dee2e6;*/
    box-sizing: border-box;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.login-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.login-container input[type="email"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.login-container button {
    width: 50%;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

.login-container .error {
    color: red;
    margin-bottom: 15px;
}

.login-button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* navbar */
.navbar {
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e7e7e7;
    position: relative;
    font-size: 16px;
}

.navbar .user-info {
    display: flex;
    align-items: center;
    cursor: pointer;

    margin-left: auto;
}

.navbar .user-info span {
    margin-right: 8px;
    font-size: 16px;
    color: #343a40;
}

.navbar .user-info i {
    font-size: 12px;
}

.navbar .dropdown-menu {
    display: none;
    position: absolute;
    right: 20px;
    top: 40px;
    background-color: #fff;
    border: 1px solid #e7e7e7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1000;
    width: 150px;
}

.navbar .dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #007bff;
    text-decoration: none;
}

.navbar .dropdown-menu a:hover {
    background-color: #f8f9fa;
}

.navbar .dropdown-menu .admin-link {
    font-weight: bold;
}

.navbar .dropdown-menu .admin-link:hover {
    background-color: #f8f9fa;
}

button.g-recaptcha {
    background-color: #1e79f2;
    color: #fff;
    border: 1px solid #1e79f2;
    align-items: center;
    border-radius: 4px;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    line-height: 1;
    transition: all 100ms linear;
}

button.g-recaptcha:hover {
    background-color: #0056b3;
}

.language-switcher {
    display: inline-block;
    margin-right: 10px;
}

.lang-switch {
    display: inline-block;
    padding: 4px 16px;
    margin-right: 5px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.lang-switch.active {
    background-color: #1e79f2;
    color: #fff;
    border-color: #1e79f2;
}

.currency-row-text-container {
    padding-right: 16px;
}

.columns-4 .columns-item {
    max-width: calc(25% - 16px);
}

.columns-4 .input-block {
    max-width: 100%;
}

.input-block:focus-visible {
    border: 2px solid #1e79f2 !important;
    outline: 2px;
}

.list-total-container {
    padding-right: 17px;
}

.input-invoice-number {
    font-weight: bold;
}

#template-view-mode .invoice-container,
#template-view-mode-modal .invoice-container{
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
}

#template-view-mode-modal .invoice-container {
    padding: 0;
}

#template-view-mode-modal {
    padding-left: 12px;
    padding-right: 12px;
}

/*#InvoiceDiv.dn {*/
/*    display: none;*/
/*}*/

.dn {
    display: none;
}

/*.menu-container {*/
/*    position: relative;*/
/*    display: inline-block;*/
/*    margin-right: 50px;*/
/*    padding: 4px 6px;*/
/*    cursor: pointer;*/
/*}*/

.menu-container {
    /*position: fixed;*/
    position: absolute;
    /*top: 63px;*/
    top: 55px;
    /*left: -250px;*/
    left: -257px;
    width: 250px;
    height: 100vh;
    background-color: white;
    /*box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);*/
    transition: left 0.3s ease;
    z-index: 1000;
}

.menu-container.active {
    /*left: 0;*/
    left: -7px;
}


.menu-button {
    width: 38px;
    height: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-right: 50px;
    cursor: pointer;
}

/*.menu-container:hover {*/
/*    background-color: #d8d8d8;*/
/*}*/

.menu-button span {
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/*.menu-dropdown {*/
/*    display: none;*/
/*    position: absolute;*/
/*    !*top: 110%;*!*/
/*    top: 35px;*/
/*    left: 0;*/
/*    background-color: white;*/
/*    !*box-shadow: 0 8px 16px rgba(0,0,0,0.1);*!*/
/*    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
/*    border-radius: 6px;*/
/*    min-width: 200px;*/
/*    z-index: 1000;*/
/*}*/

.menu-dropdown {
    display: flex;
    flex-direction: column;
    /*padding: 20px;*/
    padding: 5px 20px;
}

.menu-container.active .menu-dropdown {
    display: block;
}

.menu-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #007bff;
    text-decoration: none;
    /*border-bottom: 1px solid #e0e0e0;*/
}

.menu-dropdown hr {
    margin: 0 -20px;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.invoice-list-container,
.suppliers-list-container,
.suppliers-create-container,
.clients-list-container,
.clients-create-container
{
    margin: 30px auto;
    /*max-width: 1000px;*/
    /*max-width: 1200px;*/
    max-width: 1100px;
    /*max-width: 1300px;*/
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.table-inner {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
}

.table-inner thead {
    background-color: #f5f5f5;
    text-align: left;
}

.table-inner thead th {
    padding: 12px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.table-inner tbody td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.table-inner tbody tr:not(.preview-row):hover {
    background-color: #f5f5f5;
}

.preview-row table tbody tr:hover {
    background-color: #fff !important;
}

.flex {
    display: flex;
}

.create-invoice {
    margin-right: 25px;
}

.template-dropdown-inner {
    min-width: 300px;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border: 1px solid #6c757d;
}

.history-row {
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-dialog {
    background-color: #fff;
    border-radius: 6px;
    max-width: 90%;
    width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.modal-header,
.modal-body {
    padding: 16px;
}

.modal-header {
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.btn-close:hover {
    color: #6c757d;
}

.preview-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.preview-container.open {
    max-height: 2000px;
}

.toggle-icon {
    transition: transform 0.2s ease;
    transform: rotate(180deg);
}

.toggle-icon.rotated {
    transform: rotate(360deg);
}

.history-row .download-invoice-link {
    height: 30px;
    padding: 0 10px;
}

.bold {
    font-weight: bold;
}

a.create-supplier {
    text-decoration: none;
    font-size: 13px;
}

.h1-inner {
    font-size: 1.5em;
}

.suppliers-create-container,
.clients-create-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 800px;
}

.input-inner {
    width: 100%;
    height: 30px;
    box-sizing: border-box;
}

.w-100 {
    width: 100%;
}

.form-group-inner {
    margin-top: 10px;
    margin-bottom: 10px;
}

.btn.btn-danger {
    background-color: #ff0000;
    border: 1px solid #ff0000;
}

.btn.btn-danger:hover {
    background-color: #d70909;
    border-color: #d70909;
}

.input-inner-textarea {
    height: 90px;
}

.btn-text {
    text-decoration: none;
}

a.btn.btn-primary {
    text-decoration: none;
}

.btn.btn-success {
    background-color: #22C55E;
    border-color: #22C55E;
}

.btn.btn-success:hover {
    background-color: #16A34A;
    border-color: #16A34A;
}

.btn.btn-success:disabled {
    background-color: #63f799;
    border-color: #63f799;
    cursor: auto;
}

#ModalAutocomplete .btn-close {
    margin-top: 0;
    text-align: right;
}

#ModalAutocomplete .modal-dialog {
    width: 700px;
}

#ModalAutocompleteContent .dropdown-container {
    margin-bottom: 25px;
}

#ModalAutocompleteContent .dropdown-container:after {
    top: 38px;
}

#ModalAutocomplete .btn-apply-autocomplete {
    width: 100px;
    margin-left: 0;
    margin-top: 0;
}

.invoice-last-number-container {
    font-size: 14px;
    margin-top: 5px;
}

#ShowPreviousTemplate {
    color: #007bff;
    cursor: pointer;
}

.menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 6px);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9.4px, -10px);
}

.form-control.input-block.invoice-number-updated {
    /*border: 2px solid #ff0000 !important;*/
    border: 2px solid #22C55E !important;
}

.invoice-number-error-text {
    color: #ff0000;
    font-weight: bold;
    font-size: 14px;
    width: 200px;
    text-align: center;
    display: inline-block;
    margin-bottom: 5px;
}

.invoice-number-error-text.dn {
    display: none;
}

#save-changes-btn:disabled,
#save-invoice-btn:disabled,
#DownloadPDFAndSave:disabled {
    background-color: #5b9bf0;
    border-color: #5b9bf0;
    cursor: auto;
}

#save-changes-btn .btn-text,
#save-invoice-btn .btn-text,
#DownloadPDFAndSave .btn-text{
    position: relative;
}

#save-changes-btn .spinner,
#save-invoice-btn .spinner,
#DownloadPDFAndSave .spinner{
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    background-image: url('/public/img/ajax-loader-2.gif');
    background-repeat: no-repeat;
    background-size: contain;
    background-color: inherit;
    display: none;
}

.pr-0 {
    padding-right: 0 !important;
}

.alert.alert-success {
    padding: 12px 16px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    font-size: 15px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    animation: fadeOut 0.5s ease-in forwards;
    animation-delay: 4s;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-5px);
    }
}

@keyframes hideFadeOut {
    0% {
        opacity: 1;
        height: auto;
        margin-bottom: 16px;
        padding: 12px 16px;
    }
    100% {
        opacity: 0;
        height: 0;
        margin-bottom: 0;
        padding: 0 16px;
    }
}
