:root{--navy:#12243d;--blue:#176b87;--teal:#14918b;--bg:#f3f6f8;--line:#d8e0e6;--red:#c64040;--yellow:#e6a21a;--text:#17212b}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;font-size:16px;line-height:1.55}header{height:68px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100% - 1240px)/2));gap:20px}header a{color:#fff;text-decoration:none}.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px}.logo span,.brandmark{display:grid;place-items:center;background:var(--teal);color:#fff;border-radius:10px;font-weight:900}.logo span{width:36px;height:36px}.brandmark{width:54px;height:54px;margin:auto;font-size:26px}nav{display:flex;gap:22px;font-size:14px}.container{max-width:1240px;margin:34px auto;padding:0 20px}.narrow{max-width:760px}h1{font-size:28px;margin:0 0 8px}h2{font-size:19px;margin:28px 0 12px}.topline{display:flex;justify-content:space-between;align-items:end;gap:20px}.topline p,.muted{color:#65727e;margin:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0 10px}.stats a{background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px;text-decoration:none;color:inherit}.stats b{display:block;font-size:28px}.stats span{font-size:14px;color:#687681}.stats .danger b{color:var(--red)}.stats .warn b{color:#b97a00}.stats .units-card b{color:var(--blue)}.stats-note{margin:0 0 20px;color:#687681;font-size:13px}.filters{display:flex;gap:10px;margin-bottom:16px}.filters input{flex:1}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;min-width:900px}th,td{padding:14px;border-bottom:1px solid #e8edf0;text-align:left;vertical-align:middle}th{background:#eef3f6;font-size:13px;color:#52616d;white-space:nowrap}td strong{display:block;max-width:390px}td small{display:block;color:#78848e}td.num{text-align:right;font-size:18px;font-weight:700}.bad{color:var(--red)}code{font-size:13px}.badge{display:inline-block;font-style:normal;font-size:12px;border-radius:99px;padding:2px 8px;margin-top:5px}.red{background:#fde7e7;color:#9d2424}.yellow{background:#fff0c7;color:#875900}.empty{text-align:center;padding:50px;color:#6f7d87}.panel,.auth-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px;margin-top:20px}.auth{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(145deg,#10243d,#176b87)}.auth-card{width:min(100%,470px);margin:0;box-shadow:0 18px 60px #08192b55}.auth-card.wide{width:min(100%,650px)}.auth-card>h1,.auth-card>p{text-align:center}.auth-card h2{text-align:left;border-bottom:1px solid var(--line);padding-bottom:7px}label{display:block;font-weight:700;margin:16px 0}input,textarea{display:block;width:100%;margin-top:6px;padding:12px 13px;border:1px solid #b8c4cc;border-radius:8px;background:#fff;font:inherit}textarea{min-height:110px}small{font-weight:400;color:#687681}button,.button{display:inline-block;border:0;border-radius:8px;background:var(--blue);color:white;padding:12px 18px;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}form>button{width:100%;margin-top:10px}.compact{width:auto!important;margin:0!important}.secondary{background:#566672}.alert{padding:13px 15px;border-radius:8px;margin:16px 0}.alert.error{background:#fde7e7;color:#8f2424}.alert.success{background:#ddf4eb;color:#15684f}.secret{font-family:monospace;font-size:19px;word-break:break-all;background:#edf4f5;border:1px dashed var(--teal);padding:14px;border-radius:8px;text-align:center}.auth-card .button{display:block;text-align:center;margin-top:22px}details{margin:18px 0;word-break:break-all}@media(max-width:760px){header{height:auto;min-height:64px;padding:12px 16px;align-items:flex-start}nav{gap:12px;flex-wrap:wrap;justify-content:flex-end}nav a{font-size:13px}.container{margin:22px auto;padding:0 12px}.stats{grid-template-columns:repeat(2,1fr)}.stats a:first-child{grid-column:span 2}.topline{align-items:flex-start}.topline button{white-space:nowrap}h1{font-size:24px}.filters{flex-direction:column}.filters button{width:100%!important}}

nav a.active{font-weight:800;text-decoration:underline;text-underline-offset:5px}.dashboard-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}.dashboard-stats.three{grid-template-columns:repeat(3,1fr)}.metric{display:block;background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;text-decoration:none;color:inherit}.metric span{display:block;color:#687681;font-size:14px}.metric b{display:block;font-size:30px;margin:4px 0}.metric small{display:block}.metric.warn b{color:#b97a00}.metric.danger b{color:var(--red)}.notice{background:#e8f4f7;border:1px solid #badce5;color:#245767;border-radius:10px;padding:14px 16px;margin:18px 0}.dash-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dash-panel{margin-top:0}.section-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.section-title h1,.section-title h2{margin:0}.section-title a{white-space:nowrap}.count-pill{background:#edf3f6;border-radius:99px;padding:6px 12px;font-weight:800}.mini-list{display:grid;gap:0}.mini-row{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #edf0f2}.mini-row:last-child{border-bottom:0}.mini-row strong,.mini-row small{display:block}.mini-row strong{max-width:480px}.mini-num{text-align:right;white-space:nowrap}.mini-num b,.mini-num small,.mini-num a{display:block}.empty-mini{color:#74818b;padding:20px 0;text-align:center}.embedded{border-radius:9px}.tiny{padding:7px 10px;font-size:13px;white-space:nowrap}.footnote{font-size:12px;color:#78848e;margin-top:18px}.tabs{display:flex;gap:6px}.tabs a{padding:8px 12px;border-radius:8px;background:#e7edf0;text-decoration:none;color:inherit}.tabs a.on{background:var(--blue);color:#fff;font-weight:800}.setting-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:18px 0}.setting-summary>div{background:#f3f7f8;border-radius:9px;padding:12px}.setting-summary span,.setting-summary b{display:block}.setting-summary span{font-size:12px;color:#687681}.setting-summary b{font-size:21px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}select{display:block;width:100%;margin-top:6px;padding:12px 13px;border:1px solid #b8c4cc;border-radius:8px;background:#fff;font:inherit}.product-title{margin:12px 0 0}
@media(max-width:900px){.dashboard-stats{grid-template-columns:repeat(2,1fr)}.dash-grid{grid-template-columns:1fr}.setting-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){header{align-items:center;flex-wrap:wrap}.logo{font-size:18px}nav{width:100%;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}nav a{white-space:nowrap}.dashboard-stats,.dashboard-stats.three{grid-template-columns:repeat(2,1fr)}.dashboard-stats.three .metric:first-child{grid-column:span 2}.metric{padding:16px}.metric b{font-size:26px}.section-title{align-items:flex-start}.form-grid{grid-template-columns:1fr}.setting-summary{grid-template-columns:repeat(2,1fr)}}
.state-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0 14px}.state-stats a{background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px;text-decoration:none;color:inherit}.state-stats b{display:block;font-size:28px}.state-stats span{font-size:14px;color:#687681}.state-stats .state-active b{color:#16765f}.state-stats .state-out b{color:var(--red)}.state-stats .state-inactive b{color:#66737d}.state-stats .state-completed b{color:var(--blue)}.state-stats .state-deleted b{color:#303841}.state-stats .state-low b{color:#b97a00}.state-badge{margin:0;white-space:nowrap}.badge.green{background:#ddf4eb;color:#15684f}.badge.gray{background:#e9edf0;color:#4e5b65}.badge.blue{background:#e2f0f5;color:#1d6078}.badge.dark{background:#e0e2e4;color:#303841}.small-notice{font-size:13px;margin:0 0 18px}@media(max-width:900px){.state-stats{grid-template-columns:repeat(2,1fr)}}

/* Ver1.2.2 商品画像 */
.product-cell{display:flex;align-items:center;gap:12px;min-width:300px}.product-cell strong{margin:0}.product-thumb{width:72px;height:72px;flex:0 0 72px;border:1px solid #e1e6ea;border-radius:9px;background:#fff;display:grid;place-items:center;overflow:hidden}.product-thumb img{width:100%;height:100%;object-fit:contain;display:block}.product-noimage{width:100%;height:100%;place-items:center;text-align:center;padding:4px;background:#f3f5f6;color:#8a959d;font-size:11px;line-height:1.25}@media(max-width:760px){.product-cell{min-width:250px}.product-thumb{width:60px;height:60px;flex-basis:60px}}

/* Ver1.2.3 ブランド切替 */
.brand-switch{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:20px 0 4px}.brand-switch>span{font-weight:800;margin-right:2px}.brand-switch a{display:inline-block;padding:8px 13px;border:1px solid var(--line);border-radius:999px;background:#fff;color:inherit;text-decoration:none}.brand-switch a.on{background:var(--navy);border-color:var(--navy);color:#fff;font-weight:800}

.sync-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sync-actions form{margin:0}.sync-actions button{white-space:nowrap}

/* Ver1.2.5 更新状況 */
.update-status-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:9px}.update-status{display:flex;align-items:flex-start;gap:8px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px 11px;min-width:245px}.update-status strong,.update-status small{display:block}.update-status strong{font-size:14px}.update-status small{font-size:12px;color:#687681}.status-dot{width:10px;height:10px;border-radius:50%;margin-top:6px;flex:0 0 10px;background:#89959e}.update-status.fresh .status-dot{background:#23966f}.update-status.recommend .status-dot{background:#e6a21a}.update-status.stale .status-dot{background:#c64040}.update-status.none .status-dot{background:#89959e}.button-status{display:inline-block;margin-left:5px;padding:1px 7px;border-radius:999px;background:#ffffff2e;font-size:11px;font-weight:800;vertical-align:1px}.secondary .button-status{background:#ffffff30}@media(max-width:760px){.topline{flex-direction:column}.sync-actions{width:100%}.sync-actions form{flex:1}.sync-actions button{width:100%!important}.update-status-row{width:100%}.update-status{width:100%;min-width:0}}

/* Ver1.2.6 モバイル更新エリア整列 */
@media(max-width:760px){
  .topline{display:block}
  .topline>div:first-child{width:100%}
  .topline h1{margin-bottom:12px}
  .update-status-row{display:grid;grid-template-columns:1fr;gap:8px;margin-top:0}
  .update-status{width:100%;min-width:0;padding:11px 12px}
  .update-status strong{font-size:14px;line-height:1.4}
  .update-status small{font-size:12px;line-height:1.45}
  .sync-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:10px}
  .sync-actions form{width:100%}
  .sync-actions button{width:100%!important;min-height:48px;padding:10px 8px;font-size:13px;line-height:1.3;white-space:normal}
  .button-status{display:block;width:max-content;max-width:100%;margin:4px auto 0;padding:2px 7px}
}
@media(max-width:390px){.sync-actions{grid-template-columns:1fr}.sync-actions button{font-size:14px}}


/* Ver1.2.7 更新エリア: タブレット幅でも横潰れを防止 */
@media(max-width:1100px){
  .topline{display:block!important}
  .topline>div:first-child{width:100%!important}
  .topline h1{margin-bottom:12px}
  .update-status-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin-top:0}
  .update-status{width:100%!important;min-width:0!important;padding:11px 12px}
  .update-status>div{min-width:0}
  .update-status strong,.update-status small{overflow-wrap:anywhere}
  .sync-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%!important;margin-top:10px}
  .sync-actions form{width:100%!important;min-width:0}
  .sync-actions button{width:100%!important;min-height:50px;padding:10px 12px;font-size:14px;line-height:1.35;white-space:normal!important}
  .button-status{display:inline-block;margin-left:5px}
}
@media(max-width:620px){
  .update-status-row{grid-template-columns:1fr}
  .sync-actions{grid-template-columns:1fr}
  .sync-actions button{font-size:14px}
  .button-status{display:inline-block;margin-left:5px}
}

/* Ver1.2.8: 画像・ブランド未取得理由の可視化 */
.catalog-breakdown{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;color:#657180;font-size:.84rem}
.catalog-breakdown strong{color:#263545;margin-right:2px}
.catalog-breakdown span{display:inline-block;padding:4px 8px;border-radius:999px;background:#f3f5f7;border:1px solid #dfe4e8;white-space:nowrap}
.fetch-note{display:block;margin-top:5px;max-width:260px;color:#8a5b00;font-size:.76rem;line-height:1.35}
@media(max-width:700px){.catalog-breakdown{font-size:.76rem}.catalog-breakdown span{padding:3px 7px}.fetch-note{max-width:180px}}

/* Ver1.2.9 更新処理中 */
.sync-actions button:disabled{opacity:.7;cursor:wait}

/* Ver1.2.11 ダッシュボード商品画像・売上日付範囲 */
.date-range-form{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:16px 0 4px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:12px}.date-range-form label{font-size:12px;font-weight:700;color:#687681}.date-range-form input[type=date]{display:block;margin-top:5px;padding:9px 10px;border:1px solid #b8c4cc;border-radius:8px;background:#fff;font:inherit;color:#263545}.date-range-form>span{padding-bottom:10px;color:#687681}.mini-product{display:flex;align-items:center;gap:10px;min-width:0}.mini-product>div{min-width:0}.mini-product strong{overflow-wrap:anywhere}.product-mini-row{align-items:center}.product-mini-row .product-thumb{width:52px;height:52px;flex-basis:52px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:620px){.date-range-form{display:grid;grid-template-columns:1fr auto 1fr;align-items:end}.date-range-form button,.date-range-form>a{grid-column:auto}.date-range-form .compact{width:100%!important}.product-mini-row{gap:8px}.product-mini-row .product-thumb{width:46px;height:46px;flex-basis:46px}}
@media(max-width:430px){.date-range-form{grid-template-columns:1fr 1fr}.date-range-form>span{display:none}.date-range-form label{min-width:0}.date-range-form input[type=date]{width:100%}.date-range-form button,.date-range-form>a{width:100%!important;text-align:center}}

/* Ver1.2.13 商品分類 */
.category-summary{display:flex;gap:12px;margin:14px 0}.category-summary>div{min-width:130px;background:#fff;border:1px solid #e4e8ec;border-radius:12px;padding:14px 18px;display:flex;flex-direction:column}.category-summary b{font-size:26px}.category-summary span{font-size:13px;color:#667}.category-summary .warn{background:#fffaf0}
.category-filter{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}.category-filter a{display:inline-block;padding:8px 12px;border:1px solid #d6dde3;border-radius:999px;background:#fff;text-decoration:none;color:#334}.category-filter a.on{background:#18394d;color:#fff;border-color:#18394d}
.category-manager{margin-bottom:18px;padding:16px}.category-manager h2{margin:0 0 12px}.category-add,.category-rename{display:flex;gap:8px;align-items:center}.category-add input,.category-rename input{min-width:180px}.category-manage-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.category-manage-list>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.category-manage-list form{margin:0}.danger{background:#b42318!important;border-color:#b42318!important;color:#fff!important}
.classification-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:14px}.classification-card{display:flex;gap:14px;background:#fff;border:1px solid #e1e6ea;border-radius:14px;padding:14px;min-width:0}.classification-image{width:92px;height:92px;flex:0 0 92px;background:#f4f6f7;border-radius:10px;display:grid;place-items:center;overflow:hidden;color:#899}.classification-image img{width:100%;height:100%;object-fit:contain}.classification-body{min-width:0;display:flex;flex-direction:column;gap:5px;flex:1}.classification-body strong{line-height:1.35}.classification-body small{color:#68737d;overflow:hidden;text-overflow:ellipsis}.classification-select{margin-top:auto}.classification-select label{display:flex;align-items:center;gap:8px;font-weight:700}.classification-select select{width:100%;min-width:0}.pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin:22px 0}.pagination a{padding:8px 12px;border:1px solid #d6dde3;border-radius:8px;background:#fff;text-decoration:none}.muted{color:#68737d}
@media(max-width:640px){.classification-grid{grid-template-columns:1fr}.classification-card{padding:12px}.classification-image{width:78px;height:78px;flex-basis:78px}.category-manager{padding:12px}.category-add,.category-rename{align-items:stretch;flex-direction:column}.category-manage-list>div{align-items:stretch}.category-manage-list>div>form{width:100%}.category-manage-list button{width:100%}}

/* Ver1.2.14 ヘッダー設定メニュー */
.header-right{display:flex;align-items:center;gap:16px;min-width:0}.header-right nav{display:flex;align-items:center}.header-settings{position:relative;margin:0}.header-settings>summary{list-style:none;display:flex;align-items:center;gap:6px;cursor:pointer;color:#fff;font-size:14px;font-weight:700;white-space:nowrap;padding:8px 10px;border:1px solid #ffffff42;border-radius:8px}.header-settings>summary::-webkit-details-marker{display:none}.header-settings>summary::marker{display:none}.header-settings.active>summary,.header-settings[open]>summary{background:#ffffff18}.header-settings-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:1000;min-width:160px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px;box-shadow:0 10px 30px #0c1b2b33}.header-settings-menu a{display:block;color:var(--text);padding:10px 12px;border-radius:7px;white-space:nowrap}.header-settings-menu a:hover,.header-settings-menu a.active{background:#edf3f6;font-weight:800}.header-settings-menu a.active{text-decoration:none}
@media(max-width:760px){.header-right{width:100%;gap:8px}.header-right nav{width:auto;flex:1;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.header-settings{flex:0 0 auto}.header-settings>summary span{display:none}.header-settings>summary{padding:7px 10px;font-size:17px}.header-settings-menu{right:0}}

/* Ver1.2.21 画像・ブランド一括更新進捗 */
.bulk-sync-progress{grid-column:1/-1;width:100%;margin-top:2px;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:10px}.bulk-sync-progress[hidden]{display:none}.bulk-sync-progress progress{display:block;width:100%;height:14px}.bulk-sync-progress small{display:block;margin-top:6px;color:#5f6d78;line-height:1.45}.catalog-bulk-form button:disabled{cursor:wait}

/* Ver1.2.22: ページ遷移後も見える一括更新の共通進捗 */
.catalog-global-progress{position:sticky;top:0;z-index:45;background:#fff;border-bottom:1px solid #d9e0e7;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.catalog-global-progress[hidden]{display:none!important}
.catalog-global-progress-inner{max-width:1180px;margin:0 auto;padding:8px 18px;display:grid;grid-template-columns:auto minmax(160px,1fr) auto;gap:8px 12px;align-items:center}
.catalog-global-progress progress{width:100%;height:12px}
.catalog-global-progress-percent{font-weight:700;min-width:42px;text-align:right}
.catalog-global-progress-text{grid-column:1/-1;line-height:1.35}
@media(max-width:700px){.catalog-global-progress-inner{grid-template-columns:1fr auto;padding:7px 12px}.catalog-global-progress-inner strong{grid-column:1/-1}.catalog-global-progress progress{min-width:0}.catalog-global-progress-text{font-size:11px}}

/* Ver1.2.25: ブランド未取得商品の手動振り分け */
.brand-assign-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap;min-width:210px}
.brand-assign-form select{min-width:130px;max-width:170px}

/* Ver1.2.26: ブランド未取得は商品欄内でその場で振り分け */
.product-main{min-width:0;flex:1}.brand-assign-inline{margin-top:10px;min-width:0;width:100%;padding:9px 10px;border-radius:9px;background:#f4f7f9;border:1px solid #dce4e9}.brand-assign-label{font-size:12px;font-weight:800;color:#52616d;white-space:nowrap}.brand-assign-inline select{margin:0;min-width:145px;max-width:185px;padding:8px 10px}.brand-assign-inline button{padding:8px 11px!important}.brand-assign-form button{margin-top:0}
@media(max-width:760px){.product-cell{align-items:flex-start;min-width:300px}.brand-assign-inline{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:9px}.brand-assign-inline .brand-assign-label{grid-column:1/-1}.brand-assign-inline select{width:100%;max-width:none;min-width:0}.brand-assign-inline button{width:auto!important;white-space:nowrap}}

.dashboard-sales-link{display:flex;justify-content:flex-end;margin:8px 0 0}.dashboard-ordered{margin-top:18px}.sales-quick-range{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0 2px}.sales-quick-range>span{font-weight:800;margin-right:2px}.sales-quick-range a{padding:7px 12px;border-radius:999px;border:1px solid var(--line);background:#fff;color:inherit;text-decoration:none}.sales-quick-range a.on{background:var(--navy);border-color:var(--navy);color:#fff;font-weight:800}.sales-list-title{margin-top:22px}

/* Ver1.2.30: 種類はプルダウン選択＋表示ボタンに集約 */
.inventory-category-filter{align-items:center}
.category-select-form{display:flex;align-items:center;gap:8px;flex:1;max-width:620px}
.category-select-form select{flex:1;min-width:220px;padding:10px 12px;border:1px solid #b8c4cc;border-radius:9px;background:#fff;font:inherit}
.category-select-form button{white-space:nowrap}
.category-edit-link{white-space:nowrap}
@media(max-width:760px){.category-select-form{flex:1 1 100%;max-width:none}.category-select-form select{min-width:0}.category-edit-link{margin-left:auto}}


/* Ver1.2.31: FBA / 出品者出荷を明確に区別 */
.fulfillment-switch{margin-top:8px}
.fulfillment-badge{white-space:nowrap;font-style:normal}
.fulfillment-badge.fulfillment-fba{background:#e5f5ef;color:#126b50;border:1px solid #b9e2d2}
.fulfillment-badge.fulfillment-merchant{background:#eef2ff;color:#3647a5;border:1px solid #cfd7ff}
.fulfillment-badge.fulfillment-unknown{background:#f2f3f5;color:#69727a;border:1px solid #dde1e5}

/* Ver1.2.46: 出品ステータスと在庫ステータスを別軸で表示 */
.inventory-status-heading{margin:26px 0 4px;font-size:1.2rem}
.inventory-status-note{margin:0 0 10px}


/* Ver1.2.47 売上ページ 日付カレンダーのモバイル幅調整 */
.date-range-form label{min-width:0}
.date-range-form input[type=date]{box-sizing:border-box;min-width:0;max-width:100%;width:100%}
@media(max-width:620px){
  .date-range-form{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
  .date-range-form input[type=date]{font-size:16px;padding:8px 7px}
}
@media(max-width:430px){
  .date-range-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .date-range-form label{width:100%;overflow:hidden}
  .date-range-form input[type=date]{width:100%;min-width:0;max-width:100%;padding:8px 6px;font-size:15px}
}

/* Ver1.2.50 dashboard/inventory layout */
.inventory-category-filter{display:flex;flex-wrap:nowrap;gap:10px}.inventory-category-filter>span{white-space:nowrap}.inventory-category-filter .category-select-form{display:flex;flex:1;max-width:none;flex-wrap:nowrap}.inventory-category-filter .category-select-form select{min-width:0;margin-top:0}
.inventory-primary-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.inventory-primary-stats .state-total{grid-column:1/-1;width:100%}
@media(max-width:760px){.inventory-category-filter{flex-wrap:nowrap}.inventory-category-filter .category-select-form{flex:1;flex-wrap:nowrap}.inventory-primary-stats{grid-template-columns:1fr 1fr}.inventory-primary-stats .state-total{grid-column:1/-1}}

/* Sales amount breakdown: interactive summary and order-item details */
.sales-amount-trigger{font:inherit;color:inherit;text-align:left;cursor:pointer;width:100%;border:1px solid #cbd8e0;background:#fff;border-radius:16px}.sales-amount-trigger:hover,.sales-amount-trigger:focus-visible{border-color:#267eaa;outline:2px solid #b5deef;outline-offset:1px}.sales-amount-trigger small{font-size:12px;color:#22719c;font-weight:600}.sales-breakdown{margin:14px 0 26px}.sales-breakdown[hidden]{display:none}.sales-breakdown .table-wrap{overflow-x:auto}.sales-breakdown table{min-width:570px}.sales-breakdown td small{overflow-wrap:anywhere}.sales-breakdown-total{background:#eef5f8}

/* v1.2.62: mobile-first sales item details */
.sales-detail-list{display:grid;gap:12px}.sales-detail-card{min-width:0;padding:16px;border:1px solid #d9e3e9;border-radius:14px;background:#fff;overflow-wrap:anywhere}.sales-detail-top{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.sales-detail-top strong{min-width:0;line-height:1.5}.sales-detail-amount{white-space:nowrap;font-size:20px;font-weight:800}.sales-detail-meta{font-size:12px;color:#687884;margin:8px 0 12px;overflow-wrap:anywhere}.sales-detail-rows{margin:0}.sales-detail-rows>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #edf1f4}.sales-detail-rows dt{color:#526371;min-width:0}.sales-detail-rows dd{margin:0;font-weight:650;text-align:right;min-width:0}.sales-detail-rows .sales-detail-final{font-weight:800;border-top:2px solid #c4d6e0}.sales-detail-final dd{font-size:19px}.sales-detail-note{font-size:12px;color:#6d7480;margin:8px 0 0}.sales-detail-grand{display:flex;justify-content:space-between;gap:12px;padding:16px;background:#edf5f8;border-radius:12px;margin-top:14px;font-weight:700}.sales-detail-grand strong{font-size:21px}@media(max-width:480px){.sales-detail-card{padding:13px}.sales-detail-top{flex-direction:column;gap:4px}.sales-detail-amount{align-self:flex-end}.sales-detail-rows dt,.sales-detail-rows dd{font-size:13px}}

/* v1.2.63: CSS target-based breakdown; no JavaScript required */
.sales-breakdown{display:none}.sales-breakdown:target{display:block}.sales-amount-trigger{display:block;text-decoration:none}.sales-breakdown>a.button{display:inline-block;margin-bottom:12px}
