.orderwrapper {
    min-height: 100vh;
    position: relative;
}

.tt-menu {
    max-height: 300px !important;
}

tr.clickable-row:hover {
    cursor: pointer;
}

tr.clickable-mp-row:hover {
    cursor: pointer;
}

.mdi.md-18 { font-size: 18px; }
.mdi.md-24 { font-size: 24px; }
.mdi.md-36 { font-size: 36px; }
.mdi.md-48 { font-size: 48px; }

.footer-links { font-size: 12px; }

.footer {
    background-color: inherit;
}

.login-register-pg {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    height: 100%;
    width: 100%;
    padding: 4% 0;
    position: fixed;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border: 2px solid #fc4b6c;
}

.hidden {
    display: none;
}

.dataTablesWrapper {
    width: 100%;
    margin-left: 0 auto;
    margin-right: 0 auto;
    margin-top: 20px;
}

#tblWordpress_filter {
    visibility: hidden;
}

#tblDomains_filter {
    visibility: hidden;
}

.passwordMask {
    border: none;
    width: 90%;
}

.passwordMask:disabled {
    background-color: inherit;
}

.form-group-webhotel-type {
    margin-top: 15px;
    margin-bottom: 15px;
}
/***
.btnPasswordToggle {
    width: 8%;
}
*/

/* ============================================================
   Kobling abonnement ↔ repeterende faktura
   ============================================================ */

#bulkActionsToolbar {
    position: sticky;
    top: 70px; /* ligger like under nav-baren */
    z-index: 5;
    background: linear-gradient(90deg, #e7f3ff 0%, #d6ecff 100%);
    border: 1px solid #b6dcff;
    color: #1a4a7a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    animation: bulkToolbarSlide 180ms ease-out;
}

@keyframes bulkToolbarSlide {
    from { transform: translateY(-8px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

#bulkActionsCounter {
    display: inline-block;
    min-width: 1.5em;
    text-align: center;
    padding: 0 0.4em;
    background: #1a4a7a;
    color: #fff;
    border-radius: 999px;
    font-size: 0.85em;
    line-height: 1.4em;
    transition: transform 120ms ease-out;
}

#bulkActionsCounter.pulse {
    transform: scale(1.25);
}

/* Per-rad Koble til-knapp */
.btn-link-single-ri {
    transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}
.btn-link-single-ri:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.18);
}

/* Modal: kandidat-fakturaer som klikkbare kort */
#linkRiCandidatesList .list-group-item {
    border-left: 4px solid transparent;
    transition: border-color 120ms ease-out, background-color 120ms ease-out;
    cursor: pointer;
}
#linkRiCandidatesList .list-group-item:hover {
    background-color: #f3f9ff;
}
#linkRiCandidatesList .list-group-item.active {
    border-left-color: #0d6efd;
    background-color: #e7f3ff;
    color: inherit;
}
#linkRiCandidatesList .ri-meta {
    font-size: 0.82em;
    color: #6c757d;
    margin-top: 2px;
}
#linkRiCandidatesList .ri-meta .meta-sep {
    margin: 0 0.4em;
    color: #adb5bd;
}

/* Valgte abonnement-chips */
#linkRiSelectedSubs .sub-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25em 0.6em 0.25em 0.7em;
    background: #e9ecef;
    color: #212529;
    border-radius: 999px;
    font-size: 0.85em;
    transition: background-color 120ms;
}
#linkRiSelectedSubs .sub-chip:hover {
    background: #dee2e6;
}
#linkRiSelectedSubs .sub-chip .chip-remove {
    margin-left: 0.5em;
    color: #6c757d;
    cursor: pointer;
    line-height: 1;
    font-size: 1.1em;
}
#linkRiSelectedSubs .sub-chip .chip-remove:hover {
    color: #dc3545;
}

/* Multi-select på faktura-side: label-stil for klikkbare rader */
#subscriptionSearchResults .list-group-item {
    transition: background-color 120ms;
}
#subscriptionSearchResults .list-group-item:hover {
    background-color: #f8f9fa;
}
#subscriptionSearchResults .list-group-item input.add-sub-checkbox:checked ~ .flex-grow-1 {
    font-weight: 500;
}
#subscriptionSearchResults .list-group-item input.add-sub-checkbox {
    cursor: pointer;
}

/* Stable create-modal over link-modal (Bootstrap modal-stacking) */
#createRepeatingInvoiceModal { z-index: 1080; }
.modal-backdrop.modal-backdrop-stacked { z-index: 1075; }

/* Per-subscription resultatliste i Swal */
.link-result-list {
    text-align: left;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}
.link-result-list li {
    padding: 0.4em 0.7em;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.9em;
}
.link-result-list li:last-child { border-bottom: 0; }
.link-result-list li.ok    { color: #1a7e3a; }
.link-result-list li.fail  { color: #b02a37; }
.link-result-list li .res-id { font-weight: 600; margin-right: 0.4em; }

/* Dark-mode-varianter */
body[data-theme="dark"] #bulkActionsToolbar {
    background: linear-gradient(90deg, #1c344a 0%, #214b75 100%);
    border-color: #2c5d8e;
    color: #d6ecff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
body[data-theme="dark"] #bulkActionsCounter {
    background: #4a8bc7;
    color: #fff;
}
body[data-theme="dark"] #linkRiCandidatesList .list-group-item {
    background-color: #2a2c3e;
    color: #e0e0e0;
    border-color: #3a3d52;
}
body[data-theme="dark"] #linkRiCandidatesList .list-group-item:hover {
    background-color: #34384c;
}
body[data-theme="dark"] #linkRiCandidatesList .list-group-item.active {
    background-color: #1c3a5c;
    border-left-color: #4a8bc7;
}
body[data-theme="dark"] #linkRiCandidatesList .ri-meta {
    color: #9ca3af;
}
body[data-theme="dark"] #linkRiSelectedSubs .sub-chip {
    background: #3a3d52;
    color: #e0e0e0;
}
body[data-theme="dark"] #linkRiSelectedSubs .sub-chip:hover {
    background: #44475e;
}
body[data-theme="dark"] #linkRiSelectedSubs .sub-chip .chip-remove {
    color: #9ca3af;
}
body[data-theme="dark"] .link-result-list {
    border-color: #3a3d52;
}
body[data-theme="dark"] .link-result-list li {
    border-bottom-color: #2a2c3e;
}
body[data-theme="dark"] .link-result-list li.ok    { color: #6ee7a8; }
body[data-theme="dark"] .link-result-list li.fail  { color: #f47b8a; }
body[data-theme="dark"] #subscriptionSearchResults .list-group-item:hover {
    background-color: #34384c;
}

/* ============================================================
   subscriptions_company-view — beautification
   ============================================================ */

.subs-page .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 200ms ease-out;
}
.subs-page .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.subs-page .card-header {
    border-bottom: 0;
    padding: 0.9rem 1.25rem;
}
.subs-page .card-header [data-feather] {
    margin-right: 0.4rem;
}

/* Klikkbar abonnement-rad */
.subs-page .clickable-subscription-row {
    cursor: pointer;
    transition: background-color 120ms ease-out, box-shadow 120ms ease-out;
}
.subs-page .clickable-subscription-row:hover {
    background-color: #f8fafc;
    box-shadow: inset 3px 0 0 #0d6efd;
}
.subs-page .clickable-subscription-row td {
    vertical-align: middle;
}

/* Handlingsknapper løfter seg pent */
.subs-page .btn-resolve-issue,
.subs-page .btn-link-subscription,
.subs-page .btn-mark-invoiced,
.subs-page .btn-create-subscription,
.subs-page .btn-manage-allocation,
.subs-page .btn-mca-start,
.subs-page .btn-mca-start-company,
.subs-page .btn-mca-resend-company {
    transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}
.subs-page .btn-resolve-issue:hover,
.subs-page .btn-link-subscription:hover,
.subs-page .btn-mark-invoiced:hover,
.subs-page .btn-create-subscription:hover,
.subs-page .btn-manage-allocation:hover,
.subs-page .btn-mca-start:hover,
.subs-page .btn-mca-start-company:hover,
.subs-page .btn-mca-resend-company:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Konsistent badge-stil i radene */
.subs-page .table .badge {
    padding: 0.4em 0.65em;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Pen tomme tilstand */
.subs-page .subs-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6c757d;
}
.subs-page .subs-empty-state [data-feather] {
    width: 48px;
    height: 48px;
    color: #adb5bd;
    margin-bottom: 0.75rem;
    stroke-width: 1.5;
}
.subs-page .subs-empty-state h6 {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.subs-page .subs-empty-state p {
    color: #adb5bd;
    margin: 0;
}

/* Dark-mode-varianter */
body[data-theme="dark"] .subs-page .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
body[data-theme="dark"] .subs-page .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
body[data-theme="dark"] .subs-page .clickable-subscription-row:hover {
    background-color: #2c2f44;
    box-shadow: inset 3px 0 0 #4a8bc7;
}
body[data-theme="dark"] .subs-page .subs-empty-state {
    color: #9ca3af;
}
body[data-theme="dark"] .subs-page .subs-empty-state [data-feather],
body[data-theme="dark"] .subs-page .subs-empty-state h6 {
    color: #6b7280;
}
body[data-theme="dark"] .subs-page .subs-empty-state p {
    color: #4b5563;
}
