*{
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    background-color: #ebebf0;
    background-image: url(../img/background.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    background-attachment: fixed;
}

.header {
    width: 100%;
    overflow: hidden;
    background-color: #1E1450;
    padding: 3px 0;
}

.menu-icon {
    height: auto;
}

.header .logo {
    font-size: 25px;
}

.header .logo-link {
    margin-left: 260px;
    padding: 12px;
    line-height: 25px;
    float: left;
}

.header .btn-pwa {
    margin-left: 1em;
    margin-top: 1em;
    padding: 5px;
    line-height: 25px;
    float: left;
}

.header .lang-switch {
    float: right;
    margin-right: 300px;
    margin-top: 0.75em;
    margin-bottom: 1em;
    display: flex;
    flex-direction: row;
    gap: 1em;
}

.lang-switch .btn-field .lang {
    color: #000000;
    text-decoration: none;
    background: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
}

.lang-switch .lang-select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 0.9em;
    width: fit-content;
}

.selected-recipients {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
    margin: 0.5em 0;
}

.recipient-chip {
    background: #1E1450;
    color: #fff;
    padding: 0.25em 0.75em;
    border-radius: 1em;
    display: flex;
    align-items: center;
    font-size: 0.9em;
}
.recipient-chip .remove-btn {
    margin-left: 0.5em;
    cursor: pointer;
    font-weight: bold;
}
.suggestions-box {
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
}
.suggestion-item {
    padding: 0.5em 1em;
    cursor: pointer;
}
.suggestion-item:hover {
    background: #f0f0f0;
}

.maintenance-form {
    width: 60%;
    margin: 2em auto;
    padding: 2em;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.maintenance-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.maintenance-row span {
    font-size: 18px;
}

.maintenance-row input {
    width: 2%;
    cursor: pointer;
}

.maintenance-form .btn-field {
    display: flex;
    justify-content: flex-start;
}

.menu-toggle {
    display: none;
    position: fixed;
    right: 0.1rem;
    color: #ffffff;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    z-index: 998;
    padding: 15px 20px;
}

.center {
    align-items: center;
}

.container {
    width: 100%;
    height: 100%;
}

.container-home {
    width: 100%;
    height: 50%;
    background-position: center;
    background-size: cover;
    position: relative;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-message {
    margin-top: 15px;
    color: red;
}

.form-box {
    width: 90%;
    max-width: 450px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 50%);
    background: #fff;
    padding: 50px 60px 40px;
    text-align: center;
    border-radius: 15px;
}

.form-box-profile {
    width: 60%;
    background: #fff;
    padding: 30px 60px 40px;
    text-align: left;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.employee {
    font-size: 1.2em;
    font-weight: bold;
}

.payment-row {
    display: flex;
    align-items: center;
}
.payment-info {
    flex: 0 0 80%;
}

.payment-action {
    flex: 0 0 20%;
    display: flex;
    justify-content: center;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.payment-type,
.payment-amount{
    font-size: 18px;
}

.payment-date {
    font-size: 0.875em;
    color: #666;
    margin-top: 8px;
}

.form-box-home h2 {
    text-align: center;
}

.form-box h1 {
    font-size: 30px;
    margin-bottom: 30px;
    position: relative;
}

.input-group {
    display: inline-block;
}

.input-field {
    width: 304px;
    background: #eaeaea;
    margin: 15px 0;
    border-radius: 3px;
    display: flex;
    align-items: center;
}

input {
    width: 100%;
    background: transparent;
    font-size: 16px;
    border: 0;
    outline: 0;
    padding: 18px 15px;
}

select {
    width: 30%;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 18px 0;
}

.input-field i {
    margin-left: 15px;
    margin-right: 15px;
    color: #70707099;
}

.input-field-home {
    background: #eaeaea;
    margin: 5px 0;
    border-radius: 3px;
    display: flex;
    align-items: baseline;
}

.input-field-password {
    background: #eaeaea;
    padding: 15px;
    border-radius: 3px;
    display: flex;
    align-items: baseline;
    width: 60%;
}

.input-field-home i {
    margin-left: 15px;
    margin-right: 15px;
}

.input-field .fa-eye-slash {
    color: black;
}

.input-field .fa-eye {
    color: black;
}

.fa-eye-slash:hover {
    cursor: pointer;
}

.fa-eye:hover {
    cursor: pointer;
}

.captcha-wrapper {
    width: 100%;
    margin: 2rem auto;
    height: auto;
    position: relative;
    align-items: center;
}


.registration-login-link {
    color: #1E1450;
    font-weight: 500;
}

.btn-field button {
    background: #1E1450;
    color: #fff;
    font-size: 18px;
    height: 40px;
    margin-top: 20px;
    padding: 0 30px;
    border-radius: 5px;
    border: 0;
    outline: 0;
    cursor: pointer;
}

.btn-field button:hover {
    background: #0d0824;
}

.btn-send {
    display: inline-block;
    font-size: 18px;
    height: 50px;
    padding: 12px 30px;
    border-radius: 5px;
    border: 0;
    outline: 0;
    cursor: pointer;
    background-color: #1E1450;
    color: #fff;
    text-decoration: none;
}

.btn-send:hover {
    background-color: #0d0824;
}

.btn-field-home button {
    background: #1E1450;
    color: #fff;
    font-size: 18px;
    height: 55px;
    padding: 0 30px;
    border-radius: 5px;
    border: 0;
    outline: 0;
    cursor: pointer;
}

.btn-field-home {
    width: 100%;
    display: flex;
    justify-content: center;
}


hr {
    border: none; 
    border-top: 1px solid grey;
    margin-top: 10px;
    margin-bottom: 10px;
}

.isEmpty {
    text-align: center;
}

.page-title-div {
    text-align: center;
    margin-top: 1em;
    margin-bottom: 1em;
}

.page-title {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: #1E1450;
    background-color: #ffffff;
    padding: 0.5em 10em;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: inline-block;
}

.error-box .page-text{
    text-align: center;
}

.page-text {
    color: #000;
    margin: 15px;
}

details { margin-bottom: 1em; }

summary {
    display: inline-block;
    font-size: 18px;
    cursor: pointer;
    padding: 1em 30em 1em 1em;
    color: #fff;
    background: #1E1450;
    border-radius: 25px;
    list-style: none;
    position: relative;
    outline: none;
}

summary::-webkit-details-marker { display: none; }
.year::after {
    content: "▼";
    position: absolute;
    right: 1em;
    transition: transform 0.2s;
}
details[open] > .year::after {
    transform: rotate(180deg);
}

.month {
    width: 100%;
    display: inline-block;
    padding: 1em 26.7em 1em 1em;
}

.submenu-link {
    margin-left: 1em;
    display: block;
    text-decoration: none;
    color: inherit;
}
.submenu-link .form-box-payment {
    cursor: pointer;
}
.submenu-link:hover .form-box-payment {
    background-color: #0d0824;
}

.submenu { margin: 0.2em 0; padding: 0; list-style: none; }
.submenu > li { margin-bottom: 0.3em; }

.form-box-home {
    width: 45%;
    border-radius: 8px;
    padding: 1em;
    margin: 0.5em 0;
    background: #eaeaea;
    color: #000;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.form-box-payment {
    width: 100%;
    border-radius: 25px;
    padding: 1em;
    margin: 0.5em 0;
    background: #1E1450;
    color: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: #1E1450;
    overflow: hidden; 
    box-sizing: border-box;
    transform: translateX(0);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .sidebar:hover {
    width: 290px;
  }

  .sidebar ul {
      margin-top: 4.45em;
      list-style: none;
      padding: 0;
  }

.sidebar nav ul li {
    border-bottom: 1px solid #0d0824;
}

.sidebar nav ul li:last-child {
    border-bottom: none;
}

  .sidebar a {
      font-size: 22px;
      text-decoration: none;
      color: #fff;
      background: #1E1450;
      display: flex;
      padding: 0.5em 0.5em 0.5em 0.9em;
      align-items: center;
  }
  
  .sidebar a:hover {
    background: #0d0824;
  }

  .sidebar .menu-text {
    opacity: 0;
    white-space: nowrap;
    margin-left: 0.5em;
    transition: opacity 0.1s ease;
  }

  .sidebar:hover .menu-text {
    opacity: 1;
  }

.icon-badge-container {
    position: relative;
    display: inline-block;
}

.unread-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 0 0 1px white;
}

.messages-list {
    list-style-type: none;
    padding: 0;
    margin-top: 15px;
    background: #eaeaea;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.messages-list li {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #666666;
}

.message-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.message-link .message-item {
    display: flex;
    align-items: center;
    padding: 1em;
    box-sizing: border-box;
}

.message-item {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.unread-message {
    background-color: #eef5ff;
    font-weight: bold;
    border-left: 4px solid #007bff;
}

.messages-list li:last-child {
    border-bottom: none;
}

.message-subject {
    flex: 0 0 200px;
    margin-right: 1em;
    font-weight: bold;
}

.message-body {
    flex: 1 1 1000px;
    max-width: 1000px;
    width: 1000px;
    min-width: 0;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-timestamp {
    flex: 0 0 auto;
    margin-left: 1em;
    font-size: 0.85em;
    color: #999;
    white-space: nowrap;
}

.message-timestamp-view {
    flex: 0 0 auto;
    margin-bottom: 1em;
    font-size: 0.85em;
    color: #999;
    white-space: nowrap;
}

.message-view {
    width: 80%;
    margin: 2em auto;
    background: #fff;
    padding: 1em 2em;
    border-radius: 8px;
}

.message-view h1 {
    margin-bottom: 0.2em;
}

.forms-view {
    width: 60%;
    margin: 2em auto;
    background: #fff;
    padding: 1em 2em;
    border-radius: 8px;
}

.forms-list {
    list-style: none;
}

.btn-back {
    display: inline-block;
    padding: 0.5em 1em;
    background: #1E1450;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.btn-back-payment {
    display: inline-block;
    padding: 0.5em 1em;
    background: #1E1450;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}

.message-body-full {
    white-space: pre-wrap;
    margin-top: 1em;
    margin-bottom: 1em;
}

.message-send {
    width: 60%;
    margin: 2em auto;
    background: #fff;
    padding: 2em;
    border-radius: 8px;
}

.message-send h1 {
    margin-bottom: 1em;
}

.message-form {
    margin-top: 15px;
}

.message-form .form-row {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}

.message-form .form-label {
    width: 50px;
    font-weight: bold;
}

.message-form .form-input {
    flex: 1;
    padding: 0.5em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.message-form .form-checkbox {
    margin-left: 0.5em;
    display: flex;
    align-items: center;
    font-size: 0.95em;
}
.message-form .form-checkbox input {
    margin-right: 0.25em;
}

.message-form .form-textarea {
    flex: 1;
    width: calc(100% - 80px);
    padding: 0.75em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    outline: none;
}

.input-disabled {
    background-color: #e0e0e0;
}

.autocomplete {
    position: relative;
    flex: 1;
}

.suggestions-box {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 0.5em 1em;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #f0f0f0;
}

.profile {
    width: 6rem;
}

.profile-save {
    text-align: center;
}

.btn-download {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #1E1450;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 15px;
    cursor: pointer;
}

.btn-import {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #1E1450;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin: 15px;
    cursor: pointer;
}

.btn-download i {
    margin-right: 0.5em;
}

.btn-download:hover {
    background-color: #0d0824;
}

.forms {
    text-align: center;
}

.forms-download {
    border-radius: 25px;
    width: 500px;
    padding: 15px 0;
}

.forms-dates-list {
    margin-bottom: 1em;
}

.forms-main {
    display: inline-block;
    font-size: 18px;
    cursor: pointer;
    width: 665px;
    padding: 1em;
    color: #fff;
    background: #1E1450;
    border-radius: 25px;
    list-style: none;
    position: relative;
    outline: none;
}

.forms-main::-webkit-details-marker { display: none; }

.forms-main::after {
    content: "▼";
    position: absolute;
    right: 1em;
    transition: transform 0.2s;
}

details[open] > .forms-main::after {
    transform: rotate(180deg);
}

.forms-submenu {
    padding: 0;
    list-style: none;
    width: 600px;
}

.forms-submenu > li {
    margin-bottom: 0.3em;
}

.forms-submenu-link {
    margin-left: 1em;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.form-box-file {
    width: 100%;
    border-radius: 25px;
    padding: 1em;
    margin: 0.5em 0;
    background: #1E1450;
    color: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s;
}

.forms-submenu-link:hover .form-box-file {
    background-color: #0d0824;
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.file-name {
    font-size: 18px;
}

.file-meta {
    font-size: 18px;
}

.rotate-hint {
    display: none;
    text-align: center;
    padding: 1em;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 1.1em;
    border-radius: 8px;
    margin: 1em auto;
    max-width: 90%;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive .payout-table {
    min-width: 700px;
}

.payout-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 1em 0;
}

.payout-table th,
.payout-table td {
    border: 1px solid #666;
    padding: 4px 8px;
    text-align: left;
    vertical-align: top;
    font-size: 0.9em;
}

.payout-table thead th {
    background: #d5f2e0;
    border-color: #999;
    text-align: center;
    font-weight: normal;
}

.payout-table .section-header td {
    background: #f0f0f0;
    font-weight: bold;
    border-color: #999;
}

.payout-table .totals td {
    background: #eef;
    font-weight: bold;
}

.payout-table .tax-thead {
    padding: 18px 0;
}

.lines {
    margin-bottom: 15px;
}

.lines h4 {
    display: inline;
    margin: 0;
    padding: 0;
    margin-right: 0.25em;
}

.payout-wrapper {
    display: flex;
    gap: 1rem;
}

.payout-wrapper .table-wrapper {
    flex: 0 0 50%;
    max-width: 50%;
}

.table-wrapper {
    overflow-y: visible;
}

.payout-table {
    flex: 1;
}

.form-box-profile .form-row {
    border: 1px solid #000000;
    background-color: #ffffff;
    border-radius: 5px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}

.image-box {
    text-align: center;
}

.gif {
    width: 25em;
    height: auto;
    border-radius: 50%;
}

@media (orientation: portrait) {
    body, html {
        background-image: url(../img/portraitOrientation.png);
    }

    .form-box {
        margin-top: -100px;
        background: #1E1450;
        color: #ffffff;
        padding: 30px 30px 40px;
    }

    .input-field {
        background: #ffffff;
    }

    .registration-login-link {
        color: #ffffff;
    }

    .form-box-home {
        color: #ffffff;
        background-color: #1E1450;
    }

    .form-box-profile {
        background-color: #1E1450;
    }

    .page-title-div {
        width: 80%;
    }

    .page-title {
        color: #ffffff;
        background-color: #1E1450;
    }

    .page-text {
        color: #ffffff;
        background-color: #1E1450;
    }

    .message-view {
        margin: 2em auto;
        background: #cccccc;
    }

    .suggestion-item {
        color: #000000;
    }

    .recipient-chip {
        background-color: #ffffff;
        color: #000000;
    }

    .remove-btn {
        color: #000000;
    }

    .message-send{
        color: #ffffff;
        background: #1E1450;
    }

    .message-body {
        color: #000000;
    }

    .message-timestamp {
        color: #000000;
    }

    .message-timestamp-view {
        color: #000000;
    }

    .btn-back {
        color: #000000;
        background: #ffffff;
    }

    .btn-field button {
        color: #000000;
        background: #ffffff;
    }

    .btn-field button:hover {
        background: #cccccc;
    }

    .form-input {
        background-color: #ffffff;
    }

    .forms-view {
        background-color: #cccccc;
    }

    .error-box {
        text-align: center;
    }

    .maintenance-row {
        margin: 25px;
    }

    .maintenance-row span {
        width: 50%;
        color: #ffffff;
    }

    .rotate-hint {
        display: block;
    }

    .tables-container {
        display: none;
    }

    .btn-import {
        background-color: #ffffff;
        color: #000000;
    }

    .maintenance-row input {
        width: 100px;
    }
}

@media screen and (max-width: 1500px) {

    .message-body {
        width: 600px;
        min-width: 0;
    }

}

@media screen and (max-width: 1300px) {

    .payout-wrapper {
        flex-direction: column;
    }

    .payout-wrapper .table-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .payout-table + .payout-table {
        margin-top: 1.5rem;
    }

}

    @media screen and (max-width: 1200px) {

        .header .logo-link {
            margin-left: 0;
        }

        .message-body {
            width: 400px;
            min-width: 0;
        }

        .header .lang-switch {
            margin-right: 75px;
            gap: 5px;
        }
    }

    @media screen and (max-width: 1000px) {

        summary {
            padding: 1em 20em 1em 1em;
        }

        .page-title {
            padding: 0.5em 7em;
        }

        .lines {
            font-size: 14px;
        }

        .isEmpty {
            font-size: 12px;
        }

        .message-send {
            width: 75%;
        }
    }

    @media screen and (max-width: 900px) {

        .message-body {
            width: 200px;
            min-width: 0;
        }

        .message-subject {
            flex: 0 0 150px;
            margin-right: 0;
        }

        .forms-main {
            width: 447px;
            font-size: 14px;
        }

        .file-name {
            font-size: 14px;
        }

        .forms-submenu {
            width: 400px;
        }
    }

    @media screen and (max-width: 800px) {

        .form-box-profile {
            width: 75%;
            font-size: 10px;
            margin: 20px auto;
            padding: 10px 10px 20px;
        }

        .input-field-home {
            font-size: 12px;
        }

        .input-field-home input {
            font-size: 12px;
            margin-left: -10px;
        }

        .input-field-home i {
            margin: 0 10px;
        }
    }

    @media screen and (max-width: 700px) {

        .lines {
            font-size: 12px;
        }

        .isEmpty {
            font-size: 10px;
        }

        .message-body {
            width: 100px;
            min-width: 0;
        }

        .table-wrapper {
            max-height: 60vh;
            overflow-y: auto;
        }

        .message-view {
            width: 90%;
        }

        .menu-toggle {
            display: block;
        }
        .sidebar {
            transform: translateX(+100%);
        }

        .sidebar.open {
            transform: translateX(0);
        }

        .message-send {
            width: 90%;
        }

        .form-box-profile {
            width: 90%;
        }

        .file-name {
            font-size: 12px;
        }
    }

@media screen and (max-width: 550px) {

    .page-title {
        padding: 0.5em 3em;
    }

    .forms-download {
        font-size: 15px;
        width: 400px;
    }

    .forms-main {
        width: 400px;
        font-size: 14px;
    }

    .forms-submenu {
        width: 375px;
    }
}

@media screen and (max-width: 475px) {

    summary {
        padding: 1em 12em 1em 1em;
    }

    .messages-list {
        width: 85%;
    }

    .message-body {
        width: 75px;
    }

    .forms-download {
        width: 300px;
    }

    .form-box {
        padding: 30px 0 40px;
    }

    .forms-main {
        width: 360px;
        font-size: 14px;
    }

    .forms-submenu {
        width: 340px;
    }
}

@media screen and (max-width: 400px) {

    .logo {
        width: 120px;
        height: auto;
    }

    .forms-main {
        width: 300px;
        font-size: 14px;
    }

    .forms-submenu {
        width: 280px;
    }
}