/* Three-tab case workspace */

.case-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 20px 0;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #f1f5f9;
}

.case-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #52657a;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background-color 150ms ease,
        color 150ms ease,
        box-shadow 150ms ease;
}

.case-tab:hover {
    background: #e2e8f0;
    color: #172033;
}

.case-tab.is-active {
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.case-tab:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

/* Tab panels */

.case-tab-panel {
    min-width: 0;
}

.case-tab-panel[hidden] {
    display: none !important;
}

.case-tab-panel:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 4px;
}

.case-tab-panel > .card {
    margin-bottom: 20px;
}

.case-tab-panel .main-column,
.case-tab-panel .side-column {
    min-width: 0;
}

/* File Details form */

.case-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.case-fields:disabled input,
.case-fields:disabled select,
.case-fields:disabled textarea {
    background-color: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.case-fields button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.notes-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.notes-label-row label {
    margin: 0;
}

.notes-field textarea {
    width: 100%;
    min-height: 180px;
    resize: vertical;
}

/* Operational notes and amendments */

.notes-timeline {
    display: grid;
    gap: 16px;
}

.note-entry {
    padding: 16px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #ffffff;
    scroll-margin-top: 24px;
}

.note-entry-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.note-entry-header > div {
    display: flex;
    align-items: center;
	
	.note-status-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.note-status-form select {
    width: auto;
    min-width: 150px;
    min-height: 36px;
}

.note-actions {
    align-items: center;
}

@media (max-width: 640px) {
    .note-status-form {
        width: 100%;
    }

    .note-status-form select {
        flex: 1;
        min-width: 0;
    }
}