/* Container */ .folder-container { padding: 1.5rem; max-height: 70vh; overflow-y: auto; background-color: #ffffff; border-radius: 0.75rem; } /* Form */ .folder-form { display: flex; flex-direction: column; gap: 2rem; } /* Section */ .form-section { display: flex; flex-direction: column; gap: 1rem; } .section-title { font-size: 1.125rem; font-weight: 600; color: #111827; margin: 0; padding-bottom: 0.5rem; border-bottom: 2px solid #e5e7eb; } /* Layout */ .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .form-field { display: flex; flex-direction: column; gap: 0.4rem; } .form-field label { font-size: 0.85rem; font-weight: 500; color: #374151; } .required { color: #dc2626; margin-left: 0.25rem; } /* Inputs */ .form-field input, .form-field textarea, .form-field select { padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 0.9rem; transition: border-color 0.2s, box-shadow 0.2s; background-color: #fff; } .form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); } .form-field input:disabled, .form-field textarea:disabled, .form-field select:disabled { background-color: #f3f4f6; color: #6b7280; cursor: not-allowed; } .form-field input::placeholder, .form-field textarea::placeholder { color: #9ca3af; } /* Tags */ .tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; } .tag-item { display: flex; align-items: center; gap: 0.4rem; background-color: #f0f9ff; color: #0369a1; padding: 0.35rem 0.75rem; border-radius: 9999px; font-size: 0.85rem; border: 1px solid #bae6fd; font-weight: 500; } .tag-remove { display: flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.1rem; border: none; background: none; color: #0369a1; cursor: pointer; border-radius: 50%; font-size: 1rem; line-height: 1; transition: background-color 0.2s; } .tag-remove:hover { background-color: #e0f2fe; } .tag-input-container { display: flex; gap: 0.5rem; align-items: flex-end; } .tag-input-container input { flex: 1; } .btn-add-tag { padding: 0.6rem 1rem; background-color: #2563eb; color: white; border: none; border-radius: 0.5rem; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s; white-space: nowrap; } .btn-add-tag:hover { background-color: #1d4ed8; } /* Actions */ .form-actions { display: flex; justify-content: flex-end; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; margin-top: 1rem; } .btn-cancel, .btn-submit { padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s; } /* Cancel button */ .btn-cancel { background-color: white; color: #374151; border: 1px solid #d1d5db; } .btn-cancel:hover { background-color: #f9fafb; border-color: #9ca3af; } /* Submit button */ .btn-submit { background-color: #10b981; color: white; border: none; } .btn-submit:hover { background-color: #059669; } .btn-submit:disabled { background-color: #9ca3af; cursor: not-allowed; } /* Responsive */ @media (max-width: 768px) { .folder-container { padding: 1rem; } .form-row { grid-template-columns: 1fr; } .form-actions { flex-direction: column-reverse; } .btn-cancel, .btn-submit { width: 100%; justify-content: center; } .tag-input-container { flex-direction: column; align-items: stretch; } } /* Scrollbar */ .folder-container::-webkit-scrollbar { width: 6px; } .folder-container::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; } .folder-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; } .folder-container::-webkit-scrollbar-thumb:hover { background: #94a3b8; } /* --- Thèmes par type de dossier --- */ /* Contrats */ .folder-contrat .section-title { border-bottom-color: #2563eb; } .folder-contrat .tag-item { background-color: #eff6ff; color: #2563eb; border-color: #bfdbfe; } .folder-contrat .btn-submit { background-color: #2563eb; } .folder-contrat .btn-submit:hover { background-color: #1d4ed8; } /* Projets */ .folder-projet .section-title { border-bottom-color: #059669; } .folder-projet .tag-item { background-color: #ecfdf5; color: #059669; border-color: #a7f3d0; } .folder-projet .btn-submit { background-color: #059669; } .folder-projet .btn-submit:hover { background-color: #047857; } /* Rapports */ .folder-rapport .section-title { border-bottom-color: #7c3aed; } .folder-rapport .tag-item { background-color: #f5f3ff; color: #7c3aed; border-color: #ddd6fe; } .folder-rapport .btn-submit { background-color: #7c3aed; } .folder-rapport .btn-submit:hover { background-color: #6d28d9; } /* Finance */ .folder-finance .section-title { border-bottom-color: #d97706; } .folder-finance .tag-item { background-color: #fffbeb; color: #d97706; border-color: #fcd34d; } .folder-finance .btn-submit { background-color: #d97706; } .folder-finance .btn-submit:hover { background-color: #b45309; } /* Ressources Humaines */ .folder-rh .section-title { border-bottom-color: #db2777; } .folder-rh .tag-item { background-color: #fdf2f8; color: #db2777; border-color: #f9a8d4; } .folder-rh .btn-submit { background-color: #db2777; } .folder-rh .btn-submit:hover { background-color: #be185d; } /* Marketing */ .folder-marketing .section-title { border-bottom-color: #4f46e5; } .folder-marketing .tag-item { background-color: #eef2ff; color: #4f46e5; border-color: #c7d2fe; } .folder-marketing .btn-submit { background-color: #4f46e5; } .folder-marketing .btn-submit:hover { background-color: #3730a3; }