.vet-supplement-recommendation{margin:18px 0;border:1px solid #c9d8ed;background:#f8fbff}
.supplement-choice{border:1px solid #dce7f5;border-radius:12px;background:white;padding:16px;margin:12px 0}
.supplement-choice.is-selected{border:2px solid #316ee8;box-shadow:0 3px 12px #173c7410}
.supplement-card-heading{display:flex;align-items:center;gap:18px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid #e4ebf4}
.supplement-card-heading h4{font-size:18px;margin:8px 0;color:#123157;line-height:1.5}
.supplement-card-heading p{color:#62758b;font-size:13px}
.supplement-card-photo{flex:0 0 96px;width:96px;height:96px;display:grid;place-items:center;background:#f0f5fc;border-radius:12px;color:#526d91;overflow:hidden}
.supplement-card-photo img{width:100%;height:100%;object-fit:contain;background:white}
.supplement-badge{display:inline-block;padding:4px 10px;background:#fff1d8;border-radius:20px;color:#8a5417;font-size:12px;font-weight:700}
.supplement-badge.is-ready{background:#e6f5ed;color:#21633e}
.supplement-badge.is-mine{background:#e8eefc;color:#1f4fb8}
.supplement-my-list{color:#1f4fb8;font-size:13px}
.vet-supplement-recommendation table{width:100%;border-collapse:collapse;background:white;font-size:13px}
.vet-supplement-recommendation th{background:#eef4fc;color:#385779;text-align:left}
.vet-supplement-recommendation th,.vet-supplement-recommendation td{padding:12px;border-bottom:1px solid #e4ebf4;vertical-align:top}
.supplement-table-scroll{overflow-x:auto}
.supplement-dose-grid>label{flex:1;min-width:180px;font-weight:600;color:#234569}
.supplement-dose-grid input,.supplement-dose-grid select{display:block;box-sizing:border-box;width:100%;margin-top:8px;padding:12px;border:1px solid #bdcde2;border-radius:8px;background:white;font-size:16px}
.supplement-choice button{padding:10px 18px;border:1px solid #b5c8e1;border-radius:8px;background:#f2f6fc;color:#194b9c;font-weight:700;cursor:pointer}
.supplement-choice [data-pre-add]{background:#275ce1;border-color:#275ce1;color:white}
@media(max-width:480px){.supplement-card-photo{flex-basis:72px;width:72px;height:72px}.supplement-card-heading{gap:12px}.supplement-card-heading h4{font-size:16px}.supplement-choice{padding:12px}.supplement-dose-grid>label{min-width:100%}.vet-supplement-recommendation td,.vet-supplement-recommendation th{padding:8px}}
.supplement-choice label{display:block;margin:10px 0}
.supplement-choice textarea{display:block;box-sizing:border-box;width:100%;min-height:72px}
.supplement-dose-grid{display:flex;flex-wrap:wrap;gap:16px}
.supplement-warning{background:#fff6e6;color:#794d0b;padding:10px;border-radius:8px}
.supplement-applied{background:#eaf5ef;color:#225d40;padding:10px;border-radius:8px}
.vet-supplement-recommendation summary{cursor:pointer;list-style:revert;padding:2px 0}
.vet-supplement-recommendation details[open] summary{margin-bottom:14px}
.vet-supplement-recommendation p{margin:10px 0}
.vet-supplement-search-row{display:flex;gap:8px;align-items:center;margin:14px 0}
.vet-supplement-search-row input{flex:1;min-width:170px}
.vet-supplement-product{display:flex;flex-wrap:wrap;gap:5px 12px;align-items:center;padding:10px 0;border-top:1px solid #dce7f5}
.vet-supplement-product strong{min-width:120px}
.vet-supplement-product span,.vet-supplement-product small{color:#44566f}
.vet-supplement-product small{flex-basis:100%}
.vet-supplement-product button{margin-left:auto}
.vet-supplement-product-body{display:flex;flex:1;flex-wrap:wrap;gap:5px 12px;align-items:center;min-width:0}
.vet-supplement-product-image{width:168px;height:168px;display:flex;align-items:center;justify-content:center;border:1px solid #dce7f5;border-radius:8px;background:#fff;overflow:hidden}
.vet-supplement-product-image img{display:block;max-width:100%;max-height:100%;object-fit:contain}
[data-supplement-results] .vet-supplement-product{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 18px;align-items:center}
[data-supplement-results] .vet-supplement-product.has-image{grid-template-columns:168px minmax(0,1fr) auto}
[data-supplement-results] .vet-supplement-product-body{display:flex;flex-wrap:wrap}
[data-supplement-results] .vet-supplement-product button{margin-left:0;justify-self:end;white-space:nowrap}
@media(max-width:640px){.vet-supplement-search-row{align-items:stretch;flex-direction:column}[data-supplement-results] .vet-supplement-product.has-image{grid-template-columns:132px minmax(0,1fr)}[data-supplement-results] .vet-supplement-product-image{width:132px;height:132px}[data-supplement-results] .vet-supplement-product button{grid-column:-2/-1;justify-self:end}}

/* Keep prescription-page header/input rules out of supplement cards. */
#vetSupplementPreparation .supplement-inline-editor{margin-top:18px;padding-top:6px;border-top:1px solid #cbd9ed}
#vetSupplementPreparation .supplement-inline-editor[hidden]{display:none}
#vetSupplementPreparation{font-family:system-ui,-apple-system,"Malgun Gothic",sans-serif}
#vetSupplementPreparation .supplement-card-heading{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;justify-content:start;gap:24px;position:static;width:100%;box-sizing:border-box;text-align:left}
#vetSupplementPreparation .supplement-card-photo{width:180px;height:180px;min-width:0;margin:0;border:1px solid #e1e8f0;background:#fff;border-radius:12px}
#vetSupplementPreparation .supplement-card-photo img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;margin:0}
#vetSupplementPreparation .supplement-card-title{min-width:0;text-align:left}
#vetSupplementPreparation .supplement-card-title h4{font-size:21px;line-height:1.5;margin:10px 0;color:#123157}
#vetSupplementPreparation .supplement-check{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:10px;cursor:pointer;font-size:15px;line-height:1.6;text-align:left;width:auto}
#vetSupplementPreparation .supplement-check input[type=checkbox]{appearance:auto;display:inline-block;position:static;flex:0 0 20px;width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;margin:2px 0 0;padding:0;accent-color:#275ce1;box-shadow:none;transform:none;cursor:pointer}
#vetSupplementPreparation .supplement-check span{display:block;min-width:0}
#vetSupplementPreparation .supplement-check small{display:block;color:#42576b;font-size:13px;font-weight:400;margin-top:3px}
#vetSupplementPreparation .supplement-record{padding:14px 16px;border:1px solid #cbd9ed;border-radius:8px;background:#f4f7fc;margin:18px 0}
#vetSupplementPreparation .supplement-choice-actions{display:flex;flex-wrap:wrap;gap:14px 24px;align-items:center;margin-top:18px}
#vetSupplementPreparation .supplement-choice-actions a{font-size:14px;color:#234ea2;text-underline-offset:4px}
#vetSupplementPreparation .supplement-choice-actions .supplement-check{border:1px solid #b5c9ee;border-radius:8px;padding:10px 14px;margin:0;font-weight:700;background:#f2f6ff}
#vetSupplementPreparation .supplement-dose-draft{padding:14px 16px;border-left:4px solid #3870c5;border-radius:4px;background:#f0f5ff;color:#193d70;font-size:14px;line-height:1.7}
#vetSupplementPreparation .supplement-dose-draft p{margin:6px 0 0}
#vetSupplementPreparation textarea{font-size:15px;line-height:1.7;padding:12px;min-height:112px;resize:vertical}
/* 2026-11-18: 하루 기여량은 시안처럼 흰 카드 + 중립 표로. 초록 배경은 '반영 완료'로 오해되고 파란 선택 카드와 충돌했다. */
#vetSupplementPreparation .supplement-contribution{margin:18px 0;padding:18px 20px;border:1px solid #d6e1ef;border-radius:12px;background:#fff;color:#1d2a3a;font-size:15px;line-height:1.7}
#vetSupplementPreparation .supplement-contribution h4{font-size:17px;font-weight:800;line-height:1.4;margin:0 0 6px;color:#123157}
#vetSupplementPreparation .supplement-contribution p{font-size:14px;font-weight:500;margin:4px 0 12px;color:#4a5d73}
#vetSupplementPreparation .supplement-contribution table{width:100%;min-width:480px;background:#fff;border-collapse:collapse;font-size:15px}
#vetSupplementPreparation .supplement-contribution thead th{background:#f6f8fb;color:#5b6b7f;font-size:13px;font-weight:600}
#vetSupplementPreparation .supplement-contribution th,#vetSupplementPreparation .supplement-contribution td{padding:11px 14px;border-bottom:1px solid #e4ebf4;text-align:left;vertical-align:middle;line-height:1.6}
#vetSupplementPreparation .supplement-contribution thead th:not(:first-child),#vetSupplementPreparation .supplement-contribution td{text-align:right}
#vetSupplementPreparation .supplement-contribution tbody th{color:#1d2a3a;background:#fff;font-weight:600}
#vetSupplementPreparation .supplement-contribution td{font-variant-numeric:tabular-nums;color:#4a5d73}
#vetSupplementPreparation .supplement-contribution .supplement-daily-value{font-size:18px;font-weight:800;color:#123157;background:transparent}
#vetSupplementPreparation .supplement-contribution small{display:block;margin-top:12px;color:#5b6b7f;font-size:13px}
#vetSupplementPreparation input:focus-visible,#vetSupplementPreparation a:focus-visible{outline:3px solid #628ae6;outline-offset:3px}
@media(max-width:600px){#vetSupplementPreparation .supplement-card-heading{grid-template-columns:120px minmax(0,1fr);gap:16px}#vetSupplementPreparation .supplement-card-photo{width:120px;height:140px}#vetSupplementPreparation .supplement-card-title h4{font-size:18px}#vetSupplementPreparation .supplement-contribution{padding:14px}#vetSupplementPreparation .supplement-contribution .supplement-daily-value{font-size:16px}}
@media(max-width:600px){#vetSupplementPreparation .supplement-contribution table{min-width:0;table-layout:fixed;font-size:13px}#vetSupplementPreparation .supplement-contribution th,#vetSupplementPreparation .supplement-contribution td{padding:10px 6px;white-space:normal;overflow-wrap:anywhere}#vetSupplementPreparation .supplement-contribution .supplement-col-optional{display:none}#vetSupplementPreparation .supplement-contribution thead th:nth-child(1){width:28%}#vetSupplementPreparation .supplement-contribution thead th:nth-child(2){width:22%}#vetSupplementPreparation .supplement-contribution thead th:nth-child(4){width:30%}#vetSupplementPreparation .supplement-contribution thead th:nth-child(6){width:20%}#vetSupplementPreparation .supplement-contribution thead th{font-size:12px}}

/* 2026-11-18 시안 1번: "하루 [−] N [+] 캡슐" 스테퍼 */
.vet-supplement-recommendation .supplement-dose{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:14px 0;font-weight:600;color:#234569}
.vet-supplement-recommendation .supplement-stepper{display:inline-flex;align-items:stretch;border:1px solid #bdcde2;border-radius:8px;overflow:hidden;background:#fff}
#vetSupplementPreparation .supplement-stepper button,.vet-supplement-recommendation .supplement-stepper button{width:40px;min-width:40px;margin:0;padding:0;border:0;border-radius:0;background:#f0f4fa;color:#194b9c;font-size:20px;font-weight:700;line-height:1;cursor:pointer}
#vetSupplementPreparation .supplement-stepper button:disabled,.vet-supplement-recommendation .supplement-stepper button:disabled{opacity:.45;cursor:not-allowed}
#vetSupplementPreparation .supplement-stepper input,.vet-supplement-recommendation .supplement-stepper input{width:72px;min-width:0;margin:0;padding:10px 4px;border:0;border-left:1px solid #dce5f1;border-right:1px solid #dce5f1;border-radius:0;box-shadow:none;text-align:center;font-size:18px;font-weight:800;color:#123157;background:#fff;-moz-appearance:textfield;appearance:textfield}
.vet-supplement-recommendation .supplement-stepper input::-webkit-outer-spin-button,.vet-supplement-recommendation .supplement-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.vet-supplement-recommendation [data-dose-unit]{font-size:16px;font-weight:700;color:#123157}
.vet-supplement-recommendation .supplement-dose-basis{display:inline-flex;align-items:center;gap:6px;margin:0 0 0 6px;font-size:13px;font-weight:500;color:#5b6b7f}
.vet-supplement-recommendation .supplement-dose-basis select{width:auto;margin:0;padding:6px 8px;font-size:13px}
/* 2026-11-18 시안 2번: 상태 표시 */
.supplement-pill{display:inline-block;border-radius:999px;padding:1px 9px;font-size:12px;font-weight:700;white-space:nowrap}
.supplement-pill.is-ok{background:#e6f4ea;color:#1f7a3a}
.supplement-pill.is-estimate,.supplement-pill.is-info{background:#eef3fb;color:#2f5aa8}
.supplement-pill.is-warn{background:#fff4e0;color:#a86200}
.supplement-pill.is-bad{background:#fdecea;color:#b3261e}
.supplement-pill+.supplement-pill{margin-left:4px}
#vetSupplementPreparation .supplement-contribution .supplement-target small{display:block;margin-top:2px;font-size:12px;color:#8a97a8}
#vetSupplementPreparation .supplement-contribution .supplement-target{color:#4a5d73}
#vetSupplementPreparation textarea[data-pre-note]{min-height:170px}
#vetSupplementPreparation .supplement-contribution td small{margin-top:4px;font-size:12px;color:#7a5a20;white-space:normal}
#vetSupplementPreparation .supplement-contribution .supplement-target{color:#8a97a8;font-size:13px}
#vetSupplementPreparation .supplement-contribution tr.is-excluded th,#vetSupplementPreparation .supplement-contribution tr.is-excluded td{color:#8a97a8}
@media(min-width:601px){#vetSupplementPreparation .supplement-contribution thead th{white-space:nowrap}}
#vetSupplementPreparation .supplement-contribution .supplement-estimate-note{display:block;font-size:12px;font-weight:600;color:#5b6b7f}
@media(max-width:600px){#vetSupplementPreparation .supplement-contribution thead th:nth-child(1){width:26%}#vetSupplementPreparation .supplement-contribution thead th:nth-child(2){width:20%}#vetSupplementPreparation .supplement-contribution thead th:nth-child(6){width:24%}#vetSupplementPreparation .supplement-pill{white-space:normal;padding:1px 6px}}/* 못먹는 식재료 경고(2026-11-19): 영양제 원료가 환자의 못먹는 식재료와 겹칠 때. */
.supplement-allergen-warning{margin:6px 0;padding:8px 10px;border:1px solid #fecaca;border-radius:8px;background:#fef2f2;color:#991b1b;font-size:12px;line-height:1.5}
.vet-supplement-product.has-allergen-conflict{border-color:#fca5a5}
