.actions-cell {
    text-align: center;
    white-space: nowrap;
}

.actions-cell .btn {
    margin: 0 4px 4px 0;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f3f4f6;
    color: #111827;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.app-header {
    background: linear-gradient(135deg, #b2cb00 0%, #8fb300 100%);
    color: white;
    padding: 18px 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.app-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.app-header p {
    opacity: 0.9;
    font-size: 14px;
}

.header-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: white;
    padding: 8px;
    display: flex;
    align-items: center;
}

.header-user-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    top: 18px;
    right: 24px;
}

.user-display {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.user-info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.2);
}

.user-name {
    font-weight: 600;
    font-size: 15px;
    color: white;
    margin-bottom: 2px;
}

.user-roles {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-roles span {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-logout:active {
    background: rgba(255, 255, 255, 0.4);
}

.btn-profile {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-profile:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

@media (max-width: 640px) {
    .app-header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-logo {
        width: 64px;
        height: 64px;
    }
}

.toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.toolbar .btn {
    padding: 8px 16px;
    font-size: 13px;
}

.status-multiselect {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.status-multiselect label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
}

.status-multiselect input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-compact {
    padding: 8px 14px;
}

/* Todo-Button in Toolbar */
#btn-toolbar-add-todo {
    background: var(--color-todo);
    color: white;
}

#btn-toolbar-add-todo:hover {
    background: var(--color-todo-hover);
}

/* Farben für Reklamationen, Retouren und Todos */
:root {
    --color-reklamation: #dc2626;
    --color-reklamation-hover: #b91c1c;
    --color-reklamation-light: #fee2e2;
    --color-reklamation-border: #991b1b;
    
    --color-retoure: #f97316;
    --color-retoure-hover: #ea580c;
    --color-retoure-light: #fed7aa;
    --color-retoure-border: #c2410c;
    
    --color-todo: #2563eb;
    --color-todo-hover: #1d4ed8;
    --color-todo-light: #dbeafe;
    --color-todo-border: #1e40af;
}

.btn-primary {
    background: var(--color-retoure);
    color: white;
}

.btn-primary:hover {
    background: var(--color-retoure-hover);
}

.btn-secondary {
    background: var(--color-reklamation);
    color: white;
}

.btn-secondary:hover {
    background: var(--color-reklamation-hover);
}

.btn-outline {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
    padding: 12px 24px;
    border: 1px solid transparent;
    border-bottom: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    top: 2px;
}

.tab-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.tab-btn.active {
    background: white;
    color: #111827;
    border-color: #e5e7eb;
    border-bottom: 2px solid white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
    top: 0;
}

/* Tab-spezifische Farben */
.tab-btn[data-tab="reklamationen"] {
    border-left: 3px solid var(--color-reklamation);
}

.tab-btn[data-tab="reklamationen"]:hover {
    background: var(--color-reklamation-light);
    color: var(--color-reklamation);
}

.tab-btn[data-tab="reklamationen"].active {
    border-left: 3px solid var(--color-reklamation);
    border-bottom: 2px solid var(--color-reklamation);
    color: var(--color-reklamation);
}

.tab-btn[data-tab="retoures"] {
    border-left: 3px solid var(--color-retoure);
}

.tab-btn[data-tab="retoures"]:hover {
    background: var(--color-retoure-light);
    color: var(--color-retoure);
}

.tab-btn[data-tab="retoures"].active {
    border-left: 3px solid var(--color-retoure);
    border-bottom: 2px solid var(--color-retoure);
    color: var(--color-retoure);
}

.tab-btn[data-tab="todos"] {
    border-left: 3px solid var(--color-todo);
}

.tab-btn[data-tab="todos"]:hover {
    background: var(--color-todo-light);
    color: var(--color-todo);
}

.tab-btn[data-tab="todos"].active {
    border-left: 3px solid var(--color-todo);
    border-bottom: 2px solid var(--color-todo);
    color: var(--color-todo);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Tabellen-Container mit Bereichs-Farben */
#content-reklamationen .table-container {
    border-top: 3px solid var(--color-reklamation);
}

#content-retoures .table-container {
    border-top: 3px solid var(--color-retoure);
}

/* Filter-Container mit Bereichs-Farben */
#content-reklamationen .filter-container {
    border-left: 4px solid var(--color-reklamation) !important;
}

#content-retoures .filter-container {
    border-left: 4px solid var(--color-retoure) !important;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f9fafb;
}

/* Tabellen-Header mit Bereichs-Farben */
#content-reklamationen thead {
    background: var(--color-reklamation-light);
    border-bottom: 2px solid var(--color-reklamation);
}

#content-reklamationen thead th {
    color: var(--color-reklamation);
    font-weight: 600;
}

#content-retoures thead {
    background: var(--color-retoure-light);
    border-bottom: 2px solid var(--color-retoure);
}

#content-retoures thead th {
    color: var(--color-retoure);
    font-weight: 600;
}

th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
}

tbody tr:hover {
    background: #f9fafb;
}

.loading {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px !important;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-offen {
    background: #fee2e2;
    color: #991b1b;
}

.status-inbearbeitung {
    background: #fef3c7;
    color: #92400e;
}

.status-erledigt {
    background: #d1fae5;
    color: #065f46;
}

.status-archiviert {
    background: #9ca3af;
    color: white;
}

.status-sendung-zurueck {
    background: #fef3c7;
    color: #92400e;
}

.btn-small {
    padding: 5px 12px;
    font-size: 12px;
    margin-right: 5px;
}

.btn-edit {
    background: #2563eb;
    color: white;
}

.btn-edit:hover {
    background: #1d4ed8;
}

.history-text {
    max-width: 400px;
    white-space: pre-wrap;
    font-size: 12px;
    color: #6b7280;
    max-height: 100px;
    overflow-y: auto;
}

/* Dialog Styles */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.dialog-overlay.hidden {
    display: none;
}

.dialog {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.dialog-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.btn-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.dialog-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #b2cb00;
    box-shadow: 0 0 0 3px rgba(178, 203, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button input {
    flex: 1;
}

.readonly {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.status-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.status-message.show {
    display: block;
}

.status-message.success {
    background: #d1fae5;
    color: #065f46;
}

.status-message.error {
    background: #fee2e2;
    color: #991b1b;
}

.status-message.info {
    background: #dbeafe;
    color: #1e40af;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.status-icon {
    display: inline-block;
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 4px;
}

.retoure-icon {
    background: #fef3c7;
    color: #92400e;
    cursor: help;
}

.retoure-icon:hover {
    background: #fde68a;
}

/* Search Dialog Styles */
.search-results {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.search-placeholder {
    text-align: center;
    color: #6b7280;
    padding: 40px 20px;
    font-style: italic;
}

.search-result-section {
    margin-bottom: 20px;
}

.search-result-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-item {
    background: white;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}

.search-result-item:hover {
    background: #f3f4f6;
    border-color: #b2cb00;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-result-item.selected {
    background: #fef3c7;
    border-color: #b2cb00;
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.search-result-order-id {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.search-result-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
}

.search-result-info {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.search-result-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.highlighted-row {
    background: #fef3c7 !important;
    border: 2px solid #b2cb00 !important;
    animation: highlightPulse 1s ease-in-out;
}

@keyframes highlightPulse {
    0% { background: #fef3c7; }
    50% { background: #fde68a; }
    100% { background: #fef3c7; }
}

tbody tr.highlighted-row td {
    border-top: 2px solid #b2cb00;
}

/* Kamera Dialog Styles */
.camera-container {
    position: relative;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-placeholder {
    text-align: center;
    padding: 40px;
    color: #fff;
}

.camera-placeholder p {
    margin-bottom: 20px;
    font-size: 16px;
}

.camera-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

#camera-video {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: #000;
}

#captured-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
}

#ocr-results {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

#ocr-results h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #374151;
}

#ocr-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
}

#extracted-order-id {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.camera-mode-selector {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.mode-btn {
    flex: 1;
    padding: 8px 16px;
}

.mode-btn.active {
    background: #b2cb00;
    color: white;
    border-color: #b2cb00;
}

.camera-mode {
    min-height: 300px;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.upload-preview-item {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.upload-preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.upload-preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.batch-results-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px;
    background: #f9fafb;
}

.batch-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}

.batch-result-item:last-child {
    margin-bottom: 0;
}

.batch-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.batch-result-info {
    flex: 1;
}

.batch-result-order-id {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.batch-result-status {
    font-size: 12px;
    color: #6b7280;
}

.batch-result-actions {
    display: flex;
    gap: 5px;
}

.batch-result-item input[type="text"] {
    width: 200px;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
}

.batch-result-item .btn-small {
    padding: 4px 8px;
    font-size: 12px;
}

.batch-retoure-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px;
    background: #f9fafb;
    margin-top: 10px;
}

.batch-retoure-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}

.batch-retoure-item:last-child {
    margin-bottom: 0;
}

.batch-retoure-item input[type="text"] {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    margin-right: 10px;
}

.batch-retoure-item .status-icon {
    margin-right: 10px;
}

.batch-retoure-item .status-icon.check {
    color: #16a34a;
}

.batch-retoure-item .status-icon.error {
    color: #dc2626;
}

.retoure-address-container {
    margin-bottom: 15px;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.retoure-address-container.hidden {
    display: none;
}

.retoure-address-container label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    color: #374151;
    margin-bottom: 8px;
}

.retoure-address {
    font-size: 13px;
    color: #111827;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Kanban Board Styles */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.kanban-column {
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    max-height: calc(100vh - 300px);
}

.kanban-column-header {
    padding: 15px;
    background: white;
    border-bottom: 3px solid var(--color-todo);
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-column-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.kanban-count {
    background: #e5e7eb;
    color: #374151;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.kanban-column-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-loading {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-size: 14px;
}

.kanban-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--color-todo);
    border-radius: 6px;
    padding: 12px;
    cursor: move;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.kanban-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.kanban-card.dragging {
    opacity: 0.5;
}

.kanban-card.erledigt {
    opacity: 0.7;
    background: #f3f4f6;
}

/* Todo-Card mit Reklamation: Reklamationsfarbe verwenden */
.kanban-card.has-reklamation {
    border-left: 4px solid var(--color-reklamation);
    background: #fefefe;
}

.kanban-card.has-reklamation:hover {
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.15);
}

.kanban-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.kanban-card-id {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.kanban-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 11px;
    color: #6b7280;
}

.kanban-card-created {
    font-size: 10px;
    color: #9ca3af;
}

.kanban-card-actions {
    display: flex;
    gap: 5px;
}

.kanban-card-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.kanban-card-actions button:hover {
    background: #f3f4f6;
    color: #111827;
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.kanban-card-description {
    font-size: 14px;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.5;
}

.kanban-card-produkt {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    font-style: italic;
}

.kanban-card-order {
    font-size: 13px;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.kanban-card-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.kanban-card-status.offen {
    background: #fef3c7;
    color: #92400e;
}

.kanban-card-status.in-bearbeitung {
    background: #dbeafe;
    color: #1e40af;
}

.kanban-card-status.erledigt {
    background: #d1fae5;
    color: #065f46;
}

.kanban-card-date {
    font-size: 11px;
    color: #6b7280;
}

.kanban-card-date.overdue {
    color: #dc2626;
    font-weight: 600;
}

.order-info {
    background: #fefefe;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 13px;
}

.order-info-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: #4b5563;
}

.order-info-summary strong {
    color: #1f2937;
}

.order-info.hidden {
    display: none;
}

.order-info-columns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.order-info-block {
    flex: 1;
    min-width: 220px;
}

.order-info-block h4 {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #111827;
}

.order-info-placeholder {
    padding: 12px;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.order-items-table th {
    text-align: left;
    padding: 6px 8px;
    background: #eef2ff;
    border-bottom: 1px solid #dbeafe;
}

.order-items-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #e5e7eb;
}

.order-items-empty {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
}

.shipping-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shipping-list a {
    color: #2563eb;
    font-size: 13px;
    text-decoration: none;
}

.shipping-list a:hover {
    text-decoration: underline;
}

.btn-link {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

.kanban-move-buttons {
    display: flex;
    gap: 5px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.kanban-move-buttons button {
    flex: 1;
    padding: 6px 8px;
    font-size: 11px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.kanban-move-buttons button:hover {
    background: #e5e7eb;
}

.kanban-column-body.drop-target {
    background: #eef2ff;
    border: 2px dashed #c7d2fe;
    border-radius: 8px;
}

/* Todo Bild-Thumbnails */
.kanban-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    cursor: pointer;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.kanban-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    position: relative;
}

.kanban-thumbnail-more {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.kanban-thumbnail-more:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Todo Bearbeitungs-Dialog Thumbnails */
.todo-image-thumbnail {
    position: relative;
    display: inline-block;
    margin: 0;
}

.todo-thumbnail-img {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
}

.todo-thumbnail-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #b2cb00;
}

.todo-image-thumbnail .btn-delete-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 5;
    line-height: 1;
    padding: 0;
}

.todo-image-thumbnail .btn-delete-image:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

.todo-image-thumbnail .btn-remove-preview {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f59e0b;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 5;
    line-height: 1;
    padding: 0;
}

.todo-image-thumbnail .btn-remove-preview:hover {
    background: #d97706;
    transform: scale(1.1);
}

.todo-thumbnail-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    font-size: 10px;
    padding: 4px 6px;
    border-radius: 0 0 6px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.image-gallery-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.image-gallery-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.image-gallery-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.gallery-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

/* Confirmation Modal */
.confirm-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirm-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
}

.confirm-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.confirm-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.confirm-modal-body {
    padding: 20px 24px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.confirm-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
}

.confirm-modal-footer .btn {
    min-width: 100px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

.confirm-modal-footer .btn-cancel {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.confirm-modal-footer .btn-cancel:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.confirm-modal-footer .btn-confirm {
    background: #2563eb;
    color: white;
    border: 1px solid #2563eb;
}

.confirm-modal-footer .btn-confirm:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

