/*
oma css
 */

/* ---------------------------------------------------------------------------------------------------
   global font: overrides the font of every PrimeFaces theme (user-selectable, web.xml primefaces.THEME).
   Prefixed with "html body" so it wins over the theme's .ui-widget rules regardless of load order.
   No "*" selector: icon fonts (.pi, .fa) must keep their own font-family.
   --------------------------------------------------------------------------------------------------- */
:root {
    --oma-font-family: Roboto, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    --font-family: var(--oma-font-family);
}
html body,
html body .ui-widget,
html body .ui-widget .ui-widget,
html body .ui-widget input,
html body .ui-widget select,
html body .ui-widget textarea,
html body .ui-widget button,
html body input,
html body select,
html body textarea,
html body button {
    font-family: var(--oma-font-family);
}

body {
    font-size: 12pt;
    line-height: 1.1em;
}

.ui-oma .helper {}

/* ---------------------------------------------------------------------------------------------------
   login page (web/login.xhtml): blue top bar, centred white card, logos and links below
   --------------------------------------------------------------------------------------------------- */
body.ui-oma.loginPage {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ececec;
    color: #1f2a44;
    line-height: 1.4;
}
.loginPage .oma-login-topbar {
    background: #3f51b5;
    padding: 1.1rem 2rem;
}
.loginPage .oma-login-appname {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
}
.loginPage .oma-login-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}
.loginPage .oma-login-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border: 1px solid #d5d9e3;
    border-radius: 10px;
    padding: 2rem 2rem 2.25rem 2rem;
}
.loginPage .oma-login-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2a44;
}
.loginPage .oma-login-field {
    margin-bottom: 1.25rem;
}
.loginPage .oma-login-field > label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 600;
    color: #1f2a44;
}
/* input fields (also the password field incl. eye icon) over the full card width */
body.loginPage .oma-login-field .ui-inputfield,
body.loginPage .oma-login-field .ui-password {
    box-sizing: border-box;
    width: 100%;
}
body.loginPage .oma-login-field .ui-inputfield {
    height: 2.75rem;
    padding: 0 .85rem;
    background: #ffffff;
    border: 1px solid #c9cedb;
    border-radius: 5px;
    box-shadow: none;
    font-size: 1rem;
    color: #1f2a44;
}
body.loginPage .oma-login-field .ui-password .ui-inputfield {
    padding-right: 2.75rem;
}
body.loginPage .oma-login-field .ui-inputfield:focus {
    border-color: #3f51b5;
    box-shadow: 0 0 0 2px #3f51b533;
    outline: 0 none;
}
body.loginPage .oma-login-field .ui-password .ui-password-icon {
    color: #3f51b5;
    right: .9rem;
}
body.loginPage .ui-button.oma-login-button {
    width: 100%;
    margin-top: .5rem;
    height: 2.75rem;
    background: #3f51b5;
    border: 1px solid #3f51b5;
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}
body.loginPage .ui-button.oma-login-button:hover,
body.loginPage .ui-button.oma-login-button:focus {
    background: #32418f;
    border-color: #32418f;
}
.loginPage .oma-login-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.25rem;
}
.loginPage .oma-login-logo {
    display: block;
    height: 2.75rem;
    width: auto;
}
.loginPage .oma-login-links {
    margin-top: 1.75rem;
    color: #5b6275;
    font-size: .95rem;
}
.loginPage .oma-login-links a {
    color: #3f51b5;
    text-decoration: underline;
}
.loginPage .oma-login-sep {
    margin: 0 .6rem;
}
/* blockUI while logging in: covers the card only */
.ui-oma.loginPage #loginBlock {
    border-radius: 10px;
}

.ui-oma .ui-layout-center form{
    margin: .8em 0;
}

.ui-oma #sitetitle {
    display: block;
    border: none;
    background: none;
}
.ui-oma #sitetitle #sitetitle_header {
    display: inline-block;
}
.ui-oma #sitetitle #sitetitle_header.ui-helper-clearfix:after {
    display: none;
}
.ui-oma #sitetitle #sitetitle_content {
    display: inline-block;
}
/* overrides */
.ui-oma .ui-menu {
    padding: 0;
}
.ui-oma .ui-menu .ui-menu-parent .ui-menu-child {
    padding: 0;
}
.ui-oma .ui-menu .ui-menuitem-link {
    padding: .6em;
    width: 89%;
}
.ui-oma .ui-layout-center .ui-layout-west,
.ui-oma #mainMenu {
    border: none;
    background: #ececec;
}
.ui-oma #mainMenu .buttonlogout,
.ui-oma .ui-menu .ui-state-hover {
    background: #cb842e;
    color: #ffffff;
}
.ui-oma #mainMenu .submenuheader1 h3 {
    padding-left: .3em;
    font-size: .9em;
}
.ui-oma #mainMenu .submenuheader2 h3{
    padding-left: .5em;
    font-size: .8em;
}
.ui-oma #mainMenu .buttonlogout {
    border: 1px solid #cdbeb9;
}
.ui-oma .ui-menu .buttonlogout .ui-icon {
    color: #ffffff;
    margin-right: .5em;
}
/* ---------------------------------------------------------------------------------------------------
   menu header (template-oma.xhtml .site-header with modules/omamenu.xhtml): the whole bar in the button
   colour (#3f51b5, primary colour of the material-compact-indigo themes), the buttons on it as white icons without own background
   --------------------------------------------------------------------------------------------------- */
html body .site-header {
    background: #3f51b5;
    border-bottom: 0 none;
}
html body .site-header #mainMenuForm,
html body .site-header #mainMenuForm > .card,
html body .site-header #mainMenuForm > .card > .ui-g {
    background: #00000000;
    border: 0 none;
    box-shadow: none;
}
html body .site-header #mainMenuForm > .card > .ui-g .ui-button {
    background: #00000000;
    border-color: #00000000;
    color: #ffffff;
    box-shadow: none;
}
html body .site-header #mainMenuForm > .card > .ui-g .ui-button .ui-icon {
    color: #ffffff;
}
html body .site-header #mainMenuForm > .card > .ui-g .ui-button:hover,
html body .site-header #mainMenuForm > .card > .ui-g .ui-button.ui-state-hover,
html body .site-header #mainMenuForm > .card > .ui-g .ui-button:focus {
    background: #ffffff26;
    border-color: #00000000;
    box-shadow: none;
}

.ui-oma [class*="-footer"].ui-widget-header {
    background: none;
}
.ui-oma #serviceForm\:serviceTable\:nameColumn {
    width: 25%;
}
.ui-oma #serviceForm\:serviceTable\:dataColumn {
    width: 75%;
}
.ui-oma .availRow tbody td,
.ui-oma .priceRow tbody td,
.ui-oma .conditionRow tbody td{
    border-style: none none dashed none;
    border-bottom-color: #e0cfc2;
    height: 50px;
}
.ui-oma .vacancyRow tbody td{
    border: none;
    height: 50px;
}
.ui-button.ui-widget.ui-state-default.ui-corner-all.ui-button-text-only.tableButton {
    display: block;
    margin: 10px;
}

.ui-oma.title {
    width: 33%;
}
.ui-oma.value {
    width: 33%;
}

.product-badge,
.mail-badge,
.task-badge
{
    border-radius:2px;
    padding:.25em .5rem;
    text-transform:uppercase;
    font-weight:700;
    font-size:12px;
    letter-spacing:.3px
}

.product-badge.status-STARTED,
.product-badge.status-RUNNING,
.product-badge.status-OFFERED,
.product-badge.status-ACCEPTED,
.product-badge.status-SYNCHRONIZED,
.product-badge.status-REVIEWED,
.mail-badge.status-RECEIVED,
.task-badge.status-PLANNED,
.task-badge.status-NEW
{
    background:#c8e6c9;
    color:#256029
}
.product-badge.status-CANCELLED,
.product-badge.status-DECLINED,
.product-badge.status-CANCELED,
.product-badge.status-DEADLINE_PASSED,
.product-badge.status-OFFER_REQUEST_CANCELED,
.mail-badge.status-ERROR,
.mail-badge.status-BOUNCED,
.task-badge.status-OVERDUE,
.task-badge.status-ERROR
{
    background:#ffcdd2;
    color:#c63737
}
.product-badge.status-NEW,
.product-badge.status-FINISHED,
.mail-badge.status-NEW,
.mail-badge.status-SENT,
.mail-badge.status-DELAYED,
.product-badge.status-REQUESTED_OFFER,
.product-badge.status-TO_SYNCHRONIZE,
.task-badge.status-SOON
{
    background:#feedaf;
    color:#8a5340
}
.ui-tabs.ui-tabs-top > .ui-tabs-nav li.ui-tabs-header.ui-state-selected,
.ui-tabs.ui-tabs-top > .ui-tabs-nav li.ui-tabs-header.ui-state-active
{
    font-weight: bold;
    background-color: #3f51b533;
}

.ui-tabs .ui-tabs-nav li.ui-tabs-header,
.ui-tabs.ui-tabs-top > .ui-tabs-nav li.ui-tabs-header {
    padding: 10px 20px;
    background-color: #3f51b51a;
    cursor: pointer;

    /* Wichtig für die Aktenreiter-Form: */
    border: 1px solid #ccc;
    /* Oben links und oben rechts abgerundet, unten flach (0) */
    border-radius: 8px 8px 0 0;

    transition: background-color 0.2s;
}
.ui-g {
    background-color: #ececec;
}
body .ui-datatable .ui-datatable-data > tr > td {
    padding: .5rem;
}
body .ui-datatable .ui-datatable-data > tr.ui-state-hover {
    background-color: #0000001a;
}
.ui-dashboard-panel,
body .ui-panel .ui-panel-titlebar,
body .ui-panel .ui-panel-content,
body .ui-panel .ui-panel-footer {
    background-color: #ececec;
}
body .ui-inputfield {
    padding: 0.25rem;
}
body .ui-datatable thead th .ui-column-title {
    font-size: 0.85rem;
}
body .ui-widget {
    font-size: 0.85rem;
}
body .ui-panel .ui-panel-title {
    font-size: 1rem;
}
.ui-widget-content {
    padding-top: 0 !important;
}
.ui-widget-header {
    padding-bottom: 0 !important;
}

/* gleich breite Aktions-Buttons (z.B. Spalte "Aktion" in der Hoteltabelle) */
.oma-action-button {
    width: 12rem;
}

/* ---------------------------------------------------------------------------------------------------
   hotel states in the overview tab (offermanager/edit.xhtml: hotelStatePanel = filter for hotelTableView)
   as chips in one row, and the coloured dot in front of the state in hotelTableView (.oma-state-dot).
   Colour per state family via custom properties (same families as .product-badge):
   yellow = NEW / REQUESTED_OFFER / TO_SYNCHRONIZE (default), green = OFFERED / ACCEPTED / SYNCHRONIZED / REVIEWED,
   red = DECLINED / CANCELED / DEADLINE_PASSED / OFFER_REQUEST_CANCELED.
   --------------------------------------------------------------------------------------------------- */
.oma-state-chip,
.oma-state-dot {
    --oma-state-bg: #fdf6dc;
    --oma-state-border: #f0dc9a;
    --oma-state-color: #8a5340;
    --oma-state-dot: #e0a400;
}
.oma-state-chip.status-OFFERED,
.oma-state-chip.status-ACCEPTED,
.oma-state-dot.status-OFFERED,
.oma-state-chip.status-SYNCHRONIZED,
.oma-state-chip.status-REVIEWED,
.oma-state-dot.status-ACCEPTED,
.oma-state-dot.status-SYNCHRONIZED,
.oma-state-dot.status-REVIEWED {
    --oma-state-bg: #e6f6ea;
    --oma-state-border: #b9e2c4;
    --oma-state-color: #256029;
    --oma-state-dot: #2e9e4f;
}
.oma-state-chip.status-DECLINED,
.oma-state-chip.status-CANCELED,
.oma-state-chip.status-DEADLINE_PASSED,
.oma-state-dot.status-DECLINED,
.oma-state-dot.status-CANCELED,
.oma-state-chip.status-OFFER_REQUEST_CANCELED,
.oma-state-dot.status-DEADLINE_PASSED,
.oma-state-dot.status-OFFER_REQUEST_CANCELED {
    --oma-state-bg: #fdecee;
    --oma-state-border: #f5c2c8;
    --oma-state-color: #a3222d;
    --oma-state-dot: #c62f3b;
}

.oma-state-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: .25rem 0 1rem 0;
}
html body a.oma-state-chip,
html body a.oma-state-chip:hover {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .9rem;
    border: 1px solid var(--oma-state-border);
    border-radius: 6px;
    background: var(--oma-state-bg);
    color: var(--oma-state-color);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s, border-color .15s;
}
html body a.oma-state-chip:hover {
    filter: brightness(.97);
}
/* state without hotels: neutral */
html body a.oma-state-chip.oma-state-chip-empty,
html body a.oma-state-chip.oma-state-chip-empty:hover {
    background: #ffffff;
    border-color: #d5d9e6;
    color: #2b3445;
}
/* selected filter: main colour */
html body a.oma-state-chip.oma-state-chip-active,
html body a.oma-state-chip.oma-state-chip-active:hover {
    background: #e3e7fb;
    border-color: #3f51b5;
    color: #3f51b5;
    font-weight: 700;
    filter: none;
}
html body a.oma-state-chip .oma-state-chip-count {
    font-weight: inherit;
}

/* dot in front of the state in hotelTableView */
.oma-state-dot {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.oma-state-dot::before {
    content: "";
    flex: 0 0 auto;
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: var(--oma-state-dot);
}

/* Vertical tabView shown as a plain list: grey background, darker selected entry (reports/edit.xhtml).
   Hover/selection as translucent greys on top of #ececec. */
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-nav {
    width: 20%;
    right: 0;
    background: #ececec;
    padding: .25rem 0;
    align-self: flex-start;
}
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-nav:before {
    display: none;
}
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-nav li.ui-tabs-header {
    background: #00000000;
    border: 0 none;
    margin: 0;
    padding: .6rem 1rem;
}
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-nav li.ui-tabs-header a {
    color: inherit;
    font-weight: normal;
    line-height: 1.3;
}
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-nav li.ui-tabs-header.ui-state-hover {
    background: #00000014;
}
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-nav li.ui-tabs-header.ui-state-active {
    background: #00000029;
}
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-nav li.ui-tabs-header.ui-state-active a {
    color: inherit;
    font-weight: 600;
}
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-panels {
    width: 80%;
    border: 0 none;
    padding: 0;
    margin: 0;
}
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-panels > .ui-tabs-panel {
    padding: 0;
}
body .ui-tabs.ui-tabs-left.oma-side-list,
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-nav,
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-nav li.ui-tabs-header,
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-nav li.ui-tabs-header a,
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-panels {
    border-radius: 10px;
}
/* list stays visible while the content scrolls (scroll container is .site-content of template-oma.xhtml);
   max-height = viewport minus header + footer (2 x 55px), long lists scroll on their own */
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-nav {
    position: sticky;
    top: calc(var(--oma-sticky-top, 0px) + 10px); /* below .oma-sticky-strip */
    z-index: 1;
    max-height: calc(100vh - 120px - var(--oma-sticky-top, 0px));
    overflow-y: auto;
    flex-wrap: nowrap;
}
/* "Kapitel hinzufuegen" as last list entry (actions facet of the tabView) */
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-nav li.ui-tabs-actions {
    position: static;
    float: none;
    bottom: auto;
    margin: 0;
    padding: 0;
    width: 100%;
    border-top: 1px solid #0000001f;
}
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-nav li.ui-tabs-actions .oma-side-list-action {
    display: block;
    padding: .6rem 1rem;
    color: inherit;
    text-decoration: none;
    line-height: 1.3;
}
body .ui-tabs.ui-tabs-left.oma-side-list > .ui-tabs-nav li.ui-tabs-actions .oma-side-list-action:hover {
    background: #00000014;
}
/* form at the top of the content area stays visible while scrolling (reports/edit.xhtml: template selection).
   Its height is published as --oma-sticky-top (see script in the page) so sticky elements below can stack under it. */
.oma-sticky-top {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ececec;
}
/* second sticky block directly below .oma-sticky-top (reports/edit.xhtml: name/aktiv/speichern);
   --oma-sticky-first = height of the first block, --oma-sticky-top = total height of both */
.oma-sticky-second {
    position: sticky;
    top: var(--oma-sticky-first, 0px);
    z-index: 2;
    background: #ececec;
}
/* 10px strip between the sticky panel and the tab panel (reports/edit.xhtml, outside the tab panel's border),
   sticks directly below .oma-sticky-second; the tab list sticks 10px lower (see .oma-side-list .ui-tabs-nav).
   Opaque light grey so the content scrolling underneath does not show through. */
.oma-sticky-strip {
    position: sticky;
    top: var(--oma-sticky-top, 0px);
    z-index: 2;
    height: 10px;
    background-color: #ececec;
}

/* ---------------------------------------------------------------------------------------------------
   .oma-card: white card with a light border (p:panel around tables, e.g. offermanager/list.xhtml: congressPanel).
   Prefixed with "body" to win against the user-selectable theme.
   --------------------------------------------------------------------------------------------------- */
body .ui-panel.oma-card {
    background: #ffffff;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    box-shadow: none;
    overflow: hidden;
}
body .ui-panel.oma-card > .ui-panel-titlebar {
    background: #ffffff;
    border: 0 none;
    color: #2b3445;
    padding: .4rem 1.25rem .5rem 1.25rem;
}
body .ui-panel.oma-card > .ui-panel-titlebar .ui-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2b3445;
}
body .ui-panel.oma-card > .ui-panel-content {
    border: 0 none;
    background: #ffffff;
    padding: .5rem 1.25rem 1.25rem 1.25rem;
}

/* ---------------------------------------------------------------------------------------------------
   all data tables (p:dataTable, with or without .oma-card around them): no grid lines, white rows,
   grey column header band, light blue filter fields. Prefixed with "html body" to win against the theme.
   --------------------------------------------------------------------------------------------------- */
html body .ui-datatable table {
    border-collapse: collapse;
}
html body .ui-datatable .ui-datatable-data > tr,
html body .ui-datatable .ui-datatable-data > tr > td {
    background: #ffffff;
    border: 0 none;
    color: #2b3445;
}
html body .ui-datatable .ui-datatable-data > tr > td {
    padding: .65rem .75rem;
}
html body .ui-datatable .ui-datatable-data > tr.ui-state-hover,
html body .ui-datatable .ui-datatable-data > tr.ui-state-hover > td,
html body .ui-datatable .ui-datatable-data > tr:hover > td {
    background: #ececec;
}
html body .ui-datatable .ui-datatable-data > tr.ui-datatable-selectable {
    cursor: pointer;
}
html body .ui-datatable .ui-datatable-data > tr.ui-state-highlight > td {
    background: #e8ebfa;
    color: #2b3445;
}

/* header: the column title is a light blue band (#eef0fc), the filter field sits in a white area below it */
html body .ui-datatable thead th,
html body .ui-datatable thead th.ui-state-default {
    position: relative;
    vertical-align: top;
    background: #ffffff;
    border: 0 none;
    padding: 0;
    color: #2b3445;
    box-shadow: none;
}
html body .ui-datatable thead th .ui-column-title {
    display: block;
    box-sizing: border-box;
    height: 2.5rem;
    line-height: 1.2rem;
    background: #eef0fc;
    padding: .65rem 2rem .65rem .75rem;
    font-weight: 700;
    color: #2b3445;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html body .ui-datatable thead th .ui-sortable-column-icon {
    position: absolute;
    top: .8rem;
    right: .5rem;
    color: #8a93a6;
}
html body .ui-datatable thead th.ui-state-active,
html body .ui-datatable thead th.ui-state-hover {
    background: #ffffff;
    color: #2b3445;
}

/* filter fields (text and dropdown) all get the same size and the same gap to the right:
   .oma-filter = custom filter facets, .ui-column-filter = default PrimeFaces filter */
html body .ui-datatable thead th .oma-filter,
html body .ui-datatable thead th .ui-column-filter {
    display: block;
    box-sizing: border-box;
    width: calc(100% - 1rem) !important;
    min-width: 0;
    height: 2.25rem;
    margin: .75rem 1rem .25rem 0;
    background: #eef0fc;
    border: 1px solid #6c76c9;
    border-radius: 4px;
    color: #2b3445;
    font-weight: 400;
    box-shadow: none;
}
html body .ui-datatable thead th input.oma-filter,
html body .ui-datatable thead th input.ui-column-filter {
    padding: 0 .6rem;
    line-height: 2.25rem;
}
html body .ui-datatable thead th input.oma-filter::placeholder,
html body .ui-datatable thead th input.ui-column-filter::placeholder {
    color: #2b3445;
    opacity: 1;
}
/* inner label of the dropdown: no own border/background, vertically centred in the 2.25rem box */
html body .ui-datatable thead th .ui-selectonemenu.oma-filter .ui-selectonemenu-label {
    box-sizing: border-box;
    height: 100%;
    line-height: calc(2.25rem - 2px);
    padding: 0 2.25rem 0 .6rem;
    background: #00000000;
    border: 0 none;
    box-shadow: none;
    color: #2b3445;
    font-weight: 400;
}
html body .ui-datatable thead th .ui-selectonemenu.oma-filter .ui-selectonemenu-trigger {
    height: 100%;
    background: #00000000;
    border: 0 none;
    color: #6c76c9;
    display: flex;
    align-items: center;
    justify-content: center;
}
html body .ui-datatable thead th input.oma-filter:focus,
html body .ui-datatable thead th input.ui-column-filter:focus,
html body .ui-datatable thead th .ui-selectonemenu.oma-filter.ui-state-focus {
    border-color: #4a55b8;
    box-shadow: 0 0 0 2px #6c76c940;
    outline: 0 none;
}

/* scrollable tables (scrollable="true", e.g. historyTable, mailTable): PrimeFaces puts an invisible copy of the
   header into the scroll body only to keep the column widths. The title band and filter heights above would make
   it visible as a second header row below the filter fields -> collapse it to height 0 again. */
html body .ui-datatable .ui-datatable-scrollable-theadclone,
html body .ui-datatable .ui-datatable-scrollable-theadclone > tr,
html body .ui-datatable .ui-datatable-scrollable-theadclone > tr > th {
    height: 0 !important;
    padding: 0 !important;
    border: 0 none !important;
    line-height: 0 !important;
    background: #00000000 !important;
}
html body .ui-datatable .ui-datatable-scrollable-theadclone > tr > th * {
    height: 0 !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top: 0 none !important;
    border-bottom: 0 none !important;
    line-height: 0 !important;
    overflow: hidden !important;
}

/* status badges as soft pills (in tables and cards) */
html body .ui-datatable .product-badge,
html body .ui-datatable .mail-badge,
html body .ui-datatable .task-badge,
body .ui-panel.oma-card .product-badge,
body .ui-panel.oma-card .mail-badge,
body .ui-panel.oma-card .task-badge {
    display: inline-block;
    border-radius: 6px;
    padding: .3rem .75rem;
    text-transform: none;
    font-weight: 500;
    font-size: .875rem;
    letter-spacing: 0;
}
html body .ui-datatable .product-badge.status-STARTED,
html body .ui-datatable .product-badge.status-RUNNING,
body .ui-panel.oma-card .product-badge.status-STARTED,
body .ui-panel.oma-card .product-badge.status-RUNNING {
    background: #d8f6e5;
    color: #1f6b42;
}

/* ---------------------------------------------------------------------------------------------------
   task panel (offermanager/list.xhtml: taskPanel, together with .oma-card)
   --------------------------------------------------------------------------------------------------- */
body .ui-panel.oma-task-card .oma-task-filter {
    margin: 0 0 1rem 0;
}
body .ui-panel.oma-task-card .oma-task-filter .ui-chkbox-label {
    color: #2b3445;
    margin-left: .5rem;
}
body .ui-panel.oma-task-card .oma-task-filter .ui-chkbox-box {
    border-radius: 4px;
    border-color: #3f51b5;
}
body .ui-panel.oma-task-card .oma-task-filter .ui-chkbox-box.ui-state-active {
    background: #3f51b5;
    border-color: #3f51b5;
    color: #ffffff;
}

/* rows separated by thin lines; room on the left for the overdue dot */
body .ui-panel.oma-task-card .oma-task-table .ui-datatable-data > tr > td {
    border-bottom: 1px solid #e6e8ee;
    padding: .4rem .75rem .4rem 1rem;
}
body .ui-panel.oma-task-card .oma-task-table thead th .ui-column-title {
    padding-left: 1rem;
}
/* tasks are indented relative to the group header (and the column header) */
body .ui-panel.oma-task-card .oma-task-table .ui-datatable-data > tr:not(.ui-rowgroup-header) > td:first-child {
    padding-left: 2rem;
}

/* group header: Überfällig / Heute / Morgen / Später - tinted band with a coloured bar on the left */
body .ui-panel.oma-task-card .oma-task-table .ui-datatable-data > tr.ui-rowgroup-header > td {
    background: #eef0fc;
    border-top: .75rem solid #ffffff;
    border-bottom: 0 none;
    border-left: 4px solid #3f51b5;
    padding: .45rem .75rem .45rem calc(1rem - 4px);
    color: #3f51b5;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: default;
}
body .ui-panel.oma-task-card .oma-task-table .ui-datatable-data > tr.ui-rowgroup-header:first-child > td {
    border-top-width: .25rem;
}
/* overdue group in red */
body .ui-panel.oma-task-card .oma-task-table .ui-datatable-data > tr.ui-rowgroup-header > td.oma-task-group-OVERDUE {
    background: #fdecee;
    border-left-color: #c62f3b;
    color: #a3222d;
}

/* red dot in front of overdue tasks (also used in the legend) */
body .ui-panel.oma-task-card .oma-task-title {
    position: relative;
    cursor: help;
}
body .ui-panel.oma-task-card .oma-task-overdue {
    position: relative;
}
body .ui-panel.oma-task-card .oma-task-overdue::before {
    content: "";
    position: absolute;
    left: -.75rem;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: #c62f3b;
}

/* "Für mich" in the Zuständigkeit column */
body .ui-panel.oma-task-card .oma-task-mine {
    color: #3f51b5;
    font-weight: 700;
}

/* legend at the bottom of the card */
body .ui-panel.oma-task-card .oma-task-legend {
    margin-top: 1.5rem;
    padding-left: 1rem;
    color: #4a5263;
    font-size: .85rem;
}

/* ---------------------------------------------------------------------------------------------------
   title line of the pages (p:panel id="sitetitle" in ui:define name="sitetitle"): large bold title,
   the panel content as small grey line below it (offermanager/list.xhtml: key figures)
   --------------------------------------------------------------------------------------------------- */
html body #sitetitle.ui-panel {
    background: #ececec;
    border: 0 none;
    border-radius: 0;
    box-shadow: none;
}
html body #sitetitle.ui-panel > .ui-panel-titlebar {
    background: #ececec;
    border: 0 none;
    padding: 1rem 1.25rem .25rem 1.25rem;
}
html body #sitetitle.ui-panel > .ui-panel-titlebar .ui-panel-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2b3445;
}
html body #sitetitle.ui-panel > .ui-panel-content {
    background: #ececec;
    border: 0 none;
    padding: .25rem 1.25rem 1rem 1.25rem;
    font-size: .95rem;
    color: #4a5263;
}
/* key figures separated by a middle dot */
html body #sitetitle .oma-title-stats > span + span::before {
    content: "\00b7";
    margin: 0 .6rem;
    color: #4a5263;
}
.oma-title-stats {
    padding-top: 1em;
}
/* a little more space before the warnings (overdue, mail errors) */
html body #sitetitle .oma-title-stats > span.oma-title-stats-gap {
    margin-left: 1.25rem;
}
html body #sitetitle .oma-title-stats > span.oma-title-stats-alert,
html body #sitetitle .oma-title-stats > span.oma-title-stats-alert::before {
    color: #a3222d;
}

/* ---------------------------------------------------------------------------------------------------
   tabView design .oma-card-tabs (horizontal tabViews: offermanager/list.xhtml activityTabs,
   offermanager/edit.xhtml congressTabView, messageconfig/edit.xhtml messageConfigTabs):
   flat tabs on a thin line, the active tab underlined in the main colour; no own border around the tab content.
   Standing alone the tabView is a white card itself (like .oma-card); inside a card (.oma-card, p:card) it has
   no own border / padding.
   --------------------------------------------------------------------------------------------------- */
html body .ui-tabs.oma-card-tabs {
    background: #ffffff;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    padding: .5rem 1.25rem 1.25rem 1.25rem;
}
html body .ui-panel.oma-card .ui-tabs.oma-card-tabs,
html body .ui-card .ui-tabs.oma-card-tabs {
    border: 0 none;
    border-radius: 0;
    padding: 0;
}
/* the grey line is an inset shadow (not a border) and the tabs stay completely inside the nav (no negative
   margin, PrimeFaces' top:1px reset): so the 2px underline of the active tab lies fully visible on top of the
   line, even if the theme clips the nav (overflow) */
html body .ui-tabs.oma-card-tabs > .ui-tabs-nav {
    background: #ffffff;
    border: 0 none;
    box-shadow: inset 0 -1px 0 #dfe3ea;
    padding: 0;
    margin: 0 0 .75rem 0;
}
html body .ui-tabs.oma-card-tabs > .ui-tabs-nav li.ui-tabs-header {
    background: #ffffff;
    border: 0 none;
    border-bottom: 2px solid #00000000;
    background-clip: padding-box; /* grey line of the nav stays visible below the transparent border */
    border-radius: 0;
    top: 0;
    margin: 0 .5rem 0 0;
    padding: .5rem .75rem;
    color: #4a5263;
    font-size: 1rem;
    font-weight: 500;
}
html body .ui-tabs.oma-card-tabs > .ui-tabs-nav li.ui-tabs-header > a {
    color: inherit;
    font-weight: inherit;
    padding: 0;
    display: inline-flex;
    align-items: center;
}
html body .ui-tabs.oma-card-tabs > .ui-tabs-nav li.ui-tabs-header.ui-state-hover {
    background-color: #ffffff;
    color: #2b3445;
}
html body .ui-tabs.oma-card-tabs > .ui-tabs-nav li.ui-tabs-header.ui-state-active,
html body .ui-tabs.oma-card-tabs > .ui-tabs-nav li.ui-tabs-header.ui-state-selected {
    background-color: #ffffff;
    border-bottom: 2px solid #3f51b5;
    color: #3f51b5;
    font-weight: 700;
}
/* the buttons in the tab title (refresh, new mail): small, vertically centred on the title text */
html body .ui-tabs.oma-card-tabs > .ui-tabs-nav li.ui-tabs-header {
    display: flex;
    align-items: center;
}
html body .ui-tabs.oma-card-tabs > .ui-tabs-nav li.ui-tabs-header > a {
    display: flex;
    align-items: center;
    line-height: 1.2;
}
html body .ui-tabs.oma-card-tabs > .ui-tabs-nav li.ui-tabs-header .ui-button {
    color: inherit;
    position: relative;
    top: 0;
    flex: 0 0 auto;
    align-self: center;
    width: 1.75rem;
    height: 1.75rem;
    min-width: 0;
    padding: 0;
    margin: 0 0 0 .4rem !important;
    vertical-align: middle;
}
html body .ui-tabs.oma-card-tabs > .ui-tabs-nav li.ui-tabs-header .ui-button .ui-button-text {
    display: none;
}
html body .ui-tabs.oma-card-tabs > .ui-tabs-nav li.ui-tabs-header .ui-button .ui-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
}
html body .ui-tabs.oma-card-tabs > .ui-tabs-panels {
    background: #ffffff;
    border: 0 none;
    padding: 0;
}
html body .ui-tabs.oma-card-tabs > .ui-tabs-panels > .ui-tabs-panel {
    background: #ffffff;
    border: 0 none;
    padding: 0;
}

/* number of failed mails as small red circle behind a tab title (activityPanel: E-Mail-Übersicht) */
html body .ui-tabs .ui-tabs-nav li.ui-tabs-header .oma-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 1.25rem;
    height: 1.25rem;
    margin-left: .4rem;
    padding: 0 .35rem;
    border-radius: .625rem;
    background: #c62f3b;
    color: #ffffff;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
}

/* ---------------------------------------------------------------------------------------------------
   dashboard layout (offermanager/list.xhtml): light grey area, two columns whose panels follow each other
   directly. Margin to the left/right/bottom and the gap between the panels = left padding of the title line
   (#sitetitle, 1.25rem). One column below 992px (PrimeFlex lg).
   --------------------------------------------------------------------------------------------------- */
.oma-dashboard {
    --oma-dashboard-gap: 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--oma-dashboard-gap);
    padding: 0 var(--oma-dashboard-gap) var(--oma-dashboard-gap) var(--oma-dashboard-gap);
    background: #ececec;
}
.oma-dashboard > .oma-dashboard-col {
    display: flex;
    flex-direction: column;
    gap: var(--oma-dashboard-gap);
    min-width: 0;
}
.oma-dashboard > .oma-dashboard-col > .ui-panel {
    margin: 0;
}
@media (max-width: 991px) {
    .oma-dashboard {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* the scroll area of template-oma.xhtml is grey too on the dashboard page, also below the panels down to the footer */
.site-content:has(.oma-dashboard) {
    background: #ececec;
}

/* footer grey on all pages: template-oma.xhtml (.site-footer) and template-default.xhtml (layout pane #site-footer) */
html body .site-footer,
html body #site-footer,
html body #site-footer > .ui-layout-pane-content,
html body #site-footer .ui-layout-unit-content {
    background: #ececec;
}

/* action icons in a table row (offermanager/list.xhtml, mail tab: send again / confirm), title = mouseover */
html body .ui-datatable .oma-row-actions {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}
html body .ui-datatable .oma-row-actions .ui-button {
    width: 2rem;
    height: 2rem;
    min-width: 0;
    padding: 0;
    color: #3f51b5;
}

/* ---------------------------------------------------------------------------------------------------
   mail list (offermanager/list.xhtml, mail tab: mailTable): no column header, rows separated by thin lines;
   left icon + subject / receiver / time (+ state for failed mails), right the state or the actions
   --------------------------------------------------------------------------------------------------- */
html body .ui-datatable.oma-mail-list thead,
html body .ui-datatable.oma-mail-list .ui-datatable-scrollable-header {
    display: none;
}
html body .ui-datatable.oma-mail-list .ui-datatable-data > tr > td {
    border: 0 none;
    border-bottom: 1px solid #e6e8ee;
    padding: .9rem .75rem;
    vertical-align: middle;
}
html body .ui-datatable.oma-mail-list .oma-mail-item {
    display: flex;
    align-items: center;
    gap: .75rem;
}
html body .ui-datatable.oma-mail-list .oma-mail-icon {
    flex: 0 0 auto;
    font-size: 1.1rem;
    color: #1f7a3f;
}
html body .ui-datatable.oma-mail-list .oma-mail-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.4;
}
html body .ui-datatable.oma-mail-list .oma-mail-subject {
    font-weight: 600;
    color: #2b3445;
    overflow-wrap: anywhere;
}
html body .ui-datatable.oma-mail-list .oma-mail-meta {
    color: #6b7280;
    font-size: .9rem;
    overflow-wrap: anywhere;
}
html body .ui-datatable.oma-mail-list td.oma-mail-right {
    text-align: right;
}
html body .ui-datatable.oma-mail-list .oma-mail-state {
    font-size: .9rem;
    color: #1f7a3f;
}
html body .ui-datatable.oma-mail-list .oma-mail-state.status-NEW,
html body .ui-datatable.oma-mail-list .oma-mail-state.status-DELAYED,
html body .ui-datatable.oma-mail-list .oma-mail-icon.status-NEW,
html body .ui-datatable.oma-mail-list .oma-mail-icon.status-DELAYED {
    color: #8a5340;
}
html body .ui-datatable.oma-mail-list .oma-mail-state.status-ERROR,
html body .ui-datatable.oma-mail-list .oma-mail-state.status-BOUNCED,
html body .ui-datatable.oma-mail-list .oma-mail-icon.status-ERROR,
html body .ui-datatable.oma-mail-list .oma-mail-icon.status-BOUNCED {
    color: #d93d4a;
}
html body .ui-datatable.oma-mail-list .oma-mail-actions {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: .4rem;
}
html body .ui-datatable.oma-mail-list .oma-mail-actions .ui-button {
    background: #ffffff;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    color: #2b3445;
    font-size: .85rem;
    padding: .2rem .5rem;
}
html body .ui-datatable.oma-mail-list .oma-mail-actions .ui-button:hover {
    background: #f4f5f8;
}

/* ---------------------------------------------------------------------------------------------------
   E-Mail-Verwaltung (offermanager/mails.xhtml): one column with the dashboard background.
   Search fields in a 4 column grid: row 1 Zeitpunkt von / bis + Status (2 columns), row 2 Betreff + Empfänger
   (2 columns each), row 3 the buttons on the right; 2 columns below 992px, 1 column below 576px.
   --------------------------------------------------------------------------------------------------- */
.oma-dashboard.oma-dashboard-single {
    grid-template-columns: minmax(0, 1fr);
}
.oma-mail-search {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    align-items: end;
}
.oma-mail-search-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
}
.oma-mail-search-field.oma-mail-search-span2 {
    grid-column: span 2;
}
.oma-mail-search-field > label {
    font-size: .875rem;
    font-weight: 600;
    color: #4a5263;
}
.oma-mail-search-buttons {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}
@media (max-width: 991px) {
    .oma-mail-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .oma-mail-search {
        grid-template-columns: minmax(0, 1fr);
    }
    .oma-mail-search-field.oma-mail-search-span2 {
        grid-column: auto;
    }
}

/* fields fill their grid cell */
.oma-mail-search .oma-clearable .ui-inputfield,
.oma-mail-search .oma-clearable .ui-datepicker,
.oma-mail-search .oma-clearable .ui-calendar,
.oma-mail-search .oma-clearable .ui-selectcheckboxmenu {
    width: 100%;
}
.oma-mail-search .oma-clearable .ui-datepicker,
.oma-mail-search .oma-clearable .ui-calendar {
    display: flex;
}
.oma-mail-search .oma-clearable .ui-datepicker .ui-inputfield,
.oma-mail-search .oma-clearable .ui-calendar .ui-inputfield {
    flex: 1 1 auto;
    min-width: 0;
}

/* x button inside a field to clear it, only shown while the field has a value */
.oma-clearable {
    position: relative;
}
.oma-clearable .ui-inputfield {
    padding-right: 2rem;
}
.oma-clearable > .oma-clear {
    position: absolute;
    top: 50%;
    right: .5rem;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0 none;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    font-size: .8rem;
    line-height: 1.5rem;
    text-align: center;
    cursor: pointer;
    z-index: 1;
}
.oma-clearable > .oma-clear:hover {
    background: #eef0f4;
    color: #2b3445;
}
/* date fields: left of the calendar icon (inside the input) */
.oma-clearable.oma-clearable-date > .oma-clear {
    right: 2.25rem;
}
/* checkbox menu: left of the dropdown arrow */
.oma-clearable.oma-clearable-menu > .oma-clear {
    right: 2.5rem;
}
.oma-clearable.oma-clearable-menu .ui-selectcheckboxmenu-multiple-container {
    padding-right: 2rem;
}
.oma-clearable:has(input.ui-inputfield:placeholder-shown) > .oma-clear,
.oma-clearable.oma-clearable-menu:not(:has(.ui-selectcheckboxmenu-token)) > .oma-clear {
    display: none;
}

.oma-mail-limit {
    display: block;
    margin-bottom: .75rem;
    color: #8a5340;
    font-size: .9rem;
}

/* ---------------------------------------------------------------------------------------------------
   .oma-dialog: white dialog with large title and a footer line (offermanager/edit.xhtml: addHotelDialog).
   Colours as in .oma-card / .oma-card-tabs.
   --------------------------------------------------------------------------------------------------- */
html body .ui-dialog.oma-dialog {
    background: #ffffff;
    border: 0 none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(43, 52, 69, .25);
    overflow: hidden;
}
html body .ui-dialog.oma-dialog > .ui-dialog-titlebar {
    background: #ffffff;
    border: 0 none;
    padding: 1.25rem 1.5rem .5rem 1.5rem;
}
html body .ui-dialog.oma-dialog > .ui-dialog-titlebar .ui-dialog-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2b3445;
}
html body .ui-dialog.oma-dialog > .ui-dialog-titlebar .ui-dialog-titlebar-icon {
    color: #2b3445;
}
html body .ui-dialog.oma-dialog > .ui-dialog-content {
    background: #ffffff;
    border: 0 none;
    padding: .5rem 1.5rem 1.25rem 1.5rem;
}
/* footer line inside the content: left optional field, right the buttons */
html body .ui-dialog.oma-dialog .oma-dialog-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #dfe3ea;
}
html body .ui-dialog.oma-dialog .oma-dialog-buttons {
    display: flex;
    gap: .75rem;
    margin-left: auto;
}
html body .ui-dialog.oma-dialog .oma-dialog-buttons .ui-button {
    border-radius: 8px;
    padding: .35rem .9rem;
    font-size: .95rem;
}
html body .ui-dialog.oma-dialog .oma-dialog-buttons .ui-button:not(.oma-button-cancel) {
    background: #3f51b5;
    border-color: #3f51b5;
    color: #ffffff;
}
html body .ui-dialog.oma-dialog .oma-dialog-buttons .ui-button.oma-button-cancel {
    background: #ffffff;
    border: 1px solid #dfe3ea;
    color: #2b3445;
}
html body .ui-dialog.oma-dialog .oma-dialog-buttons .ui-button.oma-button-cancel:hover {
    background: #f4f5f8;
}
html body .ui-dialog.oma-dialog .oma-dialog-buttons .ui-button.ui-state-disabled {
    opacity: .5;
}

/* Hotels hinzufügen: head like the other tables (blue title band with "alle markieren", filter fields below it),
   built above the table in the same column widths (3rem / rest / 16rem); table with checkbox, chosen rows tinted */
.oma-add-hotel-deadline {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
}
.oma-add-hotel-deadline > label {
    font-weight: 700;
    color: #2b3445;
}
.oma-add-hotel-head-row {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 16rem;
}
.oma-add-hotel-cell {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-width: 0;
    padding: 0 .75rem;
}
/* title band: same height / colour / font as .ui-column-title of the other tables */
.oma-add-hotel-titles .oma-add-hotel-cell {
    height: 2.5rem;
    background: #eef0fc;
    color: #2b3445;
    font-weight: 700;
    white-space: nowrap;
}
.oma-add-hotel-titles .oma-add-hotel-check {
    justify-content: center;
    padding: 0;
}
/* filter fields: white area below the band, fields like .oma-filter in the other tables */
.oma-add-hotel-filters .oma-add-hotel-cell {
    padding: .75rem 1rem .25rem 0;
    background: #ffffff;
}
.oma-add-hotel-filters .oma-add-hotel-cell:first-child {
    padding: 0;
}
html body .oma-add-hotel-filters .ui-inputfield,
html body .oma-add-hotel-filters .ui-selectonemenu {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 2.25rem;
    background: #eef0fc;
    border: 1px solid #6c76c9;
    border-radius: 4px;
    color: #2b3445;
    box-shadow: none;
}
html body .oma-add-hotel-filters .ui-inputfield {
    padding: 0 .6rem;
    line-height: 2.25rem;
}
html body .oma-add-hotel-filters .ui-selectonemenu .ui-selectonemenu-label {
    background: transparent;
    line-height: 1.5rem;
}
html body .oma-add-hotel-filters .ui-selectonemenu .ui-selectonemenu-trigger {
    background: transparent;
}
html body .oma-add-hotel-filters .ui-inputfield:focus,
html body .oma-add-hotel-filters .ui-selectonemenu.ui-state-focus {
    border-color: #3f51b5;
    box-shadow: 0 0 0 2px rgba(63, 81, 181, .15);
}
/* the head of the dataTable itself is not used (see .oma-add-hotel-head); fixed layout keeps the column widths */
html body .ui-datatable.oma-add-hotel-table thead {
    display: none;
}
html body .ui-datatable.oma-add-hotel-table table {
    table-layout: fixed;
}
html body .ui-datatable.oma-add-hotel-table .ui-datatable-data > tr > td {
    border: 0 none;
    border-bottom: 1px solid #e6e8ee;
    padding: .45rem .75rem;
    color: #2b3445;
}
html body .ui-datatable.oma-add-hotel-table .ui-datatable-data > tr.oma-row-chosen,
html body .ui-datatable.oma-add-hotel-table .ui-datatable-data > tr.oma-row-chosen.ui-state-hover {
    background: #eef0fc;
}
html body .oma-add-hotel-head .oma-sort-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: inherit;
    text-decoration: none;
}
html body .oma-add-hotel-head .oma-sort-link .pi {
    font-size: .85rem;
    color: #4a5263;
}
/* pager as small grey pill below the table */
html body .ui-datatable.oma-add-hotel-table .ui-paginator.ui-paginator-bottom {
    display: flex;
    justify-content: center;
    background: transparent;
    border: 0 none;
    padding: 1rem 0 0 0;
}
html body .ui-datatable.oma-add-hotel-table .ui-paginator.ui-paginator-bottom > * {
    background: #f1f2f5;
}
html body .ui-datatable.oma-add-hotel-table .ui-paginator .ui-paginator-prev {
    border-radius: 999px 0 0 999px;
}
html body .ui-datatable.oma-add-hotel-table .ui-paginator .ui-paginator-next {
    border-radius: 0 999px 999px 0;
}
html body .ui-datatable.oma-add-hotel-table .ui-paginator .ui-paginator-current {
    color: #2b3445;
    padding: 0 1rem;
    line-height: 2.25rem;
}

/* ---------------------------------------------------------------------------------------------------
   congress logo (offermanager/edit.xhtml, tab Details): preview box left, upload / remove + hint right
   --------------------------------------------------------------------------------------------------- */
.oma-logo-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}
.oma-logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12rem;
    height: 6rem;
    padding: .5rem;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px dashed #d5d9e6;
    border-radius: 8px;
}
.oma-logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.oma-logo-empty {
    color: #6b7280;
    font-size: .9rem;
}
.oma-logo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
}
.oma-logo-actions .ui-fileupload {
    display: inline-block;
}
.oma-logo-hint {
    flex-basis: 100%;
    color: #6b7280;
    font-size: .85rem;
}

/* ---------------------------------------------------------------------------------------------------
   event page (offermanager/edit.xhtml): head in the grey title area (#sitetitle.oma-event-head) with back link,
   large name, key data separated by a middle dot, state badge and the logo on the right; below the tabView as
   white card on the grey page area (same margins as the dashboard)
   --------------------------------------------------------------------------------------------------- */
html body #sitetitle.oma-event-head > .ui-panel-content {
    padding: 0 1.25rem 1.25rem 1.25rem; /* padding-top is forced to 0 by .ui-widget-content, see .oma-event-head-row */
}
.oma-event-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: .75rem;
}
.oma-event-head-main {
    min-width: 0;
}
html body a.oma-back-link,
html body a.oma-back-link:visited {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #3f51b5;
    font-size: .9rem;
    text-decoration: none;
}
html body a.oma-back-link:hover {
    text-decoration: underline;
}
html body a.oma-back-link .pi {
    font-size: .8rem;
}
.oma-event-title {
    margin: .6rem 0 .6rem 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2b3445;
    overflow-wrap: anywhere;
}
.oma-event-title .oma-event-title-external {
    font-weight: 400;
    color: #4a5263;
}
.oma-event-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: .4rem;
    color: #4a5263;
    font-size: 1rem;
}
.oma-event-meta > span + span::before {
    content: "\00b7";
    margin: 0 .75rem;
    color: #4a5263;
}
/* no dot before the state badge, only some space */
.oma-event-meta > span + span.oma-event-meta-badge::before {
    content: none;
}
.oma-event-meta > span.oma-event-meta-badge {
    margin-left: 1rem;
}
html body #sitetitle .oma-event-meta .product-badge {
    display: inline-block;
    border-radius: 6px;
    padding: .3rem .75rem;
    text-transform: none;
    font-weight: 500;
    font-size: .9rem;
    letter-spacing: 0;
}
html body #sitetitle .oma-event-meta .product-badge.status-STARTED,
html body #sitetitle .oma-event-meta .product-badge.status-RUNNING {
    background: #d8f6e5;
    color: #1f6b42;
}
/* logo of the event (OmaCongressLogo) */
.oma-event-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 11rem;
    height: 8rem;
    padding: .75rem;
    box-sizing: border-box;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
}
.oma-event-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* offer page of the hotel (hoteloffer.xhtml): logo and the clerk's business card on the right of the head */
.oma-offer-head-contact {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.oma-offer-business-card {
    color: #4a5263;
    font-size: .95rem;
    line-height: 1.4;
}
.oma-offer-business-card-label {
    margin-bottom: .25rem;
    color: #2b3445;
    font-weight: 700;
}
@media (max-width: 575px) {
    .oma-event-head-row {
        flex-direction: column-reverse;
    }
    .oma-event-logo {
        width: 8rem;
        height: 5.5rem;
    }
}
.oma-event-page {
    padding: 0 1.25rem 1.25rem 1.25rem;
    background: #ececec;
}
.site-content:has(.oma-event-page) {
    background: #ececec;
}

/* offer form of the hotel (includes/offermanager/hotelOffer.xhtml in edithotel.xhtml / hoteloffer.xhtml): the blocks
   as .oma-settings-section one below the other on the grey page area, Zimmerbedarf sticky at the top */
.oma-offer-page .oma-settings-section {
    margin-bottom: 1.25rem;
}
.oma-offer-page .oma-settings-section.oma-offer-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(43, 52, 69, .08);
}
.oma-offer-period {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .25rem 1rem;
    margin-bottom: .75rem;
    color: #2b3445;
}
.oma-offer-room-head {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-bottom: .5rem;
}
.oma-offer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}
/* section "Beschreibung und Kontakt" (edithotel.xhtml): description 2/3, clerk's business card 1/3 separated by a
   thin line; one column below 992px */
.oma-offer-description-contact {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.oma-offer-description-contact > .oma-offer-description {
    padding-right: 2rem;
    border-right: 1px solid #dfe3ea;
}
.oma-offer-description-contact > .oma-offer-description-card {
    padding-left: 2rem;
}
@media (max-width: 991px) {
    .oma-offer-description-contact {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 1rem;
    }
    .oma-offer-description-contact > .oma-offer-description {
        padding-right: 0;
        border-right: 0 none;
    }
    .oma-offer-description-contact > .oma-offer-description-card {
        padding-left: 0;
    }
}
/* confirmation dialog "Angebot abgeben": summary HTML of CongressBean.buildOfferSummaryHtml (inline styles as in the
   e-mail), scrolls inside the dialog when the offer is long */
.oma-offer-summary {
    max-height: 65vh;
    overflow: auto;
}
.oma-offer-summary-hint {
    margin: 0 0 .75rem 0;
    color: #4a5263;
}
.oma-offer-summary h3:first-of-type {
    margin-top: 0 !important;
}
/* decline dialog "Anfrage ablehnen" (hotelOffer.xhtml): label above the field, red confirm button */
.oma-decline-request {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.oma-decline-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
html body .oma-decline-field .ui-selectonemenu,
html body .oma-decline-field .ui-inputtext {
    width: 100%;
    box-sizing: border-box;
}
html body .ui-dialog.oma-dialog .oma-dialog-buttons .ui-button.oma-button-danger {
    background: #c62f3b;
    border-color: #c62f3b;
    color: #ffffff;
}
.oma-offer-page .oma-inline-field > label {
    white-space: nowrap;
}
html body .oma-offer-page .oma-inline-field > .ui-inputtext {
    flex: 1 1 auto;
    min-width: 10rem;
    max-width: 20rem;
}
html body .oma-offer-page .oma-settings-section .ui-inputfield {
    border: 1px solid #d5d9e6;
    border-radius: 6px;
}
html body .oma-offer-page .oma-inline-field .ui-inputtext {
    padding: .35rem .6rem;
}
html body .oma-offer-page .oma-settings-section .ui-inputfield:focus {
    border-color: #3f51b5;
    box-shadow: 0 0 0 2px rgba(63, 81, 181, .15);
}

/* ---------------------------------------------------------------------------------------------------
   tab Vorgaben (offermanager/edit.xhtml): sections with a tinted head band (.oma-settings-section),
   label/field grids in two columns separated by a thin line, Kommunikation as one row, save button right.
   Colours: main #3f51b5, tint #eef0fc, lines #dfe3ea, fields #d5d9e6, text #2b3445 / #4a5263.
   --------------------------------------------------------------------------------------------------- */
.oma-settings {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: .25rem;
}
.oma-settings-section {
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}
.oma-settings-head {
    margin: 0;
    padding: .6rem 1.25rem;
    background: linear-gradient(180deg, #eef0fc 0%, #e3e7fb 100%);
    border-bottom: 1px solid #dfe3ea;
    color: #2b3445;
    font-size: 1.2rem;
    font-weight: 700;
}
.oma-settings-body {
    padding: 1rem 1.25rem;
}
.oma-settings-body + .oma-settings-body {
    border-top: 1px solid #e6e8ee;
}
/* two columns with a thin line between them, one column below 992px */
.oma-settings-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.oma-settings-cols > .oma-form-grid:first-child {
    padding-right: 2rem;
    border-right: 1px solid #dfe3ea;
}
.oma-settings-cols > .oma-form-grid + .oma-form-grid {
    padding-left: 2rem;
}
@media (max-width: 991px) {
    .oma-settings-cols {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 1rem;
    }
    .oma-settings-cols > .oma-form-grid:first-child {
        padding-right: 0;
        border-right: 0 none;
    }
    .oma-settings-cols > .oma-form-grid + .oma-form-grid {
        padding-left: 0;
    }
}

/* label | field */
.oma-form-grid {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: .55rem 1rem;
    align-items: center;
    align-content: start;
}
@media (max-width: 575px) {
    .oma-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: .25rem;
    }
}
.oma-form-grid > label,
.oma-form-grid > .oma-form-label,
.oma-inline-field > label {
    color: #2b3445;
    font-size: .95rem;
}
/* label of a multi line field (logo, description) at the top */
.oma-settings-wide .oma-form-grid > label {
    align-self: start;
    padding-top: .4rem;
}
.oma-settings-subhead {
    grid-column: 1 / -1;
    margin: 0 0 .1rem 0;
    color: #2b3445;
    font-size: 1rem;
    font-weight: 700;
}

/* fields: rounded, light border, limited width (text 28rem, dates 14rem, numbers 7rem) */
html body .oma-settings .ui-inputfield,
html body .oma-settings .ui-selectonemenu {
    border: 1px solid #d5d9e6;
    border-radius: 6px;
    background: #ffffff;
}
html body .oma-settings .ui-inputfield:focus,
html body .oma-settings .ui-selectonemenu.ui-state-focus {
    border-color: #3f51b5;
    box-shadow: 0 0 0 2px rgba(63, 81, 181, .15);
}
html body .oma-settings .oma-form-grid > .ui-inputtext {
    width: 100%;
    max-width: 28rem;
    padding: .35rem .6rem;
}
html body .oma-settings .ui-datepicker .ui-inputfield,
html body .oma-settings .ui-calendar .ui-inputfield {
    width: 14rem;
    padding: .3rem .6rem;
}
html body .oma-settings .oma-number-field .ui-inputfield {
    width: 7rem;
    padding: .3rem .6rem;
    text-align: right;
}
/* read-only value (Zeitraum), tinted */
.oma-readonly-field {
    display: inline-block;
    width: 100%;
    max-width: 28rem;
    box-sizing: border-box;
    padding: .35rem .75rem;
    background: #eef0fc;
    border: 1px solid #d5d9e6;
    border-radius: 6px;
    color: #2b3445;
}
/* Option Angebot bis: date + checkbox "Durch Anbieter veränderbar" */
.oma-option-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.25rem;
}
.oma-option-field .ui-chkbox-label {
    color: #2b3445;
    line-height: 1.2;
    max-width: 9rem;
}
html body .oma-settings .ui-chkbox .ui-chkbox-box {
    border-radius: 4px;
    border-color: #3f51b5;
}
html body .oma-settings .ui-chkbox .ui-chkbox-box.ui-state-active {
    background: #3f51b5;
    border-color: #3f51b5;
    color: #ffffff;
}

/* Kommunikation: label + select side by side, three in one row */
.oma-settings-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2.5rem;
}
.oma-inline-field {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 18rem;
    min-width: 0;
}
html body .oma-inline-field .ui-selectonemenu {
    flex: 1 1 auto;
    min-width: 12rem;
    max-width: 20rem;
}

/* save button at the bottom right */
.oma-settings-footer {
    display: flex;
    justify-content: flex-end;
}
html body .ui-button.oma-button-primary {
    background: #3f51b5;
    border: 1px solid #3f51b5;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    padding: .25rem 1rem;
}
html body .ui-button.oma-button-primary:hover {
    background: #34449b;
    border-color: #34449b;
}

/* ---------------------------------------------------------------------------------------------------
   tab Beherbergung (offermanager/edit.xhtml): same sections as tab Vorgaben (.oma-settings), room period /
   occupancy as "from - to" fields with the button "Zimmer aktualisieren" on the right, capacity grid
   (one row per occupancy, one column per night) with tinted head and sum rows
   --------------------------------------------------------------------------------------------------- */
.oma-room-settings {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
}
.oma-range-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    color: #4a5263;
}
html body .ui-button.oma-button-secondary {
    background: #ffffff;
    border: 1px solid #3f51b5;
    border-radius: 8px;
    color: #3f51b5;
    font-weight: 600;
    padding: .25rem 1rem;
}
html body .ui-button.oma-button-secondary:hover {
    background: #eef0fc;
}

.oma-capacity {
    overflow-x: auto;
    margin-top: .5rem;
}
.oma-capacity-row {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 2px;
    margin-bottom: 2px;
}
.oma-capacity-label {
    display: flex;
    align-items: center;
    padding: .35rem .6rem;
    background: #f5f6fe;
    border: 1px solid #e3e7fb;
    border-radius: 4px;
    color: #2b3445;
    font-weight: 600;
    white-space: nowrap;
}
.oma-capacity-cells {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: 2px;
}
.oma-capacity-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .2rem;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #dfe3ea;
    color: #2b3445;
}
/* head row (dates) and sum rows (Zimmer, Personen) in the blue tones of the section heads (head a bit darker) */
.oma-capacity-head .oma-capacity-label,
.oma-capacity-head .oma-capacity-cell,
.oma-capacity-sum .oma-capacity-label,
.oma-capacity-sum .oma-capacity-cell {
    background: #eef0fc;
    border-color: #d9def8;
    color: #2b3445;
    font-weight: 700;
    padding: .4rem .5rem;
}
.oma-capacity-head .oma-capacity-label,
.oma-capacity-head .oma-capacity-cell {
    background: #e3e7fb;
    border-color: #cfd5f6;
}
/* input fields of the capacity grid: light border, focus in the main colour */
html body .oma-settings .oma-capacity .ui-inputfield {
    border-color: #d5d9e6;
}
html body .oma-settings .oma-capacity .ui-inputfield:focus {
    border-color: #3f51b5;
    box-shadow: 0 0 0 2px rgba(63, 81, 181, .15);
}
.oma-capacity-head .oma-capacity-cell {
    font-size: .9rem;
    white-space: nowrap;
}
html body .oma-capacity .room-input-cell .oma-number-field,
html body .oma-capacity .room-input-cell .oma-number-field .ui-inputfield {
    width: 100%;
}
.oma-capacity-empty {
    color: #6b7280;
}

/* Stichtage Zimmerrückgabe (offermanager/edit.xhtml tab Vorgaben, hotel offer page) */
.oma-release-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.oma-release-row {
    display: grid;
    grid-template-columns: 6rem 12rem 12rem 12rem 2.5rem;
    align-items: center;
    gap: .75rem;
}
.oma-release-header {
    font-weight: bold;
    color: #2b3445;
}
.oma-release-date {
    color: #2b3445;
}
.oma-release-empty {
    color: #6c757d;
    font-style: italic;
}
.oma-release-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.25rem;
    margin-top: .5rem;
}

/* calendar icon of every p:datePicker (showIcon="true") in grey inside the input instead of a separate button */
html body .ui-calendar.ui-trigger-calendar {
    position: relative;
    display: inline-block;
}
html body .ui-calendar.ui-trigger-calendar > .ui-inputfield {
    padding-right: 2.25rem;
    border-top-right-radius: var(--border-radius, 4px);
    border-bottom-right-radius: var(--border-radius, 4px);
}
html body .oma-settings .ui-calendar.ui-trigger-calendar > .ui-inputfield {
    border-radius: 6px;
}
html body .ui-calendar.ui-trigger-calendar > .ui-datepicker-trigger.ui-button,
html body .ui-calendar.ui-trigger-calendar > .ui-datepicker-trigger.ui-button:enabled:hover,
html body .ui-calendar.ui-trigger-calendar > .ui-datepicker-trigger.ui-button:enabled:focus,
html body .ui-calendar.ui-trigger-calendar > .ui-datepicker-trigger.ui-button:enabled:active {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2.25rem;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0 none;
    background: transparent;
    box-shadow: none;
    color: #8a909c;
}
html body .ui-calendar.ui-trigger-calendar > .ui-datepicker-trigger.ui-button:enabled:hover {
    color: #2b3445;
}
html body .ui-calendar.ui-trigger-calendar > .ui-datepicker-trigger.ui-button .ui-icon,
html body .ui-calendar.ui-trigger-calendar > .ui-datepicker-trigger.ui-button .ui-button-icon-left {
    color: inherit;
}
/* clearable date fields (mails.xhtml): room for the x button and the calendar icon */
html body .oma-clearable.oma-clearable-date .ui-calendar.ui-trigger-calendar > .ui-inputfield {
    padding-right: 4.25rem;
}
.oma-release-number {
    font-weight: bold;
    color: #2b3445;
}
/* Stichtage: date field fills its column (beats the 14rem of .oma-settings), trash button grey behind it */
html body .oma-release-row .ui-calendar,
html body .oma-settings .oma-release-row .ui-calendar {
    width: 100%;
}
html body .oma-release-row .ui-calendar .ui-inputfield,
html body .oma-settings .oma-release-row .ui-calendar .ui-inputfield {
    width: 100%;
    box-sizing: border-box;
}
html body .oma-release-row .ui-button.oma-release-remove,
html body .oma-release-row .ui-button.oma-release-remove:enabled:focus {
    background: transparent;
    border: 0 none;
    box-shadow: none;
    color: #8a909c;
}
html body .oma-release-row .ui-button.oma-release-remove:enabled:hover {
    background: #eef0f4;
    color: #2b3445;
}
html body .oma-release-row .ui-button.oma-release-remove .ui-icon {
    color: inherit;
}

/* Vertragsdokumente of the hotel offer (WEB-INF/includes/offermanager/hotelOffer.xhtml) */
.oma-document-area,
.oma-document-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.oma-document-row {
    display: grid;
    grid-template-columns: 1.5rem minmax(10rem, 28rem) 6rem 9rem 2.5rem;
    align-items: center;
    gap: .75rem;
}
.oma-document-icon {
    color: #8a909c;
}
.oma-document-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oma-document-meta {
    color: #6b7280;
    font-size: .9rem;
    white-space: nowrap;
}
.oma-document-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.25rem;
    margin-top: .5rem;
}
.oma-document-hint {
    color: #6b7280;
    font-size: .9rem;
}
/* tab Angebote: paperclip icon with the number of documents, opens hotelDocumentsDialog */
.oma-document-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: #eeeff1;
    color: #4b5058;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}
.oma-document-badge:hover {
    background: #e4e5e8;
    color: #2f3237;
}
.oma-document-hotel {
    font-weight: 700;
    color: #2f3237;
    margin-bottom: .25rem;
}
.oma-document-row.oma-document-row-dialog {
    grid-template-columns: 1.5rem minmax(0, 1fr) 5.5rem 8.5rem 2.5rem;
}
/* tab Beherbergung: checkboxes "Angebote mit Frühstück" / "Mindestaufenthalt erlauben" side by side, labels not wrapped */
.oma-option-field.oma-option-wide .ui-chkbox-label {
    max-width: none;
    white-space: nowrap;
}
/* hotel offer: free text for the cancellation / payment terms */
.oma-terms-text {
    width: 100%;
    max-width: 60rem;
    box-sizing: border-box;
}
/* tabs Angebote / Emails: space between the button bar and the table header */
.ui-toolbar.oma-tab-toolbar {
    margin-bottom: 1rem;
}

/* p:fileUpload mode="advanced" (contract documents of the hotel offer, congress logo): only the button, no white
   box below it - the content area is shown only while it has upload rows (progress) or messages (e.g. too large) */
html body .oma-document-upload .ui-fileupload,
html body .oma-logo-actions .ui-fileupload {
    border: 0 none;
    background: transparent;
}
html body .oma-document-upload .ui-fileupload-buttonbar,
html body .oma-logo-actions .ui-fileupload-buttonbar {
    padding: 0;
    border: 0 none;
    background: transparent;
}
html body .oma-document-upload .ui-fileupload-content,
html body .oma-logo-actions .ui-fileupload-content {
    display: none;
}
html body .oma-document-upload .ui-fileupload-content:has(.ui-fileupload-row, .ui-messages-error),
html body .oma-logo-actions .ui-fileupload-content:has(.ui-fileupload-row, .ui-messages-error) {
    display: block;
    margin-top: .5rem;
    border: 1px solid #e4e5e8;
    border-radius: 6px;
    background: #ffffff;
}

/* selection column (rowSelectMode checkbox, e.g. hotelTable): the "select all" checkbox sits in the light blue title band
   of the header (2.5rem like .ui-column-title) instead of below it; an empty title band is not shown */
html body .ui-datatable thead th.ui-selection-column .ui-column-title:empty {
    display: none;
}
html body .ui-datatable thead th.ui-selection-column > .ui-chkbox,
html body .ui-datatable thead th.ui-selection-column > .ui-chkbox-all {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 2.5rem;
    margin: 0;
    background: #eef0fc;
}
/* tab Angebote: button bar below hotelTable */
.ui-toolbar.oma-table-toolbar {
    margin-top: 1rem;
}
/* section head with an action next to the title (tab Angebote: plus = "Hotels hinzufügen") */
.oma-settings-head.oma-settings-head-action {
    display: flex;
    align-items: center;
    gap: .5rem;
}
html body .oma-settings-head .ui-button.oma-head-add,
html body .oma-settings-head .ui-button.oma-head-add:enabled:focus {
    width: 2rem;
    height: 2rem;
    padding: 0;
    /* negative vertical margin: the 2rem circle does not make the head higher than in the tab Vorgaben */
    margin: -.5rem 0;
    border: 0 none;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    color: #3f51b5;
}
html body .oma-settings-head .ui-button.oma-head-add:enabled:hover {
    background: rgba(63, 81, 181, .12);
    color: #3f51b5;
}
html body .oma-settings-head .ui-button.oma-head-add .ui-icon {
    color: inherit;
    font-weight: 700;
}
/* Hotels hinzufügen: row checkboxes centred below the "alle markieren" checkbox of the head */
html body .ui-datatable.oma-add-hotel-table .ui-datatable-data > tr > td:first-child {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/* dialog for actions on several hotel offers "Angebote übertragen" / "Anbieter erinnern" (edit.xhtml, offerActionForm) */
html body .ui-datatable.oma-offer-action-table .ui-datatable-data > tr.oma-row-chosen,
html body .ui-datatable.oma-offer-action-table .ui-datatable-data > tr.oma-row-chosen.ui-state-hover {
    background: #eef0fc;
}
html body .ui-datatable.oma-offer-action-table thead th:first-child .ui-column-title {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.oma-offer-action-mail {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.oma-offer-action-mail > label {
    margin-top: .5rem;
    font-weight: 700;
    color: #2b3445;
}
.oma-offer-action-mail-info {
    color: #4a5263;
}

/* hotel offer page: notice "Angebotsfrist überschritten" (DEADLINE_PASSED), clickable for internal users */
.oma-deadline-notice {
    margin: 1rem 0;
}
html body .oma-deadline-notice .oma-deadline-notice-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .75rem;
    padding: .75rem 1rem;
    border: 1px solid #f0c36d;
    border-left: 4px solid #e0a400;
    border-radius: 6px;
    background: #fff8e6;
    color: #6b4e00;
    text-decoration: none;
}
html body .oma-deadline-notice a.oma-deadline-notice-link {
    cursor: pointer;
}
html body .oma-deadline-notice a.oma-deadline-notice-link:hover {
    background: #fff1cc;
}
.oma-deadline-notice .pi {
    color: #e0a400;
}
.oma-deadline-notice-title {
    font-weight: 700;
}
.oma-deadline-notice-hint {
    color: #8a6d1f;
}
html body .oma-deadline-notice a.oma-deadline-notice-link .oma-deadline-notice-hint {
    text-decoration: underline;
}
