.app-shell {
    --app-orange: #ff7a1a;
    /* オレンジの使い分け（2026-10-12。以前は同じ値を各所に直書きしていた） */
    --app-orange-gradient: linear-gradient(110deg, #ff781b, #ff831f);  /* 主ボタン（路線・設定画面） */
    --app-orange-shadow: 0 4px 10px #ff7a1a19;                         /* 主ボタンの影 */
    --app-orange-hover: #ed6d0e;       /* 主ボタンのホバー */
    --app-orange-text: #ed6d13;        /* リンクのホバー・選択中の文字・列フィルター */
    --app-orange-text-light: #f36e13;  /* 枠だけのボタンの文字 */
    --app-orange-soft: #fff0e4;        /* 選択中の行・バッジの背景 */
    --app-orange-table-head: #fff4ec;  /* 表の見出しの背景（keibi の #f1f6f9 と同じくテーマ色をごく薄く） */
    --app-orange-table-line: #f6dcc8;  /* 表の見出しの下線 */
    --app-orange-focus: #ffb27c;       /* フォーカスの枠・控えめなボタンの枠 */
    --app-ink: #18243c;
    --app-muted: #738099;
    --app-border: #e4ebf2;
    --app-header-height: 66px;
    --app-sidebar-width: 210px;
    color: var(--app-ink);
    background: #f5f8fb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Meiryo", sans-serif;
    font-size: 14px;
}
.app-shell .app-header.navbar { height: var(--app-header-height); padding: 0 24px 0 0; flex-wrap: nowrap; gap: 18px; box-shadow: 0 2px 14px #20334a0c; border-bottom: 1px solid var(--app-border); z-index: 1030; }
.app-shell .app-brand { width: var(--app-sidebar-width); flex-shrink: 0; display: flex; align-items: center; justify-content: center; height: 100%; border-right: 1px solid #edf1f6; }
.app-shell .app-brand #brand-logo { width: 145px; height: auto; margin: 0; clip-path: none; }
.app-shell .navbar-actions { margin-left: auto; flex-shrink: 0; gap: 16px !important; }
.app-shell .navbar-icon-btn { color: #61718d; }
.app-shell .app-profile-toggle { width: auto; height: auto; display: flex; gap: 10px; align-items: center; border-radius: 8px; padding: 4px; }
.app-shell .app-header-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: #c2d4e1; font-size: 20px; }
.app-shell .app-profile-text { display: flex; flex-direction: column; text-align: left; max-width: 145px; }
.app-shell .app-profile-text strong, .app-shell .app-profile-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .app-profile-text strong { font-size: 13px; color: #33425b; }
.app-shell .app-profile-text small { font-size: 10px; margin-top: 3px; }
.app-shell .app-profile-chevron { font-size: 10px; }
.app-shell .app-sidebar { position: fixed; top: var(--app-header-height); bottom: 0; left: 0; width: var(--app-sidebar-width); overflow-y: auto; padding: 24px 10px; background: #f8fafc; border-right: 1px solid #eaf0f5; z-index: 1020; }
.app-shell .app-sidebar-section + .app-sidebar-section { margin-top: 20px; border-top: 1px solid var(--app-border); padding-top: 20px; }
.app-shell .app-sidebar-section h2 { margin: 4px 14px 12px; font-size: 12px; font-weight: 600; color: var(--app-muted); }
.app-shell .app-side-link { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-left: 3px solid transparent; border-radius: 8px; text-decoration: none; font-size: 14px; color: #3c4b65; line-height: 1.5; }
.app-shell .app-side-link i { width: 20px; text-align: center; font-size: 18px; color: #526681; flex-shrink: 0; }
.app-shell .app-side-link:hover { background: #edf2f7; }
.app-shell .app-side-link.is-active { border-left-color: var(--app-orange); background: #fff0e5; color: #ec6b13; font-weight: 600; }
.app-shell .app-side-link.is-active i { color: inherit; }
.app-shell .app-sidebar-mobile-title, .app-shell .app-sidebar-toggle, .app-shell .app-sidebar-backdrop { display: none; }
.app-shell .app-sidebar-toggle { display: grid; place-items: center; border: 1px solid var(--app-border); border-radius: 6px; background: white; color: #5c6b85; width: 38px; height: 36px; flex-shrink: 0; font-size: 18px; }
.app-shell .app-sidebar-toggle:hover { background: #fff2e8; color: #eb6710; }
/* サイドメニュー上端の開閉の段（base/app_sidebar_collapse.html。2026-10-10、警備Pro の新UI に寄せた）。PC 幅だけ出す */
.app-shell .app-sidebar-collapse-row { display: none; }
@media (min-width: 992px) {
    /* PC 幅の縮小・展開は上端の段で行うので、ヘッダーのハンバーガーは狭い画面（メニューを引き出す）だけにする */
    .app-shell .app-sidebar-toggle { display: none; }
    .app-shell .app-sidebar-collapse-row { display: block; margin: -14px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--app-border); }
    .app-shell .app-sidebar-collapse { display: flex; align-items: center; justify-content: flex-end; width: 100%; height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: #61718d; font-size: 13px; }
    .app-shell .app-sidebar-collapse:hover { background: #edf2f7; color: #eb6710; }
    .app-shell .app-sidebar-collapse i { transition: transform .2s ease; }
    .app-shell.app-menu-collapsed .app-sidebar-collapse { justify-content: center; padding: 0; }
    .app-shell.app-menu-collapsed .app-sidebar-collapse i { transform: rotate(180deg); }
}
@media (min-width: 992px) {
    .app-shell.app-menu-collapsed { --app-sidebar-width: 68px; }
    .app-shell .app-brand { width: 210px; }
    .app-shell.app-menu-collapsed .app-sidebar { padding-left: 8px; padding-right: 8px; }
    .app-shell.app-menu-collapsed .app-side-link { justify-content: center; padding: 13px 0; }
    .app-shell.app-menu-collapsed .app-side-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .app-shell.app-menu-collapsed .app-sidebar-section h2 { display: none; }
    .app-shell.app-menu-collapsed .app-sidebar-section + .app-sidebar-section { margin-top: 12px; padding-top: 12px; }
}
.app-shell .app-main.container-fluid { width: auto; min-height: 100vh; margin-left: var(--app-sidebar-width); padding: calc(var(--app-header-height) + 22px) 24px 24px !important; }
.app-shell .app-main .kp-main { margin-left: 0 !important; margin-right: 0 !important; width: 100%; }
.app-shell .app-main .kp-main > .col-12[style] { margin-top: 0 !important; }
.app-shell .app-main .kp-main-margin { margin-top: 0; }
.app-shell .app-main .page_title { padding-top: 0; color: var(--app-ink); }
.app-shell .app-main .fixed-header, .app-shell .app-main .btn_top { top: calc(var(--app-header-height) + 12px); left: auto; }
.app-shell .app-main .btn_top { width: 100%; }
.app-shell .app-main .fixed-header { margin-top: 0 !important; }
.app-shell .app-main .card { border-color: var(--app-border); border-radius: 10px; box-shadow: 0 3px 12px #23375208; }
.app-shell .app-main .btn { width: auto; border-radius: 6px; padding: 9px 16px !important; font-weight: 600; }
/* ダイアログ（モーダル）のボタンは Bootstrap 標準の大きさ（ほかのアプリと同じ。2026-10-12）。画面の中に置いたモーダル
   （道路取込の上書き確認・共有の確認）は .app-main の中なので、上の余白・太さ・角丸を戻して、画面の外に出る確認ダイアログとそろえる */
.app-shell .app-main .modal .btn { border-radius: 5px; padding: .375rem .75rem !important; font-weight: 400; }
.app-shell .app-main .btn-orange, .app-shell .app-main .btn_sidebar { background: var(--app-orange) !important; border-color: var(--app-orange); }
/* マウスを乗せたとき。style.css の .btn-orange:hover は文字だけオレンジにするが、背景は上の !important でオレンジのままなので
   文字が見えなくなっていた（付近資格者路線検索の「編集」など。2026-10-12）。主ボタンと同じく濃いオレンジに白い文字 */
.app-shell .app-main .btn-orange:hover, .app-shell .app-main .btn-orange:focus-visible { color: white !important; background: var(--app-orange-hover) !important; border-color: var(--app-orange-hover) !important; }
.app-shell .app-main .form-control:focus, .app-shell .app-main .form-select:focus { border-color: #ffac70; box-shadow: 0 0 0 3px #ff7a1a20; }
.app-shell a:focus-visible, .app-shell button:focus-visible { outline: 3px solid var(--app-orange-focus); outline-offset: 3px; }

/* Road list and import share a responsive card layout. */
.app-shell .road-import-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 12px; }
.app-shell .road-import-title { display: flex; align-items: center; gap: 16px; }
.app-shell .road-import-title > i { font-size: 30px; }
.app-shell .road-import-title h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; }
.app-shell .road-import-title p { margin: 0; color: #4d5d77; }
.app-shell .road-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 8px; font-size: 11px; color: var(--app-muted); }
.app-shell .road-breadcrumb a { color: inherit; text-decoration: none; }
.app-shell .road-breadcrumb span { color: var(--app-ink); font-weight: 600; }
.app-shell .road-card { background: white; border: 1px solid var(--app-border); border-radius: 10px; box-shadow: 0 4px 14px #2c45650a; padding: 14px 18px; margin-bottom: 14px; min-width: 0; }
.app-shell .road-steps { display: grid; grid-template-columns: 1fr 1.15fr 0.85fr; gap: 24px; list-style: none; margin: 0; padding: 2px 16px; }
.app-shell .road-step { position: relative; display: flex; align-items: center; gap: 22px; min-width: 0; padding: 0 24px 0 0; }
.app-shell .road-step:not(:last-child)::after { content: ''; position: absolute; right: 0; width: 10px; height: 10px; border-right: 2px solid #a9b6c9; border-top: 2px solid #a9b6c9; transform: rotate(45deg); }
.app-shell .road-step-number { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: #a0aabc; color: white; font-size: 20px; font-weight: 700; }
.app-shell .road-step strong { display: block; margin-bottom: 4px; font-size: 14px; }
.app-shell .road-step small { display: block; color: var(--app-muted); font-size: 12px; line-height: 1.5; }
.app-shell .road-step.is-active strong { color: #f06e16; }
.app-shell .road-step.is-active .road-step-number { background: linear-gradient(135deg, #ff932e, #ff7218); box-shadow: 0 4px 14px #ff7a1a35; }
.app-shell .road-card-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; }
.app-shell .road-card-title i { font-size: 19px; }
.app-shell .road-card-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.app-shell .road-card-heading .road-card-title small { color: #52617b; font-size: 12px; font-weight: 400; }
/* 控えめなボタン（路線の画面の「選択した道路を共有」など・お知らせ配信の「通知しない」） */
.app-shell .road-screen .road-secondary-btn, .app-shell .notice-screen .notice-row-dismiss { color: #53627d; background: white; border: 1px solid #d5dfeb; }
.app-shell .road-screen .road-secondary-btn { box-shadow: 0 2px 4px #283c5707; }
.app-shell .road-screen .road-secondary-btn:hover, .app-shell .notice-screen .notice-row-dismiss:hover { background: #f4f7fb; border-color: #acbbcf; }
.app-shell .road-search-grid { margin-top: 0; }
.app-shell #road-search-title + .road-secondary-btn { padding: 6px 12px !important; }
.app-shell .road-screen .road-search-grid { display: grid; grid-template-columns: 0.9fr 0.95fr 1.4fr 1.05fr; gap: 20px; align-items: end; }
.app-shell .road-field label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; }
.app-shell .road-field .form-control { height: 40px; width: 100%; max-width: none; margin: 0; border: 1px solid #d2dce9; border-radius: 5px; color: var(--app-ink); font-size: 13px; padding: 8px 12px; }
.app-shell .road-field select { appearance: auto; }
.app-shell .road-field input::placeholder { color: #9aa6ba !important; }
/* 入力エラーの文（路線の入力欄・設定画面の入力欄・権限設定の行で同じ余白） */
.app-shell .road-field .valid_text, .app-shell .settings-field .valid_text, .app-shell .settings-person-row .valid_text,
.app-shell .settings-bulk-row .valid_text { margin: 4px 0 0; white-space: normal; }
.app-shell .road-screen .road-primary-btn { background: var(--app-orange-gradient); border: 1px solid var(--app-orange); color: white; min-height: 44px; box-shadow: var(--app-orange-shadow); font-size: 14px !important; }
.app-shell .road-screen .road-primary-btn:hover { background: var(--app-orange-hover); }
.app-shell .road-screen .road-primary-btn:disabled { background: #e8edf3; border-color: #e0e7f0; color: #8c99ac; box-shadow: none; opacity: 1; }
.app-shell .road-screen .btn i { margin-right: 8px; }
.app-shell .road-actions-title i { color: var(--app-orange); }
.app-shell .road-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.app-shell .road-source-btn { display: inline-flex; align-items: center; justify-content: center; color: var(--app-ink); min-width: 162px; min-height: 42px; border: 1px solid #d5dfeb; background: white; text-decoration: none; }
.app-shell .road-source-btn.is-active { color: #df6410; background: #fff5ed; border-color: #ffad72; }
.app-shell .road-actions-divider { height: 28px; width: 1px; background: #d6deea; margin: 0 10px; }
.app-shell .road-actions .road-primary-btn { min-width: 208px; }
.app-shell .road-selected-count { color: var(--app-muted); font-size: 12px; }
.app-shell .road-results-grid { display: grid; grid-template-columns: 1.03fr 1fr; gap: 12px; }
.app-shell .road-results-grid > .road-card { margin: 0; padding: 14px 16px 16px; }
.app-shell .road-results-card { display: flex; flex-direction: column; min-width: 0; }
.app-shell .road-results-hint { font-size: 11px; color: var(--app-muted); }
.app-shell .road-results-hint i { color: #0879fa; margin-right: 5px; }
.app-shell .road-screen .rosen-table-wrapper { border: 1px solid var(--app-border); border-radius: 8px; flex: 1 1 auto; overflow: auto; min-height: 0; height: 330px; max-height: 330px; margin: 0; box-shadow: none; }
.app-shell .road-screen .rosen-sort-indicator { color: #8290a8; font-size: 10px; }
.app-shell .road-screen .rosen-map-cell { cursor: pointer; }
.app-shell .road-screen .table-rosen { margin: 0; min-width: 510px; width: 100%; font-size: 12px; border-collapse: collapse; }
.app-shell .road-screen .table-rosen-shared { min-width: 750px; }
.app-shell .road-screen .table-rosen th { background: #f3f6f9; color: #33405a; font-size: 11px; height: 46px; padding: 12px 14px; white-space: nowrap; border: 1px solid #e8edf4; }
.app-shell .road-screen .table-rosen td { height: 54px; padding: 14px; background: white; color: #33405a; font-size: 13px; vertical-align: middle; border: 1px solid #e8edf4; }
.app-shell .road-screen .table-rosen td.rosen-map-cell:first-of-type { font-weight: 600; }
.app-shell .road-screen .table-rosen td.rosen-map-cell:hover { background: #fff7f1 !important; font-weight: inherit; }
.app-shell .road-screen .table-rosen tr.import-selected td, .app-shell .road-screen .table-rosen tr.share-selected td { background: var(--app-orange-soft) !important; }
.app-shell .road-screen .table-rosen .rosen-action-column { width: 54px; }
.app-shell .road-screen .table-rosen .rosen-name-column { width: 200px; }
.app-shell .road-screen .table-rosen .rosen-road-type-column { width: 120px; }
.app-shell .road-screen .rosen-check-cell .form-check-input { width: 19px; height: 19px; border: 2px solid #a5afbe; border-radius: 5px; }
.app-shell .road-screen .form-check-input:checked, .app-shell .road-screen .form-check-input:indeterminate { background-color: var(--app-orange); border-color: var(--app-orange); }
.app-shell .road-screen .form-check-input:focus { box-shadow: 0 0 0 3px #ff7a1a25; }
.app-shell .road-results-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; font-size: 12px; color: var(--app-muted); }
.app-shell .road-results-footer .pagination { gap: 8px; margin: 0; }
.app-shell .road-results-footer .page-link { padding: 8px 12px; min-width: 36px; text-align: center; border: 0; border-radius: 6px; color: #8492a9; background: #f3f6f9; }
.app-shell .road-results-footer .active .page-link { background: var(--app-orange); color: white; box-shadow: 0 3px 8px #ff7a1a20; z-index: 0 !important; }
.app-shell .road-results-footer .disabled .page-link { color: #b7c2d0; }
.app-shell .road-map-tabs { display: flex; border: 1px solid #d7e0eb; border-radius: 6px; overflow: hidden; }
.app-shell .road-map-tabs button { border: 0; background: white; color: #53627d; padding: 7px 16px; font-size: 12px; font-weight: 600; }
.app-shell .road-map-tabs button.is-active { background: var(--app-orange); color: white; }
.app-shell .road-screen .map-container { height: 390px; min-height: 320px; padding: 0; border-radius: 7px; overflow: hidden; background: #edf2f7; position: relative; }
.app-shell .road-screen #map { width: 100%; height: 100%; min-height: 0; }
.app-shell .road-map-status { position: absolute; top: 50%; left: 20px; right: 20px; text-align: center; color: #64748b; pointer-events: none; }
@media (min-height: 850px) and (min-width: 1200px) {
    .app-shell .road-screen .map-container { height: calc(100vh - 615px); min-height: 350px; }
    .app-shell .road-screen .rosen-table-wrapper { height: calc(100vh - 670px); max-height: calc(100vh - 670px); }
}
@media (max-width: 1399px) {
    .app-shell .app-header.navbar { gap: 8px; padding-right: 14px; }
    .app-shell .navbar-actions { gap: 8px !important; }
    .app-shell .road-step { gap: 12px; }
    .app-shell .road-steps { padding: 2px 0; gap: 16px; }
    .app-shell .road-results-hint { width: 100%; }
}
@media (max-width: 1199px) {
    .app-shell .app-profile-text { max-width: 90px; }
    .app-shell .road-results-grid { grid-template-columns: 1fr; }
    .app-shell .road-screen .table-rosen-shared { min-width: 750px; }
    .app-shell .road-step small { font-size: 11px; }
    .app-shell .road-screen .road-search-grid { gap: 12px; grid-template-columns: 1fr 1fr; }
    .app-shell .road-breadcrumb { display: none; }
}
@media (max-width: 991px) {
    .app-shell .app-header.navbar { padding: 0 14px; gap: 12px; }
    .app-shell .app-brand { width: auto; border: 0; }
    .app-shell .app-brand #brand-logo { width: 128px; }
    .app-shell .app-sidebar-toggle { display: grid; place-items: center; border: 0; background: transparent; color: #5c6b85; width: 32px; height: 36px; font-size: 20px; }
    .app-shell .app-sidebar { width: 240px; transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; z-index: 1040; }
    .app-shell .app-sidebar-mobile-title { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 22px; }
    .app-shell .app-sidebar-close { background: transparent; border: 0; color: #5c6b85; padding: 4px; font-size: 20px; }
    .app-shell.app-menu-open { overflow: hidden; }
    .app-shell.app-menu-open .app-sidebar { transform: translateX(0); visibility: visible; box-shadow: 4px 0 18px #20334a20; }
    .app-shell .app-sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: var(--app-header-height) 0 0; z-index: 1035; background: #18243c55; border: 0; }
    .app-shell .app-main.container-fluid { margin-left: 0; padding-left: 18px !important; padding-right: 18px !important; }
}
@media (max-width: 575px) {
    .app-shell .app-header.navbar { padding: 0 10px; gap: 8px; }
    .app-shell .app-brand #brand-logo { width: 112px; }
    .app-shell .app-profile-text, .app-shell .app-profile-chevron { display: none; }
    .app-shell .app-header-avatar { width: 30px; height: 30px; }
    .app-shell .navbar-actions { gap: 5px !important; }
    .app-shell .app-main.container-fluid { padding-left: 12px !important; padding-right: 12px !important; }
    .app-shell .road-import-title { gap: 10px; }
    .app-shell .road-import-title h1 { font-size: 23px; }
    .app-shell .road-import-title > i { font-size: 25px; }
    .app-shell .road-import-title p { font-size: 12px; line-height: 1.7; }
    .app-shell .road-card { padding: 14px 12px; }
    .app-shell .road-steps { grid-template-columns: 1fr; gap: 12px; }
    .app-shell .road-step { gap: 14px; padding: 0; }
    .app-shell .road-step:not(:last-child)::after { display: none; }
    .app-shell .road-step-number { width: 32px; height: 32px; font-size: 16px; }
    .app-shell .road-step strong { margin-bottom: 1px; font-size: 13px; }
    .app-shell .road-screen .road-search-grid { grid-template-columns: 1fr; }
    .app-shell .road-card-title { font-size: 14px; }
    .app-shell .road-source-btn { min-width: 0; flex: 1; }
    .app-shell .road-actions { gap: 10px; }
    .app-shell .road-actions-divider { display: none; }
    .app-shell .road-actions .road-primary-btn { width: 100%; }
    .app-shell .road-results-grid > .road-card { padding: 12px; }
    .app-shell .road-map-tabs button { padding: 7px 10px; }
    .app-shell .road-screen .map-container { height: 320px; }
}
@media (prefers-reduced-motion: reduce) { .app-shell .app-sidebar, .app-shell .app-sidebar-collapse i { transition: none; } }

.app-shell .road-screen .road-outline-btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--app-orange); color: var(--app-orange-text-light); min-width: 208px; min-height: 44px; background: white; }
.app-shell .road-screen .road-outline-btn:hover { background: #fff4eb; }
.app-shell .road-screen #shareRoadsButton { min-width: 225px; min-height: 44px; }
.app-shell .road-screen #shareRoadsButton:disabled { opacity: .6; }
.app-shell .road-screen .road-edit-column { width: 80px; }
.app-shell .road-screen .road-edit-cell { padding: 4px 8px; text-align: center; }
.app-shell .road-screen .road-edit-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: #09a9bd; border: 0; color: white; padding: 4px 8px !important; border-radius: 5px; font-size: 11px !important; white-space: nowrap; }
.app-shell .road-screen .road-edit-btn i { margin: 0; font-size: 10px; }
.app-shell .road-screen .road-edit-btn:hover { background: #0090a5; }
.app-shell .road-registered .table-rosen { min-width: 585px; }
.app-shell .road-registered .table-rosen td { height: 35px; padding-top: 7px; padding-bottom: 7px; }
.app-shell .road-registered .table-rosen th { height: 40px; }
.app-shell .road-registered .rosen-table-wrapper { height: 345px; max-height: 345px; }
.app-shell .road-screen .table-rosen thead { position: sticky; top: 0; z-index: 1; }
@media (min-width: 1200px) {
    .app-shell .road-registered .map-container { height: calc(100vh - 545px); min-height: 350px; }
    .app-shell .road-registered .rosen-table-wrapper { height: calc(100vh - 600px); max-height: calc(100vh - 600px); }
}
@media (max-width: 575px) { .app-shell .road-screen .road-outline-btn, .app-shell .road-screen #shareRoadsButton { width: 100%; } }

/* 路線一覧の共通部品（テナントの道路一覧・道路取込と public の路線マスタ一覧で共用。2026-10-09） */
.app-shell .road-map-heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.app-shell .road-screen .road-map-reset { padding: 6px 12px !important; font-size: 12px; }
/* 地図に出している行（road-list-map.js が付ける）。取込の選択（背景色）と重ねても分かるよう左端の線で示す */
.app-shell .road-screen .table-rosen tr.is-map-selected td:first-child { box-shadow: inset 4px 0 0 var(--app-orange); }
.app-shell .road-actions-note { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--app-muted); font-size: 12px; }

/* public（/jbca_admin/）の管理画面（templates/rosen_console/）。外枠はテナント側と同じで、ここは差分だけ */
.app-shell .console-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #37474f; color: white; font-size: 12px; font-weight: 600; white-space: nowrap; }
.app-shell .road-screen .road-search-grid.road-search-grid-wide { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
/* 資格者配置路線対象外の行（地図では灰色の線） */
.app-shell .road-screen .table-rosen tr.is-outside td { background: #f3f4f6; color: #6b7280; }
@media (max-width: 1399px) {
    .app-shell .road-screen .road-search-grid.road-search-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
    .app-shell .road-screen .road-search-grid.road-search-grid-wide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .app-shell .console-badge { padding: 3px 8px; font-size: 11px; }
    .app-shell .road-screen .road-search-grid.road-search-grid-wide { grid-template-columns: 1fr; }
    .app-shell .road-actions-note { margin-left: 0; }
}

/* public の管理画面のお知らせ配信（rosen_console/notice_management.html。2026-10-10 に中身も新UIにした） */
.app-shell .notice-screen .road-import-title > i { color: var(--app-orange); }
.app-shell .notice-count { display: inline-flex; align-items: center; margin-left: 4px; padding: 2px 10px; border-radius: 999px; background: #edf2f7; color: #4d607c; font-size: 12px; font-weight: 600; }
.app-shell .notice-help { margin: 0 0 12px; color: var(--app-muted); font-size: 12px; line-height: 1.7; }
.app-shell .notice-selection-actions { margin: 0 0 14px; }
.app-shell .notice-screen .notice-selection-actions .btn { min-height: 42px; }
.app-shell .notice-table-wrapper { overflow: auto; border: 1px solid var(--app-border); border-radius: 8px; max-height: calc(100vh - 360px); min-height: 120px; }
.app-shell .notice-screen .notice-management-table { min-width: 720px; }
.app-shell .notice-screen .notice-management-table td { height: 50px; padding: 8px 14px; }
.app-shell .notice-screen .notice-management-table .notice-management-selection { width: 52px; text-align: center; }
.app-shell .notice-screen .notice-management-table tbody tr td:nth-child(2):hover { font-weight: inherit; background-color: white; cursor: auto; }   /* style2.css の .table-rosen の2列目（路線一覧の道路名）用のホバーを打ち消す */
.app-shell .notice-type { display: inline-flex; padding: 2px 10px; border-radius: 999px; background: var(--app-orange-soft); color: #c55009; font-size: 12px; font-weight: 600; white-space: nowrap; }
.app-shell .notice-row-actions { width: 1%; }
.app-shell .notice-screen .notice-row-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px !important; font-size: 12px; border-radius: 5px; }
.app-shell .notice-screen .notice-row-btn + .notice-row-btn { margin-left: 6px; }
.app-shell .notice-screen .notice-row-publish { color: white; background: var(--app-orange); border: 1px solid var(--app-orange); }
.app-shell .notice-screen .notice-row-publish:hover { color: white; background: var(--app-orange-hover); border-color: var(--app-orange-hover); }
.app-shell .notice-screen .notice-management-table td.notice-empty { height: auto; padding: 32px 14px; color: var(--app-muted); text-align: center; }
.app-shell .notice-empty i { margin-right: 8px; color: #22a06b; }
@media (max-width: 575px) {
    .app-shell .notice-screen .notice-selection-actions .btn { width: 100%; }
    .app-shell .notice-table-wrapper { max-height: none; }
}

/* 各種設定の画面（会社情報登録・担当者一覧・担当者権限設定。2026-10-10）
   警備Pro の新UI（keibi の mst_10100 / 10300 / 10400）の作りに寄せた。上に貼り付く見出し帯
   （画面名・説明・パンくず・右に操作ボタン）と、白いカードの本文。色は配置Proのオレンジのまま。
   keibi は画面ごとに同じ CSS を持っているが、ここでは3画面で同じクラスを使う */
.app-shell .settings-header { position: sticky; top: var(--app-header-height); z-index: 1010; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: -22px -24px 20px; padding: 16px 24px 14px; background: #fffffffa; border-bottom: 1px solid var(--app-border); box-shadow: 0 3px 12px #20334a0a; }
.app-shell .settings-title-area { min-width: 15rem; }
.app-shell .settings-title { margin: 0; color: var(--app-ink); font-size: 1.35rem; font-weight: 700; line-height: 1.35; }
.app-shell .settings-lead { margin: 4px 0 0; color: var(--app-muted); font-size: 13px; }
.app-shell .settings-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--app-muted); font-size: 11px; }
.app-shell .settings-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.app-shell .settings-breadcrumb li + li::before { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 8px; color: #a9b6c9; }
.app-shell .settings-breadcrumb a { color: inherit; text-decoration: none; }
.app-shell .settings-breadcrumb a:hover { color: var(--app-orange-text); }
.app-shell .settings-breadcrumb [aria-current] { color: var(--app-ink); font-weight: 600; }
.app-shell .settings-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: stretch; gap: 8px; }
.app-shell .settings-screen .settings-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 7.5rem; min-height: 40px; white-space: nowrap; }
.app-shell .settings-screen .settings-primary-btn { color: white; background: var(--app-orange-gradient); border: 1px solid var(--app-orange); box-shadow: var(--app-orange-shadow); }
.app-shell .settings-screen .settings-primary-btn:hover, .app-shell .settings-screen .settings-primary-btn:focus-visible { color: white; background: var(--app-orange-hover); border-color: var(--app-orange-hover); }
.app-shell .settings-screen .settings-secondary-btn, .app-shell .settings-screen .settings-mail-btn { color: var(--app-orange-text-light); background: white; border: 1px solid var(--app-orange-focus); box-shadow: 0 1px 2px #ff7a1a10; }
.app-shell .settings-screen .settings-secondary-btn:hover, .app-shell .settings-screen .settings-secondary-btn:focus-visible,
.app-shell .settings-screen .settings-mail-btn:hover:not(:disabled), .app-shell .settings-screen .settings-mail-btn:focus-visible { color: white; background: var(--app-orange); border-color: var(--app-orange); }
.app-shell .settings-screen .btn:disabled { color: #8c99ac; background: #e8edf3; border-color: #e0e7f0; box-shadow: none; opacity: 1; cursor: not-allowed; }
/* メッセージ帯（core/messages.html に message_bar_class='settings-messages' を渡す。既定の row ml-3 mt-5 の余白は使わない） */
.app-shell .settings-messages.message_bar { width: auto; margin: 0 0 14px; padding: 0; }
.app-shell .settings-messages .alert { margin-bottom: 8px; }
.app-shell .settings-screen select { font-size: 14px; }
.app-shell .settings-note { margin: 0 0 12px; color: var(--app-muted); font-size: 12px; line-height: 1.7; }
.app-shell .settings-card { min-width: 0; margin-bottom: 16px; padding: 20px 24px 24px; background: white; border: 1px solid var(--app-border); border-radius: 10px; box-shadow: 0 4px 14px #2c45650a; }
.app-shell .settings-card.is-table { padding: 0; overflow: hidden; }
.app-shell .settings-section-heading { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #edf1f6; }
.app-shell .settings-section-heading h2 { margin: 0; padding-left: 12px; border-left: 4px solid var(--app-orange); color: var(--app-ink); font-size: 15px; font-weight: 700; line-height: 1.5; }
.app-shell .settings-section-heading p { margin: 6px 0 0; color: var(--app-muted); font-size: 12px; }
.app-shell .settings-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 20rem)); gap: 18px 24px; }
.app-shell .settings-field { min-width: 0; }
.app-shell .settings-field-wide { grid-column: 1 / -1; max-width: 41.5rem; }
.app-shell .settings-field > label { display: block; margin-bottom: 6px; color: #33405a; font-size: 13px; font-weight: 600; }
.app-shell .settings-field .form-control, .app-shell .settings-field .form-select, .app-shell .settings-field select { width: 100%; max-width: none; min-height: 40px; margin: 0; border: 1px solid #d2dce9; border-radius: 6px; color: var(--app-ink); font-size: 14px; }
.app-shell .settings-field .form-control[readonly] { background: #f3f6f9; color: #52617b; }
.app-shell .settings-field-note { display: block; margin-top: 4px; color: var(--app-muted); font-size: 12px; line-height: 1.6; }
.app-shell .settings-table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.app-shell .settings-table { width: 100%; min-width: 40rem; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 13px; }
/* style2.css の素の th, td（中央寄せ・全周の罫線）を打ち消す。中央にしたい列は .text-center */
.app-shell .settings-table thead th { padding: 12px 14px; text-align: left; color: #33405a; background: var(--app-orange-table-head); border: 0; border-bottom: 1px solid var(--app-orange-table-line); font-size: 12px; font-weight: 700; white-space: nowrap; }
.app-shell .settings-table tbody td { padding: 10px 14px; text-align: left; color: #33405a; background: white; border: 0; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
.app-shell .settings-table tbody tr:nth-child(even) td { background: #fafbfd; }
.app-shell .settings-table tbody tr:hover td { background: #fff7f1; }
.app-shell .settings-table tbody tr:last-child td { border-bottom: 0; }
/* 有効フラグOFF（ログイン不可）の担当者 */
.app-shell .settings-table tbody tr.is-inactive td { color: #9aa3b0; background: #f3f4f6; }
.app-shell .settings-table .settings-empty { padding: 24px 14px; color: var(--app-muted); text-align: center; }
.app-shell .settings-row-action { width: 3.5rem; text-align: center; }
.app-shell .settings-row-action a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--app-orange-text-light); background: var(--app-orange-soft); border-radius: 6px; text-decoration: none; }
.app-shell .settings-row-action a:hover, .app-shell .settings-row-action a:focus-visible { color: white; background: var(--app-orange); }
.app-shell .settings-screen .settings-mail-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px !important; font-size: 12px; }
/* 見出しの状態表示（担当者マスタ登録の「新規登録」「編集・削除」など） */
.app-shell .settings-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.app-shell .settings-meta .settings-lead { margin: 0; }
.app-shell .settings-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; color: #c55009; background: var(--app-orange-soft); border: 1px solid #ffc89f; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.app-shell .settings-screen .settings-danger-btn { color: #b42318; background: white; border: 1px solid #e5a7a2; }
.app-shell .settings-screen .settings-danger-btn:hover, .app-shell .settings-screen .settings-danger-btn:focus-visible { color: white; background: #b42318; border-color: #b42318; }
/* 一覧の列見出しの並べ替え（rosen/settings_sort_th.html） */
.app-shell .settings-sort-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; white-space: nowrap; }
.app-shell .settings-sort-link i { color: #a9b6c9; font-size: 11px; }
.app-shell .settings-sort-link:hover, .app-shell .settings-sort-link.is-active { color: var(--app-orange-text); }
.app-shell .settings-sort-link:hover i, .app-shell .settings-sort-link.is-active i { color: inherit; }
/* 担当者マスタ登録 */
.app-shell .settings-form-card { max-width: 64rem; }
.app-shell .settings-active-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 16px; background: #f8fafc; border: 1px solid var(--app-border); border-radius: 8px; }
.app-shell .settings-active-field .form-check { margin: 0; }
.app-shell .settings-active-field .form-check-label { font-weight: 600; }
.app-shell .settings-active-field .settings-field-note { margin-top: 0; }
.app-shell .settings-active-field .form-check-input:checked { background-color: var(--app-orange); border-color: var(--app-orange); }
.app-shell .settings-active-field .form-check-input:focus { border-color: #ffac70; box-shadow: 0 0 0 3px #ff7a1a25; }
.app-shell .settings-password-note { margin: 0 0 6px; }
.app-shell .settings-password-note ul { margin: 4px 0 0; padding-left: 1.25rem; }
.app-shell .settings-password-control { position: relative; }
.app-shell .settings-password-control .form-control { padding-right: 3rem; }
/* style.css の .password_view（top: 35px の絶対位置）を、入力欄の中の右端に置き直す */
.app-shell .settings-password-control .password_view { position: absolute; top: 50%; right: 8px; width: 32px; height: 32px; padding: 0; color: #61718d; background: transparent; border: 0; font-size: 16px; transform: translateY(-50%); }
/* 担当者権限設定 */
.app-shell .settings-person-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; max-width: 34rem; }
.app-shell .settings-person-row > label { margin: 0; padding-top: 9px; font-weight: 700; white-space: nowrap; }
.app-shell .settings-person-row > div { flex: 1 1 14rem; min-width: 0; }
.app-shell .settings-person-row select { width: 100%; min-height: 40px; }
.app-shell .settings-kengen-card { max-width: 56rem; }
.app-shell .settings-bulk-title { margin: 0 0 8px; color: #52617b; font-size: 12px; font-weight: 700; }
.app-shell .settings-bulk-row { display: grid; grid-template-columns: minmax(12rem, 2fr) minmax(9rem, 1fr) auto; gap: 10px; align-items: start; margin-bottom: 18px; }
.app-shell .settings-bulk-row select { width: 100%; min-height: 40px; }
.app-shell .settings-bulk-row .valid_text { padding-left: 0 !important; }
.app-shell .settings-screen .settings-bulk-row .btn { min-height: 40px; white-space: nowrap; }
.app-shell .settings-kengen-scroll { border: 1px solid var(--app-border); border-radius: 8px; }
.app-shell .settings-kengen-table { min-width: 30rem; }
.app-shell .settings-kengen-table .settings-kengen-column { width: 11rem; }
.app-shell .settings-kengen-table select.select_list { width: 100%; min-height: 34px; padding: 4px 8px; border: 1px solid #d2dce9; border-radius: 6px; }
@media (max-width: 1199px) {
    .app-shell .settings-header { display: block; }
    .app-shell .settings-actions { justify-content: flex-start; margin-top: 12px; }
}
@media (max-width: 991px) {
    .app-shell .settings-header { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 575px) {
    .app-shell .settings-header { margin-left: -12px; margin-right: -12px; padding: 12px; }
    .app-shell .settings-lead { display: none; }
    .app-shell .settings-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-shell .settings-screen .settings-actions .btn { width: 100%; min-width: 0; }
    .app-shell .settings-card { padding: 16px 12px 18px; }
    .app-shell .settings-form-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .app-shell .settings-field-wide { grid-column: auto; }
    .app-shell .settings-bulk-row { grid-template-columns: minmax(0, 1fr); }
}
