/* ============================================================
   UEBUNG 2 - LEHRBUCH-T-KONTEN
============================================================ */

.t-account-ledger {
    position: relative;
    margin-bottom: 22px;
    padding: 0;
    border-radius: 12px;
    background:
        linear-gradient(#eef3f7 1px, transparent 1px) 0 0 / 100% 46px,
        linear-gradient(90deg, #f5f8fb 1px, transparent 1px) 0 0 / 64px 100%,
        #ffffff;
    border: 1px solid #cfd9e2;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.t-account-top {
    position: relative;
    margin-bottom: 0;
    padding: 12px 16px 11px;
    text-align: left;
    border-bottom: 1px solid #cfd9e2;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

.t-account-title {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #24384b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.t-account-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.t-account-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: #cfd9e2;
}

.t-side {
    min-width: 0;
    padding: 12px 14px 14px;
    display: grid;
    gap: 8px;
    align-content: start;
}

.t-side-soll {
    padding-left: 0;
    padding-right: 14px;
}

.t-side-haben {
    padding-left: 14px;
    padding-right: 0;
}

.t-label {
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #627587;
}

.t-dropzone {
    min-height: 48px;
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px dashed #b7c5d1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    transition: 0.18s ease;
}

.t-dropzone.over {
    background: #f0f8ff;
    border-color: #5f86a6;
    box-shadow: inset 0 0 0 1px rgba(95, 134, 166, 0.12);
}

.t-dropzone .drop-item {
    width: 100%;
    padding: 7px 10px;
    border-radius: 5px;
    color: white;
    font-weight: 700;
    text-align: left;
}

.drop-item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 7px 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    color: white;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    flex-shrink: 0;
    flex-grow: 0;
}

.drop-item.class-0 { background: #6b7280 }
.drop-item.class-1 { background: #0ea5e9 }
.drop-item.class-2 { background: #16a34a }
.drop-item.class-3 { background: #f97316 }
.drop-item.class-4 { background: #a855f7 }
.drop-item.class-5 { background: #475569 }
.drop-item.class-6 { background: #0f766e }
.drop-item.class-7 { background: #dc2626 }
.drop-item.class-8 { background: #44403c }
.drop-item.class-9 { background: #7c3aed }

.t-amount {
    width: 100%;
    min-height: 48px;
    padding: 9px 10px;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    border: 1px solid #c8d3dd;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
}

.t-amount:focus {
    outline: none;
    border-color: #5f86a6;
    box-shadow: inset 0 0 0 1px rgba(95, 134, 166, 0.2), 0 0 0 3px rgba(95, 134, 166, 0.08);
}

@media (max-width: 860px) {
    .t-account-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .t-account-grid::before {
        display: none;
    }

    .t-side-soll,
    .t-side-haben {
        padding-left: 0;
        padding-right: 0;
    }

    .t-side-haben {
        padding-top: 18px;
        border-top: 1px solid #dbe4eb;
    }
}
