.dp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #d1fae5;
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 6px;
    cursor: help;
}

.dp-badge.dp-badge-empty {
    background: #f3f4f6;
    color: #6b7280;
}

.dp-locked-input {
    background-color: #f3f4f6 !important;
    cursor: not-allowed;
}

.dp-locked-banner {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    padding: 8px 12px;
    color: #3730a3;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-locked-banner a {
    color: #3730a3;
    text-decoration: underline;
    font-weight: 600;
}

.dp-tooltip .tooltip-inner {
    white-space: pre-line;
    text-align: left;
}

.dp-pallet-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.12s;
    border: 1px solid transparent;
}

.dp-pallet-btn i {
    font-size: 0.85rem;
}

.dp-pallet-btn-empty {
    background: #f9fafb;
    color: #6b7280;
    border-color: #d1d5db;
}

.dp-pallet-btn-empty:hover {
    background: #f0f9ff;
    color: #0369a1;
    border-color: #0ea5e9;
    text-decoration: none;
}

.dp-pallet-btn-filled {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

.dp-pallet-btn-filled:hover {
    background: #a7f3d0;
    color: #064e3b;
    text-decoration: none;
}

.dp-pallet-btn-disabled {
    background: #f9fafb;
    color: #d1d5db;
    border-color: #f3f4f6;
    cursor: not-allowed;
    pointer-events: none;
}

.dp-readonly-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    color: #92400e;
}

.dp-readonly-banner i.fa-lock {
    font-size: 1.4rem;
    color: #d97706;
}

.dp-readonly-banner-text {
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.4;
}

.dp-readonly-banner-text strong {
    color: #78350f;
}

.dp-readonly-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #d97706;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.dp-readonly-banner-cta:hover {
    background: #b45309;
    color: #fff;
    text-decoration: none;
}

.dp-readonly-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.7rem;
    font-weight: 600;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.dp-readonly input,
.dp-readonly select,
.dp-readonly textarea,
input[disabled].pallet-cell-input,
input[readonly].pallet-cell-input {
    background-color: #f9fafb !important;
    color: #6b7280;
    cursor: not-allowed;
}

.dp-readonly button:disabled,
button.dp-pallet-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}
