/* Global Styles */
body, td, th {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

/* Board View Specific */
body.board {
    margin: 0;
}

/* Login View */
body.login {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: auto;
}

.rm-app-heading {
    margin: 2px 0 6px;
    padding: 0 2px;
}

.rm-app-heading-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.rm-app-heading-main {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rm-app-heading-left {
    display: inline-flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 16px;
    min-width: 0;
}

.rm-app-heading-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.rm-reservation-search-form {
    display: inline-flex;
    align-items: center;
    min-width: 260px;
}

.rm-reservation-search-form input {
    width: 210px;
    height: 30px;
    border: 1px solid #94a3b8;
    border-right: 0;
    border-radius: 5px 0 0 5px;
    padding: 0 8px;
    font: inherit;
    font-size: 13px;
}

.rm-reservation-search-form button {
    height: 30px;
    border: 1px solid #64748b;
    border-radius: 0 5px 5px 0;
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
    color: #1e293b;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.rm-reservation-search-page {
    margin-top: 10px;
    padding: 16px;
    border: 1px solid #d7dbe2;
    border-radius: 8px;
    background: #ffffff;
}

.rm-reservation-search-header h3,
.rm-reservation-search-header p {
    margin: 0 0 8px;
}

.rm-reservation-search-table-wrap {
    overflow-x: auto;
}

.rm-reservation-search-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rm-reservation-search-table th,
.rm-reservation-search-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}

.rm-reservation-search-table th {
    background: #f1f5f9;
    color: #334155;
}

.rm-reservation-search-link {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 5px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.rm-reservation-search-empty {
    color: #64748b;
}

.rm-app-heading-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 800;
    color: #0f172a;
}

.rm-app-heading-subtitle {
    margin-top: 1px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    color: #64748b;
}

.rm-app-heading-version {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.rm-version-update-notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
}

.rm-version-update-notice[hidden] {
    display: none;
}

.rm-version-update-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid #16a34a;
    border-radius: 4px;
    background: #f0fdf4;
    color: #166534;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.rm-version-update-button:hover {
    background: #dcfce7;
}

.rm-version-update-button img {
    width: 13px;
    height: 13px;
}

/* Icon Button Row Container */
.rm-icon-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Icon Button Styling */
.rm-icon-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #8a8a8a;
    border-radius: 4px;
    background: linear-gradient(#fefefe, #e7e7e7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.rm-icon-btn:hover {
    background: linear-gradient(#ffffff, #dcdcdc);
}

.rm-icon-btn img {
    width: 14px;
    height: 14px;
    display: block;
}

.rm-topbar-icon-btn {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 1px solid #8a8a8a;
    border-radius: 4px;
    background: linear-gradient(#fefefe, #e7e7e7);
    text-decoration: none;
    flex: 0 0 auto;
    position: relative;
    line-height: 0;
    padding: 0;
    box-sizing: border-box;
    vertical-align: middle;
}

.rm-topbar-icon-btn:hover {
    background: linear-gradient(#ffffff, #dcdcdc);
}

.rm-current-user {
    max-width: 180px;
    overflow: hidden;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    line-height: 30px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rm-logout-form {
    display: contents;
}

.rm-users-nav-button.is-active,
.rm-audit-nav-button.is-active,
.rm-holidays-nav-button.is-active {
    border-color: #0f766e;
    background: #ccfbf1;
    color: #115e59;
}

.rm-holidays-page {
    display: grid;
    gap: 12px;
    padding: 16px;
    color: #17211d;
}

.rm-holidays-header,
.rm-holidays-section-heading,
.rm-holidays-import-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rm-holidays-header h3,
.rm-holidays-header p,
.rm-holidays-section h4,
.rm-holidays-section p {
    margin: 0;
}

.rm-holidays-header p,
.rm-holidays-section p {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.rm-holidays-year-form,
.rm-holidays-manual-form {
    display: flex;
    align-items: end;
    gap: 8px;
}

.rm-holidays-year-form label,
.rm-holidays-manual-form label {
    display: grid;
    gap: 4px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.rm-holidays-year-form input,
.rm-holidays-manual-form input {
    box-sizing: border-box;
    height: 34px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background: #ffffff;
    padding: 0 9px;
    color: #1f2937;
    font: inherit;
    font-size: 13px;
}

.rm-holidays-section {
    border: 1px solid #d7dbe2;
    border-radius: 6px;
    background: #ffffff;
    padding: 14px;
}

.rm-holidays-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.rm-holidays-count {
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.rm-holidays-table-wrap {
    margin-top: 12px;
    overflow-x: auto;
}

.rm-holidays-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rm-holidays-table th,
.rm-holidays-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 9px;
    text-align: left;
}

.rm-holidays-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    text-transform: uppercase;
}

.rm-holidays-table th:last-child,
.rm-holidays-table td:last-child {
    text-align: right;
}

.rm-holidays-table tr.is-disabled td {
    background: #f8fafc;
    color: #94a3b8;
}

.rm-holidays-empty {
    color: #64748b;
    text-align: center !important;
}

.rm-holidays-manual-form {
    flex-wrap: wrap;
    margin-top: 12px;
}

.rm-holidays-manual-form label:nth-of-type(2) {
    flex: 1 1 220px;
}

.rm-holidays-manual-form label:nth-of-type(2) input {
    width: 100%;
}

.rm-holidays-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background: #f8fafc;
    padding: 0 11px;
    color: #1f2937;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.rm-holidays-button.is-primary {
    border-color: #0f766e;
    background: #0f766e;
    color: #ffffff;
}

.rm-holidays-link-button {
    border: 0;
    background: transparent;
    color: #b91c1c;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.rm-holidays-link-button.is-enable {
    color: #0f766e;
}

.rm-holidays-message {
    border: 1px solid;
    border-radius: 4px;
    padding: 9px 11px;
    font-size: 13px;
    font-weight: 700;
}

.rm-holidays-message.is-success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.rm-holidays-message.is-error {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.rm-holidays-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 6px;
    margin: 12px 0;
}

.rm-holidays-preview-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
}

.rm-holidays-preview-list span {
    display: grid;
    gap: 2px;
    font-size: 12px;
}

@media (max-width: 760px) {
    .rm-holidays-header,
    .rm-holidays-section-heading,
    .rm-holidays-import-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .rm-holidays-columns {
        grid-template-columns: 1fr;
    }

    .rm-holidays-year-form,
    .rm-holidays-manual-form {
        align-items: stretch;
        flex-direction: column;
    }
}

.rm-topbar-icon-btn img {
    width: 19px;
    height: 19px;
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

#rm-refresh-btn.rm-is-refreshing {
    cursor: wait;
    pointer-events: none;
}

#rm-refresh-btn.rm-is-refreshing img {
    animation: rm-refresh-spin 0.75s linear infinite;
}

@keyframes rm-refresh-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.rm-topbar-icon-btn.rm-nav-month-shift img {
    left: 42%;
}

.rm-topbar-icon-btn.rm-nav-month-shift::after {
    content: "";
    position: absolute;
    width: 19px;
    height: 19px;
    top: 50%;
    left: 58%;
    transform: translate(-50%, -50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

.rm-topbar-icon-btn.rm-nav-month-shift-prev::after {
    background-image: url("../gfx/month-prev.svg");
}

.rm-topbar-icon-btn.rm-nav-month-shift-next::after {
    background-image: url("../gfx/month-next.svg");
}

.rm-topbar-icon-btn.rm-nav-five-days-shift img {
    width: 16px;
    height: 16px;
    left: 35%;
}

.rm-topbar-icon-btn.rm-nav-five-days-shift span {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #334155;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.rm-view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rm-view-switch-btn {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #8a8a8a;
    border-radius: 4px;
    background: linear-gradient(#fefefe, #e7e7e7);
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.rm-view-switch-btn:hover {
    background: linear-gradient(#ffffff, #dcdcdc);
}

.rm-view-switch-btn.is-active {
    border-color: #64748b;
    background: linear-gradient(#eef2ff, #dbe4ff);
    color: #0f172a;
}

/* Month Navigation Container */
.rm-month-nav {
    display: inline-flex;
    align-items: center;
}

.rm-month-nav select {
    margin: 0 4px;
}

/* Modern Top Bar */
.rm-topbar {
    display: grid;
    grid-template-columns: minmax(320px, auto) minmax(520px, 560px);
    justify-content: space-between;
    gap: 6px;
    align-items: stretch;
    margin: 3px 0 8px;
}

.rm-topbar-card {
    border: 1px solid #d7dbe2;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
    box-shadow: 0 3px 10px rgba(18, 28, 45, 0.08);
    overflow: visible;
    min-height: 54px;
}

.rm-topbar-card-inner {
    height: 100%;
    padding: 0;
}

.rm-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 54px;
    padding: 0 6px;
}

.rm-calendar-search-form {
    min-width: 0;
}

.rm-topbar-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 54px;
    padding: 0 6px;
    overflow-x: auto;
}

.rm-nav-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    min-height: 40px;
    height: 100%;
}

.rm-nav-select {
    min-width: 122px;
    height: 24px;
    border: 1px solid #8a8a8a;
    border-radius: 4px;
    background: linear-gradient(180deg, #fefefe 0%, #e7e7e7 100%);
    padding: 0 22px 0 7px;
    font: inherit;
    font-size: 13px;
    color: #1f2937;
    line-height: 22px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #4b5563 50%),
        linear-gradient(135deg, #4b5563 50%, transparent 50%),
        linear-gradient(180deg, #fefefe 0%, #e7e7e7 100%);
    background-position:
        calc(100% - 12px) 9px,
        calc(100% - 7px) 9px,
        0 0;
    background-size:
        5px 5px,
        5px 5px,
        100% 100%;
    background-repeat: no-repeat;
}

.rm-nav-select:hover {
    background-image:
        linear-gradient(45deg, transparent 50%, #374151 50%),
        linear-gradient(135deg, #374151 50%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #dcdcdc 100%);
}

.rm-nav-select:focus {
    outline: 1px solid #64748b;
    outline-offset: 0;
}

.rm-nav-date-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rm-calendar-view-select {
    min-width: 118px;
}

.rm-nav-date {
    width: 142px;
    height: 24px;
    border: 1px solid #8a8a8a;
    border-radius: 4px;
    background: linear-gradient(180deg, #fefefe 0%, #e7e7e7 100%);
    padding: 0 6px;
    font: inherit;
    font-size: 13px;
    color: #1f2937;
    line-height: 22px;
    box-sizing: border-box;
}

.rm-nav-date:hover {
    background: linear-gradient(180deg, #ffffff 0%, #dcdcdc 100%);
}

.rm-nav-date:focus {
    outline: 1px solid #64748b;
    outline-offset: 0;
}

.rm-nav-link-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.rm-page-tabs {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
}

.rm-page-tab {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 11px;
    cursor: pointer;
    text-decoration: none;
}

.rm-page-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.rm-page-tab:last-child {
    border-radius: 0 4px 4px 0;
}

.rm-page-tab + .rm-page-tab {
    margin-left: -1px;
}

.rm-page-tab:hover {
    background: #e2e8f0;
}

.rm-page-tab.is-active {
    z-index: 1;
    border-color: #0f766e;
    background: #0f766e;
    color: #ffffff;
}

.rm-tab-panel {
    display: none;
}

.rm-tab-panel.is-active {
    display: block;
}

.rm-audit-page {
    padding: 16px;
    border: 1px solid #d7dbe2;
    border-radius: 6px;
    background: #ffffff;
    color: #17211d;
}

.rm-audit-header h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.rm-audit-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.rm-audit-filters {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(150px, 0.35fr) minmax(140px, 0.25fr) minmax(140px, 0.25fr) auto auto;
    gap: 8px;
    align-items: end;
    margin: 14px 0 10px;
    padding: 10px;
    border: 1px solid #d7dbe2;
    border-radius: 6px;
    background: #f8fafc;
}

.rm-audit-filters label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rm-audit-filters label > span {
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.rm-audit-filters input,
.rm-audit-filters select {
    box-sizing: border-box;
    width: 100%;
    height: 34px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background: #ffffff;
    padding: 0 9px;
    color: #1f2937;
    font: inherit;
    font-size: 13px;
}

.rm-audit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 34px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background: #ffffff;
    padding: 0 12px;
    color: #1f2937;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.rm-audit-button-primary {
    border-color: #0f766e;
    background: #0f766e;
    color: #ffffff;
}

.rm-trash-filters {
    grid-template-columns: minmax(240px, 1fr) auto auto;
}

.rm-trash-detail {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
}

.rm-trash-snapshot {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 12px 0 0;
    border: 1px solid #d7dbe2;
    background: #d7dbe2;
}

.rm-trash-snapshot > div {
    min-width: 0;
    padding: 8px 10px;
    background: #ffffff;
}

.rm-trash-snapshot dt {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.rm-trash-snapshot dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.rm-trash-history {
    margin-top: 12px;
}

.rm-trash-history article {
    margin-top: 8px;
    border-top: 1px solid #d7dbe2;
    padding-top: 8px;
    font-size: 12px;
}

.rm-trash-history article > span {
    display: block;
    color: #64748b;
}

.rm-trash-history ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.rm-audit-result-count {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.rm-audit-table-wrap {
    overflow-x: auto;
    border: 1px solid #d7dbe2;
    border-radius: 4px;
}

.rm-audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.rm-audit-table th,
.rm-audit-table td {
    padding: 8px 9px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.rm-audit-table th {
    background: #f1f5f9;
    color: #334155;
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
}

.rm-audit-table tbody tr:last-child td {
    border-bottom: 0;
}

.rm-audit-table small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 10px;
}

.rm-audit-time,
.rm-audit-table code {
    white-space: nowrap;
}

.rm-audit-operation {
    display: inline-flex;
    border-radius: 4px;
    padding: 3px 6px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 800;
}

.rm-audit-operation-insert,
.rm-audit-operation-login {
    background: #dcfce7;
    color: #166534;
}

.rm-audit-operation-update,
.rm-audit-operation-replace {
    background: #dbeafe;
    color: #1e40af;
}

.rm-audit-operation-delete,
.rm-audit-operation-logout {
    background: #fee2e2;
    color: #991b1b;
}

.rm-audit-details summary {
    color: #0f766e;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.rm-audit-details pre {
    width: min(720px, 70vw);
    margin: 7px 0 0;
    padding: 9px;
    overflow: auto;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #f8fafc;
    color: #17211d;
    font-size: 11px;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.rm-audit-empty {
    padding: 24px !important;
    color: #64748b;
    text-align: center !important;
}

.rm-users-page {
    padding: 16px;
    border: 1px solid #d7dbe2;
    border-radius: 6px;
    background: #ffffff;
    color: #17211d;
}

.rm-users-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.rm-users-header h3,
.rm-users-header p {
    margin: 0 0 4px;
}

.rm-users-header p,
.rm-users-count {
    color: #64748b;
    font-size: 13px;
}

.rm-users-count {
    font-weight: 700;
    white-space: nowrap;
}

.rm-users-message {
    margin-top: 12px;
    padding: 9px 11px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.rm-users-message-success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.rm-users-message-error {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.rm-users-create-form {
    display: flex;
    align-items: end;
    gap: 8px;
    margin: 14px 0;
    padding: 10px;
    border: 1px solid #d7dbe2;
    border-radius: 4px;
    background: #f8fafc;
}

.rm-users-create-form label {
    display: grid;
    flex: 1 1 280px;
    gap: 4px;
    max-width: 420px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.rm-users-create-form input {
    box-sizing: border-box;
    width: 100%;
    height: 34px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background: #ffffff;
    padding: 0 9px;
    color: #1f2937;
    font: inherit;
    font-size: 13px;
}

.rm-users-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background: #ffffff;
    padding: 0 10px;
    color: #1f2937;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.rm-users-button-primary {
    border-color: #0f766e;
    background: #0f766e;
    color: #ffffff;
}

.rm-users-button-danger {
    border-color: #dc2626;
    color: #b91c1c;
}

.rm-users-list {
    border: 1px solid #d7dbe2;
    border-radius: 4px;
    overflow: hidden;
}

.rm-user-entry + .rm-user-entry {
    border-top: 1px solid #d7dbe2;
}

.rm-user-entry > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    background: #f8fafc;
    cursor: pointer;
    list-style: none;
}

.rm-user-entry > summary::-webkit-details-marker {
    display: none;
}

.rm-user-entry > summary::before {
    content: "▸";
    color: #64748b;
    font-size: 14px;
}

.rm-user-entry[open] > summary::before {
    content: "▾";
}

.rm-user-summary-main {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.rm-user-summary-meta {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.rm-user-status,
.rm-user-current,
.rm-user-admin,
.rm-user-password-missing,
.rm-session-status {
    display: inline-flex;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: 800;
}

.rm-user-status.is-active,
.rm-session-status-aktiv {
    background: #dcfce7;
    color: #166534;
}

.rm-user-status.is-disabled,
.rm-session-status-beendet {
    background: #fee2e2;
    color: #991b1b;
}

.rm-user-current,
.rm-session-status-inaktiv {
    background: #e2e8f0;
    color: #334155;
}

.rm-user-admin {
    background: #ccfbf1;
    color: #115e59;
}

.rm-user-password-missing {
    background: #fef3c7;
    color: #92400e;
}

.rm-user-entry-body {
    padding: 10px 12px 12px;
}

.rm-user-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 12px;
}

.rm-user-actions form {
    margin: 0;
}

.rm-user-password-form,
.rm-user-email-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rm-user-password-form input,
.rm-user-email-form input {
    width: 150px;
    height: 32px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 0 8px;
    font: inherit;
}

.rm-user-delete-confirm > summary {
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.rm-user-delete-confirm form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.rm-user-sessions-wrap {
    overflow-x: auto;
    border: 1px solid #d7dbe2;
    border-radius: 4px;
}

.rm-ended-sessions {
    margin-top: 10px;
}

.rm-ended-sessions > summary {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.rm-ended-sessions[open] > summary {
    margin-bottom: 6px;
}

.rm-user-sessions-table {
    width: 100%;
    min-width: 940px;
    border-collapse: collapse;
    font-size: 12px;
}

.rm-user-sessions-table th,
.rm-user-sessions-table td {
    padding: 8px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.rm-user-sessions-table th {
    background: #f1f5f9;
    color: #334155;
    font-size: 10px;
    text-transform: uppercase;
    white-space: nowrap;
}

.rm-user-sessions-table tr:last-child td {
    border-bottom: 0;
}

.rm-user-sessions-table small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 10px;
}

.rm-users-empty {
    padding: 18px !important;
    color: #64748b;
    text-align: center !important;
}

.rm-tab-placeholder-card {
    border: 1px solid #d7dbe2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(18, 28, 45, 0.08);
    padding: 24px;
    margin-bottom: 12px;
}

.rm-tab-placeholder-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #0f172a;
}

.rm-tab-placeholder-card p {
    margin: 0;
    color: #475569;
}

.rm-arrivals-card {
    padding: 16px;
}

.rm-arrivals-range {
    margin: 0 0 10px;
    color: #475569;
    font-size: 13px;
}

.rm-arrivals-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #d7dbe2;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.rm-arrivals-control {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 145px;
}

.rm-arrivals-control span {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rm-arrivals-control select {
    height: 30px;
    border: 1px solid #8a8a8a;
    border-radius: 6px;
    background: linear-gradient(180deg, #fefefe 0%, #e7e7e7 100%);
    padding: 0 8px;
    font: inherit;
    font-size: 13px;
    color: #1f2937;
}

.rm-arrivals-control-actions {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.rm-arrivals-sections {
    display: grid;
    gap: 12px;
}

.rm-arrivals-section {
    border: 1px solid #d7dbe2;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 6px 14px rgba(18, 28, 45, 0.07);
    padding: 10px;
}

.rm-arrivals-section-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f172a;
}

.rm-arrivals-empty {
    margin: 0;
    color: #64748b;
}

.rm-arrivals-table-wrap {
    overflow-x: auto;
}

.rm-arrivals-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid #d7dbe2;
    border-radius: 10px;
    overflow: hidden;
}

.rm-arrivals-table th,
.rm-arrivals-table td {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 7px 8px;
    text-align: left;
    vertical-align: top;
}

.rm-arrivals-table tr th:last-child,
.rm-arrivals-table tr td:last-child {
    border-right: 0;
}

.rm-arrivals-table tbody tr:last-child td {
    border-bottom: 0;
}

.rm-arrivals-table th {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
}

.rm-arrivals-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.rm-arrivals-table tbody tr:hover {
    background: #eef2ff;
}

.rm-services-page {
    display: grid;
    gap: 12px;
}

.rm-services-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 16px;
    border: 1px solid #d7dbe2;
    border-radius: 8px;
    background: #ffffff;
}

.rm-services-header h3,
.rm-services-header p {
    margin: 0;
}

.rm-services-header p {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.rm-services-date-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rm-services-date-form > label {
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.rm-services-date-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rm-services-date-controls input {
    min-height: 34px;
    border: 1px solid #8a8a8a;
    border-radius: 4px;
    padding: 0 8px;
    font: inherit;
}

.rm-services-button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background: #f8fafc;
    color: #1f2937;
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.rm-services-button-primary {
    border-color: #0369a1;
    background: #0369a1;
    color: #ffffff;
}

.rm-services-section {
    border: 1px solid #d7dbe2;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
}

.rm-bakery-order {
    border: 1px solid #86a89a;
    border-radius: 8px;
    background: #f0f7f3;
    padding: 12px;
}

.rm-bakery-order-text {
    display: block;
    width: 100%;
    min-height: 58px;
    resize: vertical;
    box-sizing: border-box;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background: #ffffff;
    color: #17211d;
    padding: 10px;
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
}

.rm-copy-bakery-status {
    display: block;
    min-height: 18px;
    margin-top: 4px;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.rm-private-order-summary {
    margin-top: 7px;
    color: #486057;
    font-size: 12px;
}

.rm-services-heading-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.rm-private-order-overlay[hidden] {
    display: none;
}

.rm-private-order-overlay {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.62);
}

.rm-private-order-dialog {
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}

.rm-private-order-header,
.rm-private-order-footer,
.rm-private-order-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rm-private-order-header {
    border-bottom: 1px solid #d7dbe2;
    padding: 14px 16px;
}

.rm-private-order-header h3,
.rm-private-order-header p,
.rm-private-order-section h4,
.rm-private-order-section p {
    margin: 0;
}

.rm-private-order-header p,
.rm-private-order-section p {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.rm-private-order-close,
.rm-private-row-remove {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #475569;
    cursor: pointer;
}

.rm-private-order-header .rm-private-order-close {
    width: 34px;
    height: 34px;
    font-size: 26px;
    line-height: 1;
}

.rm-private-order-body {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.rm-private-order-section {
    border: 1px solid #d7dbe2;
    border-radius: 6px;
    padding: 12px;
}

.rm-private-bagel-list {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.rm-private-bagel-list:empty::after {
    content: "Keine Positionen erfasst";
    display: block;
    padding: 12px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.rm-private-bagel-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 240px) 34px;
    align-items: center;
    gap: 10px;
}

.rm-private-bagel-row select {
    min-width: 0;
    min-height: 34px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background: #ffffff;
    padding: 0 8px;
    font: inherit;
}

.rm-private-quantity-control {
    display: grid;
    grid-template-columns: 1fr 30px;
    align-items: center;
    gap: 8px;
}

.rm-private-quantity-control strong {
    text-align: right;
}

.rm-private-row-remove {
    width: 34px;
    height: 34px;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    background: #fff7f7;
    color: #991b1b;
    font-size: 21px;
}

.rm-private-order-footer {
    justify-content: flex-end;
    border-top: 1px solid #d7dbe2;
    padding: 12px 16px;
}

.rm-private-order-message {
    margin: 12px 16px 0;
    color: #166534;
    font-size: 13px;
    font-weight: 700;
}

.rm-services-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.rm-services-section-heading h4 {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
}

.rm-services-count {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.rm-services-table-wrap {
    overflow-x: auto;
}

.rm-services-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rm-services-table th,
.rm-services-table td {
    border: 1px solid #e2e8f0;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.rm-services-table th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
}

.rm-services-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.rm-services-quantity {
    width: 80px;
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

.rm-services-empty {
    margin: 0;
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    color: #64748b;
}

.rm-event-type-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rm-event-type-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.rm-event-type-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8em;
    height: 1.8em;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    border-radius: 6px;
    flex-shrink: 0;
}

.rm-event-type-arrow.rm-event-type-arrival {
    color: #166534;
    background: #dcfce7;
}

.rm-event-type-arrow.rm-event-type-departure {
    color: #991b1b;
    background: #fee2e2;
}

.rm-event-type-arrow.rm-event-type-arrival::before {
    content: "↘";
}

.rm-event-type-arrow.rm-event-type-departure::before {
    content: "↗";
}

.rm-event-type-arrival {
    background: #dcfce7;
    color: #4b5563;
    border: 1px solid #86efac;
}

.rm-event-type-departure {
    background: #fee2e2;
    color: #4b5563;
    border: 1px solid #fca5a5;
}

@media print {
    .rm-app-heading,
    .rm-topbar,
    .rm-page-tabs,
    #rm-tab-overview,
    #rm-tab-services,
    .rm-arrivals-controls {
        display: none !important;
    }

    #rm-tab-arrivals {
        display: block !important;
    }

    #rm-tab-arrivals[hidden] {
        display: block !important;
    }

    .rm-arrivals-card,
    .rm-arrivals-section,
    .rm-arrivals-table {
        box-shadow: none !important;
    }

    .rm-arrivals-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .rm-arrivals-table-wrap {
        overflow: visible !important;
    }
}

/* Inline Board (board_inline.php) */
.rm-inline-board {
    margin: 0;
    padding: 4px;
    background-color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

.rm-inline-board-action {
    font-size: larger;
    font-weight: bold;
}

/* Schedule Area */
.rm-schedule-card,
.rm-legend-card {
    border: 1px solid #d7dbe2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(18, 28, 45, 0.08);
    overflow: visible;
    margin-bottom: 12px;
}

.rm-schedule-scroll {
    overflow-x: auto;
}

.rm-schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.rm-schedule-table td {
    border-color: rgba(15, 23, 42, 0.08);
    padding: 0;
    vertical-align: middle;
    font-size: 13px;
    overflow: visible;
}

.rm-room-name {
    min-width: 170px;
    padding: 8px 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    color: #0f172a;
    border-right: 1px solid rgba(148, 163, 184, 0.22);
}

.rm-room-name-header {
    background: linear-gradient(180deg, #f1f5f9 0%, #dde5ee 100%);
    color: #0f172a;
}

.rm-room-name a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
}

.rm-room-name a:hover {
    text-decoration: underline;
}

.rm-room-name strong {
    display: block;
    font-size: 13px;
    line-height: 1.05;
    margin: 0;
    color: #0f172a;
}

.rm-room-name i {
    display: block;
    margin-top: 1px;
    color: #64748b;
    font-style: normal;
    font-size: 11px;
    line-height: 1;
}

.rm-day-header td {
    padding: 0;
}

.rm-day-header-cell {
    min-height: 30px;
    border-radius: 0;
    padding: 6px 4px;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.05;
    font-size: 12px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.rm-day-header-cell-weekday {
    background: linear-gradient(180deg, #f7fafc 0%, #e8eef5 100%);
}

.rm-day-header-cell-weekend {
    background: linear-gradient(180deg, #fff6e8 0%, #f8e3c0 100%);
    color: #7c2d12;
    border-color: rgba(245, 158, 11, 0.35);
}

.rm-day-header-today {
    border-color: rgba(22, 163, 74, 0.8);
    outline: 2px solid rgba(22, 163, 74, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
    color: #14532d;
}

.rm-day-grid-spacer td {
    background: #f8fafc;
}

.rm-free-day {
    background: linear-gradient(180deg, #ecfdf3 0%, #d1fae5 100%);
    border: 1px solid rgba(167, 243, 208, 0.95);
    color: #14532d;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    position: relative;
    cursor: pointer;
}

.rm-free-day.rm-day-with-turnover {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

.rm-free-day-label {
    position: relative;
    z-index: 1;
    display: block;
}

.rm-free-day-selected {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    border-color: rgba(29, 78, 216, 0.95);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 1px rgba(147, 197, 253, 0.65);
}

.rm-room-row-selected > td {
    border-top: 2px solid #0ea5b7;
    border-bottom: 2px solid #0ea5b7;
}

.rm-room-row-selected > td:first-child {
    border-left: 2px solid #0ea5b7;
}

.rm-room-row-selected > td:last-child {
    border-right: 2px solid #0ea5b7;
}

.rm-day-with-turnover {
    position: relative;
}

.rm-turnover-split {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.rm-turnover-split-both {
    background:
        linear-gradient(135deg,
            var(--rm-turnover-depart) 0%,
            var(--rm-turnover-depart) 48%,
            rgba(15, 23, 42, 0.55) 49%,
            rgba(255, 255, 255, 0.9) 50%,
            var(--rm-turnover-arrive) 52%,
            var(--rm-turnover-arrive) 100%);
}

.rm-turnover-split-depart {
    background:
        linear-gradient(135deg,
            var(--rm-turnover-depart) 0%,
            var(--rm-turnover-depart) 48%,
            rgba(15, 23, 42, 0.45) 49%,
            rgba(255, 255, 255, 0.9) 50%,
            transparent 52%,
            transparent 100%);
}

.rm-turnover-split-arrive {
    background:
        linear-gradient(135deg,
            transparent 0%,
            transparent 48%,
            rgba(15, 23, 42, 0.45) 49%,
            rgba(255, 255, 255, 0.9) 50%,
            var(--rm-turnover-arrive) 52%,
            var(--rm-turnover-arrive) 100%);
}

.rm-day-with-turnover .rm-status-content {
    position: relative;
    z-index: 2;
}

/* Other month days styling */
.rm-day-other-month .rm-status-cell {
    opacity: 0.4;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    color: #94a3b8;
    pointer-events: none;
}

.rm-day-other-month .rm-status-content {
    color: #94a3b8;
}

.rm-free-day.rm-day-with-turnover {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.rm-status-cell {
    border: 2px solid #111827;
    border-bottom: 2px solid #111827;
    color: #111827;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    vertical-align: middle;
    position: relative;
    border-radius: 4px;
}

.rm-status-cell.rm-booking-continued-left {
    border-left: 2px dashed rgba(17, 24, 39, 0.55);
    box-shadow: inset 6px 0 0 rgba(255, 255, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rm-status-cell.rm-booking-continued-right {
    border-right: 2px dashed rgba(17, 24, 39, 0.55);
    box-shadow: inset -6px 0 0 rgba(255, 255, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rm-status-cell.rm-booking-continued-left.rm-booking-continued-right {
    box-shadow: inset 6px 0 0 rgba(255, 255, 255, 0.35), inset -6px 0 0 rgba(255, 255, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rm-status-content {
    min-height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    box-sizing: border-box;
}

.rm-status-line {
    width: 100%;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-status-line-primary {
    font-weight: 700;
}

.rm-status-line-secondary {
    min-height: 11px;
    font-size: 10px;
    opacity: 0.85;
}

.rm-status-line-tertiary {
    min-height: 11px;
    font-size: 10px;
    opacity: 0.72;
}

.rm-status-booking {
    background: linear-gradient(180deg, #fef2f2 0%, #fecaca 100%);
    color: #7f1d1d;
}

.rm-status-request {
    background: linear-gradient(180deg, #fff7ed 0%, #fdba74 100%);
    color: #9a3412;
}

.rm-status-partial {
    background: linear-gradient(180deg, #fef3c7 0%, #fcd34d 100%);
    color: #854d0e;
}

.rm-status-paid {
    background: linear-gradient(180deg, #dbeafe 0%, #60a5fa 100%);
    color: #1e3a8a;
}

.rm-status-invoice {
    background: linear-gradient(180deg, #1f766e 0%, #155e75 100%);
    color: #ffffff;
}

.rm-status-cleaning {
    background: linear-gradient(180deg, #fff200 0%, #ffd400 100%);
    color: #4a3b00;
}

.rm-status-closed {
    background: linear-gradient(180deg, #2b2b2b 0%, #000000 100%);
    color: #ffffff;
}

.rm-status-btn {
    border: 1px solid rgba(15, 23, 42, 0.25);
    border-radius: 6px;
    padding: 4px 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.rm-status-btn-active {
    outline: 2px solid #111827;
}

.rm-status-btn-booking {
    background: linear-gradient(180deg, #fef2f2 0%, #fecaca 100%);
    color: #7f1d1d;
}

.rm-status-btn-request {
    background: linear-gradient(180deg, #fff7ed 0%, #fdba74 100%);
    color: #9a3412;
}

.rm-status-btn-partial {
    background: linear-gradient(180deg, #fef3c7 0%, #fcd34d 100%);
    color: #854d0e;
}

.rm-status-btn-paid {
    background: linear-gradient(180deg, #dbeafe 0%, #60a5fa 100%);
    color: #1e3a8a;
}

.rm-status-btn-invoice {
    background: linear-gradient(180deg, #1f766e 0%, #155e75 100%);
    color: #ffffff;
}

.rm-status-btn-cleaning {
    background: linear-gradient(180deg, #fff200 0%, #ffd400 100%);
    color: #4a3b00;
}

.rm-status-btn-closed {
    background: linear-gradient(180deg, #2b2b2b 0%, #000000 100%);
    color: #ffffff;
}

.rm-day-header-repeat .rm-room-name {
    padding-top: 6px;
    padding-bottom: 6px;
}

.rm-legend-header {
    padding: 4px 10px 2px;
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
}

.rm-legend-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 10px;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.rm-legend-toggle::-webkit-details-marker {
    display: none;
}

.rm-legend-toggle::before {
    content: "▸";
    font-size: 12px;
}

.rm-legend-collapsible[open] .rm-legend-toggle::before {
    content: "▾";
}

.rm-legend-toggle-hide {
    display: none;
}

.rm-legend-collapsible[open] .rm-legend-toggle-show {
    display: none;
}

.rm-legend-collapsible[open] .rm-legend-toggle-hide {
    display: inline;
}

.rm-legend-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    padding: 3px 10px;
}

.rm-legend-item {
    border: 1px solid #e3e8f0;
    border-radius: 4px;
    padding: 3px;
    background: #f8fafc;
    text-align: center;
    font-weight: 600;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.rm-legend-text {
    padding: 0 10px 2px;
    font-size: 9px;
    line-height: 1.2;
    color: #475569;
}

.rm-additional-services-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 14px;
    padding: 3px 10px 7px;
    color: #475569;
    font-size: 10px;
    font-weight: 600;
}

.rm-additional-services-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rm-additional-services-legend img {
    width: 18px;
    height: 18px;
    color: #0f172a;
}

.rm-arrival-additional-services {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.rm-arrival-additional-services > span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.rm-arrival-additional-services img {
    width: 20px;
    height: 20px;
}

.rm-arrival-additional-services strong {
    font-size: 11px;
}

.rm-schema-page {
    width: min(920px, calc(100% - 32px));
    margin: 28px auto;
    color: #17211d;
}

.rm-schema-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 18px;
}

.rm-schema-eyebrow {
    color: #0369a1;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.rm-schema-header h1 {
    margin: 5px 0 7px;
    font-size: 28px;
    letter-spacing: 0;
}

.rm-schema-header p {
    max-width: 680px;
    margin: 0;
    color: #52606d;
    line-height: 1.5;
}

.rm-schema-alert {
    display: grid;
    gap: 3px;
    margin-top: 18px;
    border: 1px solid;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 13px;
}

.rm-schema-alert-success {
    border-color: #86a89a;
    background: #eef7f1;
    color: #14532d;
}

.rm-schema-alert-error {
    border-color: #fca5a5;
    background: #fff1f2;
    color: #991b1b;
}

.rm-schema-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 24px;
    border-block: 1px solid #d7dbe2;
}

.rm-schema-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 82px;
    padding: 12px 14px;
}

.rm-schema-step + .rm-schema-step {
    border-left: 1px solid #d7dbe2;
}

.rm-schema-step-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    color: #64748b;
    font-weight: 800;
}

.rm-schema-step div {
    display: grid;
    gap: 3px;
}

.rm-schema-step small {
    color: #64748b;
    line-height: 1.3;
}

.rm-schema-step-complete .rm-schema-step-marker {
    border-color: #15803d;
    background: #15803d;
    color: #ffffff;
}

.rm-schema-step-active .rm-schema-step-marker {
    border-color: #0284c7;
    color: #0369a1;
    animation: rm-schema-pulse 1.2s ease-in-out infinite;
}

.rm-schema-step-error .rm-schema-step-marker {
    border-color: #dc2626;
    background: #dc2626;
    color: #ffffff;
}

.rm-schema-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 20px;
    background: #d7dbe2;
}

.rm-schema-summary > div {
    display: grid;
    gap: 4px;
    min-height: 66px;
    background: #f8fafc;
    padding: 12px 14px;
}

.rm-schema-summary span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.rm-schema-summary strong {
    font-size: 16px;
}

.rm-schema-log {
    margin-top: 18px;
    border-top: 1px solid #d7dbe2;
    border-bottom: 1px solid #d7dbe2;
    padding: 10px 0;
}

.rm-schema-log summary {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.rm-schema-log ol {
    margin: 10px 0 0;
    padding-left: 24px;
    color: #475569;
    font-family: Consolas, monospace;
    font-size: 12px;
    line-height: 1.55;
}

.rm-schema-log-error {
    margin: 8px 0 0;
    color: #991b1b;
    font-size: 12px;
    font-weight: 700;
}

.rm-schema-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.rm-schema-auto-status {
    color: #52606d;
    font-size: 12px;
}

@keyframes rm-schema-pulse {
    50% { box-shadow: 0 0 0 5px rgba(2, 132, 199, 0.14); }
}

@media (max-width: 720px) {
    .rm-schema-progress {
        grid-template-columns: 1fr;
    }

    .rm-schema-step + .rm-schema-step {
        border-left: 0;
        border-top: 1px solid #d7dbe2;
    }

    .rm-schema-summary {
        grid-template-columns: 1fr;
    }
}

.rm-legend-card {
    border: 0;
    box-shadow: none;
    background: transparent;
}

.rm-schedule-card {
    padding: 0;
}

.rm-legend-free { background: linear-gradient(180deg, #ecfdf3 0%, #d1fae5 100%); color: #14532d; }
.rm-legend-booking { background: linear-gradient(180deg, #fef2f2 0%, #fecaca 100%); color: #7f1d1d; }
.rm-legend-request { background: linear-gradient(180deg, #fff7ed 0%, #fdba74 100%); color: #9a3412; }
.rm-legend-partial { background: linear-gradient(180deg, #fef3c7 0%, #fcd34d 100%); color: #854d0e; }
.rm-legend-paid { background: linear-gradient(180deg, #dbeafe 0%, #60a5fa 100%); color: #1e3a8a; }
.rm-legend-invoice { background: linear-gradient(180deg, #1f766e 0%, #155e75 100%); color: #ffffff; border-color: rgba(21, 94, 117, 0.6); }
.rm-legend-cleaning { background: linear-gradient(180deg, #fff200 0%, #ffd400 100%); color: #4a3b00; }
.rm-legend-closed { background: linear-gradient(180deg, #2b2b2b 0%, #000000 100%); color: #ffffff; border-color: rgba(43, 43, 43, 0.6); }

.rm-board-panel {
    padding: 20px;
    min-height: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.rm-board-title {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.1;
}

.rm-board-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.rm-board-booking-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rm-board-summary-item {
    border: 1px solid #d7dbe2;
    border-radius: 10px;
    padding: 10px 12px;
    background: #ffffff;
}

.rm-board-summary-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.rm-board-summary-value {
    font-size: 15px;
    color: #0f172a;
}

.rm-board-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rm-board-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rm-board-section-label,
.rm-board-field-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.rm-board-status-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rm-board-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rm-board-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rm-board-input {
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    color: #0f172a;
    box-sizing: border-box;
}

.rm-board-input:focus {
    outline: 2px solid rgba(21, 94, 117, 0.25);
    border-color: #155e75;
}

.rm-board-services-section {
    margin-top: 4px;
}

.rm-board-services-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.rm-board-service-field {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    transition: border-color 0.15s ease, background 0.15s ease;
    user-select: none;
    flex: 1;
    min-width: 120px;
}

.rm-board-service-field:hover {
    border-color: #155e75;
    background: #f0fdf8;
}

.rm-board-service-field:has(.rm-board-service-check:checked) {
    border-color: #155e75;
    background: #ecfdf5;
}

.rm-board-service-check {
    width: 18px;
    height: 18px;
    accent-color: #155e75;
    cursor: pointer;
    flex-shrink: 0;
}

.rm-board-service-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

/* Gäste-Verwaltung Styles */
.rm-board-guests-section {
    margin-top: 4px;
}

.rm-board-guests-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.rm-guest-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: #e0f2fe;
    border: 1px solid #0ea5e9;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #0c4a6e;
    white-space: nowrap;
}

.rm-guest-badge-empty {
    display: inline-block;
    padding: 6px 12px;
    color: #94a3b8;
    font-size: 12px;
    font-style: italic;
}

.rm-board-guests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rm-board-guest-input {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rm-board-guest-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.rm-board-guest-input input {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}

.rm-board-guest-input input:focus {
    outline: none;
    border-color: #0e7490;
    box-shadow: 0 0 0 2px rgba(14, 116, 144, 0.1);
}

/* Service-Buttons für Details-Dialog */
.rm-board-services-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rm-service-btn {
    flex: 1;
    min-width: 140px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1.5px solid #0ea5e9;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0c4a6e;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.rm-service-btn:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #cffafe 100%);
    border-color: #0284c7;
    box-shadow: 0 2px 6px rgba(14, 116, 144, 0.1);
}

.rm-service-btn:active {
    transform: scale(0.98);
}

.rm-board-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rm-board-btn {
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 7px 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.rm-board-btn-secondary {
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
    color: #0f172a;
}

.rm-board-btn-danger {
    background: linear-gradient(180deg, #fee2e2 0%, #fca5a5 100%);
    border-color: #f87171;
    color: #7f1d1d;
}

.rm-board-note {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 768px) {
    .rm-trash-snapshot {
        grid-template-columns: 1fr;
    }

    .rm-app-heading-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .rm-app-heading-actions {
        width: 100%;
    }

    .rm-app-heading-left {
        align-items: flex-start;
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .rm-reservation-search-form {
        width: 100%;
        min-width: 0;
    }

    .rm-reservation-search-form input {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
    }

    .rm-users-create-form {
        align-items: stretch;
        flex-direction: column;
    }

    .rm-users-create-form label {
        flex-basis: auto;
        max-width: none;
    }

    .rm-user-password-form,
    .rm-user-email-form {
        flex-wrap: wrap;
    }

    .rm-users-create-form .rm-users-button {
        width: 100%;
    }

    .rm-user-entry > summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .rm-user-summary-meta {
        grid-column: 2;
    }

    .rm-page-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex: 1 1 auto;
        width: 100%;
    }

    .rm-page-tab {
        justify-content: center;
        min-width: 0;
        text-align: center;
        line-height: 1.15;
    }

    .rm-topbar {
        grid-template-columns: 1fr;
    }

    .rm-audit-filters {
        grid-template-columns: 1fr 1fr;
    }

    .rm-audit-search-field {
        grid-column: 1 / -1;
    }

    .rm-services-header {
        align-items: stretch;
        flex-direction: column;
    }

    .rm-services-date-controls {
        flex-wrap: wrap;
    }

    .rm-private-order-overlay {
        align-items: stretch;
        padding: 8px;
    }

    .rm-private-order-dialog {
        max-height: calc(100vh - 16px);
    }

    .rm-private-order-section-heading,
    .rm-private-bagel-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .rm-private-order-section-heading {
        flex-direction: column;
    }

    .rm-private-bagel-row {
        position: relative;
        padding-right: 42px;
    }

    .rm-private-row-remove {
        position: absolute;
        top: 0;
        right: 0;
    }

    .rm-board-panel {
        padding: 16px;
    }

    .rm-board-summary,
    .rm-board-field-grid {
        grid-template-columns: 1fr;
    }
}

/* Schedule Header with Room Filters */
.rm-schedule-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.rm-schedule-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
}

.rm-schedule-controls a {
    color: #155e75;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.rm-schedule-controls a:hover {
    background: #cffafe;
}

.rm-schedule-controls a:active {
    background: #06b6d4;
    color: #ffffff;
}
