html {
    font-size: 12px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}
header {
    z-index: 3;
    position: relative;
}
ul {
    list-style-type: none;
    padding-left: 0;
}
li {
    margin-bottom: 10px;
}

.inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.inline-list li {
    margin-bottom: 0;
}
h1, h2, h3 {
    margin-bottom: 0 !important;
    margin-top: 0.5em;
}

h1 {
    margin-top: 0.2em;
}
h1, h2 {
    color: #303436;
}

h3 {
    color: #707476;
}
header {
    margin-bottom: 20px;
}
header a {
    color: #707476;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
}
header a:hover {
    text-decoration: underline;
}

.company-info {
    padding-top: 1rem;
}

.owner-statement table {
    width: 100% !important; /* Ensure tables are full width when printing */
    border-collapse: collapse;
    margin: 0;
    font-size: 1em;
    text-align: left;

    table-layout: fixed; /* Prevent columns from expanding */
}

.owner-statement th, .owner-statement td {
    padding: 0.5rem;
}

.owner-statement thead tr {
    background-color: #ffbf00;
    -webkit-print-color-adjust: exact;
    color: #1f1b1c;
    text-align: left;
}

.owner-statement th {
    -webkit-print-color-adjust: exact;
    border-style: solid;
    border-width: 1px;
    border-color: white;
    border-top-color: #000;
}

.owner-statement tr:first-child th {
    border-top-color: #000;
}

.owner-statement th:first-child {
    border-left-color: black !important;
}

.owner-statement th:last-child {
    border-right-color: #000;
}

.owner-statement th:not([colspan]) {
    border-bottom-color: black;
}

.owner-statement th {
    font-size: 1rem;
}

.owner-statement tbody tr {
    border-bottom: 1px solid #1f1b1c;
}

.owner-statement tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.owner-statement tbody tr:last-of-type {
    border-bottom: 1px solid #1f1b1c;
}

.owner-statement tbody tr:hover {
    background-color: #f1f1f1;
}

.owner-statement td {
    border: 1px solid #1f1b1c;
}

.owner-statement h1 {
    color: #ffbf00;
}

.sum {
    padding: 0.5rem;
}

.sub {
    font-size: 0.6em;
    color: #666;
}

.value-type-date, .value-type-money, .value-type-dateCombined {
    text-align: right;
}

.value-type-money {
    width: 7em;
}

.value-type-dateCombined {
    width: 12em;
}

.booking-date {
    font-size: 0.9em;
    color: #666;
}

.field-type-commissionRmAbsolute {
    width: 6.5em;
}

.field-type-commissionOwnerAbsolute {
    width: 6em;
}
.field-type-guestTotalWithoutCleaningNet {
    width: 6em;
}

.flex-container {
    display: flex;
    justify-content: space-between;
}

.flex-left {
    flex: 1;
    text-align: left;
}

.flex-right {
    flex: 1;
    text-align: right;
}

.field-type-platform {
    width: 6em;
}

.field-type-apartmentName {
    width: 6em;
}

.no-wrap {
    white-space: nowrap;
}

.field-type-guestData {
    width: 11em;
}

.field-type-uuid, .field-type-title {
    width: 12em;
}

.field-type-guestTotalWithoutCleaningNet {
    width: 6em;
}

.center {
    text-align: center;
}

.v-center {
    vertical-align: middle;
}

.owner-statement {
    padding-left: 1rem;
    padding-right: 1rem;
    page-break-inside: avoid; /* Add this line */
}

.header-space, .statement-header {
    height: 13rem;
}

.statement-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    -webkit-print-color-adjust: exact;
    z-index: 100;
    page-break-after: avoid;
}

.owner-statement-wrapper {
    position: relative;
    z-index: 1;
}

.sum-of-sums td {
    white-space: nowrap;
    border: 1px solid #1f1b1c;
    padding: 0.5rem;
    border-collapse: collapse;
}

.sum-of-sums {
    border-collapse: collapse;
}

@media print {
    .hide-for-print {
        display: none !important;
    }

    .no-page-break {
        page-break-inside: avoid;
    }

    html, body {
        margin: 0;
        padding: 0;
    }

    @page {
        size: A4 landscape !important;
        margin: 0; /* Remove default page margins */
    }

    .statement-header {
        background-color: transparent;
        -webkit-print-color-adjust: exact;
        height: 13.5rem;
    }

    .owner-statement {
        page-break-inside: avoid;
    }
}

.user-info {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-direction: column;
}

.btn {
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary, .btn-secondary, .btn-danger, btn-info {
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
}
.btn-sm {
    padding: 0.3rem 0.6rem;
}

.btn-secondary:hover {
    background-color: #e6e6e6;
}

.btn-primary:hover {
    background-color: #e6ac00;
}

.btn-secondary {
    background-color: #f3f3f3;
    color: #1f1b1c;
}
.btn-primary {
    background-color: #00c284;
    color: white;
}
.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-primary:hover {
    background-color: #06b363;
}

.btn-info {
    background-color: #0dcaf0;
    color: #000;
}

.logout-link {
    color: #6c757d; /* A less prominent color */
    text-decoration: none;
    font-weight: normal;
}

.logout-link:hover {
    text-decoration: underline;
}
    
.inline-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    align-items: center;
}

.inline-actions .btn {
    cursor: pointer;
}

.mt-1 {
    margin-top: 1rem;
}

.content {
    min-width: 1200px;
    max-width: 1400px;
}

.owner-statement-link {
    color: #ffbf00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.owner-statement-link:hover,
.owner-statement-link:visited,
.owner-statement-link:active {
    color: #ffbf00;
}

.owner-statement-link:hover {
    text-decoration: underline;
}

.statements-grid,
.grid-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 1px;
    border: 1px solid #1f1b1c;
}

.grid-header,
.grid-body,
.grid-footer {
    display: contents;
}

.grid-row {
    display: contents;
}

.grid-cell {
    padding: 0.5rem;
    border: 1px solid #1f1b1c;
    background-color: #fff;
}

.grid-header .grid-cell {
    background-color: #ffbf00;
    font-weight: bold;
}

.grid-body .grid-row:nth-child(even) .grid-cell {
    background-color: #f3f3f3;
}

.value-type-date,
.value-type-money,
.value-type-dateCombined {
    text-align: right;
}

.field-type-uuid {
    grid-column: span 2;
}

.field-type-platform,
.field-type-apartmentName,
.field-type-commissionRmAbsolute,
.field-type-commissionOwnerAbsolute {
    grid-column: span 1;
}

.field-type-guestData,
.field-type-uuid,
.field-type-title {
    grid-column: span 2;
}

.value-type-income {
    grid-column: span 4;
}

.value-type-owner-costs {
    grid-column: span 2;
}

#rm_user_roles > div {
    display: block;
    margin-bottom: 5px; /* Optional: adds a little space between the options */
}

#rm_user_roles label {
    margin-left: 5px; /* Optional: adds space between checkbox and label */
}
