.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 1000; } .modal-content { max-height: 80vh; overflow-y: auto; overflow-x: hidden; .label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; .name { margin: 0; font-size: 1.5rem; color: #333; } .close-button { background: none; border: none; cursor: pointer; padding: 0; color: #666; &:hover { color: #333; } } } form { display: grid; grid-template-columns: 1fr 2fr; gap: 15px; align-items: center; width: 100%; box-sizing: border-box; label { display: contents; span.title { font-weight: 500; color: #444; text-align: right; padding-right: 10px; } input { max-width: 100%; } input[type="text"], input[type="number"] { padding: 8px 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; color: #333; background-color: #f9f9f9; transition: border-color 0.2s; &:focus { border-color: #007bff; outline: none; background-color: #fff; } &:disabled { background-color: #e9ecef; color: #666; } } input[type="checkbox"] { width: 20px; height: 20px; margin: 0; cursor: pointer; } } .button-group { grid-column: span 2; display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; button { padding: 10px 20px; border: none; border-radius: 5px; font-size: 1rem; cursor: pointer; transition: background-color 0.2s; &:first-child { background-color: #007bff; color: white; &:hover { background-color: #0056b3; } } &:nth-child(2) { background-color: #28a745; color: white; &:hover { background-color: #218838; } } &:last-child { background-color: #6c757d; color: white; &:hover { background-color: #5a6268; } } } } } }