/* Modal base — coherent with app design tokens defined in app.css */

.time-entry-modal {
    height: 82vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.time-entry-modal .modal-header {
    border-bottom: 1px solid var(--color-border);
}

.time-entry-modal .modal-body {
    padding: 1rem;
    overflow: auto;
    min-height: 120px;
    flex: 1 1 auto;
}

/* Inputs inside modal should follow app input styling */
.form-input {
    width: 100%; padding: 0.5rem 0.65rem; border-radius: var(--radius);
    border: 1px solid var(--color-border); background: var(--color-surface);
    color: var(--color-text); font-size: 0.95rem; box-shadow: none;
}

.form-group { margin-bottom: 0.75rem; }

.allocation-tabs-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.allocation-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background: var(--md-neutral-95);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem;
}

.allocation-tab-button {
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text);
    border-radius: var(--radius);
    padding: 0.55rem 0.7rem;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.allocation-tab-button:hover {
    background: rgba(179, 38, 30, 0.08);
    border-color: rgba(179, 38, 30, 0.2);
}

.allocation-tab-button.active {
    background: linear-gradient(90deg, var(--sidebar-active-from), var(--sidebar-active-to));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 8px rgba(179, 38, 30, 0.25);
}

.allocation-tab-panel {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--md-neutral-99);
}

.allocation-requests-section {
    border-top: 1px solid var(--color-border);
    padding-top: 0.9rem;
}

.allocation-requests-section h4 {
    margin-bottom: 0.6rem;
}

.btn-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.2); border-top-color: rgba(255,255,255,0.8); border-radius: 50%; animation: spin .8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
    .modal-content { width: 96%; max-width: 96%; border-radius: 8px; }
    .modal-footer { flex-direction: column-reverse; align-items: stretch; gap: 0.5rem; }
    .modal-footer .btn-primary, .modal-footer .btn-secondary { width: 100%; }
}

@media (max-width: 900px) {
    .allocation-tabs-layout {
        grid-template-columns: 1fr;
    }

    .allocation-tabs-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .allocation-tab-button {
        text-align: center;
        flex: 1 1 auto;
    }
}



