@use '../../../../shared/styles/panel-shared' as panel; .add-physical-book { display: flex; flex-direction: column; min-width: 700px; max-height: 90vh; @media (max-width: 768px) { min-width: auto; width: 100%; } } .panel-header { @include panel.panel-header; } .form-container { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; background: var(--card-background); border: 1px solid var(--border-color); border-top: none; box-shadow: 0 2px 6px rgb(0 0 0 / 8%); overflow-y: auto; max-height: calc(90vh - 200px); @media (max-width: 480px) { padding: 0.75rem; gap: 0.375rem; } } .form-row { display: flex; gap: 0.75rem; @media (max-width: 640px) { flex-direction: column; gap: 0.5rem; } } .flex-1 { flex: 1; } .flex-2 { flex: 2; } .form-group { display: flex; flex-direction: column; gap: 0.25rem; &.highlight-group { padding: 0.5rem; } @media (max-width: 480px) { gap: 0.25rem; &.highlight-group { padding: 0.375rem; } } } .form-label { display: flex; align-items: center; gap: 0.375rem; font-size: 0.9rem; font-weight: 600; color: var(--text-color); .label-icon { color: var(--primary-color); } .required-indicator { color: var(--p-red-500); margin-left: 0.125rem; } @media (max-width: 480px) { font-size: 0.85rem; } } .input-wrapper { position: relative; .input-full { width: 100%; box-sizing: border-box; } } .input-full { width: 100%; box-sizing: border-box; } .isbn-input-row { display: flex; align-items: center; gap: 0.25rem; .input-full { flex: 1; } } .top-section { display: flex; gap: 1rem; align-items: flex-start; @media (max-width: 640px) { flex-direction: column; align-items: center; } } .top-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; } .cover-preview { flex-shrink: 0; padding: 0.5rem; img { height: 180px; border-radius: 4px; border: 1px solid var(--border-color); box-shadow: 0 2px 6px rgb(0 0 0 / 12%); object-fit: contain; } @media (max-width: 640px) { img { height: 150px; } } } .autocomplete-wrapper { width: 100%; p-autocomplete { width: 100%; } } .dialog-footer { @include panel.dialog-footer; border-top: none; } .validation-message { @include panel.validation-message; } ::ng-deep { .p-inputnumber { width: 100%; } .p-inputnumber-input { width: 100%; } .p-autocomplete .p-chip .p-chip-label { font-size: 12px; } .p-autocomplete-input-chip { width: 2rem; } .p-autocomplete-clearable ul { padding-inline-end: 2rem !important; } .p-autocomplete-clearable .p-autocomplete-clear-icon { right: 0; margin-top: -1rem; width: 2rem; height: 2rem; padding: 0.5rem; } }