:root {
    font-family: system-ui, sans-serif;
    color: #20322e;
    background: #f5f7f8;
    font-synthesis: none;
    line-height: 1.5;
}
* {
    box-sizing: border-box;
}
fieldset {
    border: 1px solid #b9cbc1;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
}
legend {
    font-weight: 700;
}
body {
    margin: 0;
}
main {
    max-width: 1180px;
    margin: 32px auto;
    padding: 24px;
}
.narrow {
    max-width: 640px;
}
.language-bar {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 8px max(24px, calc((100vw - 1180px) / 2));
    background: #ffffff;
    border-bottom: 1px solid #edf1ee;
}
.language-bar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border-radius: 6px;
    text-decoration: none;
    color: #64756e;
    font-size: 0.8rem;
}
.language-bar a.active,
.language-bar a:hover {
    background: #e6f2eb;
    color: #185c42;
}
.language-bar img,
.country-flag {
    width: 25px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px #20322e12;
}
.profile-page {
    max-width: 1100px;
}
.profile-hero,
.profile-identity,
.profile-summary,
.profile-actions {
    display: flex;
    align-items: center;
}
.profile-hero {
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    background: #eaf3ee;
    border: 1px solid #d9e9df;
    border-radius: 18px;
}
.profile-identity {
    gap: 20px;
    min-width: 0;
}
.profile-avatar {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 20px;
    background: #21694e;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
}
.profile-hero h1 {
    margin: 4px 0;
    font-size: 2rem;
    letter-spacing: -0.03em;
}
.profile-hero .eyebrow {
    margin: 0;
}
.profile-email {
    margin: 4px 0 0;
    color: #586760;
    overflow-wrap: anywhere;
}
.profile-summary {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.profile-intro {
    color: #64756e;
    margin: 24px 0;
}
.profile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.profile-card {
    min-width: 0;
    margin: 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #dfe8e3;
    border-radius: 14px;
    box-shadow: 0 2px 8px #20322e04;
}
.profile-card h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #20322e;
}
.profile-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}
.profile-warning {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.profile-warning svg {
    width: 21px;
    height: 21px;
}
.profile-heading .profile-warning svg {
    width: 26px;
    height: 26px;
}
.account-menu .profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.account-settings.profile-card {
    margin-top: 24px;
}
.account-settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}
.button.page-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.form-actions {
    margin-top: 24px;
}
.declaration {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.declaration input {
    width: auto;
    flex-shrink: 0;
}
.review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}
.review-comment {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.exchange-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid #d9e9df;
    border-radius: 18px;
    background: #eaf3ee;
}
.exchange-hero h1 {
    margin: 4px 0 16px;
    letter-spacing: -0.03em;
}
.exchange-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.exchange-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #586760;
    font-size: 0.85rem;
}
.profile-card > p {
    margin: 0 0 22px;
    font-size: 0.9rem;
}
.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.field-grid > div {
    min-width: 0;
}
.field-wide,
.bank-card {
    grid-column: 1 / -1;
}
.field-grid label {
    margin: 0 0 6px;
    font-size: 0.85rem;
}
.field-grid input,
.field-grid select,
.field-grid textarea {
    margin: 0;
    background: #fbfcfb;
    border-color: #d3dfd8;
    border-radius: 8px;
}
.country-control {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    flex-wrap: wrap;
}
.native-country-select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    clip-path: inset(50%);
}
.country-picker {
    width: 100%;
    min-width: 0;
    position: relative;
}
.country-picker summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #d3dfd8;
    border-radius: 8px;
    background: #fbfcfb;
    cursor: pointer;
    list-style: none;
}
.country-picker summary::-webkit-details-marker {
    display: none;
}
.country-picker summary::after {
    content: "⌄";
    margin-left: auto;
    color: #64756e;
}
.country-picker summary:focus-visible {
    outline: 3px solid #a1ceb8;
    outline-offset: 2px;
}
.country-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 5;
    padding: 12px;
    border: 1px solid #d3dfd8;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 28px #20322e24;
}
.country-choices {
    margin-top: 10px;
    max-height: 230px;
    overflow-y: auto;
}
.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 10px;
    background: #ffffff;
    color: #20322e;
    text-align: left;
}
.country-option img {
    width: 26px;
    height: 19px;
    border-radius: 3px;
}
.country-option[hidden] {
    display: none;
}
.country-option:hover,
.country-option[aria-pressed="true"] {
    color: #185c42;
    background: #e6f2eb;
}
.country-error {
    margin: 0;
    width: 100%;
    font-size: 0.8rem;
    color: #a13838;
}
.country-control select {
    min-width: 0;
}
.country-flag {
    width: 30px;
    height: 22px;
    flex-shrink: 0;
}
.profile-actions {
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 20px 24px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dfe8e3;
}
.profile-actions p {
    margin: 0;
    font-size: 0.85rem;
}
.profile-actions button {
    flex-shrink: 0;
}
.narrow .profile-fields {
    grid-template-columns: 1fr;
}
.app-header {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px max(24px, calc((100vw - 1180px) / 2));
    background: #ffffff;
    border-bottom: 1px solid #e2e8e5;
}
.app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: #20322e;
    text-decoration: none;
    font-weight: 750;
    line-height: 1.25;
}
.highlights-hub-logo {
    display: block;
    width: 260px;
    height: auto;
}
.footer-brand .highlights-hub-logo {
    width: 230px;
}
.main-navigation {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-navigation a,
.profile-link {
    padding: 10px 13px;
    border-radius: 8px;
    white-space: nowrap;
    text-decoration: none;
    color: #586760;
    font-weight: 600;
    font-size: 0.9rem;
}
.main-navigation a:hover,
.profile-link:hover {
    background: #f1f5f2;
    color: #21694e;
}
.main-navigation a.active,
.profile-link.active {
    background: #e6f2eb;
    color: #185c42;
}
.account-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.account-menu form {
    margin: 0;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.eyebrow {
    margin: 0 0 6px;
    color: #28765b;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.muted {
    color: #64756e;
}
.role-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.role-filter {
    padding: 10px 18px;
    border: 1px solid #d3e1da;
    border-radius: 9px;
    color: #21694e;
    background: #ffffff;
    font-weight: 600;
    text-decoration: none;
}
.role-filter:hover,
.role-filter.active {
    background: #21694e;
    color: #ffffff;
    border-color: #21694e;
}
.exchange-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.exchange-list li + li {
    border-top: 1px solid #e2e8e5;
}
.exchange-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 12px;
    color: #20322e;
    text-decoration: none;
    border-radius: 8px;
}
.exchange-link:hover {
    background: #f1f7f3;
}
.exchange-link strong,
.exchange-link span,
.missing-data {
    display: block;
}
.exchange-open {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #21694e;
}
.exchange-open span {
    display: inline;
}
.exchange-period {
    text-align: right;
}
.status-badge {
    display: inline-block;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-badge.complete {
    color: #185c42;
    background: #e6f2eb;
}
.status-badge.warning {
    color: #85530b;
    background: #fff2d5;
}
.status-badge.submitted {
    color: #245786;
    background: #e7f0fa;
}
.status-badge.neutral {
    color: #586760;
    background: #eef2f0;
}
.missing-data {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #64756e;
}
.participant-table td {
    vertical-align: top;
    min-width: 130px;
}
.count-badge,
.role-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: #eef3f0;
    color: #476356;
    font-size: 0.8rem;
    white-space: nowrap;
}
.notice {
    padding: 14px 18px;
    border: 1px solid #b9d7c5;
    border-radius: 10px;
    background: #eaf6ee;
    color: #1c5a40;
}
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
h1 {
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    margin: 0 0 12px;
    letter-spacing: -0.04em;
}
h2 {
    font-size: 1.3rem;
}
.brand {
    color: #28765b;
    font-weight: 700;
}
a {
    color: #21694e;
}
section {
    background: white;
    border: 1px solid #dbe5df;
    padding: 24px;
    margin: 24px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px #20322e04;
}
section h2 {
    margin-top: 0;
}
.inline-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}
.inline-form label {
    flex: 1;
    margin: 0;
}
.inline-form button {
    flex-shrink: 0;
}
label {
    display: block;
    margin: 16px 0;
    font-weight: 600;
}
input,
select,
textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #b9cbc1;
    border-radius: 6px;
    font: inherit;
}
textarea {
    min-height: 100px;
}
button,
.button {
    display: inline-block;
    background: #21694e;
    color: white;
    border: 0;
    border-radius: 6px;
    padding: 12px 18px;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}
button:hover,
.button:hover {
    filter: brightness(0.96);
}
.button-secondary {
    background: #eef3f0;
    color: #21694e;
}
.button-danger {
    background: #fceceb;
    color: #ad3530;
}
.button-quiet {
    background: transparent;
    color: #586760;
    padding: 8px 12px;
    font-size: 0.85rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #87ba9d;
    outline-offset: 3px;
}
.table-container {
    overflow-x: auto;
}
.user-name,
.user-email {
    display: block;
}
.user-name {
    font-weight: 650;
}
.user-email {
    color: #64756e;
    font-size: 0.85rem;
    margin-top: 3px;
}
.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.row-actions .button,
.row-actions button {
    padding: 8px 12px;
    font-size: 0.85rem;
}
.status-active {
    color: #28765b;
    font-size: 0.85rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}
th,
td {
    text-align: left;
    padding: 16px;
    border-bottom: 1px solid #dbe5df;
}
th {
    color: #64756e;
    font-weight: 600;
    font-size: 0.8rem;
}
@media (max-width: 1050px) {
    .app-header {
        flex-wrap: wrap;
        gap: 16px;
    }
    .main-navigation {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
    }
}
dt {
    font-weight: 700;
    margin-top: 20px;
}
dd {
    margin: 6px 0;
    overflow-wrap: anywhere;
}
@media (max-width: 600px) {
    .language-bar {
        padding: 8px 16px;
    }
    .profile-hero,
    .profile-actions {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }
    .profile-summary {
        align-items: flex-start;
    }
    .profile-identity {
        gap: 14px;
    }
    .profile-avatar {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 1.5rem;
    }
    .profile-hero h1 {
        font-size: 1.5rem;
    }
    .profile-fields {
        grid-template-columns: 1fr;
    }
    .profile-card {
        padding: 20px;
    }
    .profile-actions button {
        width: 100%;
    }
    main {
        margin: 16px auto;
        padding: 16px;
    }
    table {
        font-size: 0.85rem;
    }
    td,
    th {
        padding: 8px;
    }
    .app-header {
        padding: 16px;
    }
    .exchange-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
        gap: 16px;
    }
    .account-menu {
        width: 100%;
        justify-content: flex-end;
    }
    .inline-form {
        align-items: stretch;
        flex-direction: column;
    }
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .row-actions {
        flex-wrap: wrap;
    }
    .exchange-link {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .exchange-period {
        text-align: left;
    }
    .participant-table,
    .participant-table tbody {
        display: block;
    }
    .participant-table thead {
        display: none;
    }
    .participant-table tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 18px;
        border: 1px solid #e2e8e5;
        border-radius: 8px;
    }
    .participant-table td {
        min-width: 0;
        overflow-wrap: anywhere;
        border-bottom: none;
        padding: 12px;
    }
    .participant-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        font-size: 0.75rem;
        font-weight: 600;
        color: #64756e;
    }
    .participant-table td:nth-child(3),
    .participant-table td:nth-child(6),
    .participant-table td:nth-child(7) {
        grid-column: 1 / -1;
    }
    section {
        padding: 18px;
    }
}

.list-heading,
.pagination,
.pagination-links,
.cost-actions,
.expense-footer,
.saved-cost,
.saved-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.add-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.add-button > span:first-child {
    font-size: 1.4rem;
    line-height: 1;
}
.pagination {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #dfe8e3;
}
.pagination-links {
    gap: 6px;
}
.pagination-links a {
    padding: 8px 13px;
    background: white;
    border: 1px solid #dfe8e3;
    border-radius: 8px;
    text-decoration: none;
}
.pagination-links .active {
    background: #21694e;
    color: white;
}
.expense-page {
    max-width: 1000px;
}
.expense-page form {
    max-width: none;
}
.expense-page .profile-card {
    margin-bottom: 24px;
}
.cost-item {
    position: relative;
    margin-top: 20px;
    background: #f7faf8;
    border-radius: 12px;
}
.cost-item legend {
    padding-right: 46px;
}
.cost-item .remove-cost {
    position: absolute;
    top: -13px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #efc2c0;
    border-radius: 9px;
    background: #fff1f0;
    color: #b52f2b;
    font-size: 1.6rem;
    line-height: 1;
}
.cost-item .remove-cost:hover {
    background: #fce0de;
}
.list-heading h1 {
    margin: 8px 0;
}
.overview-table-container {
    margin-top: 24px;
    overflow-x: auto;
    border: 1px solid #dfe8e3;
    border-radius: 14px;
    background: white;
    box-shadow: 0 3px 12px #20322e05;
}
.tasks-list {
    margin-top: 32px;
}
.overview-table {
    margin: 0;
    min-width: 720px;
}
.overview-table th {
    background: #eaf1ed;
    color: #486055;
    padding: 16px 20px;
    font-size: 0.8rem;
    font-weight: 700;
}
.overview-table td {
    padding: 19px 20px;
    vertical-align: middle;
    border-bottom-color: #e7eeea;
}
.overview-table tbody tr:nth-child(odd) {
    background: #ffffff;
}
.overview-table tbody tr:nth-child(even) {
    background: #f3f7f5;
}
.overview-table tbody tr:hover {
    background: #e8f3ed;
}
.overview-table tbody tr:last-child td {
    border-bottom: 0;
}
.overview-table a {
    color: #21694e;
    text-decoration: none;
}
.overview-table a:hover {
    text-decoration: underline;
}
.reference-cell,
.amount-cell,
.date-cell {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.reference-cell a,
.table-primary-link {
    font-weight: 700;
}
.table-action {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
}
.table-status {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #d4e5da;
    border-radius: 7px;
    background: #eaf3ee;
    color: #21694e;
    font-size: 0.8rem;
}
.cost-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}
.currency-control {
    display: flex;
    align-items: center;
    gap: 10px;
}
.currency-control select {
    min-width: 0;
}
.foreign-currency-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    padding: 12px 18px;
    border: 1px solid #d9e6de;
    border-radius: 10px;
    background: #edf5f0;
}
.foreign-currency-fields[hidden],
.cost-grid [data-eur-input][hidden],
.cost-grid [data-travel-field][hidden] {
    display: none;
}
.converted-amount {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #d9e6de;
}
.converted-amount output {
    font-weight: 700;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .foreign-currency-fields {
        grid-template-columns: 1fr;
    }
}
.cost-grid input[type="file"] {
    width: 100%;
    min-width: 0;
    background: white;
}
.cost-actions {
    justify-content: flex-start;
    gap: 10px;
}
.cost-actions[hidden],
.remove-cost[hidden] {
    display: none;
}
.expense-footer {
    padding: 24px;
    border-radius: 14px;
    background: #eaf3ee;
    border: 1px solid #d9e9df;
}
.expense-footer output {
    display: block;
    font-size: 2rem;
    font-weight: 750;
    color: #185c42;
}
.saved-cost {
    padding: 18px 0;
    border-bottom: 1px solid #dfe8e3;
    align-items: flex-start;
}
.saved-cost div {
    min-width: 0;
    overflow-wrap: anywhere;
}
.saved-cost p {
    margin: 6px 0;
}
.saved-total {
    padding-top: 24px;
    font-size: 1.3rem;
}
@media (max-width: 640px) {
    .cost-grid {
        grid-template-columns: 1fr;
    }
    .list-heading {
        align-items: flex-start;
    }
    .pagination {
        align-items: flex-start;
    }
    .expense-footer {
        padding: 20px;
    }
}
.uploading {
    overflow: hidden;
}
.upload-progress {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 24px;
    border: 0;
    background: rgba(245, 249, 247, 0.96);
    color: #173d2c;
    overscroll-behavior: contain;
}
.upload-progress[open] {
    display: grid;
    place-items: center;
}
.upload-progress::backdrop {
    background: rgba(15, 35, 25, 0.5);
}
.upload-progress-card {
    text-align: center;
    max-width: 420px;
}
.upload-copy-image {
    position: relative;
    width: 220px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(23, 61, 44, 0.15);
}
.upload-copy-image img {
    display: block;
    width: 100%;
    height: auto;
}
.upload-copy-scan {
    position: absolute;
    inset: 0 0 auto;
    height: 24px;
    background: linear-gradient(transparent, rgba(66, 200, 134, 0.4), transparent);
    animation: upload-scan 2s ease-in-out infinite alternate;
}
.upload-progress-card p {
    margin: 24px 0 12px;
    font-size: 1.25rem;
    font-weight: 600;
}
.upload-progress-dots {
    letter-spacing: 6px;
    animation: upload-pulse 1s ease-in-out infinite alternate;
}
@keyframes upload-scan {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(196px);
    }
}
@keyframes upload-pulse {
    from {
        opacity: 0.3;
    }
    to {
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .upload-copy-scan,
    .upload-progress-dots {
        animation: none;
    }
}
.drive-status {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.drive-status-dot {
    flex: 0 0 12px;
    height: 12px;
    border-radius: 50%;
    background: #a66b12;
}
.drive-status-card[data-status="CONNECTED"] .drive-status-dot {
    background: #16804a;
}
.drive-status-card[data-status="DISCONNECTED"] .drive-status-dot {
    background: #bb3232;
}
.drive-folder-id {
    overflow-wrap: anywhere;
}
.drive-folder-editor summary {
    cursor: pointer;
    font-weight: 600;
    color: #173d2c;
    padding: 8px 0;
}
.drive-folder-editor form {
    margin-top: 20px;
}
.flash-messages {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(680px, calc(100% - 32px));
    z-index: 1000;
    display: grid;
    gap: 10px;
    pointer-events: none;
}
.flash {
    position: relative;
    padding: 18px 54px 18px 20px;
    border: 1px solid;
    border-radius: 12px;
    box-shadow: 0 6px 24px #0002;
    pointer-events: auto;
    overflow-wrap: anywhere;
}
.flash-success {
    background: #e8f6ed;
    border-color: #70b888;
    color: #164c2b;
}
.flash-error {
    background: #ffebeb;
    border-color: #d88383;
    color: #812121;
}
.flash .flash-close {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 4px 10px;
    min-width: 32px;
    font-size: 24px;
    background: transparent;
    color: inherit;
}
.expense-fields {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.expense-fields:disabled {
    color: #777;
}
.expense-fields:disabled .profile-card,
.expense-fields:disabled .expense-footer {
    background: #ececec;
}
.expense-fields:disabled input,
.expense-fields:disabled select,
.expense-fields:disabled textarea,
.expense-fields:disabled button {
    background: #ddd;
    color: #777;
    border-color: #c6c6c6;
    cursor: not-allowed;
    opacity: 1;
}
.expense-fields:disabled .muted,
.expense-fields:disabled label,
.expense-fields:disabled h2 {
    color: #777;
}
.expense-fields:disabled .country-flag {
    filter: grayscale(1);
}
.claim-page {
    max-width: 1200px;
}
.claim-hero {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    margin: 24px 0;
    align-items: center;
}
.claim-hero h1 {
    margin: 6px 0 12px;
    overflow-wrap: anywhere;
}
.claim-hero > div {
    min-width: 0;
}
.claim-amount {
    flex: 0 0 auto;
    text-align: right;
    padding: 24px;
    background: #e4f0e9;
    border-radius: 16px;
}
.claim-amount span,
.claim-amount strong {
    display: block;
}
.claim-amount strong {
    font-size: 2rem;
    color: #21694e;
    margin-top: 6px;
}
.claim-status {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 8px;
    background: #e9eff7;
    color: #31577f;
    font-size: 0.85rem;
    font-weight: 600;
}
.claim-status.status-NEEDS_CHANGES,
.claim-status.status-SIGNATURE_CHANGES {
    background: #fff0dd;
    color: #895518;
}
.claim-status.status-AWAITING_SIGNATURE {
    background: #eee8fa;
    color: #674295;
}
.claim-status.status-PAID,
.claim-status.status-APPROVED {
    background: #e3f3e8;
    color: #22643b;
}
.claim-status.status-REJECTED {
    background: #ffe9e9;
    color: #912c2c;
}
.claim-progress {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    gap: 12px;
}
.claim-progress li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: #ebefed;
    color: #717b75;
    border-radius: 10px;
}
.claim-progress-participant {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.signature-guide-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "download sign" "upload capture";
    gap: 48px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}
.signature-guide-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px;
    text-align: center;
    border-radius: 12px;
    background: #edf6f0;
    min-width: 0;
}
.signature-guide-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #246b50;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}
.signature-guide-steps li:nth-child(1) {
    grid-area: download;
}
.signature-guide-steps li:nth-child(2) {
    grid-area: sign;
}
.signature-guide-steps li:nth-child(3) {
    grid-area: capture;
}
.signature-guide-steps li:nth-child(4) {
    grid-area: upload;
}
.signature-guide-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 1;
    width: 40px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23246b50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h32M23 7l13 13-13 13'/%3E%3C/svg%3E")
        center / contain no-repeat;
}
.signature-guide-steps li:nth-child(1)::after {
    right: -44px;
    top: 50%;
    transform: translateY(-50%);
}
.signature-guide-steps li:nth-child(2)::after {
    bottom: -44px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
}
.signature-guide-steps li:nth-child(3)::after {
    left: -44px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
}
.signature-scan-emphasis {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    background: #fff8e8;
    border: 2px solid #d5a54b;
    border-radius: 10px;
}
.signature-scan-emphasis strong,
.signature-scan-emphasis p {
    color: #6c4810;
}
.signature-guide-steps svg {
    display: block;
    width: 56px;
    height: 56px;
    margin: 10px auto;
    fill: none;
    stroke: #246b50;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.signature-guide-steps strong {
    display: block;
    font-size: 1.1rem;
    overflow-wrap: anywhere;
}
.signature-guide-steps p {
    font-size: 0.95rem;
    margin: 8px 0 0;
    line-height: 1.5;
    color: #52695d;
}
.signature-guide {
    margin-bottom: 24px;
}
.signature-guide-actions {
    display: grid;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
}
.signature-guide .upload-form {
    width: 100%;
    text-align: left;
    margin-top: 24px;
}
.signature-guide .upload-form input[type="file"] {
    width: 100%;
    min-width: 0;
}
.signature-guide .upload-form button {
    width: 100%;
    white-space: normal;
    margin-top: 16px;
}
.signature-guide .upload-form p {
    font-size: 0.85rem;
}
@media (max-width: 700px) {
    .signature-guide-steps {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }
    .signature-guide-steps li:nth-child(n) {
        grid-area: auto;
        padding: 24px 20px;
    }
    .signature-guide-steps li:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: -44px;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }
}
.claim-progress li > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
}
.claim-progress .current {
    background: #dceee4;
    color: #19573d;
    box-shadow: inset 0 0 0 1px #8cbda3;
}
.claim-progress .done {
    background: #edf6f0;
    color: #397656;
}
.claim-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 24px;
    align-items: start;
}
.claim-main,
.claim-sidebar {
    min-width: 0;
}
.claim-main .profile-card,
.claim-sidebar .profile-card {
    margin: 0 0 20px;
}
.claim-sidebar h2 {
    font-size: 1.2rem;
    margin-top: 4px;
}
.claim-sidebar p {
    overflow-wrap: anywhere;
}
.claim-sidebar .button,
.claim-sidebar button {
    width: 100%;
    white-space: normal;
}
.claim-sidebar .review-actions {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}
.claim-documents {
    display: grid;
    gap: 12px;
}
.claim-documents h2 {
    margin-bottom: 0;
}
.claim-correction {
    border-top: 1px solid #dfe8e3;
    padding-top: 16px;
}
.claim-correction summary {
    cursor: pointer;
    color: #895518;
    font-weight: 600;
}
.claim-correction form {
    margin-top: 16px;
}
.claim-cost {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 24px;
    padding: 24px 0;
    border-top: 1px solid #dfe8e3;
    align-items: start;
}
.claim-cost-details {
    min-width: 0;
    overflow-wrap: anywhere;
}
.claim-cost-details p {
    margin: 6px 0 0;
    font-size: 0.9rem;
}
.claim-cost > .receipt-view-link {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
}
.claim-cost:last-child {
    padding-bottom: 0;
}
.claim-next-step {
    border-top: 4px solid #39765b;
}
.claim-next-step.claim-waiting {
    border-top-color: #b78836;
    background: #fffcf5;
}
.claim-email-note {
    padding-top: 16px;
    border-top: 1px solid #e6dfcf;
    font-weight: 600;
    font-size: 0.9rem;
}
.cost-number {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: #ecf2ef;
    border-radius: 8px;
    color: #527363;
    font-weight: 600;
}
.receipt-view-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    margin-top: 8px;
    background: #eef4f0;
    border-radius: 8px;
    text-decoration: none;
}
.cost-amount {
    white-space: nowrap;
}
.claim-main .saved-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.document-viewer {
    max-width: 1440px;
    padding-top: 24px;
}
.viewer-toolbar {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.viewer-toolbar h1 {
    margin: 8px 0 0;
    font-size: 1.4rem;
    overflow-wrap: anywhere;
}
.viewer-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.pdf-frame {
    display: block;
    width: 100%;
    height: calc(100dvh - 240px);
    min-height: 420px;
    border: 1px solid #d4dfd8;
    border-radius: 12px;
    background: #e8ebe9;
}
.requests-table .button {
    padding: 8px 12px;
}
@media (max-width: 850px) {
    .claim-layout {
        grid-template-columns: 1fr;
    }
    .claim-sidebar {
        order: -1;
    }
    .claim-progress li {
        padding: 10px;
        font-size: 0.8rem;
    }
    .claim-hero {
        align-items: flex-start;
    }
    .claim-amount {
        padding: 16px;
    }
    .claim-amount strong {
        font-size: 1.5rem;
    }
}
@media (max-width: 600px) {
    .claim-hero {
        flex-direction: column;
        gap: 20px;
    }
    .claim-amount {
        width: 100%;
        text-align: left;
    }
    .claim-progress {
        gap: 6px;
    }
    .claim-progress li {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 8px;
    }
    .claim-cost {
        gap: 8px 12px;
    }
    .claim-cost .cost-amount {
        font-size: 0.95rem;
    }
    .viewer-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .viewer-actions {
        flex-wrap: wrap;
    }
    .pdf-frame {
        height: 65dvh;
    }
    .requests-table,
    .requests-table tbody {
        display: block;
        min-width: 0;
    }
    .requests-table thead {
        display: none;
    }
    .requests-table tr {
        display: grid;
        gap: 8px;
        padding: 20px;
        border-bottom: 1px solid #dfe8e3;
    }
    .requests-table td {
        padding: 0;
        border: 0;
        overflow-wrap: anywhere;
    }
    .requests-table .amount-cell {
        text-align: left;
    }
}
.site-footer {
    margin-top: auto;
    padding: 28px 24px;
    border-top: 1px solid #dce6df;
    background: #ffffff;
    color: #52675e;
}
body.with-footer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
body.with-footer > main {
    width: 100%;
    margin-bottom: 80px;
}
body.with-footer > .site-footer {
    flex-shrink: 0;
}
.footer-inner {
    max-width: 1180px;
    margin: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px 40px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}
.footer-brand small {
    display: block;
}
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}
.site-footer a {
    color: #21694e;
    text-underline-offset: 4px;
}
.legal-page {
    max-width: 880px;
}
.legal-page section {
    margin: 28px 0;
}
.legal-page address {
    font-style: normal;
}
.legal-page h2 {
    font-size: 1.2rem;
}
.legal-review-note {
    padding: 16px;
    border-left: 3px solid #b98a29;
    background: #fff8e8;
    border-radius: 4px;
}
.home-hero {
    padding: 32px;
    margin-bottom: 28px;
    border: 1px solid #d5e5dc;
    border-radius: 20px;
    background: linear-gradient(120deg, #e6f3eb, #f7fbf8);
}
.home-hero h1 {
    margin: 8px 0 12px;
}
.home-hero p:last-child {
    margin-bottom: 0;
    color: #52675e;
}
.home-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 20px;
}
.home-action {
    padding: 26px;
    border: 1px solid #dce6df;
    border-radius: 16px;
    background: white;
    text-decoration: none;
    color: #20322e;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.home-action:hover {
    border-color: #21694e;
    box-shadow: 0 6px 24px #21694e12;
}
.home-action h2 {
    font-size: 1.15rem;
    margin: 18px 0 10px;
}
.home-action p {
    color: #64756e;
}
.home-action-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e6f2eb;
    color: #21694e;
    font-size: 1.6rem;
}
.home-action-link {
    color: #21694e;
    font-weight: 650;
}
.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
}
.system-grid .profile-card {
    margin: 0;
    overflow-wrap: anywhere;
}
.system-metric {
    display: block;
    font-size: 2.2rem;
    color: #21694e;
}
[data-paginated-list] > [hidden] {
    display: none !important;
}
