/* ==========================================================================
   KØBSBILAG CRUD — list, form, view
   ========================================================================== */

/* ── List cards ── */
.bilag-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bilag-list-card {
    display: block;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.bilag-list-card:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.bilag-list-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}
.bilag-progress-bar {
    height: 4px;
    border-radius: 2px;
    background: #eee;
    overflow: hidden;
    margin-bottom: 10px;
}
.bilag-progress-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: #1d4ed8;
    transition: width 0.15s;
}
.bilag-progress-bar-fill.is-complete {
    background: #15803d;
}
.bilag-list-card-customer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #eee;
    font-size: 0.78rem;
    color: #666;
    line-height: 1.5;
    word-break: break-word;
}
.bilag-list-card-customer strong { color: #111; font-weight: 600; }

.bilag-region-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.bilag-region-eu    { background: #fef3c7; color: #92400e; }
.bilag-region-world { background: #dbeafe; color: #1e40af; }

.bilag-list-card-items {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.bilag-line-grid-wrap { overflow-x: auto; }
/* overflow-x:auto forces overflow-y:auto too (CSS overflow spec), which silently
   clips the absolutely-positioned search dropdown below its own bottom edge.
   Go overflow:visible only while a dropdown inside this wrap is open. */
.bilag-line-grid-wrap:has(.bilag-line-search-dropdown:not([hidden])) { overflow: visible; }
.bilag-line-grid {
    display: grid;
    grid-template-columns: 48px max-content minmax(120px, 1fr) max-content max-content max-content;
    min-width: 100%;
    font-size: 0.8rem;
}
.bilag-grid-row { display: contents; }
.bilag-grid-row > * {
    padding: 6px 8px;
    border-bottom: 1px solid #f5f5f5;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}
.bilag-grid-row > .bilag-num { justify-content: flex-end; white-space: nowrap; }
.bilag-discount-badge { font-size: 10px; color: var(--sbv2-moss, #4a7c59); margin-left: 4px; }
.bilag-grid-head > * {
    padding: 4px 8px;
    color: #888;
    font-weight: 500;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #eee;
}
.bilag-grid-foot > * {
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 4px;
    border-top: 2px solid #222;
    border-bottom: 0;
    font-weight: 700;
    font-size: 0.88rem;
    color: #111;
    background: #fafafa;
}
.bilag-grid-foot > *:first-child { border-top-left-radius: 6px; }
.bilag-grid-foot > *:last-child  { border-top-right-radius: 6px; }
.bilag-grid-foot .bilag-ialt-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
    font-weight: 600;
}
.bilag-line-thumb-cell { padding: 4px; }
.bilag-list-card.is-collapsed .bilag-grid-row.bilag-grid-hidden { display: none; }
.bilag-line-thumb {
    width: 40px; height: 40px;
    object-fit: cover;
    border-radius: 4px;
    background: #f5f5f5;
    display: block;
}
.bilag-line-thumb-empty {
    display: block;
    width: 40px; height: 40px;
    border-radius: 4px;
    background: #f5f5f5;
}
.bilag-line-sku { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #555; font-size: 0.76rem; }
.bilag-line-title { color: #222; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bilag-na { color: #bbb; }

/* Mobile fix: .bilag-line-grid (the per-line-item detail table — used inside
   the card view's expanded product list AND every table-view row-expand,
   card and both list-page/unified table views) had no mobile treatment.
   Its >=480px min-width CSS grid got crushed on phone widths, wrapping
   titles character-by-character instead of scrolling or reflowing. Kill
   the grid below 760px — matching the breakpoint the surrounding row/card
   chrome already reflows at (.bilag-table-row, .salgsbilag-v2
   .bilag-list-card-header, .sbv2-kpi-rail all switch at max-width:760px)
   — and lay each line out as a wrapping flex row. A narrower 640px cutoff
   here left a 641-760px dead zone where the outer row was already mobile
   but the inner line-grid was still the crushed desktop grid (#915).
   !important because several desktop-only rules elsewhere in this file
   set grid-template-columns/display on the same selectors more specifically
   than a plain class match can beat without it. */
@media (max-width: 760px) {
    .bilag-line-grid { display: block !important; min-width: 0 !important; }
    .bilag-line-grid-wrap { overflow-x: visible; }
    .bilag-grid-head { display: none; }
    .bilag-grid-row {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 10px;
        padding: 8px 2px;
        border-bottom: 1px solid #f0f0f0;
    }
    .bilag-grid-row > * { padding: 0; border-bottom: 0; }
    .bilag-line-thumb-cell { order: 1; flex: 0 0 auto; }
    .bilag-line-title {
        order: 2; flex: 1 1 auto; min-width: 0; max-width: none;
        white-space: normal; overflow-wrap: break-word; word-break: break-word;
    }
    .bilag-grid-row > .bilag-num { order: 3; flex: 0 0 auto; }
    .bilag-line-sku { order: 4; flex: 1 0 100%; font-size: 0.7rem; opacity: 0.75; }
}

.bilag-diff-good { color: #16a34a; }
.bilag-diff-low  { color: #d97706; }
.bilag-diff-loss { color: #dc2626; }
.bilag-diff-na   { color: #aaa; }
.bilag-diff-pct  { font-size: 0.72rem; opacity: 0.85; margin-left: 2px; }

.bilag-line-toggle {
    margin-top: 6px;
    background: none;
    border: 0;
    color: #555;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 4px 0;
}
.bilag-line-toggle:hover { color: #111; text-decoration: underline; }
.bilag-list-card-main {
    min-width: 0;
    flex: 1;
}
.bilag-list-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bilag-list-card-meta {
    font-size: 0.78rem;
    color: #999;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bilag-list-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.bilag-list-card-total {
    font-size: 0.88rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}

/* ── New button ── */
.bilag-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}
.bilag-new-btn:hover {
    background: #374151;
    color: #fff;
}
.bilag-btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* ── Dinero status badges ── */
.bilag-dinero-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.bilag-dinero-ok {
    background: #dcfce7;
    color: #15803d;
}
.bilag-dinero-draft {
    background: #eff6ff;
    color: #1d4ed8;
}
.bilag-dinero-error {
    background: #fee2e2;
    color: #b91c1c;
}
.bilag-dinero-partial {
    background: color-mix(in srgb, var(--sbv2-amber, #b45309) 12%, transparent);
    color: var(--sbv2-amber, #b45309);
}
.bilag-dinero-unpaid {
    background: color-mix(in srgb, var(--sbv2-muted, #888) 12%, transparent);
    color: var(--sbv2-muted, #888);
}
.bilag-dinero-nr {
    font-size: 0.84rem;
    color: #666;
    margin-left: 8px;
}
a.bilag-dinero-nr {
    color: #2563eb;
    text-decoration: none;
}
a.bilag-dinero-nr:hover {
    text-decoration: underline;
}
.bilag-dinero-error-msg {
    display: block;
    font-size: 0.8rem;
    color: #b91c1c;
    margin-top: 4px;
}

/* ── Line item rows (form) ── */
.bilag-line-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.bilag-line-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1.5px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.bilag-line-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bilag-line-thumb-empty {
    color: #9ca3af;
    font-size: .75rem;
    text-align: center;
    line-height: 1.3;
    pointer-events: none;
    user-select: none;
}
.bilag-line-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    color: #9ca3af;
    background: #fff;
    flex-shrink: 0;
    transition: color .15s, background .15s, border-color .15s;
}
.bilag-line-lock input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}
.bilag-line-lock svg {
    display: block;
    pointer-events: none;
}
.bilag-line-lock:hover { color: #4b5563; }
.bilag-line-row.bilag-line-locked .bilag-line-lock {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #b45309;
}
.bilag-line-row.bilag-line-locked .bilag-line-price {
    background: #fffbeb;
    border-color: #fcd34d;
}
.bilag-line-price.bilag-line-dirty {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
    color: #1d4ed8;
    font-weight: 600;
}
.bilag-line-row.bilag-line-locked .bilag-line-price.bilag-line-dirty {
    background: #fffbeb;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,.18);
    color: #b45309;
}
.bilag-line-desc-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
}
.bilag-line-desc {
    width: 100%;
    min-width: 0;
}
.bilag-line-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    max-height: 280px;
    overflow-y: auto;
    z-index: 50;
}
.bilag-line-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background .12s;
}
.bilag-line-search-item:last-child { border-bottom: none; }
.bilag-line-search-item:hover { background: #f9fafb; }
.bilag-line-search-thumb {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 5px;
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bilag-line-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bilag-line-search-info { flex: 1; min-width: 0; }
.bilag-line-search-title {
    font-size: .9rem;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bilag-line-search-meta {
    font-size: .78rem;
    color: #6b7280;
    margin-top: 1px;
}
.bilag-line-search-empty {
    padding: 14px;
    text-align: center;
    color: #9ca3af;
    font-size: .88rem;
}

/* Product linking, opt-in (#6333) — minimal styling only, the design
   session restyles the sheet/chips in design-soft-bilag.css. */
button.bilag-line-link {
    background: none;
    border: 1px dashed #d1d5db;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: .78rem;
    color: #6b7280;
    cursor: pointer;
}
button.bilag-line-link:hover { border-color: #9ca3af; color: #4b5563; }
.bilag-line-link.is-linked { cursor: pointer; }
.bilag-line-unlink {
    background: none;
    border: none;
    padding: 0;
    margin-left: 6px;
    font-size: .78rem;
    color: #6b7280;
    text-decoration: underline;
    cursor: pointer;
}
.bilag-line-psheet[hidden] { display: none; }
.bilag-line-psheet {
    border-top: 1px solid #e5e7eb;
    padding: 10px;
}
.bilag-line-psheet-head {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.bilag-line-psheet-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}
.bilag-line-psheet-close {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: .82rem;
    color: #6b7280;
}
.bilag-line-psheet-results {
    max-height: 280px;
    overflow-y: auto;
}
.bilag-line-price {
    width: 120px;
    flex-shrink: 0;
}

/* Distribute / target sum panel */
.bilag-distribute {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.bilag-distribute-row { display: flex; flex-direction: column; gap: 6px; }
.bilag-distribute-controls { display: flex; gap: 8px; align-items: stretch; }
.bilag-distribute-controls .mp-field-input { flex: 1; min-width: 0; }
.bilag-distribute-btn {
    padding: 0 16px;
    border: 1px solid #1f2937;
    background: #1f2937;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.bilag-distribute-btn:hover { background: #111827; }
.bilag-distribute-summary {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
    color: #4b5563;
}
.bilag-diff { font-weight: 600; }
.bilag-diff-ok   { color: #15803d; }
.bilag-diff-warn { color: #b45309; }

/* Fordel modal */
.bilag-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: bilag-modal-fade .15s ease-out;
}
@keyframes bilag-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.bilag-modal {
    background: #fff;
    border-radius: 12px;
    padding: 22px 24px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    animation: bilag-modal-pop .18s ease-out;
}
@keyframes bilag-modal-pop {
    from { transform: translateY(8px) scale(.98); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.bilag-modal h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: #111827;
}
.bilag-modal p {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: .92rem;
}
.bilag-modal-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    max-height: 240px;
    overflow-y: auto;
}
.bilag-modal-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: .88rem;
}
.bilag-modal-list li:last-child { border-bottom: none; }
.bilag-modal-li-desc {
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.bilag-modal-li-prices {
    flex-shrink: 0;
    color: #1d4ed8;
    white-space: nowrap;
}
.bilag-modal-li-orig {
    color: #6b7280;
    font-weight: normal;
    font-size: .82rem;
}
.bilag-modal-list-pick li { padding: 0; }
.bilag-modal-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    cursor: pointer;
    transition: background .12s;
}
.bilag-modal-radio:hover { background: #f3f4f6; }
.bilag-modal-radio input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
    accent-color: #1f2937;
}
.bilag-modal-radio:has(input:checked) {
    background: #eff6ff;
}
.bilag-modal-radio:has(input:checked) .bilag-modal-li-prices {
    color: #1d4ed8;
    font-weight: 700;
}
.bilag-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bilag-modal-btn {
    padding: 10px 14px;
    border-radius: 7px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: .92rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background .12s, border-color .12s, color .12s;
}
.bilag-modal-btn:hover { background: #f9fafb; border-color: #d1d5db; }
.bilag-modal-primary {
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
    font-weight: 600;
}
.bilag-modal-primary:hover { background: #111827; border-color: #111827; }
.bilag-modal-warn {
    background: #fff;
    color: #b45309;
    border-color: #fcd34d;
}
.bilag-modal-warn:hover { background: #fffbeb; border-color: #f59e0b; }
.bilag-modal-cancel {
    color: #6b7280;
    text-align: center;
    margin-top: 4px;
}
.bilag-line-remove {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 1.1rem;
    color: #bbb;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.bilag-line-remove:hover {
    color: #c62828;
    border-color: #fecaca;
    background: #fef2f2;
}
.bilag-add-line {
    display: block;
    width: 100%;
    padding: 10px;
    border: 2px dashed #e0dcd6;
    border-radius: 8px;
    background: none;
    color: #999;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, color 0.15s;
}
.bilag-add-line:hover {
    border-color: #bbb;
    color: #555;
}

/* ── View page sections ── */
.bilag-view-section {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.bilag-view-section:last-child {
    border-bottom: none;
}
.bilag-view-section h4 {
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
}
.bilag-contact-raw {
    font-family: inherit;
    font-size: 0.88rem;
    color: #333;
    white-space: pre-wrap;
    background: #fafafa;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    margin: 0;
    line-height: 1.5;
}
.bilag-structured-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 10px;
    font-size: 0.84rem;
    color: #555;
}
.bilag-structured-field strong {
    color: #888;
    font-weight: 500;
}
.bilag-view-meta-row {
    display: flex;
    gap: 24px;
    font-size: 0.86rem;
    color: #555;
}
.bilag-view-meta-row strong {
    color: #888;
    font-weight: 500;
}

/* ── View line items ── */
.bilag-view-lines {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.bilag-view-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}
.bilag-view-line:last-child {
    border-bottom: none;
}
.bilag-view-line-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.bilag-view-line-desc {
    font-size: 0.88rem;
    color: #333;
    flex: 1;
    min-width: 0;
}
.bilag-view-line-price {
    font-size: 0.86rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}
.bilag-view-line-action {
    flex-shrink: 0;
}
.bilag-product-link {
    font-size: 0.78rem;
    color: #15803d;
    text-decoration: none;
    font-weight: 500;
}
.bilag-product-link:hover {
    text-decoration: underline;
}
.bilag-create-product-link {
    font-size: 0.78rem;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
}
.bilag-create-product-link:hover {
    text-decoration: underline;
}
.bilag-view-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #eee;
    font-size: 0.92rem;
    color: #222;
}
.bilag-view-total strong {
    color: #888;
    font-weight: 500;
}
.bilag-empty-lines {
    color: #999;
    font-size: 0.86rem;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .bilag-line-row {
        flex-wrap: wrap;
    }
    .bilag-line-thumb {
        order: 0;
    }
    .bilag-line-desc-wrap {
        flex: 1 1 calc(100% - 50px);
    }
    .bilag-line-price {
        flex: 1;
        width: auto;
    }
    .bilag-line-remove {
        min-height: 44px;
        min-width: 44px;
    }
    .bilag-add-line {
        min-height: 48px;
        font-size: 0.9rem;
    }
    .bilag-new-btn {
        min-height: 48px;
        padding: 12px 24px;
    }
    .bilag-view-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .bilag-view-line-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .bilag-view-meta-row {
        flex-direction: column;
        gap: 6px;
    }
    .bilag-list-card {
        padding: 12px 14px;
    }
}

/* ── Reset/delete buttons ── */
.bilag-reset-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.bilag-btn-reset {
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.bilag-btn-reset:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
}
.bilag-btn-reset-danger {
    color: #b91c1c;
    border-color: #fecaca;
}
.bilag-btn-reset-danger:hover {
    background: #fef2f2;
    border-color: #f87171;
    color: #991b1b;
}
.bilag-btn-reset-primary {
    color: #15803d;
    border-color: #bbf7d0;
}
.bilag-btn-reset-primary:hover {
    background: #f0fdf4;
    border-color: #4ade80;
    color: #166534;
}
.bilag-btn-reset:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
@media (max-width: 600px) {
    .bilag-btn-reset {
        min-height: 40px;
        padding: 8px 14px;
    }
}

