/* 共通メニューと、Radzen を使う画面（IPO・乖離率・規制）の見た目。株価データ画面（Home）の見た目は app.css（.home の中だけ） */
.site-nav{display:flex;flex-wrap:wrap;gap:4px 18px;align-items:center;padding:10px 36px;background:#20323d}
.site-nav a{color:#cfe0e5;text-decoration:none;font-size:13px;padding:4px 0;border-bottom:2px solid transparent}
.site-nav a:hover{color:#fff}
.site-nav a.active{color:#fff;border-bottom-color:#5cc2b2}
.site-brand{color:#fff;font-weight:700;letter-spacing:.08em;margin-right:12px}.site-nav .site-brand{color:#fff;font-size:16px;padding:0;border:0}
.site-nav .mode-switch{border:1px solid #5cc2b2;border-radius:5px;background:#2c4854;color:#fff;font:inherit;font-size:13px;font-weight:650;padding:6px 10px}.site-nav .mode-switch:hover{background:#365d6b;color:#fff}.site-nav .mode-switch:focus-visible{outline:2px solid #9be3d8;outline-offset:2px}
.page{max-width:1400px;margin:auto;padding:28px 36px}
.page h1{font-size:26px;margin:4px 0 8px}
.page h3{font-size:15px;margin:0 0 12px}
.page .lead,.page .muted{color:#6b7e8a;font-size:13px;line-height:1.7}
.page .links{display:flex;gap:16px;font-size:13px;margin:8px 0 16px}
.page .error{white-space:pre-wrap;background:#fdecec;color:#9b1c1c;border-radius:8px;padding:12px 16px;font-size:13px}
.page .notice{background:#e7f3f0;color:#2d645c;font-size:13px;border-radius:8px;padding:12px 16px;margin:12px 0}
.conditions{margin:16px 0}
.condition-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px}
.condition-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:6px 0}
.buttons{display:flex;gap:10px;margin-top:16px}
.totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:16px 0}
.totals div{background:#fff;border:1px solid #e0e8ec;border-radius:10px;padding:12px 16px}
.totals span{display:block;color:#627985;font-size:12px}
.totals b{font-size:20px;font-variant-numeric:tabular-nums}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
.split.wide{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
.info{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px 24px;font-size:14px}
.info span{color:#627985;font-size:12px;margin-right:8px}
.num{text-align:right;font-variant-numeric:tabular-nums}
.minus{color:#d00}
.target{font-weight:700}
.candles{width:100%;height:auto;background:#fff}
@media(max-width:900px){.page{padding:20px 16px}.site-nav{padding:10px 16px}.split,.split.wide{grid-template-columns:1fr}}

/* ログインと共通ヘッダー。ID・パスワードは標準のHTTPフォームで送信する。 */
.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f3f6f8}.login-card{width:100%;max-width:420px;padding:36px;background:#fff;border:1px solid #dce6eb;border-radius:14px;box-shadow:0 8px 32px #20323d0a}.login-brand{color:#367f79;font-weight:750;font-size:13px;letter-spacing:.18em}.login-card h1{font-size:27px;margin:16px 0 8px}.login-lead{color:#627985;font-size:14px;margin-bottom:26px}.login-form{display:grid;gap:10px}.login-form label{font-size:13px;font-weight:600;margin-top:8px}.login-form input:not([type=hidden]){width:100%;padding:12px;border:1px solid #bfcfd8;border-radius:7px;font-size:16px}.login-form button{margin-top:18px;padding:12px;border:0;border-radius:7px;background:#286e69;color:white;font-size:15px;font-weight:650;cursor:pointer}.login-form input:focus-visible,.login-form button:focus-visible{outline:3px solid #7ec7bf;outline-offset:2px}.login-error{background:#fdecec;color:#9b1c1c;padding:12px;border-radius:7px;font-size:14px}.login-message{background:#e7f3f0;color:#285b55;padding:12px;border-radius:7px;font-size:14px}.nav-user{margin-left:auto;color:#e8f1f3;font-size:13px}.logout-form{margin:0}.logout-form button{border:1px solid #6d8994;border-radius:5px;background:transparent;color:#e8f1f3;padding:5px 10px;cursor:pointer}
.user-menu{margin-left:auto;position:relative}.user-menu>summary{list-style:none;cursor:pointer;padding:5px 10px;border:1px solid #6d8994;border-radius:5px;user-select:none}.user-menu>summary::-webkit-details-marker{display:none}.user-menu>summary::after{content:" ▾";font-size:11px}.user-menu[open]>summary{background:#ffffff1f}.user-menu-items{position:absolute;right:0;top:calc(100% + 6px);min-width:170px;background:#fff;border:1px solid #dce6eb;border-radius:8px;box-shadow:0 8px 24px #20323d26;padding:6px;z-index:50;display:grid;gap:2px}.user-menu-items a,.user-menu-items .logout-form button{display:block;width:100%;text-align:left;padding:9px 12px;border:0;border-radius:6px;background:transparent;color:#20323d;font:inherit;font-size:14px;text-decoration:none;cursor:pointer}.user-menu-items a:hover,.user-menu-items .logout-form button:hover,.user-menu-items a:focus-visible,.user-menu-items .logout-form button:focus-visible{background:#edf3f6;outline:none}.password-change-page{min-height:auto;padding-top:48px}.login-links{margin-top:18px;font-size:13px}

.login-links{margin:24px 0 0;text-align:center;font-size:14px}.login-links a{color:#286e69}.login-help{font-size:12px;color:#627985;line-height:1.5}

/* CROSS検索。横幅のある表は画面内で横スクロールし、メールと同じ色判定を表示する。 */
.cross-totals{grid-template-columns:repeat(auto-fit,minmax(140px,1fr)}.cross-sources{display:flex;flex-wrap:wrap;gap:8px 24px;margin:12px 0}.cross-plan-actions{display:flex;align-items:center;gap:12px;margin:10px 0}.cross-table-wrap{overflow:auto;border:1px solid #dce6eb;border-radius:8px;background:#fff}.cross-table{width:100%;min-width:1500px;table-layout:fixed;border-collapse:collapse;font-size:13px}.cross-table th,.cross-table td{padding:9px 10px;border-bottom:1px solid #d9e3e8;vertical-align:top;text-align:left}.cross-table th{position:sticky;top:0;background:#edf3f6;z-index:1;white-space:nowrap}.cross-table td{line-height:1.55}.cross-table th:nth-child(1),.cross-table td:nth-child(1){width:135px}.cross-table th:nth-child(2),.cross-table td:nth-child(2){width:150px}.cross-table th:nth-child(3),.cross-table td:nth-child(3){width:340px;min-width:0;max-width:340px;white-space:normal;overflow-wrap:anywhere}.cross-table td:first-child{font-weight:650}.cross-table th:nth-child(4),.cross-table td:nth-child(4){width:105px}.cross-table th:nth-child(5),.cross-table td:nth-child(5){width:120px}.cross-table th:nth-child(6),.cross-table td:nth-child(6){width:145px}.cross-table th:nth-child(7),.cross-table td:nth-child(7){width:230px}.cross-table th:nth-child(8),.cross-table td:nth-child(8){width:150px}.cross-table th:nth-child(9),.cross-table td:nth-child(9){width:125px}.cross-table th:nth-child(10),.cross-table td:nth-child(10),.cross-table th:nth-child(11),.cross-table td:nth-child(11){width:110px}.cross-table th:nth-child(12),.cross-table td:nth-child(12){width:90px}.cross-history{min-width:0}.cross-recommendation,.cross-credit{white-space:nowrap}.cross-number{text-align:right!important;white-space:nowrap;font-variant-numeric:tabular-nums}.cross-plan{text-align:center!important}.cross-plan input{width:18px;height:18px;accent-color:#2186b5;cursor:pointer}.cross-table small{color:#627985}.cross-yields{margin:4px 0;padding-left:20px}.cross-table details{margin-top:4px}.cross-table summary{cursor:pointer;color:#286e69}.cross-error{margin-top:6px;color:#9b1c1c;font-weight:650}.cross-legend{margin-top:10px}
.cross-table th:nth-child(3),.cross-table td:nth-child(3){width:260px;min-width:0;max-width:260px;white-space:normal;overflow-wrap:anywhere}.cross-benefit-tiers{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.cross-benefit-chip{border:1px solid #bfd5df;border-radius:12px;background:#f1f8fb;color:#23546a;padding:3px 9px;font:inherit;font-size:12px;line-height:1.4;cursor:help}.cross-benefit-chip:hover,.cross-benefit-chip:focus-visible{border-color:#4a91ad;background:#e1f1f7;outline:2px solid #8fc6d8;outline-offset:1px}
.cross-benefit-options{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.cross-benefit-tiers{display:inline;margin:0;font-size:12px;color:#385f70}
.cross-benefit-tiers{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:6px}.cross-benefit-tiers .cross-benefit-chip{width:max-content}
.cross-benefit-settable{cursor:pointer;border-color:#2186b5;background:#fff}.cross-benefit-selected{background:#2186b5;border-color:#2186b5;color:#fff}.cross-benefit-selected:hover,.cross-benefit-selected:focus-visible{background:#1b6f96;color:#fff}.cross-plan-total{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));margin-top:12px}.cross-plan-dates-warning{margin:8px 0 0}
.cross-benefit-options{display:block}.cross-benefit-condition{margin-bottom:4px}.cross-benefit-tier-list,.cross-benefit-tier-row{display:block}.cross-benefit-tier-row{margin-top:3px}
.cross-plan-filter{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.cross-plan-filter input{width:16px;height:16px;accent-color:#2186b5;cursor:pointer}.cross-plan-header{display:flex;align-items:center;gap:6px;white-space:nowrap}.cross-table th:nth-child(12),.cross-table td:nth-child(12){width:160px}.cross-plan-quantity{display:flex;align-items:center;justify-content:center;gap:3px;margin-top:5px;white-space:nowrap}.cross-plan-quantity input{box-sizing:border-box;width:76px;padding:3px;border:1px solid #bfd0d8;border-radius:4px;font:inherit;font-size:12px;text-align:right}

/* CROSS取引履歴。フィルターは一覧全件に適用し、SQLページングで表示する。 */
.cross-history-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:14px;margin:16px 0;background:#fff;border:1px solid #dce6eb;border-radius:9px}
.cross-history-filter{display:grid;gap:5px;color:#536b78;font-size:12px;font-weight:650}
.cross-history-filter input{box-sizing:border-box;width:100px;padding:8px 9px;border:1px solid #bdcdd5;border-radius:6px;font:inherit;font-size:14px;color:#20323d}
.cross-history-stock-filter input{width:230px}
.cross-history-filter input:focus-visible{outline:2px solid #5ca9a1;outline-offset:1px}
.cross-history-current-month{display:flex;align-items:center;gap:6px;height:36px;padding:0 6px;color:#344f5c;font-size:13px;font-weight:650;white-space:nowrap}
.cross-history-current-month input{width:17px;height:17px;accent-color:#287c75}
.cross-history-button{border:1px solid #286e69;border-radius:6px;background:#286e69;color:#fff;padding:8px 15px;font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.cross-history-button:hover:not(:disabled){background:#205b57}
.cross-history-button:disabled{opacity:.5;cursor:default}
.cross-history-button.secondary{border-color:#bdcdd5;background:#fff;color:#344f5c}
.cross-history-button.secondary:hover:not(:disabled){background:#f1f6f8}
.cross-history-summary,.cross-history-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0;color:#617783;font-size:13px}
.cross-history-summary{justify-content:flex-start}
.cross-history-table-wrap{overflow:auto;border:1px solid #dce6eb;border-radius:8px;background:#fff}
.cross-history-table{width:100%;min-width:1550px;border-collapse:collapse;font-size:13px}
.cross-history-table th,.cross-history-table td{padding:9px 10px;border-bottom:1px solid #e0e8ec;text-align:left;vertical-align:top}
.cross-history-table th{position:sticky;top:0;z-index:1;background:#edf3f6;color:#344f5c;white-space:nowrap}
.cross-history-table tbody tr:hover{background:#f6fafb}
.cross-history-table tbody tr.cross-history-row-alternate>td{background-color:#dcecf4}.cross-history-table tbody tr.cross-history-row-alternate:hover>td{background-color:#c9e4f0}
.cross-history-date,.cross-history-number{white-space:nowrap;font-variant-numeric:tabular-nums}
.cross-history-number{text-align:right!important}
.cross-history-orders{min-width:205px;white-space:normal;overflow-wrap:anywhere}
.cross-history-orders span,.cross-history-description span,.cross-history-description small{display:block}
.cross-history-description{min-width:220px;max-width:320px;white-space:pre-line;overflow-wrap:anywhere}
.cross-history-description small{margin-top:5px;color:#647984}.cross-history-description .cross-history-remarks{display:block;margin-top:7px;padding-top:6px;border-top:1px dotted #bdcdd5;color:#647984;white-space:pre-line}
.cross-history-status{display:inline-block;border-radius:12px;padding:3px 9px;font-size:12px;font-weight:650;white-space:nowrap}
.cross-history-status.planned{background:#edf2f5;color:#526874}.cross-history-status.partial{background:#fff1cf;color:#795514}
.cross-history-status.holding{background:#dff2ee;color:#25645c}.cross-history-status.closed{background:#e7edf8;color:#3d5684}.cross-history-status.failed,.cross-history-failure,.cross-history-number.negative{color:#a32929}
.cross-history-failure{display:block;max-width:230px;overflow:hidden;text-overflow:ellipsis}
.cross-history-failure-label{display:block;color:#a32929}.cross-history-failure-details{margin-top:5px;max-width:300px;color:#7c2525}.cross-history-failure-details summary{cursor:pointer;font-weight:650}.cross-history-failure-details div{max-height:220px;overflow:auto;margin-top:5px;padding:7px;border:1px solid #e8caca;border-radius:5px;background:#fff8f8;white-space:pre-line;overflow-wrap:anywhere;font-size:12px}
.cross-history-pagination>div{display:flex;align-items:center;gap:10px}
.cross-history-delete-bar{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:10px 0;color:#617783;font-size:13px}.cross-history-delete-bar.bottom{margin-top:14px}.cross-history-button.danger{border-color:#a32929;background:#a32929}.cross-history-button.danger:hover:not(:disabled){background:#842020}.cross-history-delete{text-align:center!important;vertical-align:middle!important}.cross-history-delete input{width:18px;height:18px;accent-color:#a32929;cursor:pointer}
@media(max-width:700px){.cross-history-filters{align-items:stretch}.cross-history-stock-filter{width:100%}.cross-history-stock-filter input{width:100%}.cross-history-summary,.cross-history-pagination{align-items:flex-start;flex-direction:column}.cross-history-pagination>div{align-self:stretch;justify-content:space-between}}
