[x-cloak] { display: none !important; }

/* Login Page */
.login-container {
    min-height: 80vh;
}
.login-card {
    max-width: 400px;
    width: 100%;
}

/* Editor Page */
.editor-container {
    display: flex;
    height: calc(100vh - 230px);
    gap: 20px;
}
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.sidebar {
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Table Styling */
.table-layout-fixed { table-layout: fixed; }

.item-row { border-bottom: 1px solid #eee; transition: background 0.2s; }
.item-row:hover { background: #f9fbfc; }

/* Zeilen-Highlight bei neuen Kommentaren (Ganz helles Pastellgelb) */
.item-row-highlight {
    background-color: #fffef2 !important; /* Viel heller als #fff3cd */
}
/* Hover-Effekt muss leicht abgedunkelt sein, damit man sieht, dass man drauf ist */
.item-row-highlight:hover {
    background-color: #fffdf0 !important;
}

/* Inputs */
.item-input {
    border: 1px solid transparent;
    background: transparent;
    resize: vertical;
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 10pt;
}
.item-input:hover { background: #f0f0f0; }
.item-input:focus {
    border-color: #86b7fe;
    outline: 0;
    background: white;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* Expanded Textareas Logic */
.expanded-cell {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}
.flex-textarea-container {
    flex: 1;
    display: flex;
    min-height: 200px;
}
.flex-textarea-container textarea {
    height: 100% !important;
}

/* Description vs Justification Backgrounds */
.item-input-description {
    background-color: #f9f9f9; /* Gräulich */
    border: 1px solid #eeeeee;
}
.item-input-justification {
    background-color: #e2e6ea; /* Dunkleres Grau zur Unterscheidung */
    border: 1px solid #ced4da;
}

/* Drag & Drop */
.drag-handle { cursor: grab; color: #ccc; }
.dropzone-area { border: 2px dashed transparent; transition: all 0.2s; border-radius: 6px; }
.dropzone-area.dragging { border-color: #0d6efd; background: #e9f5ff; }

/* History & Badges */
.history-item { border-left: 2px solid #e9ecef; padding-left: 15px; margin-bottom: 15px; position: relative; }
.history-item::before { content: ''; position: absolute; left: -5px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: #adb5bd; }
.history-item.status_change::before { background: #0d6efd; }
.status-badge { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* Comment Highlighting (Intensiveres Gelb für die Box selbst) */
.comment-highlight {
    background-color: #fff3cd !important;
    border-left: 5px solid #ff0000 !important;
}
td.p-2 {
    border-left: 1px solid #dee2e6 !important;
    border-right: 1px solid #dee2e6 !important;
}
.comment-highlight-light {
    background-color: #f9dede !important;
}
.comment-highlight-light td {
    background-color: initial;
}



/* Navbar active fix */
.navbar-nav .nav-link.active { font-weight: bold; color: #fff !important; }