tr.row-clickable td a {
    display: block;
    color: #000;
}

.small-text {
    font-size: small;
}

.nobreak {
    page-break-after: avoid;
}

@media print {
    footer {
        position: fixed;
        bottom: 0;
    }
}

/* Links */
a {
    color: #CD9438;
    text-decoration: none;
    transition: color 0.1s;
}

a:hover {
    color: #A7772A;
}

/* Buttons */
.button {
    transition: all 0.3s ease;
    border: none;
    padding: 0.5rem 0.75rem;
    height: auto;
    font-weight: 500;
    white-space: nowrap;
}

.button.is-primary {
    background-color: #CD9438;
    color: white;
}

.button.is-primary:hover,
.button.is-primary:active,
.button.is-primary:focus {
    background-color: #A7772A;
    color: white;
}

.button:hover,
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button.is-secondary {
    background-color: #504538;
    color: white;
}

.button.is-secondary:hover,
.button.is-secondary:active,
.button.is-secondary:focus {
    background-color: #40372D;
    color: white;
}

.button.is-danger {
    background-color: #C2544F;
}

/* PDF EXPORT STUFF */

.pickup-table {
    width: 100%;
    border: none;
    padding: 0;
}

.pdf {
    font-family: Arial,sans-serif;
}

.pdf .solid-table {
    width: 100%;
    border: 1px solid black;
    border-collapse: collapse;
    margin: 16px 0;
}

.pdf .solid-table th,
.pdf .solid-table td {
    border: 1px solid black;
    padding: 4px;
    vertical-align: top;
    text-align: left;
}

.pdf .solid-table th {
    font-weight: bold;
    background-color: white;
}

.pdf .solid-table td:first-child {
    width: 130px;
}

.pdf .document-headline {
    display: block;
    margin-top: 16px;
}

/* Two tables next to each other */
/* DOMPDF doesn't support flexbox, grids, floats, ... */
.pdf .container-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.pdf .container-cell {
    width: 50%;
    vertical-align: top;
    padding: 0 8px;
    border: none;
}

.pdf .container-cell:first-child {
    padding-left: 0;
}

.pdf .container-cell:last-child {
    padding-right: 0;
}

/* Signature */
.pdf .signature-line {
    display: inline-block;
    margin-right: 10px;
    margin-left: 10px;
    margin-top: 80px;
}

.pdf .signature-block {
    page-break-inside: avoid;
}

.pdf .line {
    width: 210px;
    border-bottom: 1px solid black;
    margin-bottom: 5px;
}

.pdf .label {
    font-size: 12px;
    color: #333;
}

.map-fullwidth {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container {
    margin: 20px 0;
}

.picture-item-wrapper {
    position: relative;
    display: inline-block;
}

/* Gemeinsame Basis */
.picture-delete-form,
.picture-download-button {
    position: absolute;
    top: 5px;
    z-index: 10;
}

/* Delete rechts */
.picture-delete-form {
    right: 5px;
}

/* Download links daneben */
.picture-download-button {
    right: 34px; /* 5px + 24px + 5px Abstand */
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

/* Delete Button Styling (wie vorhanden) */
.picture-delete-form .delete-button {
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
}

/* Comment cell gets to long and breaks UI  */
.comment-cell {
    word-break: break-word;
    max-width: 300px;
    white-space: normal;

}

/* Dashboard mockup */
.dashboard-page {
    --dashboard-primary: #CD9438;
    --dashboard-secondary: #504538;
    --dashboard-green: #00B686;
    --dashboard-border: #e5e7eb;
    --dashboard-muted: #6b7280;
    background: #f3f4f6;
    color: #1f2937;
    font-family: Inter, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: -1.25rem;
    min-height: calc(100vh - 2.5rem);
}

.dashboard-header {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--dashboard-border);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .65rem 1rem;
}

.dashboard-header h1 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.dashboard-header p {
    color: #9ca3af;
    font-size: .63rem;
    margin: .15rem 0 0;
}

.dashboard-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.dashboard-filter,
.dashboard-export {
    align-items: center;
    border-radius: 4px;
    display: inline-flex;
    font-size: .63rem;
    gap: .35rem;
    line-height: 1;
    min-height: 1.65rem;
    padding: .35rem .55rem;
}

.dashboard-filter {
    background: #ffffff;
    border: 1px solid var(--dashboard-border);
    color: #4b5563;
}

.dashboard-customer-select {
    appearance: none;
    background: #ffffff;
    border: 1px solid var(--dashboard-border);
    border-radius: 4px;
    color: #4b5563;
    font-size: .63rem;
    line-height: 1;
    min-height: 1.65rem;
    min-width: 9.5rem;
    padding: .35rem 1.55rem .35rem .55rem;
}

.dashboard-select-wrap {
    align-items: center;
    display: inline-flex;
    position: relative;
}

.dashboard-select-wrap i {
    color: #9ca3af;
    font-size: .55rem;
    pointer-events: none;
    position: absolute;
    right: .55rem;
}

.dashboard-filter i {
    color: #9ca3af;
    font-size: .55rem;
}

.dashboard-date-filter {
    align-items: center;
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 4px;
    color: #4b5563;
    display: inline-flex;
    font-size: .63rem;
    gap: .35rem;
    line-height: 1;
    min-height: 1.65rem;
    padding: .35rem .45rem .35rem .55rem;
}

.dashboard-date-filter input {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #4b5563;
    font: inherit;
    line-height: 1;
    min-width: 7.7rem;
    outline: 0;
    padding: 0;
}

.dashboard-date-filter input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .55;
}

.dashboard-export {
    background: var(--dashboard-primary);
    border: 1px solid var(--dashboard-primary);
    color: #ffffff;
    font-weight: 700;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin: 0 auto;
    max-width: 1400px;
    padding: 1rem;
}

.dashboard-section {
    background: #ffffff;
    border: 1px solid var(--dashboard-border);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    padding: .75rem;
}

.dashboard-section-title {
    align-items: center;
    color: var(--dashboard-secondary);
    display: flex;
    font-size: .68rem;
    font-weight: 800;
    gap: .5rem;
    letter-spacing: .08em;
    margin-bottom: .75rem;
    text-transform: uppercase;
}

.dashboard-section-title span {
    align-items: center;
    background: var(--dashboard-primary);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 1.25rem;
    font-size: .75rem;
    height: 1.25rem;
    justify-content: center;
    letter-spacing: 0;
    width: 1.25rem;
}

.dashboard-kpi-grid,
.dashboard-weee-grid {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: .75rem;
}

.dashboard-kpi,
.dashboard-weee,
.dashboard-esg-tile {
    background: #ffffff;
    border: 1px solid var(--dashboard-border);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.dashboard-kpi {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 0;
    padding: .75rem;
}

.dashboard-card-top {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}

.dashboard-icon,
.dashboard-round-icon {
    align-items: center;
    background: var(--dashboard-primary);
    color: #ffffff;
    display: inline-flex;
    flex-shrink: 0;
    justify-content: center;
}

.dashboard-icon {
    border-radius: 4px;
    height: 2.25rem;
    width: 2.25rem;
}

.dashboard-round-icon {
    border-radius: 999px;
    height: 2.5rem;
    width: 2.5rem;
}

.dashboard-kpi strong {
    color: #1e293b;
    display: block;
    font-size: 1.5rem;
    line-height: 1.05;
}

.dashboard-kpi strong.is-green,
.dashboard-refund {
    color: var(--dashboard-green);
}

.dashboard-kpi small,
.dashboard-weee small {
    color: var(--dashboard-muted);
    display: block;
    font-size: .63rem;
    line-height: 1.2;
}

.dashboard-trend {
    align-items: center;
    display: inline-flex;
    font-size: .63rem;
    gap: .15rem;
    white-space: nowrap;
}

.dashboard-trend-up {
    color: #22c55e;
}

.dashboard-trend-down {
    color: #ef4444;
}

.dashboard-table-wrap {
    border: 1px solid #f3f4f6;
    border-radius: 4px;
    overflow-x: auto;
}

.dashboard-table {
    border-collapse: collapse;
    font-size: .63rem;
    min-width: 880px;
    width: 100%;
}

.dashboard-table thead tr {
    background: #f3f4f6;
    color: #6b7280;
    font-size: .56rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dashboard-table th,
.dashboard-table td {
    padding: .4rem .5rem;
    text-align: left;
    white-space: nowrap;
}

.dashboard-table th {
    font-weight: 700;
}

.dashboard-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.dashboard-table td {
    color: #6b7280;
}

.dashboard-table td strong {
    color: #374151;
}

.dashboard-more {
    color: #3b82f6;
    display: block;
    font-size: .63rem;
    padding: .4rem;
    text-align: center;
    text-decoration: none;
}

.dashboard-more.is-right {
    padding-bottom: 0;
    text-align: right;
}

.dashboard-weee {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: .75rem;
}

.dashboard-weee-main {
    align-items: center;
    display: flex;
    gap: .75rem;
}

.dashboard-weee strong {
    color: #1f2937;
    display: block;
    font-size: 1.25rem;
    line-height: 1.05;
}

.dashboard-progress {
    background: #f3f4f6;
    border-radius: 999px;
    height: .38rem;
    overflow: hidden;
}

.dashboard-progress span {
    background: var(--dashboard-primary);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.dashboard-esg-layout {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-subpanel {
    border: 1px solid #f3f4f6;
    border-radius: 4px;
    padding: .75rem;
}

.dashboard-subpanel h2 {
    color: #6b7280;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 .75rem;
    text-transform: uppercase;
}

.dashboard-esg-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-esg-tile {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: .38rem;
    min-height: 6.4rem;
    padding: .65rem;
    text-align: center;
}

.dashboard-esg-tile .dashboard-icon {
    height: 2.25rem;
    width: 2.25rem;
}

.dashboard-esg-tile strong {
    color: #1f2937;
    font-size: .88rem;
    line-height: 1;
}

.dashboard-esg-tile strong small {
    color: #6b7280;
    font-size: .63rem;
    font-weight: 400;
    margin-left: .15rem;
}

.dashboard-esg-tile p {
    color: #6b7280;
    font-size: .56rem;
    line-height: 1.2;
    margin: 0;
}

.dashboard-compliance-row {
    align-items: flex-start;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    gap: .5rem;
    padding: .35rem 0;
}

.dashboard-compliance-row > i {
    color: #22c55e;
    flex-shrink: 0;
    font-size: .82rem;
    margin-top: .05rem;
}

.dashboard-compliance-row strong,
.dashboard-compliance-row small {
    display: block;
    line-height: 1.2;
}

.dashboard-compliance-row strong {
    color: #374151;
    font-size: .63rem;
}

.dashboard-compliance-row small {
    color: #9ca3af;
    font-size: .56rem;
}

.dashboard-compliance-summary {
    align-items: center;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    color: #166534;
    display: flex;
    font-size: .56rem;
    font-weight: 700;
    gap: .4rem;
    margin-top: .75rem;
    padding: .5rem;
}

.dashboard-compliance-summary i {
    color: var(--dashboard-green);
    font-size: .9rem;
}

@media (max-width: 1180px) {
    .dashboard-kpi-grid,
    .dashboard-weee-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-header,
    .dashboard-esg-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-filters {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .dashboard-kpi-grid,
    .dashboard-weee-grid,
    .dashboard-esg-grid {
        grid-template-columns: 1fr;
    }
}

