/* Rasimu → Wasilisha rasmi → fomu imefungwa */
.tsah-draft-list-wrap .tsah-draft-card {
    border: 1px solid var(--tsah-border, #e2e8f0);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fffbeb;
}

.tsah-draft-list-wrap h4 {
    font-size: 14px;
    margin: 0 0 10px;
}

.tsah-transfer-reveal {
    margin-top: 14px;
    padding: 14px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
}

.tsah-transfer-code {
    font-size: 18px;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #0f766e;
}

.tsah-commit-form {
    position: relative;
}

.tsah-commit-form .tsah-commit-native-submit {
    display: none !important;
}

.tsah-commit-status {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 4px;
    border: 1px solid var(--tsah-border, #e2e8f0);
}

.tsah-commit-status i {
    margin-top: 2px;
    flex-shrink: 0;
}

.tsah-commit-status--draft {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.tsah-commit-status--draft.is-dirty {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.tsah-commit-status--submitting {
    background: #f1f5f9;
    color: #475569;
}

.tsah-commit-status--locked {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.tsah-commit-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--tsah-border, #e2e8f0);
}

.tsah-commit-form.tsah-commit-locked .tsah-form-grid,
.tsah-commit-form.tsah-commit-locked fieldset {
    opacity: 0.72;
    pointer-events: none;
}

.tsah-commit-form.tsah-commit-locked .tsah-commit-footer {
    opacity: 1;
    pointer-events: auto;
}

.tsah-commit-form.tsah-commit-submitting .tsah-commit-btn-submit {
    opacity: 0.65;
    pointer-events: none;
}

.tsah-commit-btn-submit {
    min-width: 200px;
}

.tsah-commit-btn-new {
    background: #fff;
    border: 1px solid var(--tsah-border, #e2e8f0);
    color: var(--tsah-text, #0f172a);
}

.tsah-commit-btn-new:hover {
    background: #f8fafc;
}

.tsah-commit-panel.tsah-commit-locked .tsah-table-wrap,
.tsah-commit-panel.tsah-commit-locked textarea.tsah-bulk-csv {
    opacity: 0.72;
    pointer-events: none;
}

.tsah-commit-panel .tsah-commit-footer {
    margin-top: 14px;
}

.tsah-subject-field--single select:disabled {
    opacity: 1;
    color: var(--tsah-text, #0f172a);
    cursor: default;
}

#st-subject-field[data-multi="0"] {
    display: none;
}

/* Paneli ndogo — mahudhurio kwenye simu */
.tsah-commit-panel--compact .tsah-commit-status {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 0;
}

.tsah-commit-panel--compact .tsah-commit-footer {
    margin-top: 8px;
    padding-top: 8px;
    gap: 8px;
}

@media (max-width: 768px) {
    .tsah-commit-panel--compact .tsah-commit-status:not(.is-dirty) {
        display: none;
    }

    .tsah-commit-panel--compact .tsah-commit-status.is-dirty {
        padding: 6px 8px;
        font-size: 11px;
    }

    .tsah-commit-panel--compact .tsah-commit-footer {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }

    .tsah-commit-panel--compact .tsah-commit-footer .tsah-btn {
        flex: 1 1 auto;
        min-width: 0;
        padding: 8px 12px;
        font-size: 12px;
        justify-content: center;
    }

    .tsah-commit-panel--compact .tsah-commit-btn-official {
        width: 100%;
    }

    .tsah-commit-panel--submit-only .tsah-commit-btn-draft,
    .tsah-commit-panel--submit-only .tsah-commit-btn-clear,
    .tsah-commit-panel--submit-only .tsah-commit-btn-new {
        display: none !important;
    }
}

.tsah-commit-panel--submit-only .tsah-commit-btn-draft,
.tsah-commit-panel--submit-only .ct-att-save-btn,
.tsah-commit-panel--submit-only [data-tsah-commit-save] {
    display: none !important;
}
