/* Basic blue #0056b3 */
/* Dark blue #004399 */

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    display: flex;
    justify-content: center;
    height: auto;
    padding-top: 80px;
    line-height: 1;
    font-size: 14px;
}

/* Reset all margins and paddings, and set box-sizing to border-box */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove default list styling (bullets or numbers) */
ul,
ol {
    list-style: none;
}

/* Remove default styling for links (underline and color) */
a {
    text-decoration: none;
    color: inherit;
}

/* Set table styling, collapse borders, and make the table take up full width */
table {
    border-collapse: collapse;
    width: 100%;
}

/* Reset styles for form elements (input, button, textarea, select) */
input,
button,
textarea,
select {
    border: none;
    background: none;
    outline: none;
    box-shadow: none;
}

/* Ensure images are responsive and take up full width when needed */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Remove default link focus and hover styles */
a:focus,
a:hover {
    outline: none;
}

a {
    color: #333;
}

.login-container {
    width: 480px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(115, 115, 115, 0.1);
    border-radius: 8px;
    text-align: center;
}

.login-container h1 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

.login-container label, .table-container label {
    display: block;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 5px;
    /*font-size: 14px;*/
    color: #999999;
}

.login-container label {
    margin: 10px 20px 5px;
}

.login-container form {
}

.login-container form input[type="text"], .login-container form input[type="password"] {

}

.table-container th label {
    font-size: 12px;
}

fieldset {
    /*border:1px solid #cccccc;*/
    margin: 10px 0;
    padding: 10px 20px;
}

input:not([type="checkbox"]), button, textarea, a.button {
    width: 90%;
    padding: 12px;
    margin-bottom: 15px;
    /*font-size: 14px;*/
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

a.button {
    /*font-size: 9px;*/
    padding: 8px 30px;
    color: black;
    cursor: pointer;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.5);
}

input[type="date"] {
    padding: 7px;
}

button.period {
    /*white-space: nowrap;*/
    max-width: 150px;
}

.help-block {
    color: #8a0505;
    display: block;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: left;
}


.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    /*border-color: red;*/
}


.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #004399;
}

.login-container a {
    display: block;
    margin-top: 10px;
    color: #0056b3;
    text-decoration: none;
}

.login-container a:hover {
    text-decoration: underline;
}

#toggle-password {
    padding: 5px 10px 10px;
    position: absolute;
    right: 20px;
    top: 2px;
    cursor: pointer;
    font-size: 23px;
}

#toggle-password span {
    user-select: none;
}

/* languages list */
.language-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.language-switcher ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    /*border: 1px solid #dfe1e6;*/
    /*border-radius: 8px;*/
    /*overflow: hidden;*/
}

.language-switcher ul li {
    flex: 1;
}

.language-switcher ul li a {
    display: block;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    /*font-size: 14px;*/
    margin: 10px;
    /*border-right: 1px solid #ccc;*/
    transition: color 0.3s, background-color 0.3s;
}

.language-switcher ul li a:last-child {
    border-right: none;
}

.language-switcher ul li a:hover, .language-switcher ul li.active a {
    border-bottom: 1px solid #004399;
    text-decoration: none;
}

.language-switcher ul li.active a, .language-switcher ul li a:hover {
    color: #004399;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(115, 115, 115, 0.1);
    box-sizing: border-box;
    height: 80px;
}

/* Navigation menu */
.nav {
    display: flex;
    gap: 30px;
}

/* Dropdown Button */
.dropbtn {
    cursor: pointer;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    margin-top: -2px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    margin-top: 10px;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover, .dropdown-content a.active {
    background-color: #f1f1f1;
    border-color: #f1f1f1
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
    display: block;
}

.nav-item, .dropbtn {
    color: #333;
    font-size: 14px;
    border-bottom: 2px solid #f9f9f9;
}

.nav-item {
    padding: 8px 0;
}

a.nav-item {
    text-decoration: none;
}

.nav-item.active, .nav-item:hover {
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
}

/* Information about user */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    /*font-size: 14px;*/
}

.user-info .logout {
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info .logout:hover {
    color: #004399;
}

/* Content */

#content {
    /*max-width: 1280px;*/
    width: 100%;
    padding: 10px;
    margin: 20px auto;
    box-sizing: border-box;
    min-height: calc(100vh - 80px);
}

/* Tables style */
.table-container {
    width: 100%;
    margin: 0 auto 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(115, 115, 115, 0.1);
    border: 1px solid #ddd;
    overflow: visible;
    position: relative;
}


.table-container-data {
    margin: 10px;
    /*font-size: 14px;*/
}

.table-container-data ul {
    list-style-type: revert;
    margin-left: 20px;
    padding: 10px;
}

.table-container-data li {
    padding: 5px 0;
}

.table-container-data li > ul {
    background-color: #f9f9f9;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

.table-container-data li > a {
    text-decoration: none;
}

.table-container-data li > a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.table-header {
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
}


button[type=submit] {
    cursor: pointer;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: #ffffff;
}

.styled-table th,
.styled-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.styled-table th {
    background-color: #f9f9f9;
    font-weight: bold;
    text-align: left;
    text-transform: capitalize;
}

.styled-table tbody tr:not(.details):hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.styled-table tbody tr:last-child td {
    border-bottom: none;
}

.styled-table td:first-child {
    white-space: nowrap;
}

.styled-table th:not(:first-child),
.styled-table td:not(:first-child) {
    /*text-align: right;*/
}


.styled-table td a:not(.delete) {
    color: #0056b3;
}

.styled-table td a:not(.delete):hover {
    color: #004399;
}

.table-nav {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    white-space: nowrap;
}

.table-nav input, button {
    padding: 8px;
    max-width: 100px;
}

.table-right {
    margin-left: auto; /* Pushes the button to the right */
    display: flex;
    gap: 10px;
}

.btn-primary:hover {
    border-color: #999999;
    transition: all 0.3s ease;
}

/* Pagination */
.pagination {
    text-align: center;
    padding: 10px;
}

.pagination div {
    margin-bottom: 30px;
}

.page-link {
    border-radius: 4px;
    padding: 10px 12px;
    text-decoration: none;
    background-color: #ffffff;
    border: 1px solid #ddd;
    transition: color 0.3s, background-color 0.3s;
    font-size: 12px;
}

.page-link.active, a.page-link:hover {
    background-color: #0056b3;
    /*background-color: #999;*/
    color: #fff;
}

.page-link.active:hover {
    background-color: #004399;
}

.page-link.delete, .page-link.edit {
    padding: 7px 12px;
}
.page-link.edit {
margin-right: 10px;
 }

.page-link.delete {
    background-color: #8a0505;
    color: #fff;
}

.page-link.delete:hover {
    background-color: #790404;
}

select {
    /*font-size: 14px;*/
    padding: 7px 5px 8px 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

select#company-select {
    border: none;
    padding: 5px;
}

.btn-primary {
    cursor: pointer;
    white-space: nowrap;
}

.right {
    float: right;
}
.left_text {
        text-align: left !important;
}

p.alarm {
    color: red;
}

/* Adaptation style */
@media (max-width: 600px) {
    .table-header {
        font-size: 16px;
    }

    .styled-table th,
    .styled-table td {
        font-size: 14px;
        padding: 8px;
    }
}

.hidden {
    display: none !important;
}

tfoot {
    /*background: #d2d2d2;*/
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-window {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.table-filter {
    table-layout: fixed;
}

.table-filter td {
    align-content: start;
}

.table-filter input, .table-filter select :not(:first-child) {
    width: 90%;
    max-width: 300px;
    min-height: 42px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 4px; /* distance between label and field */
}

.date-filetype {
    display: flex;
    gap: 10px;
}

.date-filetype input, .date-filetype button {
    height: 42px;
    box-sizing: border-box;
    align-self: end;
    white-space: nowrap;
    min-width: min-content;
}

.date-filetype-wrap {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.date-filetype-wrap button {
    flex: 1 1 auto;
    height: auto;
    white-space: normal;
}


.date-filetype-right {
    margin-left: auto;
    display: flex;
    gap: 10px;
}


.input-row {
    display: flex;
    gap: 16px;
}


.input-block {
    display: flex;
    flex-direction: column;
    max-width: 50%;
}

.flex-1 {
    flex: 1;
}

.flex-3 {
    flex: 3;
}


.input-block label {
    margin-bottom: 4px;
}

.modal-header button {
    margin: 0;
    width: 32px;
    border-radius: 50%;
}

.modal-header {
    padding-bottom: 20px;
}

.modal-header .input-row {
    align-items: center;
}

.modal-buttons button {
    min-width: 200px
}

.input-block input :not([type=checkbox]), .input-block select, .input-block button {
    height: 42px;
    padding: 6px 10px;
    box-sizing: border-box;
    width: 100%;
}

.input-block input[type=checkbox] {
    align-self: start
}

.input-block input[type=date] {
    height: 42px;
    width: 100%;
}

.end {
    align-items: flex-end
}

.styled-2-table th:not(:first-child),
.styled-2-table td:not(:first-child) {
    text-align: right;
}

.bold {
    font-weight: bold;

}

.filter {
    overflow: visible;
    position: relative;
}

.dropdown-btn {
    padding: 6px 30px 6px 10px;
    border: 1px solid #ccc;
    width: 100%;
    height: 42px;
    border-radius: 4px;
    align-content: center;
    cursor: pointer;
    position: relative;
    background-color: #fff;
}

.dropdown-btn::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1px solid #555;
    border-bottom: 1px solid #555;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.dropdown-content-scrolling {
    max-height: 250px;
    overflow-y: auto;
    width: max-content;
    min-width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;

}

.dropdown-content table {
    width: 100%;
    border-collapse: collapse;
}

.dropdown-content td {
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.dropdown.open .dropdown-content-scrolling {
    display: block;

}


.padding_l_20 {
    padding-left: 20px !important;

}
.padding_l_10 {
    padding-left: 10px !important;

}
.padding_l_30 {
    padding-left: 30px !important;

}
.padding_l_40 {
    padding-left: 40px !important;

}
.padding_l_50 {
    padding-left: 50px !important;

}

.gl_account td:first-child{
    color: #387839;


}


.gl_group {
    color: #294aff;
}

.gl_account td:not(:first-child){
    color: blue;
}
tr.gl_account:hover {
    background-color: #f1fcf0 !important;
}
.link {color: #004399;}

.vat-report-table-header {
    font-size: 15px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
    text-align: left;
    margin-bottom: 40px;
}
.vat-report-table-header th {
        padding: 7px;

    font-weight: bold;
}
.vat-report-table-header td {
    padding: 7px;
}

.dropbtn-button {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px;
    margin: 4px;
    height: 33px;
    position: relative;
    min-width: 100px;

}
.dropdown-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;

}

.dropdown-content_left{
        right: 0;
    left: auto;
}

  #content {
    position: relative;
  }

#loader {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ddd;
    border-top: 6px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin { to { transform: rotate(360deg); } }

  #content.loading > *:not(#loader) {
    filter: blur(2px);
    opacity: 0.5;
    pointer-events: none;
  }

.same_input_size input, .same_input_size select, .same_input_size.delete {
    display: block;
    margin: auto 0;
    height: 32px;
    line-height: 32px;
}
  .modal_balance {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
  }
  .modal_balance-content input { width:100%; }


.search-cell input {
    margin: 10px;
    width: 30%;
    height: 32px;
}

.search-cell input.active {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    background-color: #f9f9f9;
}
