/* Staff portal — verification queue */
.ivs-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ivs-filter { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--gray-200, #e3ece8); background: #fff; font-size: 13px; font-weight: 600; color: var(--gray-600, #5c6b63); cursor: pointer; transition: all .13s; }
.ivs-filter:hover { border-color: #2E6FD6; }
.ivs-filter.on { background: #142d1f; border-color: #142d1f; color: #fff; }
.ivs-filter.danger.on { background: #c0392b; border-color: #c0392b; }
.ivs-filter b { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.08); }
.ivs-filter.on b { background: rgba(255,255,255,.22); }
.ivs-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 60px 20px; text-align: center; color: #8a988f; }
.ivs-empty strong { font-size: 15px; color: #4a5c52; }
.ivs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ivs-card { text-align: left; border: 1px solid var(--gray-200, #e3ece8); border-radius: 15px; background: #fff; padding: 15px; cursor: pointer; transition: border-color .13s, box-shadow .13s, transform .13s; }
.ivs-card:hover { border-color: #2E6FD6; box-shadow: 0 10px 24px -12px rgba(15,30,60,.3); transform: translateY(-2px); }
.ivs-card.overdue { border-left: 3px solid #c0392b; }
.ivs-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ivs-num { font-size: 11.5px; font-weight: 800; color: #2E6FD6; }
.ivs-name { font-size: 15.5px; font-weight: 700; color: #142d1f; margin-bottom: 9px; }
.ivs-meta { display: flex; flex-wrap: wrap; gap: 11px; font-size: 11.5px; color: #6b7c73; margin-bottom: 8px; }
.ivs-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ivs-meta .urg { color: #b54708; font-weight: 700; } .ivs-meta .over { color: #c0392b; font-weight: 700; }
.ivs-assignee { font-size: 11.5px; color: #8a988f; padding-top: 8px; border-top: 1px solid #eef3f0; }
.ivs-drawer { width: 860px; max-width: 96vw; height: calc(100% - 24px); margin: 12px 12px 12px 0; background: #F7FAF8; border-radius: 24px; box-shadow: 0 40px 90px -24px rgba(15,30,60,.55); display: flex; flex-direction: column; overflow: hidden; animation: iv-slide .28s cubic-bezier(.22,1,.36,1); }
.ivs-drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.ivs-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid #E6ECEA; border-radius: 14px; margin-bottom: 14px; }
.ivs-assign { height: 36px; max-width: 190px; }
.ivs-cols { display: grid; grid-template-columns: 1fr 320px; gap: 14px; }
@media (max-width: 720px) { .ivs-cols { grid-template-columns: 1fr; } }
.ivs-col-main { background: #fff; border: 1px solid #E6ECEA; border-radius: 16px; padding: 16px; }
.ivs-col-side { display: flex; flex-direction: column; gap: 12px; }
.ivs-req { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef3f0; }
.ivs-reqrow { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 12.5px; }
.ivs-reqrow em { font-style: normal; color: #8a988f; } .ivs-reqrow b { color: #142d1f; }
.ivs-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; }
.ivs-tags em { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8a988f; margin-right: 4px; }
.ivs-just { font-size: 12.5px; color: #4a5c52; line-height: 1.55; margin: 12px 0 0; padding: 11px; background: #F2F8F4; border-radius: 10px; }
.ivs-reply { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.iv-btn.danger { background: #fff; border-color: #f0c6c0; color: #c0392b; }
.iv-btn.danger:hover { background: #fdf2f0; }

/* Enterprise Ingredient Verification Service */
.iv-scrim { position: fixed; inset: 0; background: rgba(10,13,18,.5); z-index: 4000; display: flex; justify-content: flex-end; animation: iv-fade .18s ease; }
@keyframes iv-fade { from { opacity: 0; } to { opacity: 1; } }
.iv-drawer, .iv-portal { width: 720px; max-width: 96vw; height: calc(100% - 24px); margin: 12px 12px 12px 0; background: #F7FAF8; border-radius: 24px; box-shadow: 0 40px 90px -24px rgba(15,30,60,.55); display: flex; flex-direction: column; overflow: hidden; animation: iv-slide .28s cubic-bezier(.22,1,.36,1); }
@keyframes iv-slide { from { transform: translateX(40px); opacity: .5; } to { transform: none; opacity: 1; } }
.iv-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: linear-gradient(120deg, #1B2A6B, #2E6FD6); color: #fff; }
.iv-head-badge { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.iv-head-t { flex: 1; min-width: 0; }
.iv-head-title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.iv-head-sub { font-size: 12px; opacity: .85; margin-top: 1px; }
.iv-x { width: 32px; height: 32px; border-radius: 9px; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.iv-x:hover { background: rgba(255,255,255,.26); }
.iv-body { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }

.iv-sec { background: #fff; border: 1px solid #E6ECEA; border-radius: 16px; padding: 15px 16px; }
.iv-sec-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: #142d1f; margin-bottom: 13px; }
.iv-sec-h svg { color: #2E6FD6; }
.iv-sec-body { display: flex; flex-direction: column; gap: 12px; }
.iv-field { display: flex; flex-direction: column; gap: 5px; }
.iv-field > label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b7c73; }
.iv-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .iv-row2 { grid-template-columns: 1fr; } }
.iv-input { width: 100%; height: 40px; border: 1px solid #DCE5E1; border-radius: 10px; padding: 0 12px; font-size: 13.5px; color: #1a2b22; background: #fff; font-family: inherit; }
.iv-input:focus { outline: none; border-color: #2E6FD6; box-shadow: 0 0 0 3px rgba(46,111,214,.12); }
.iv-textarea { height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }

.iv-seg { display: inline-flex; gap: 4px; padding: 4px; background: #EEF3F0; border-radius: 11px; }
.iv-seg-btn { padding: 7px 14px; border: 0; background: transparent; border-radius: 8px; font-size: 13px; font-weight: 700; color: #6b7c73; cursor: pointer; }
.iv-seg-btn.on { background: #fff; color: #142d1f; box-shadow: 0 2px 5px -2px rgba(15,30,60,.25); }
.iv-seg-btn.on.urgent { color: #b54708; } .iv-seg-btn.on.critical { color: #c0392b; }

.iv-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.iv-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; border: 1px solid #DCE5E1; background: #fff; font-size: 12.5px; font-weight: 600; color: #4a5c52; cursor: pointer; transition: all .12s; }
.iv-chip:hover { border-color: #2E6FD6; }
.iv-chip.on { background: #142d1f; border-color: #142d1f; color: #fff; }
.iv-chip.on.blue { background: #2E6FD6; border-color: #2E6FD6; }
.iv-chip.on.green { background: #1E7A49; border-color: #1E7A49; }
.iv-chip.on.red { background: #c0392b; border-color: #c0392b; }

.iv-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.iv-metapill { display: inline-flex; flex-direction: column; gap: 1px; padding: 7px 12px; border-radius: 10px; background: #F2F8F4; }
.iv-metapill em { font-style: normal; font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; color: #8a988f; font-weight: 700; }
.iv-metapill b { font-size: 12.5px; color: #142d1f; }

.iv-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; border: 2px dashed #CBD8D1; border-radius: 14px; text-align: center; font-size: 12.5px; color: #6b7c73; cursor: pointer; transition: border-color .14s, background .14s; }
.iv-drop:hover { border-color: #2E6FD6; background: #F2F7FC; }
.iv-drop svg { color: #2E6FD6; }
.iv-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.iv-file { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 4px 8px; border-radius: 8px; background: #F2F8F4; color: #3f5226; }
.iv-file-x { border: 0; background: transparent; color: #8a988f; cursor: pointer; display: flex; padding: 0; }
.iv-file-x:hover { color: #c0392b; }
.iv-check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #1a2b22; cursor: pointer; }
.iv-check-row input { width: 16px; height: 16px; accent-color: #2E6FD6; }

.iv-foot { border-top: 1px solid #E6ECEA; background: #fff; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.iv-foot-note { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #6b7c73; }
.iv-foot-note svg { color: #1E7A49; }
.iv-foot-btns { display: flex; gap: 8px; }
.iv-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 11px; font-size: 13.5px; font-weight: 700; cursor: pointer; border: 1px solid transparent; }
.iv-btn.sm { padding: 7px 12px; font-size: 12px; }
.iv-btn.ghost { background: #fff; border-color: #DCE5E1; color: #4a5c52; }
.iv-btn.ghost:hover { border-color: #b7c4bc; }
.iv-btn.primary { background: linear-gradient(120deg, #2E6FD6, #1B2A6B); color: #fff; }
.iv-btn.primary:hover { opacity: .94; }
.iv-btn.primary:disabled { opacity: .45; cursor: default; }

/* Confirmation */
.iv-confirm { width: 440px; max-width: 92vw; margin: auto; background: #fff; border-radius: 22px; padding: 30px 28px; text-align: center; box-shadow: 0 40px 90px -24px rgba(15,30,60,.55); align-self: center; animation: iv-pop .34s cubic-bezier(.34,1.56,.64,1); }
@keyframes iv-pop { 0% { opacity: 0; transform: scale(.92); } 100% { opacity: 1; transform: none; } }
.iv-confirm-ic { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(135deg, #46C07E, #1E7A49); color: #fff; display: flex; align-items: center; justify-content: center; }
.iv-confirm h3 { font-size: 19px; margin: 0 0 6px; color: #142d1f; }
.iv-confirm p { font-size: 13.5px; color: #6b7c73; line-height: 1.55; margin: 0 0 16px; }
.iv-ticketnum { font-size: 18px; font-weight: 800; letter-spacing: .02em; color: #2E6FD6; padding: 11px; border-radius: 12px; background: #F2F7FC; border: 1px dashed #B9D0F0; margin-bottom: 12px; }
.iv-confirm-sla { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #b54708; margin-bottom: 20px; }
.iv-confirm-btns { display: flex; gap: 10px; justify-content: center; }

/* Portal */
.iv-portal-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.iv-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 60px 20px; text-align: center; color: #8a988f; }
.iv-empty strong { font-size: 15px; color: #4a5c52; }
.iv-empty span { font-size: 12.5px; }
.iv-tickets { display: flex; flex-direction: column; gap: 10px; }
.iv-ticket { text-align: left; border: 1px solid #E6ECEA; border-radius: 14px; background: #fff; padding: 14px 15px; cursor: pointer; transition: border-color .13s, box-shadow .13s, transform .13s; }
.iv-ticket:hover { border-color: #2E6FD6; box-shadow: 0 8px 20px -10px rgba(15,30,60,.25); transform: translateY(-1px); }
.iv-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.iv-ticket-num { font-size: 12px; font-weight: 800; color: #2E6FD6; letter-spacing: .01em; }
.iv-ticket-name { font-size: 15px; font-weight: 700; color: #142d1f; margin-bottom: 8px; }
.iv-ticket-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: #6b7c73; }
.iv-ticket-meta span { display: inline-flex; align-items: center; gap: 4px; }
.iv-ticket-meta .crit { color: #c0392b; font-weight: 700; } .iv-ticket-meta .urg { color: #b54708; font-weight: 700; } .iv-ticket-meta .over { color: #c0392b; font-weight: 700; }
.iv-badge { font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.iv-badge.ok { background: rgba(30,122,73,.12); color: #1E7A49; }
.iv-badge.warn { background: rgba(181,71,8,.12); color: #b54708; }
.iv-badge.info { background: rgba(46,111,214,.12); color: #2E6FD6; }
.iv-badge.block { background: rgba(192,57,43,.12); color: #c0392b; }

/* Ticket detail */
.iv-detail { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1fr 300px; gap: 16px; padding: 18px 20px; }
@media (max-width: 640px) { .iv-detail { grid-template-columns: 1fr; } }
.iv-detail-main { background: #fff; border: 1px solid #E6ECEA; border-radius: 16px; padding: 16px; }
.iv-timeline { display: flex; flex-direction: column; }
.iv-tl { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.iv-tl:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: #E6ECEA; }
.iv-tl.done:not(:last-child)::before { background: #46C07E; }
.iv-tl-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #DCE5E1; background: #fff; flex-shrink: 0; z-index: 1; display: flex; align-items: center; justify-content: center; color: #fff; }
.iv-tl.done .iv-tl-dot { background: #46C07E; border-color: #46C07E; }
.iv-tl.cur .iv-tl-dot { border-color: #2E6FD6; box-shadow: 0 0 0 4px rgba(46,111,214,.16); }
.iv-tl-stage { font-size: 13px; font-weight: 700; color: #142d1f; }
.iv-tl-note { font-size: 12px; color: #6b7c73; margin-top: 2px; }
.iv-tl-when { font-size: 11px; color: #8a988f; margin-top: 2px; }
.iv-tl:not(.done) .iv-tl-stage { color: #b7c4bc; }
.iv-detail-side { display: flex; flex-direction: column; gap: 12px; }
.iv-side-card { background: #fff; border: 1px solid #E6ECEA; border-radius: 14px; padding: 13px 14px; }
.iv-side-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 12.5px; }
.iv-side-row em { font-style: normal; color: #8a988f; }
.iv-side-row b { color: #142d1f; } .iv-side-row b.over { color: #c0392b; }
.iv-side-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #6b7c73; margin-bottom: 9px; }
.iv-side-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.iv-side-tag { font-size: 10.5px; padding: 3px 8px; border-radius: 7px; background: #F2F7FC; color: #2E6FD6; font-weight: 600; }
.iv-thread { background: #fff; border: 1px solid #E6ECEA; border-radius: 14px; padding: 13px 14px; }
.iv-msg { margin-bottom: 10px; padding: 9px 11px; border-radius: 11px; }
.iv-msg.customer { background: #F2F8F4; }
.iv-msg.nutridms { background: #F2F7FC; }
.iv-msg-who { font-size: 10.5px; font-weight: 800; color: #6b7c73; margin-bottom: 2px; }
.iv-msg-tx { font-size: 12.5px; color: #1a2b22; line-height: 1.45; }
.iv-msg-note { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; color: #8a988f; margin-top: 8px; }

/* Enterprise CTA in Master Library no-results */
.mil-verify-cta { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; border: 0; background: linear-gradient(120deg, #2E6FD6, #1B2A6B); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(46,111,214,.6); transition: transform .14s, opacity .14s; }
.mil-verify-cta:hover { transform: translateY(-1px); opacity: .95; }
