/* DisputePilot v2: Apps & Integrations (Nov 20 2026).
   Visual reference: Solvpath "Apps & Integrations" (demo.solvpath.com/internal/plugins-integrations/, approved design for the
   Angular nav item 'apps-integrations'). Same structure, sizes and colours, class names prefixed spi- so they cannot clash
   with DisputePilot shell classes. Brand primary #2EB3C9 (Solvpath approved change). No inline SVG. */
.spi{color:#163549;line-height:1.45;margin:-4px 0 0}
.spi *{box-sizing:border-box}
.spi h2,.spi h3,.spi h4,.spi h5,.spi p{margin:0}
.spi-hero{background:#FAFAFA;text-align:center;padding:clamp(18px,1.6vw,40px) 16px clamp(18px,1.4vw,36px);border:1px solid #F0F0F0;border-radius:12px;margin-bottom:16px}
.spi-hero h2{font-size:28px;font-weight:600;margin-bottom:6px;color:#163549}
.spi-hero p{max-width:620px;margin:0 auto 14px;color:#4E6574;font-size:14px;line-height:21px}
.spi-search{max-width:clamp(320px,36vw,640px);margin:0 auto;background:#fff;border:1px solid #ccc;border-radius:10px;padding:0 18px;display:flex;align-items:center;gap:12px;height:50px;transition:all .2s}
.spi-search:focus-within{border-color:#2EB3C9;box-shadow:0 0 0 3px rgba(46,179,201,.15)}
.spi-search input{border:0;outline:0;flex:1;min-width:0;font:inherit;font-size:14px;color:#163549;background:transparent;height:100%;box-shadow:none}
.spi-search input::placeholder{color:#86969C}
.spi-search img{width:18px;height:18px;flex-shrink:0}
.spi-grid{display:flex;gap:clamp(16px,1vw,28px);align-items:flex-start}
.spi-cats{width:clamp(228px,13vw,280px);flex-shrink:0;background:#fff;border:1px solid #e6e9ed;border-radius:12px;padding:12px 8px;position:sticky;top:16px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.spi-cats h3{font-size:15px;font-weight:600;padding:0 8px 8px;margin-bottom:4px}
.spi-cat{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:9px 10px;border:0;border-radius:6px;font:inherit;font-size:14px;line-height:1.4;background:transparent;cursor:pointer;margin-bottom:3px;text-align:left}
.spi-cat>span:first-child{color:#4E6574}.spi-cat>span:last-child{color:#163549;font-weight:500;font-variant-numeric:tabular-nums}
.spi-cat:hover{background:#f2f3f5}
.spi-cat.is-on{background:#2EB3C9}.spi-cat.is-on>span{color:#fff}
.spi-new{font-size:9px;font-weight:600;color:#2EB3C9;background:#e6f5f7;border-radius:3px;padding:1px 4px;margin-left:6px;vertical-align:1px}
.spi-cat.is-on .spi-new{background:#fff}
.spi-content{flex:1;min-width:0}
.spi-alert{background:#fff4dc;border:1px solid #e5b85c;border-radius:8px;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:12px;margin-bottom:clamp(16px,1.2vw,28px)}
.spi-btn{height:32px;border-radius:5px;border:1px solid #2EB3C9;background:#2EB3C9;color:#fff;font:inherit;font-size:12px;font-weight:500;padding:0 14px;cursor:pointer;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.spi-btn:hover{filter:brightness(.95)}
.spi-btn.is-ghost{background:#fff;color:#2EB3C9;border-color:#2EB3C9}
.spi-btn.is-warn{background:#fff4dc;border-color:#e5b85c;color:#9a6a12}
.spi-btn.is-dis{background:#e4e8eb;border-color:#e4e8eb;color:#9aa6ac;cursor:not-allowed}
.spi-btn.is-danger{background:#c9372c;border-color:#c9372c;color:#fff}
.spi-sh{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:4px 0 12px}
.spi-sh h3{font-size:18px;font-weight:600}.spi-sh span{font-size:11px;color:#4E6574;white-space:nowrap}
.spi-rows{display:flex;flex-direction:column;gap:clamp(12px,.8vw,20px);margin-bottom:clamp(24px,1.6vw,40px)}
.spi-arow{background:#fff;border:1px solid #e6e9ed;border-radius:14px;padding:12px 20px 12px 12px;display:flex;align-items:center;gap:16px;box-shadow:0 1px 2px rgba(22,53,73,.04),0 4px 14px rgba(22,53,73,.04);transition:box-shadow .2s,transform .2s,border-color .2s}
.spi-arow:hover,.spi-card:hover{box-shadow:0 10px 28px rgba(22,53,73,.10);transform:translateY(-2px);border-color:#d6dde2}
.spi-tile{width:78px;height:78px;flex-shrink:0;border-radius:10px;box-shadow:0 2px 6px rgba(22,53,73,.08);border:1px solid rgba(22,53,73,.06);display:grid;place-items:center;font-size:11px;font-weight:600;text-align:center;padding:4px;line-height:1.2}
.spi-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.spi-nm{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.spi-arow h4,.spi-card h4{font-size:16px;font-weight:600;color:#163549;line-height:1.3}
.spi-desc{font-size:14px;line-height:1.5;color:#4E6574;max-width:80ch}
.spi-arow>.spi-btn{height:38px;border-radius:8px;font-weight:600;font-size:14px;min-width:124px;white-space:nowrap}
.spi-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,clamp(222px,calc(8vw + 120px),300px)),1fr));gap:clamp(16px,1vw,24px);margin-bottom:clamp(24px,1.6vw,40px)}
.spi-card{background:#fff;border:1px solid #e6e9ed;border-radius:14px;padding:12px;display:flex;flex-direction:column;box-shadow:0 1px 2px rgba(22,53,73,.04),0 4px 14px rgba(22,53,73,.04);transition:box-shadow .2s,transform .2s,border-color .2s;min-width:0}
.spi-chero{height:104px;background:linear-gradient(180deg,#f6f8f9,#eef1f3);border-radius:10px;position:relative;display:grid;place-items:center;margin-bottom:14px}
.spi-logo{width:72px;height:54px;border-radius:10px;box-shadow:0 2px 6px rgba(22,53,73,.08);border:1px solid rgba(22,53,73,.06);display:grid;place-items:center;font-size:10px;font-weight:600;text-align:center;line-height:1.15;padding:2px;flex-shrink:0}
.spi-card h4{padding:0 4px}
.spi-card .spi-desc{padding:6px 4px 0;flex:1}
.spi-badge{font-size:11px;font-weight:500;border-radius:20px;padding:3px 8px;display:inline-flex;gap:5px;align-items:center;background:#fff;border:1px solid #e1e5e8;white-space:nowrap;line-height:1.3}
.spi-chero .spi-badge{position:absolute;top:10px;right:10px}
.spi-badge.is-ok{background:#e3f5ec;border-color:#b8e4cd;color:#22a06b}
.spi-badge.is-need{background:#fff4dc;border-color:#e5b85c;color:#9a6a12}
.spi-badge.is-soon{background:#12303d;color:#fff;border-color:#163549;border-radius:5px}
.spi-badge.is-pop{border-radius:5px}
.spi-badge.is-sp{border-radius:5px;background:#e6f5f7;border-color:#bfe6ec;color:#1f7f8e}
.spi-badge .spi-dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.spi-tags{display:flex;gap:6px;flex-wrap:wrap;padding:14px 4px;margin-top:auto}
.spi-arow .spi-tags{padding:2px 0 0;margin:0}
.spi-tag{font-size:11px;background:#f4f6f8;border:1px solid #e9edf0;border-radius:6px;padding:3px 8px;color:#4E6574}
.spi-tag.is-req{background:#f2f3f5;color:#163549;font-weight:500}
.spi-tag.is-sp{background:#e6f5f7;border-color:#cdeef3;color:#1f7f8e}
.spi-acts{display:flex;gap:10px;padding:14px 4px 2px;border-top:1px solid #eef1f3}
.spi-acts .spi-btn{flex:1 1 0;min-width:0;border-radius:8px;font-weight:600;font-size:14px;height:38px;white-space:nowrap;padding:0 6px}
.spi-empty{background:#fff;border:1px dashed #dfe3e7;border-radius:9px;padding:28px;text-align:center;font-size:12px;color:#4E6574;margin-bottom:28px}
.spi-cta{background:#12303d;border-radius:12px;padding:clamp(18px,1.4vw,32px) clamp(18px,1.8vw,40px);display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;color:#fff}
.spi-cta h4{font-size:15px;font-weight:600;color:#fff}.spi-cta p{font-size:11px;color:#cfe3e8}
.spi-cta .spi-btn{background:transparent;border-color:#fff;color:#fff}
.spi-fine{font-size:11px;color:#6b7c84;margin:14px 2px 0}
/* modal (Solvpath "drawer" pattern: centred dialog) */
.spi-ov{position:fixed;inset:0;background:rgba(14,42,53,.45);z-index:1000;opacity:0;pointer-events:none;transition:opacity .2s}
.spi-ov.is-show{opacity:1;pointer-events:auto}
.spi-dlg{position:fixed;top:50%;left:50%;width:520px;max-width:calc(100vw - 32px);max-height:min(85vh,720px);background:#fff;z-index:1001;border-radius:12px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.25);opacity:0;pointer-events:none;transform:translate(-50%,-50%) scale(.95);transition:opacity .2s,transform .2s;color:#163549}
.spi-dlg.is-show{opacity:1;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}
.spi-dh{padding:20px;border-bottom:1px solid #e1e5e8;display:flex;gap:12px;align-items:center}
.spi-dh h3{font-size:16px;font-weight:600}.spi-dh small{font-size:11px;color:#4E6574}
.spi-x{margin-left:auto;border:0;background:none;font-size:20px;color:#4E6574;cursor:pointer;line-height:1;padding:4px}
.spi-db{padding:20px;flex:1;min-height:0;overflow:auto;font-size:12px;color:#4E6574}
.spi-db h5{font-size:12px;font-weight:600;color:#163549;margin:16px 0 8px}
.spi-db h5:first-child{margin-top:0}
.spi-db p{line-height:1.5}
.spi-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f2f3f5}
.spi-row b{color:#163549;font-weight:500;text-align:right}
.spi-sw{width:32px;height:18px;border-radius:9px;background:#dfe3e7;position:relative;cursor:pointer;flex-shrink:0;border:0;padding:0}
.spi-sw:after{content:"";position:absolute;width:14px;height:14px;border-radius:50%;background:#fff;top:2px;left:2px;transition:.15s}
.spi-sw.is-on{background:#2EB3C9}.spi-sw.is-on:after{left:16px}
.spi-field{width:100%;height:36px;border:1px solid #dfe3e7;border-radius:6px;padding:0 10px;font:inherit;font-size:12px;margin-top:4px;color:#163549;background:#fff}
.spi-ig{display:flex;align-items:stretch;margin-top:4px}
.spi-ig span{display:flex;align-items:center;padding:0 10px;background:#f4f6f8;border:1px solid #dfe3e7;font-size:12px;color:#4E6574;white-space:nowrap}
.spi-ig span:first-child{border-radius:6px 0 0 6px;border-right:0}.spi-ig span:last-child{border-radius:0 6px 6px 0;border-left:0}
.spi-ig .spi-field{margin:0;border-radius:0;min-width:0;flex:1}
.spi-rr{display:grid;grid-template-columns:110px 1fr;gap:8px;margin-bottom:6px}
.spi-rr .spi-field{margin:0}
.spi-code{font-family:ui-monospace,Menlo,monospace;font-size:11px;background:#f4f6f8;border:1px solid #e9edf0;border-radius:4px;padding:1px 5px;color:#163549}
.spi-acts-list{display:flex;flex-wrap:wrap;gap:6px}
.spi-df{padding:16px 20px;border-top:1px solid #e1e5e8;display:flex;gap:8px;justify-content:flex-end;align-items:center}
.spi-df .spi-note{font-size:11px;color:#6b7c84;margin-right:auto}
.spi-link{color:#2EB3C9;text-decoration:none;font-weight:500}
.spi-link:hover{text-decoration:underline}
.spi-toasts{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:1002;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.spi-toast{background:#12303d;color:#fff;font-size:12px;padding:10px 16px;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.2);animation:spiIn .2s}
@keyframes spiIn{from{opacity:0;transform:translateY(8px)}}
.spi-spin{display:inline-block;width:12px;height:12px;border:2px solid #fff;border-right-color:transparent;border-radius:50%;animation:spiR .7s linear infinite}
@keyframes spiR{to{transform:rotate(360deg)}}
/* compact variant inside Settings */
.spi.is-embed .spi-hero h2{font-size:22px}
/* responsive (Solvpath responsive v3 rules) */
@media(min-width:2200px){.spi-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
 .spi-grid{flex-direction:column;align-items:stretch}
 .spi-cats{display:flex;width:auto;position:static;overflow-x:auto;gap:8px;padding:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 .spi-cats::-webkit-scrollbar{display:none}
 .spi-cats h3{display:none}
 .spi-cat{flex-shrink:0;width:auto;white-space:nowrap;margin:0;border:1px solid #e6e9ed}
 .spi-cat.is-on{border-color:#2EB3C9}
 .spi-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}
}
@media(max-width:700px){.spi-arow{flex-wrap:wrap}.spi-arow>.spi-btn{width:100%}}
@media(max-width:640px){.spi-alert{flex-direction:column;align-items:stretch}.spi-cta{flex-direction:column;align-items:stretch}.spi-df{flex-wrap:wrap}.spi-dlg{max-height:90vh}}
@media(max-width:480px){
 .spi-arow{padding:12px;gap:12px}.spi-tile{width:56px;height:56px;font-size:10px}
 .spi-hero h2{font-size:24px}.spi-hero{padding:18px 14px}
 .spi-search{padding:0 14px;height:46px}
 .spi-rr{grid-template-columns:1fr}
}
/* shell overrides: DisputePilot's global input/button styles must not leak into the Solvpath pattern */
.spi .spi-search input,.spi .spi-search input:focus{border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;background:transparent!important;height:100%!important;outline:0!important;border-radius:0!important}
.spi-field:focus{outline:0;border-color:#2EB3C9;box-shadow:0 0 0 3px rgba(46,179,201,.15)}
/* Settings › Apps & Integrations: the settings nav already takes a column, so categories use Solvpath's chip row below 1600px */
@media(max-width:1600px){
 .spi.is-embed .spi-grid{flex-direction:column;align-items:stretch}
 .spi.is-embed .spi-cats{display:flex;width:auto;position:static;overflow-x:auto;gap:8px;padding:8px;scrollbar-width:none}
 .spi.is-embed .spi-cats::-webkit-scrollbar{display:none}
 .spi.is-embed .spi-cats h3{display:none}
 .spi.is-embed .spi-cat{flex-shrink:0;width:auto;white-space:nowrap;margin:0;border:1px solid #e6e9ed}
 .spi.is-embed .spi-cat.is-on{border-color:#2EB3C9}
}
/* Settings layout: let the settings column use the full width and shrink, so the chip row scrolls instead of widening the page */
body.dp-v2 .v2-settings-shell:has([data-spi-host]){grid-template-columns:240px minmax(0,1fr)}
@media(max-width:900px){body.dp-v2 .v2-settings-shell:has([data-spi-host]){grid-template-columns:minmax(0,1fr)}}
body.dp-v2 .v2-settings-main:has([data-spi-host]){min-width:0;max-width:none;width:auto}
[data-spi-host],.spi,.spi-grid,.spi-content{min-width:0;max-width:100%}
