.simple-modal { width: min(620px, 100%); }
.simple-form { display: grid; gap: 18px; }
.document-upload { min-height: 118px; padding: 22px; }
.document-upload > b { font-size: 30px; }
.document-upload > span { font-size: 13px; }
.document-upload small { margin-top: 7px; line-height: 1.4; }
.document-picker { display: grid; grid-template-columns: 1.35fr .85fr; gap: 12px; }
.camera-upload { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 118px; padding: 18px; border: 1px dashed #73a9c7; border-radius: 10px; color: #176d9b; background: #f7fbfe; cursor: pointer; text-align: center; }
.camera-upload > b { font-size: 25px; }
.camera-upload span { font-size: 12px; font-weight: 700; }
.camera-upload small { display: block; margin-top: 6px; color: #7a8798; font-size: 9px; font-weight: 400; line-height: 1.35; }
.camera-upload input { display: none; }
.scan-list { display: grid; gap: 7px; padding: 10px; border: 1px solid #d8e2e9; border-radius: 9px; background: #fafcfe; }
.scan-item { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; background: white; box-shadow: 0 1px 3px #2030440d; }
.scan-item > b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; background: #eaf5fb; color: #167cac; font-size: 10px; }
.scan-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #354258; font-size: 11px; }
.scan-item small { display: block; margin-top: 2px; color: #8993a2; font-size: 8px; }
.scan-item-actions { display: flex; gap: 3px; }
.scan-item-actions button { width: 25px; height: 25px; padding: 0; border: 0; border-radius: 6px; color: #607087; background: #f0f4f7; cursor: pointer; }
.scan-item-actions button:last-child { color: #a33d43; }
.scan-enhance { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid #c8e0ec; border-radius: 9px; background: #f5fbfe; color: #3c5064; cursor: pointer; }
.scan-enhance input { margin-top: 2px; accent-color: #1485bd; }
.scan-enhance span { font-size: 10px; }
.scan-enhance b, .scan-enhance small { display: block; }
.scan-enhance small { margin-top: 3px; color: #7b8999; font-weight: 400; line-height: 1.4; }
.optional-description { display: block; color: #546076; font-size: 11px; font-weight: 700; }
.optional-description > small { color: #8e98a9; font-weight: 400; }
.optional-description textarea { display: block; width: 100%; margin-top: 7px; border: 1px solid #d7dde7; border-radius: 8px; padding: 11px; color: var(--ink); background: #fcfdff; resize: vertical; }
.optional-description select { display: block; width: 100%; margin-top: 7px; border: 1px solid #d7dde7; border-radius: 8px; padding: 11px; color: var(--ink); background: #fcfdff; }
.optional-description textarea:focus { outline: 0; border-color: #5da4ca; box-shadow: 0 0 0 3px #489eca1c; }
.actions button:disabled { opacity: .55; cursor: wait; }
.notice.success { z-index: 100; padding: 15px 18px; border-color: #79c9a5; background: #e9f9f1; color: #086b46; font-size: 13px; font-weight: 700; box-shadow: 0 12px 35px #0d50302e; }
.reanalyze { border: 0; background: transparent; color: #1685bd; font-size: 17px; }
.reanalyze:disabled { opacity: .4; cursor: wait; }
.edit-row { border: 1px solid #bdd7e6; background: #eef8fd; color: #176d98; border-radius: 7px; padding: 6px 8px; font-size: 10px; font-weight: bold; margin-right: 3px; }
.edit-row span { display: inline !important; color: inherit !important; margin: 0 !important; }
.sheet-footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 28px; padding-top: 14px; border-top: 1px solid #dfe4ed; font-size: 11px; }
.sheet-footer b, .sheet-footer span { display: block; }
.sheet-footer span { margin-top: 24px; }
.sheet .company-footer-image { display: block; width: 100%; max-width: none; height: auto; max-height: none; margin-top: 18px; object-fit: contain; }
.register-filters { display: grid; grid-template-columns: 1fr 1fr 1.4fr 1fr 1fr 1.2fr auto; gap: 10px; align-items: end; padding: 14px 18px; border-bottom: 1px solid #dfe4ed; background: #f8fafc; }
.register-filters label { display: block; color: #657086; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.register-filters input, .register-filters select { display: block; width: 100%; min-height: 38px; margin-top: 6px; padding: 8px 10px; border: 1px solid #d7dde7; border-radius: 8px; color: #17213d; background: white; text-transform: none; letter-spacing: 0; }
.register-clear { min-height: 38px; white-space: nowrap; }
.register-empty { padding: 28px; color: #7a8597; text-align: center; }
.recognized { margin-top: 15px; padding: 16px; border: 1px solid #b9d9e9; border-radius: 10px; background: #f7fbfe; }
.recognized-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 13px; color: #245673; }
.recognized-head small { color: #71869a; font-weight: 400; }
.recognized-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.recognized-grid label { color: #546076; font-size: 10px; font-weight: 700; }
.recognized-grid input, .recognized-grid select, .recognized-grid textarea { display: block; width: 100%; margin-top: 5px; border: 1px solid #cad9e5; border-radius: 8px; padding: 9px 10px; color: var(--ink); background: white; }
.confirm-modal { width: min(760px, 100%); }
.confirm-note { margin: 0 0 17px; padding: 12px 14px; border: 1px solid #b9d9e9; border-radius: 9px; background: #f2f9fd; color: #3e6075; font-size: 12px; line-height: 1.5; }
.confirm-grid { padding: 0; }
.confirm-description { grid-column: 1 / -1; }
.confirm-description textarea { resize: vertical; }
.login-modal { width: min(420px, 100%); }
.login-note { margin: 0 0 17px; color: #68778a; font-size: 12px; line-height: 1.5; }
.login-field { display: block; margin-top: 13px; color: #546076; font-size: 10px; font-weight: 700; }
.login-field input { display: block; width: 100%; margin-top: 6px; border: 1px solid #cad9e5; border-radius: 8px; padding: 11px; color: var(--ink); background: white; }
.auth-pending .shell { visibility: hidden; }
#loginModal { background: #eef2f8; }
.viewer-modal { width: min(980px, 100%); }
.viewer-body { padding: 14px; background: #eef2f6; }
.viewer-stage { display: grid; place-items: center; min-height: 420px; max-height: 68vh; overflow: auto; border-radius: 10px; background: #202631; }
.viewer-stage img { display: block; max-width: 100%; height: auto; max-height: 68vh; object-fit: contain; }
.viewer-stage iframe { width: 100%; height: 68vh; border: 0; background: white; }
.viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; }
.viewer-controls button { border: 1px solid #c8d2df; border-radius: 8px; padding: 8px 12px; background: white; color: #29405c; font-weight: 700; }
.viewer-controls button:disabled { opacity: .4; }
.viewer-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 3px; }
.viewer-thumb { flex: 0 0 68px; height: 68px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: white; }
.viewer-thumb.active { border-color: #2384b5; }
.viewer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.viewer-thumb span { display: grid; place-items: center; height: 100%; color: #27435e; font-size: 10px; font-weight: 700; }
@media(max-width: 900px) { .register-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .supplier-filter, .register-clear { grid-column: 1 / -1; } }
@media(max-width: 620px) { .document-picker { grid-template-columns: 1fr; } .camera-upload { min-height: 76px; } .recognized-head { display: block; } .recognized-head small { display: block; margin-top: 4px; } .recognized-grid { grid-template-columns: 1fr; } .confirm-description { grid-column: auto; } .sheet-footer { min-width: 760px; } }
@media(max-width: 620px) { .register-filters { grid-template-columns: 1fr; } .supplier-filter, .register-clear { grid-column: auto; } }
