| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- .analyzer-root {
- display: flex;
- flex-direction: column;
- gap: 1.5rem;
- padding: 1.5rem;
- max-width: 900px;
- margin: 0 auto;
- }
- // ── Header ───────────────────────────────────────────────────────────────────
- .analyzer-header {
- display: flex;
- align-items: center;
- gap: 0.75rem;
- .header-icon {
- font-size: 2rem;
- width: 2rem;
- height: 2rem;
- color: #558b2f;
- }
- .header-title {
- margin: 0;
- font-size: 1.4rem;
- font-weight: 600;
- color: #1b5e20;
- }
- .mpob-badge {
- margin-left: auto;
- background: #e8f5e9;
- color: #2e7d32;
- border: 1px solid #a5d6a7;
- border-radius: 12px;
- padding: 2px 10px;
- font-size: 0.72rem;
- font-weight: 600;
- letter-spacing: 0.04em;
- text-transform: uppercase;
- }
- }
- // ── Engine selector row ──────────────────────────────────────────────────────
- .engine-selector-row {
- display: flex;
- align-items: center;
- gap: 1rem;
- .engine-field {
- width: 280px;
- }
- .engine-status-badge {
- padding: 4px 12px;
- border-radius: 8px;
- font-size: 0.8rem;
- font-weight: 600;
- &.remote {
- background: #e3f2fd;
- color: #1565c0;
- border: 1px solid #90caf9;
- }
- &.local {
- background: #f3e5f5;
- color: #6a1b9a;
- border: 1px solid #ce93d8;
- }
- &.n8n {
- background: #fff8e1;
- color: #e65100;
- border: 1px solid #ffcc02;
- }
- }
- }
- // ── Input mode toggle ────────────────────────────────────────────────────────
- .input-mode-toggle {
- display: flex;
- gap: 0.5rem;
- button {
- border: 1px solid #c8e6c9;
- border-radius: 8px;
- color: #546e7a;
- &.active {
- background: #e8f5e9;
- color: #2e7d32;
- border-color: #a5d6a7;
- }
- }
- }
- // ── Drop zone ────────────────────────────────────────────────────────────────
- .drop-zone {
- position: relative;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 0.6rem;
- min-height: 220px;
- border: 2px dashed #a5d6a7;
- border-radius: 12px;
- background: #f9fbe7;
- transition: border-color 0.2s, background 0.2s;
- cursor: pointer;
- &.drag-over {
- border-color: #2e7d32;
- background: #e8f5e9;
- }
- .drop-icon {
- font-size: 3rem;
- width: 3rem;
- height: 3rem;
- color: #81c784;
- }
- .drop-primary {
- margin: 0;
- font-size: 1rem;
- color: #37474f;
- font-weight: 500;
- }
- .drop-secondary {
- margin: 0;
- font-size: 0.85rem;
- color: #90a4ae;
- }
- .loading-overlay {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 0.75rem;
- .loading-label {
- font-size: 0.9rem;
- color: #546e7a;
- }
- }
- }
- // ── Camera section ───────────────────────────────────────────────────────────
- .camera-section {
- position: relative;
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 0.75rem;
- padding: 1rem;
- border: 2px solid #a5d6a7;
- border-radius: 12px;
- background: #1a1a2e;
- min-height: 200px;
- overflow: hidden;
- .camera-preview {
- display: none;
- width: 100%;
- max-width: 640px;
- border-radius: 8px;
- &.visible {
- display: block;
- }
- }
- .camera-loading {
- position: absolute;
- inset: 0;
- background: rgba(0, 0, 0, 0.55);
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 0.75rem;
- border-radius: 10px;
- .loading-label {
- font-size: 0.9rem;
- color: #fff;
- }
- }
- .camera-controls {
- display: flex;
- gap: 0.75rem;
- }
- }
- // ── Live batch report wrapper ────────────────────────────────────────────────
- .live-report-wrapper {
- border: 1px solid #a5d6a7;
- border-radius: 12px;
- overflow: hidden;
- background: #ffffff;
- }
- .live-report-header {
- display: flex;
- align-items: center;
- gap: 0.6rem;
- padding: 0.65rem 1rem;
- background: #f1f8e9;
- border-bottom: 1px solid #c8e6c9;
- .report-icon {
- color: #558b2f;
- font-size: 1.1rem;
- width: 1.1rem;
- height: 1.1rem;
- }
- .report-label {
- font-size: 0.82rem;
- font-weight: 600;
- color: #37474f;
- flex: 1;
- }
- .new-scan-btn {
- color: #546e7a;
- border-color: #a5d6a7;
- font-size: 0.78rem;
- height: 30px;
- line-height: 30px;
- mat-icon {
- font-size: 0.9rem;
- width: 0.9rem;
- height: 0.9rem;
- }
- &:hover {
- color: #2e7d32;
- border-color: #2e7d32;
- }
- }
- }
|