/* MHI Specific Styles */

.ohi-container {
    width: 100%;
    max-width: fit-content;
    margin: 20px auto;
    background: #fff;
    padding: 20px 40px;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    font-family: Arial, sans-serif;
    text-align: center;
}

.ohi-title {
    color: #17669d;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 10px;
}

.ohi-subtitle {
    font-size: 16px;
    color: #333;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.ohi-top-layout {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 20px;
}

.sofort-anzeige-box {
    text-align: left;
    font-size: 12px;
    color: #333;
    width: 200px;
}

.sofort-anzeige-label {
    font-weight: bold;
    color: #17669d;
    font-size: 12px;
    margin-bottom: 8px;
    display: block;
}

.sofort-input-group {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

.sofort-anzeige-input {
    padding: 4px 8px;
    border: 1px solid #ccc;
    width: 100px;
    font-size: 14px;
}

.sofort-anzeige-btn {
    background-color: #1a7bbd;
    color: white;
    border: none;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    border-radius: 2px;
}

.sofort-anzeige-text {
    display: block;
    line-height: 1.3;
    font-size: 10px;
    font-weight: normal;
}

.ohi-table {
    width: auto;
    border-collapse: separate;
    border-spacing: 3px;
    margin: 0 auto;
}

/* Header Styles */
.ohi-table thead th {
    background-color: #fff;
    vertical-align: bottom;
    color: #3498db;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    padding: 0;
}

.ohi-header-img {
    display: block;
    background-color: #17669d;
    /* Blue background for tool images as in template */
    box-sizing: border-box;
    margin-top: 5px;
}

/* Control Row Styling inside Table */
.ohi-table-controls-row td {
    padding: 5px 0;
}

.ohi-btn-table {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 5px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
    width: 100%;
    /* Stretch to fill the 2-column span */
    font-size: 14px;
    box-sizing: border-box;
    display: block;
    white-space: nowrap;
}

.ohi-btn-table:hover {
    background-color: #2980b9;
}


/* Sidebar / Situation Column */
.ohi-situation-label {
    text-align: left;
    color: #17669d;
    font-size: 14px;
    font-weight: bold;
    padding-right: 20px;
    max-width: 95px;
    vertical-align: top;
    padding-top: 20px
}

/*[dir="rtl"] .ohi-title,*/
[dir="rtl"] .ohi-table thead th,
[dir="rtl"] .ohi-situation-label,
[dir="rtl"] .sofort-anzeige-box {
    text-align: right;
}

[dir="rtl"] .ohi-situation-label {
    padding-right: 0;
    padding-left: 20px;
}

.tabelle-bilderspalte {
    width: 100px;
    padding: 0;
}

.ohi-situation-img {
    width: 100px;
    height: 100px;
    display: block;
}

/* Table Cells */
.ohi-cell {
    width: 90px;
    height: 100px;
    background-color: #d1d1d1;
    position: relative;
    cursor: default;
    transition: background-color 0.1s;
    padding: 0;
}

.ohi-cell.active {
    background-color: #5dade2;
    cursor: pointer;
}

.ohi-cell.checked {
    background-color: #3498db;
    /* Darker blue */
}

.ohi-cell img {
    display: block;
    margin: 0;
}

.ohi-cell.checked img {
    opacity: 1;
}

/* Mobile Responsiveness removed for fixed viewport strategy */


/* RTL Overrides for OHI */
[dir="rtl"] .ohi-title,
[dir="rtl"] .ohi-subtitle {
    text-align: center;
}

[dir="rtl"] .ohi-situation-label {
    text-align: right;
    padding-right: 15px;
    padding-left: 10px;
}

[dir="rtl"] .sofort-anzeige-label,
[dir="rtl"] .sofort-anzeige-text {
    text-align: right;
}

[dir="rtl"] .sofort-input-group {
    flex-direction: row;
}

/* Modal RTL overrides */
[dir="rtl"] .contact-modal-overlay .modal-body {
    text-align: right;
}

[dir="rtl"] .contact-modal-overlay .modal-header,
[dir="rtl"] .contact-modal-overlay .contact-grid {
    display: flex;
    flex-direction: row;
    /* Natural RTL mirror */
}