body {
    background: linear-gradient(135deg, #b5f6cf 0%, #00a6a6 45%, #0f4c5c 82%, #022538 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #022538;
    margin: 0;
    padding: 24px;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

#root {
    background: transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#app-screen {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    height: 100%;
}

h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: center;
}

.btn {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, #00a6a6 0%, #0f4c5c 100%);
    transition: filter 0.2s;
    text-decoration: none;
}

.btn:hover {
    filter: brightness(1.05);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #022538;
    border: 1px solid rgba(2, 37, 56, 0.12);
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

#selected-count {
    background: #ffffff;
    color: #0f4c5c;
    border-radius: 10px;
    padding: 2px 8px;
    font-weight: 700;
    font-size: 14px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.tab-btn {
    background: linear-gradient(135deg, rgba(0, 166, 166, 0.7) 0%, rgba(15, 76, 92, 0.7) 100%);
    color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
}

.tab-btn.active {
    background: linear-gradient(135deg, #00a6a6 0%, #0f4c5c 100%);
    color: white;
    filter: brightness(1.1);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.tab-content {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(2, 37, 56, 0.12);
    border-radius: 12px;
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.tab-content.active {
    display: flex;
}

.table-container {
    overflow: auto;
    flex: 1;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
    /* Allow columns to expand based on min-width */
}

th {
    background: #f5f6f7;
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid rgba(2, 37, 56, 0.12);
    font-weight: 600;
    color: #022538;
    position: sticky;
    top: 0;
    z-index: 10;
    min-width: 140px;
    /* Normalized minimum width */
}

th:first-child {
    min-width: 50px;
    width: 50px;
}

td {
    padding: 8px;
    color: rgba(2, 37, 56, 0.72);
    border-bottom: 1px solid rgba(2, 37, 56, 0.06);
    vertical-align: middle;
    text-align: center;
    white-space: normal;
    /* Enable wrapping */
    word-wrap: break-word;
    /* Break long words */
}

/* Row Highlighting for selection */
tr.row-highlight td {
    background-color: #ffe8cc !important;
}

tr.row-marked-red td {
    background-color: #ffd9d9;
}

tr.row-marked-red.row-highlight td {
    background-color: #ffc2c2 !important;
}

tr.row-highlight td input,
tr.row-highlight td select,
tr.row-highlight td .assignee-input,
tr.row-highlight td .assignee-input-wrap,
tr.row-highlight td .form-input,
tr.row-highlight td .consulting-field-bar,
tr.row-highlight td .option-box input,
tr.row-highlight td .option-box select {
    background-color: transparent !important;
}

tr.row-marked-red td input,
tr.row-marked-red td select,
tr.row-marked-red td .assignee-input,
tr.row-marked-red td .assignee-input-wrap,
tr.row-marked-red td .form-input,
tr.row-marked-red td .consulting-field-bar,
tr.row-marked-red td .option-box input,
tr.row-marked-red td .option-box select {
    background-color: transparent;
}



/* Specific column widths for Description (Auftragsbeschreibung) */
#table-main th:nth-child(7),
#table-main td:nth-child(7) {
    min-width: 500px;
}

#table-deepdive th:nth-child(9),
#table-deepdive td:nth-child(9) {
    min-width: 500px;
}

#table-headobu th:nth-child(9),
#table-headobu td:nth-child(9) {
    min-width: 500px;
}

#table-screening th:nth-child(8),
#table-screening td:nth-child(8) {
    min-width: 500px;
}

#table-final th:nth-child(9),
#table-final td:nth-child(9) {
    min-width: 500px;
}



/* Specific column widths for DeepDive Beauftragte:r */
#table-main th:nth-child(14),
#table-main td:nth-child(14) {
    min-width: 240px;
}

#table-main th:nth-child(15),
#table-main td:nth-child(15) {
    min-width: 150px;
    width: 150px;
}

/* New Columns LB/BM (150px) */
#table-main th:nth-child(10),
#table-main td:nth-child(10),
#table-main th:nth-child(11),
#table-main td:nth-child(11),
#table-screening th:nth-child(11),
#table-screening td:nth-child(11),
#table-screening th:nth-child(12),
#table-screening td:nth-child(12),
#table-deepdive th:nth-child(12),
#table-deepdive td:nth-child(12),
#table-deepdive th:nth-child(13),
#table-deepdive td:nth-child(13),
#table-headobu th:nth-child(12),
#table-headobu td:nth-child(12),
#table-headobu th:nth-child(13),
#table-headobu td:nth-child(13),
#table-final th:nth-child(12),
#table-final td:nth-child(12),
#table-final th:nth-child(13),
#table-final td:nth-child(13) {
    min-width: 180px;
    width: 180px;
}

#table-deepdive th:nth-child(3),
#table-deepdive td:nth-child(3) {
    min-width: 350px;
}

#table-screening th:nth-child(3),
#table-screening td:nth-child(3) {
    min-width: 350px;
}

#table-headobu th:nth-child(4),
#table-headobu td:nth-child(4) {
    min-width: 350px;
}

/* Global Centering for Screening Table */
#table-screening th,
#table-screening td {
    text-align: center;
    vertical-align: middle;
}

/* Deadline DD (Index 14) */
#table-screening th:nth-child(14),
#table-screening td:nth-child(14) {
    min-width: 100px;
    width: 100px;
}

/* DeepDive Link Column (Index 15) */
#table-screening th:nth-child(15),
#table-screening td:nth-child(15) {
    min-width: 80px;
    width: 80px;
}

/* Option DeepDive Box (Index 16) */
#table-screening th:nth-child(16),
#table-screening td:nth-child(16) {
    min-width: 400px;
}

/* Option Angebot Box (Index 17) */
#table-screening th:nth-child(17),
#table-screening td:nth-child(17) {
    min-width: 450px;
}

#table-screening th:nth-child(18),
#table-screening td:nth-child(18) {
    min-width: 150px;
    width: 150px;
}

/* Added widths for other assignee columns in Screening */
#table-screening th:nth-child(3),
#table-screening td:nth-child(3) {
    min-width: 240px;
}

#table-screening th:nth-child(4),
#table-screening td:nth-child(4) {
    min-width: 240px;
}

#table-final th:nth-child(4),
#table-final td:nth-child(4) {
    min-width: 240px;
}

#table-deepdive th:nth-child(16),
#table-deepdive td:nth-child(16) {
    min-width: 100px;
    width: 100px;
}

#table-deepdive th:nth-child(17),
#table-deepdive td:nth-child(17) {
    min-width: 150px;
    width: 150px;
}

/* Specific column widths for Deadline, Market Team, Angebotslead, Besondere Relevanz (Head of BU OE/PI) */
#table-headobu th:nth-child(16),
#table-headobu td:nth-child(16) {
    min-width: 100px;
    width: 100px;
}

#table-headobu th:nth-child(17),
#table-headobu td:nth-child(17) {
    min-width: 200px;
}

#table-headobu th:nth-child(18),
#table-headobu td:nth-child(18) {
    min-width: 280px;
}

#table-headobu th:nth-child(19),
#table-headobu td:nth-child(19) {
    min-width: 150px;
    width: 150px;
}

/* Specific column widths for Screening (same as HeadObu) - Removed merged cols */

/* Deadline DD (Index 16) */
#table-final th:nth-child(16),
#table-final td:nth-child(16) {
    min-width: 100px;
    width: 100px;
    max-width: 100px;
}

/* Market Team (Index 17) */
#table-final th:nth-child(17),
#table-final td:nth-child(17) {
    min-width: 150px;
}

/* Angebotslead (Index 18) */
#table-final th:nth-child(18),
#table-final td:nth-child(18) {
    min-width: 280px;
}

/* #table-final th:nth-child(17),
#table-final td:nth-child(17) {
    min-width: 50px;
    width: 50px;
    text-align: center;
} */

.select-toggle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #0f4c5c;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-weight: bold;
}

.select-toggle.checked {
    background: #1db954;
    border-color: #1db954;
    color: white;
}

.marked-red-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.marked-red-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d32f2f;
}

.trash-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 22px;
    padding: 6px;
    border-radius: 4px;
}

.trash-btn:hover {
    color: #e53935;
    background: rgba(229, 57, 53, 0.1);
}

.deepdive-btn {
    color: #0f4c5c;
    background: transparent;
    border: none;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.deepdive-btn:hover {
    color: #00a6a6;
}

/* Custom widgets */
.consulting-field-bar {
    background: #eaffea;
    border: 1px solid #1db954;
    border-radius: 8px;
    padding: 4px;
    display: flex;
    align-items: center;
}

select {
    background: transparent;
    border: none;
    color: #022538;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    cursor: pointer;
}

select:focus {
    outline: none;
}

.assignee-input {
    background: transparent;
    border: none;
    color: #022538;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    padding: 0;
    text-align: left;
}

.assignee-input:focus {
    outline: none;
}

.assignee-input-wrap {
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 2px 6px;
    min-width: 0;
}

.assignee-input-wrap.locked {
    background: #eaffea;
    border-color: #1db954;
}

.confirm-btn {
    border-radius: 8px;
    border: none;
    background: #d32f2f;
    color: white;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    white-space: nowrap;
    font-size: 13px;
    width: 100%;
    transition: background 0.2s, filter 0.2s;
}

.confirm-btn:hover {
    background: #b71c1c;
}

.filter-row {
    background: #e8f9ee;
    border-bottom: 1px solid rgba(2, 37, 56, 0.12);
    padding: 8px 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.realtime-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: 10px;
    color: #14532d;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.realtime-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.realtime-status[data-state="connecting"],
.realtime-status[data-state="reconnecting"] {
    color: #854d0e;
}

.realtime-status[data-state="connecting"]::before,
.realtime-status[data-state="reconnecting"]::before {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.realtime-status[data-state="unavailable"] {
    color: #7f1d1d;
}

.realtime-status[data-state="unavailable"]::before {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-label {
    font-size: 11px;
    font-weight: 600;
    color: #3a3a3a;
}

.filter-input {
    border: 1px solid #00a6a6;
    border-radius: 6px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 12px;
}

.filter-input:focus {
    border: 2px solid #0f4c5c;
    background: white;
    outline: none;
}

.filter-create-action {
    margin-left: auto;
    display: flex;
    align-self: stretch;
    align-items: center;
    padding-left: 12px;
    border-left: 1px solid rgba(15, 76, 92, 0.16);
}

.create-record-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #0f4c5c;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 76, 92, 0.22);
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.create-record-button:hover {
    background: #0a6971;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 76, 92, 0.28);
}

.create-record-button:focus-visible {
    outline: 3px solid rgba(0, 166, 166, 0.3);
    outline-offset: 2px;
}

.create-record-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.create-record-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2400;
    padding: 28px;
    align-items: center;
    justify-content: center;
    background: rgba(2, 37, 56, 0.56);
    backdrop-filter: blur(3px);
}

.create-record-dialog {
    width: min(920px, 100%);
    max-height: min(860px, calc(100vh - 56px));
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(2, 37, 56, 0.3);
}

.create-record-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid #dce8e8;
}

.create-record-eyebrow {
    color: #008b8b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.create-record-header h2 {
    margin: 4px 0 4px;
    color: #0f4c5c;
    font-size: 22px;
}

.create-record-header p {
    margin: 0;
    color: #667778;
    font-size: 13px;
}

.create-record-close {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: #eef7f3;
    color: #0f4c5c;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.create-record-warning {
    display: none;
    margin: 18px 28px 0;
    padding: 11px 13px;
    border: 1px solid #e5b94f;
    border-radius: 9px;
    background: #fff8e6;
    color: #6c5113;
    font-size: 13px;
}

.create-record-warning.visible {
    display: block;
}

.create-record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    padding: 22px 28px 26px;
}

.create-record-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.create-record-field.full-width {
    grid-column: 1 / -1;
}

.create-record-field label {
    color: #26494f;
    font-size: 12px;
    font-weight: 700;
}

.create-record-required {
    color: #b42318;
}

.create-record-field input,
.create-record-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #b9cece;
    border-radius: 8px;
    padding: 10px 11px;
    background: #fff;
    color: #022538;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.create-record-field textarea {
    min-height: 92px;
    resize: vertical;
}

.create-record-field input:focus,
.create-record-field textarea:focus {
    border-color: #00a6a6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 166, 166, 0.13);
}

.create-record-field input.create-field-invalid,
.create-record-field textarea.create-field-invalid {
    border-color: #d92d20;
    background: #fff8f7;
}

.create-record-checkbox {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 2px;
}

.create-record-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #0f4c5c;
}

.create-record-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 28px;
    border-top: 1px solid #dce8e8;
    background: rgba(248, 252, 250, 0.97);
}

.create-record-footer > span {
    color: #667778;
    font-size: 12px;
}

.create-record-footer > div {
    display: flex;
    gap: 10px;
}

.create-record-submit {
    background: #0f4c5c;
}

.create-record-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.create-record-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2600;
    max-width: 420px;
    padding: 13px 16px;
    border-radius: 10px;
    background: #0f4c5c;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(2, 37, 56, 0.25);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.create-record-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 760px) {
    .filter-row {
        flex-wrap: wrap;
    }

    .filter-create-action {
        margin-left: 0;
        border-left: 0;
    }

    .create-record-backdrop {
        padding: 12px;
    }

    .create-record-grid {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .create-record-field.full-width {
        grid-column: auto;
    }

    .create-record-header,
    .create-record-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .create-record-footer {
        align-items: stretch;
        flex-direction: column;
    }
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s ease infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Action Buttons for DeepDive Column */
.action-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-stack {
    display: grid;
    grid-template-columns: 24px 24px 24px;
    grid-template-rows: auto auto;
    column-gap: 4px;
    row-gap: 4px;
    justify-content: center;
    align-items: center;
    margin-right: 6px;
}

.assignee-tooltip {
    position: fixed;
    background: #2f2f2f;
    color: #ffffff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    max-width: 240px;
}

.assignee-tooltip.hidden {
    display: none;
}

.assignee-tooltip-name {
    font-weight: 600;
}

.assignee-tooltip-meta {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.assignee-tooltip-sep {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 6px 0;
}

.assignee-picker {
    background: transparent;
    border: none;
    color: inherit;
    text-align: left;
    padding: 6px 0;
    width: 100%;
    cursor: pointer;
}

.assignee-picker:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-circle-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    flex-shrink: 0;
    font-family: inherit;
    transition: filter 0.2s;
}

.btn-circle-small:hover {
    filter: brightness(0.95);
}

.btn-lock {
    background-color: #e0e0e0;
    color: #2f2f2f;
    font-size: 14px;
    grid-column: 1;
    grid-row: 1;
}

.btn-lock.locked {
    background-color: #1db954;
    color: white;
}

.btn-info {
    background-color: #ffe082;
    color: #5d4037;
    font-size: 14px;
    grid-column: 2;
    grid-row: 1;
}

.btn-message {
    background-color: #00a6a6;
    color: white;
    font-size: 16px;
    grid-column: 3;
    grid-row: 1;
}

.btn-clear {
    background: #ffffff;
    color: #022538;
    border: 1px solid rgba(2, 37, 56, 0.2);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    grid-column: 1 / 4;
    grid-row: 2;
    justify-self: center;
}

.action-stack.action-stack-compact {
    grid-template-columns: 24px;
}

.action-stack.action-stack-compact .btn-clear {
    grid-column: 1;
}

.btn-clear:hover {
    filter: brightness(0.97);
}

/* --- New Option Box Layout (Screening Tab) --- */

.option-box {
    position: relative;
    border-width: 2px;
    border-style: dashed;
    border-radius: 12px;
    padding: 16px 12px 8px 12px;
    /* Top padding space for legend */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    /* Space for the legend above border */
}

.option-legend {
    position: absolute;
    top: -12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #fff;
    /* Match row bg? Actually row bg is transparent or white */
    padding: 0 4px;
    color: #555;
}

/* Fix for row background transparency issue if needed:
   The legend needs a background to cover the border.
   Rows might have hover effects, but let's assume white for now. */
tr:hover .option-legend {
    background: inherit;
    /* Might not work if border goes through. */
}

.option-deepdive {
    border-color: #fbc02d;
    /* Yellow/Orange */
    background: rgba(253, 248, 227, 0.3);
}

.option-deepdive .option-legend {
    color: #fbc02d;
    /* Match border */
}

.option-angebot {
    border-color: #0f4c5c;
    /* Teal/Dark Green */
    background: rgba(224, 242, 241, 0.3);
}

.option-angebot .option-legend {
    color: #0f4c5c;
}

.option-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    width: 100%;
}

.option-label {
    font-size: 10px;
    font-weight: 700;
    color: #555;
    margin-bottom: 2px;
}

/* Centered inputs for Angebot Option */
.center-text input,
.center-text select {
    text-align: center;
    text-align-last: center;
    /* For selects */
}

/* Rocket Button */
.rocket-btn {
    background: #0f4c5c;
    /* Dark Teal */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: filter 0.2s;
    white-space: nowrap;
}

.rocket-btn:hover {
    filter: brightness(1.1);
}

.rocket-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}

.rocket-btn:disabled:hover {
    filter: none;
}

/* DeepDive Button */
.dd-btn {
    background: #f9a825;
    /* Orange/Yellow darker shade */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: filter 0.2s;
    white-space: nowrap;
}

.dd-btn:hover {
    filter: brightness(1.1);
}

.dd-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}

.dd-btn:disabled:hover {
    filter: none;
}

/* Ensure inputs in option box have white bg for readability */
.option-box input,
.option-box select {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    padding: 4px;
}

.table-end-marker {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
    font-size: 12px;
    background: transparent;
    width: 100%;
}

.col-end {
    min-width: 60px;
    width: 60px;
    border-left: 1px solid rgba(2, 37, 56, 0.1);
    text-align: center;
    color: #999;
    background: #fdfdfd;
    font-style: italic;
}

.table-container table {
    padding-right: 24px;
}

td:last-child,
th:last-child {
    padding-right: 24px;
}

/* Center and size Confirm columns */
#table-main th:last-child,
#table-main td:last-child,
#table-screening th:last-child,
#table-screening td:last-child,
#table-deepdive th:last-child,
#table-deepdive td:last-child,
#table-headobu th:last-child,
#table-headobu td:last-child {
    min-width: 180px;
    width: 180px;
    padding: 8px;
    text-align: center;
}

/* Drop Zone Styling */
.drop-zone {
    border: 2px dashed #0f4c5c;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    color: #666;
    font-size: 0.85em;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #1db954;
    /* Green */
    background-color: #eaffea;
    color: #022538;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.drop-zone span.hint {
    font-size: 0.75em;
    margin-top: 4px;
    color: #999;
}

.drop-zone.drag-over span.hint {
    color: #1db954;
    font-weight: bold;
}

/* Ghost Ring Buttons for Option DeepDive */
.btn-ghost {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #22c55e;
    transition: background-color 0.2s, border-color 0.2s;
    margin-left: 8px;
    flex-shrink: 0;
}

.btn-ghost svg path {
    stroke: #22c55e;
    transition: stroke 0.2s;
}

.btn-ghost:hover {
    background-color: #22c55e;
}

.btn-ghost:hover svg path {
    stroke: #ffffff;
}

.btn-ghost.btn-ghost-minus {
    border-color: #ef4444;
}

.btn-ghost.btn-ghost-minus svg path {
    stroke: #ef4444;
}

.btn-ghost.btn-ghost-minus:hover {
    background-color: #ef4444;
}

.btn-ghost.btn-ghost-minus:hover svg path {
    stroke: #ffffff;
}

/* --- Responsive Layout for Long URLs --- */
td {
    max-width: 300px;
}

td a {
    word-break: break-all;
}

/* Make Assignee Inputs blend with row slightly */
.dd-user-row .assignee-input {
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dd-user-row .assignee-input:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.deadline-input {
    background-color: rgba(15, 76, 92, 0.05);
    /* Sehr transparentes Dunkelblau */
    border: 1px solid rgba(15, 76, 92, 0.15);
    /* Sanfter Rahmen */
    border-radius: 6px;
    /* Leicht abgerundete Ecken */
    padding: 6px 10px;
    color: #022538;
    font-family: inherit;
    font-size: 13px;
    text-align: center;
    width: 100px;
    transition: all 0.2s ease;
}

.deadline-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #00a6a6;
    /* Türkis beim Anklicken */
    box-shadow: 0 0 0 3px rgba(0, 166, 166, 0.15);
    /* Moderner Leuchteffekt */
}
