/* Support-only styles follow the existing Sales dashboard palette and spacing. */
#supportPotal{max-width:1250px;margin:0 auto;color:#173653}
#supportPotal .panel{min-width:0}
#supportPotal .ssp-heading,.ssp-dialog .ssp-heading,.ssp-preview .ssp-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
#supportPotal h1{font-size:32px;margin:8px 0}#supportPotal h2{font-size:22px}#supportPotal h3{font-size:20px;overflow-wrap:anywhere}
.ssp-eyebrow{font-size:12px;letter-spacing:1px;color:#2673b7;font-weight:700}
#supportPotal .ssp-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}
#supportPotal .ssp-stats>div{padding:20px;background:white;border:1px solid #dce5ee;border-radius:12px}
#supportPotal .ssp-stats strong{display:block;font-size:32px;margin-top:10px}
#supportPotal .ssp-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end;background:#f5f8fc;border:1px solid #dce5ee;border-radius:10px;padding:16px}
#supportPotal .field,.ssp-dialog .field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0}
#supportPotal input,#supportPotal select,#supportPotal textarea,.ssp-dialog input,.ssp-dialog select,.ssp-dialog textarea{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #bdcddd;border-radius:8px;padding:10px 12px;background:white;color:#173653;font:inherit}
#supportPotal button,.ssp-dialog button,.ssp-preview button{min-height:44px;border:1px solid #bdcddd;border-radius:8px;padding:10px 14px;background:white;color:#245d91;cursor:pointer;white-space:normal}
#supportPotal button.primary,.ssp-dialog button.primary{background:#1768b0;color:white;border-color:#1768b0}
#supportPotal button:disabled,.ssp-dialog button:disabled{opacity:.5;cursor:default}
#supportPotal button:focus-visible,.ssp-dialog button:focus-visible,.ssp-preview button:focus-visible,.ssp-image-stage:focus-visible{outline:3px solid #2673b7;outline-offset:3px}
#supportPotal .ssp-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:16px;align-items:start}
#supportPotal .ssp-case{display:block;text-align:left;width:100%;padding:16px;margin-bottom:12px;border-radius:12px;line-height:1.6}
#supportPotal .ssp-case[aria-pressed=true]{border-color:#1768b0;background:#eef6ff}
#supportPotal .ssp-case strong,#supportPotal .ssp-case span,#supportPotal .ssp-case small{display:block;overflow-wrap:anywhere}
#supportPotal .ssp-case strong{font-size:17px;margin:6px 0;color:#173653}
#supportPotal .ssp-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
#supportPotal .ssp-edit{width:100%;margin-top:12px}.ssp-hint{font-size:13px;color:#60748a;line-height:1.5}
.ssp-images{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.ssp-image{max-width:100%}.ssp-thumbnail{position:relative;display:flex!important;flex-direction:column;gap:6px;align-items:center}.ssp-thumbnail img{width:140px;height:105px;object-fit:contain}.ssp-thumbnail span{font-size:12px}
@media(hover:hover) and (pointer:fine){.ssp-thumbnail:hover img{transform:scale(1.5);position:relative;z-index:2;box-shadow:0 4px 18px #17365340;background:white}.ssp-thumbnail img{transition:transform .15s}}
.ssp-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid #dce5ee;border-radius:16px;padding:24px;color:#173653}.ssp-dialog::backdrop,.ssp-preview::backdrop{background:rgba(10,28,48,.55)}
.ssp-dialog form,#sspOwner{display:grid;gap:16px}.ssp-dialog textarea,#sspOwner textarea{min-height:160px;resize:vertical}.ssp-error{color:#a92828;white-space:pre-wrap}.ssp-error:empty,#sspMessage:empty{display:none}
.ssp-preview{box-sizing:border-box;width:min(1200px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:94dvh;overflow:auto;border:1px solid #dce5ee;border-radius:12px;padding:16px;color:#173653}.ssp-preview p{font-size:13px}.ssp-image-stage{overflow:auto;max-height:70dvh;border:1px solid #dce5ee;background:#f5f8fc;touch-action:pan-x pan-y}.ssp-image-stage img{display:block;max-width:100%;height:auto;margin:auto}.ssp-image-stage.actual-size{cursor:grab}.ssp-image-stage.actual-size img{max-width:none;margin:0}
@media(max-width:760px){#supportPotal .ssp-layout{grid-template-columns:1fr}#supportPotal .ssp-stats{grid-template-columns:1fr 1fr;gap:10px}#supportPotal .ssp-stats>div{padding:14px}#supportPotal .ssp-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#supportPotal input,#supportPotal select,.ssp-dialog input,.ssp-dialog select,.ssp-dialog textarea{font-size:16px}#supportPotal h1{font-size:26px}.ssp-dialog{padding:16px}.ssp-thumbnail img{width:110px;height:85px}}
@media(max-width:420px){#supportPotal .ssp-filters{grid-template-columns:1fr}.ssp-preview .ssp-heading{align-items:flex-start}.ssp-stats strong{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.ssp-thumbnail img{transition:none}}

#supportPotal .ssp-status-filter{border:1px solid #bdcddd;border-radius:8px;background:white;min-width:0}
#supportPotal .ssp-status-filter summary{min-height:44px;box-sizing:border-box;padding:10px 12px;cursor:pointer;overflow-wrap:anywhere}
#supportPotal .ssp-status-filter summary:focus-visible,#supportPotal .ssp-status-options input:focus-visible{outline:3px solid #2673b7;outline-offset:2px}
#supportPotal .ssp-status-options{display:grid;gap:4px;padding:8px 12px;border-top:1px solid #dce5ee}
#supportPotal .ssp-status-options label{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
#supportPotal .ssp-status-options input{width:20px;height:20px;min-height:20px;padding:0;flex-shrink:0;accent-color:#1768b0}
#supportPotal .ssp-status-options small{line-height:1.5;color:#60748a}
