/* ===== DRIFT / ADMIN BASE ===== */

.drift-shell {
    width: 65%;
    margin: 20px auto 70px;
    color: var(--color-tekst-mork);
}

.drift-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 24px;
    background: var(--color-bg-soft);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.drift-top h1 {
    margin: 0 0 6px;
    line-height: 1;
}

h1 {
    margin-top: 0;
    color: var(--color-primary);
    margin: 0 0 0px;
    font-size: 1.6rem;
    padding: 14px 16px;
}

.drift-card h2 {
    margin: 0 0 20px;
    font-size: 1.15rem;
}

.drift-top p {
    margin: 0;
    opacity: 0.78;
}

p   {
    line-height: .75;
            font-size: 16px;
                padding: 0 16px;
    }
    
    
    .hold-info{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    margin-top:12px;
}

.feature-card h2 {
    margin: 42px 0 6px;
    max-width: 250px;
    font-size: 1.00rem;
    line-height: 1.22;
    color: var(--color-tekst-mork);
}

.feature-card p {
    margin: 0;
    color: color-mix(in srgb, var(--color-text-mork) 82%, transparent);
    font-size: 0.85rem;
    line-height: 1.22;
}

.intro-block h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 1.8rem);
    line-height: 1.05;
    color: var(--color-tekst-mork);
}

.intro-block p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--color-tekst-mork);
}


.hold-info div{
    padding:12px 14px;
    border-radius:16px;
    background:rgba(255,255,255,.75);
    border:1px solid rgba(95,81,68,.12);
}




.hold-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}
.hold-full{grid-column:1/-1;}
.hold-mini{
    padding:14px 16px;
    border-radius:18px;
    background:var(--color-bg-soft,#EEF4F0);
    margin-top:14px;
}

.stat-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    margin-top:18px;
}

.stat-box{
    padding:18px;
    border-radius:20px;
    background:var(--color-white,#EEF4F0);
    box-shadow:0 8px 20px rgba(0,0,0,.06);
}

.stat-box strong{
    display:block;
    font-size:1.3rem;
    color:var(--color-primary,#5F5144);
}

/* ===== CARDS ===== */



.drift-card {
    background: var(--color-surface);
    margin-bottom: 26px;
    padding: 28px 30px;
    border-radius: 24px;
    border: 1px solid var(--shadow-soft);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

/* ===== MESSAGES ===== */

.drift-message,
.drift-error {
    margin-bottom: 22px;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 700;
}

.drift-message {
    background: color-mix(in srgb, var(--color-soft) 75%, transparent);
    color: var(--color-tekst-mork);
}

.drift-error {
    background: color-mix(in srgb, var(--color-surface) 86%, var(--color-accent));
    color: var(--color-tekst-mork);
    border: 1px solid color-mix(in srgb, var(--color-accent) 70%, transparent);
}

/* ===== FORM ===== */

.drift-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 22px;
}

.drift-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 700;
}

.drift-form input,
.drift-form select,
.drift-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
    background: var(--color-white);
    color: var(--color-tekst-mork);
    font-size: 0.85rem;
}

.drift-checkbox {
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
}

.drift-checkbox input {
    width: auto;
    min-height: auto;
}

.drift-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ===== BUTTONS ===== */

.drift-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--color-button-back);
    color: var(--color-tekst-lys);
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--shadow-soft) 55%, transparent);
}

.drift-btn-light {
    background: var(--color-soft);
    color: var(--color-tekst-mork);
    box-shadow: none;
}

/* ===== TABLE ===== */

.drift-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.drift-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.drift-table th,
.drift-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--shadow-soft);
}

.drift-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: color-mix(in srgb, var(--color-tekst-mork) 72%, transparent);
}

.drift-table a {
    color: var(--color-tekst-mork);
    font-weight: 800;
    text-decoration: none;
}

.drift-table a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 760px) {
    .drift-shell {
        width: min(100% - 22px, 1180px);
    }

    .drift-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }

    .drift-card {
        padding: 22px;
    }

    .drift-form {
        grid-template-columns: 1fr;
    }
}

.drift-top-search {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.customer-search-form {
    min-width: 320px;
}

.customer-search-form input {
    width: 100%;
}

.drift-top-search input {
    max-width: 360px;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(95,81,68,.18);
    background: var(--color-white);
    box-shadow: 0 8px 20px var(--shadow-soft);
}

.drift-table {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.drift-table tbody tr {
    background: var(--color-white);
    box-shadow: 0 8px 18px var(--shadow-soft);
}

.drift-table tbody td {
    padding: 16px 12px;
     border-top: 4px solid #C27854;
    border-bottom: 1px solid rgba(95,81,68,.08);
}

.drift-table tbody td:first-child {
    border-top: 4px solid #C27854;
    border-left: 4px solid #C27854;
    border-radius: 16px 0 0 16px;
    font-weight: 900;
}

.drift-table tbody td:last-child {
    border-radius: 0 16px 16px 0;
}

.drift-table a {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.drift-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drift-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.drift-table th:last-child,
.drift-table td:last-child {
    width: 90px;
    min-width: 90px;
    white-space: nowrap;
}

.drift-table td {
    vertical-align: middle;
}

.drift-table td:nth-child(3) {
    white-space: normal;
    word-break: break-word;
}